hunk.code_window:   return lock(
       ctx.storePath,
       () => installInContext(installType, packagesToInstall, optionalDependencies, ctx, installCtx, opts),
       {stale: opts.lockStaleDuration}
     )
   }
  
hunk.labels: keep keep replace keep keep keep
hunk.after_edit:     () => installInContext(
         installType,
         R.uniqBy(spec => spec.name, packagesToInstall.concat(currentSpecs)),
         R.uniq(optionalDependencies.concat(R.keys(ctx.pkg && ctx.pkg.optionalDependencies))),
         packagesToInstall.map(spec => spec.name),
         ctx,
         installCtx,
         opts),
  
hunk.file_path: src/api/install.ts
hunk.type: replace
file: export type PnpmErrorCode = 'UNEXPECTED_STORE'
    | 'STORE_BREAKING_CHANGE'
    | 'MODULES_BREAKING_CHANGE'
    | 'SHRINKWRAP_BREAKING_CHANGE'
    | 'MODIFIED_DEPENDENCY'
    | 'NO_OFFLINE_META'
    | 'NO_OFFLINE_TARBALL'
  
  export class PnpmError extends Error {
    constructor (code: PnpmErrorCode, message: string) {
      super(message)
      this.code = code
    }
    code: PnpmErrorCode
  }
  