hunk.code_window: const DEPRECATED = chalk.red('deprecated')
   const versionColor = chalk.grey
   const ADD = chalk.green('+')
   const SUB = chalk.red('-')
   const LINKED = chalk.magentaBright('#')
   const h1 = chalk.blue
   const hlValue = chalk.blue
   const hlPkgId = chalk['whiteBright']
   const POSTINSTALL = hlValue('postinstall')
   const PREINSTALL = hlValue(' preinstall')
   const INSTALL = hlValue('    install')
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit: const h1 = chalk.cyanBright
   const hlValue = chalk.cyanBright
  
hunk.file_path: packages/default-reporter/test/index.ts
hunk.type: replace
file: import checkPackage from '@pnpm/check-package'
  import {streamParser} from '@pnpm/logger'
  import * as dp from 'dependency-path'
  import pFilter = require('p-filter')
  import path = require('path')
  import extendOptions, {
    StoreStatusOptions,
  } from './extendStoreStatusOptions'
  import getContext from './getContext'
  
  export default async function (maybeOpts: StoreStatusOptions) {
    const reporter = maybeOpts && maybeOpts.reporter
    if (reporter) {
      streamParser.on('data', reporter)
    }
    const opts = await extendOptions(maybeOpts)
    const ctx = await getContext(opts)
    if (!ctx.wantedShrinkwrap) return []
  
    const pkgPaths = Object.keys(ctx.wantedShrinkwrap.packages || {})
      .map((id) => {
        if (id === '/') return null
        return dp.resolve(ctx.wantedShrinkwrap.registry, id)
      })
      .filter((pkgId) => pkgId && !ctx.skipped.has(pkgId))
      .map((pkgPath: string) => path.join(ctx.storePath, pkgPath))
  
    const modified = await pFilter(pkgPaths, async (pkgPath: string) => !await checkPackage(path.join(pkgPath, 'package')))
  
    if (reporter) {
      streamParser.removeListener('data', reporter)
    }
  
    return modified
  }
  