hunk.code_window:     dependencies:
         cpr: 2.2.0
         rimraf: 2.6.2
         verdaccio: 2.4.0
       resolution:
         integrity: sha512-jghVGcE6CekDwYIaeUg2XGsyfY+cBxtK6491DY6E4fHWbToxlGu05ApsY4nhxDUyM5a9INBAUb4e53b5xJgtaA==
     /process-nextick-args/1.0.7:
       resolution:
         integrity: sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=
     /process/0.5.2:
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:       integrity: sha512-n/N6/9LuASIri6v6H84Re5J2kcqBFS8Ob7DO7WX98hWOdzrjdkBiHZfM54wWv9fLds3HgAqS2BwhnXAmPBD5Sw==
  
hunk.file_path: test/shrinkwrap.yaml
hunk.type: replace
file: import * as dp from 'dependency-path'
  import {DependencyShrinkwrap} from 'pnpm-shrinkwrap'
  
  export default function getPkgInfoFromShr (
    relativeDepPath: string,
    pkgShr: DependencyShrinkwrap
  ) {
    if (!pkgShr.name) {
      const pkgInfo = dp.parse(relativeDepPath)
      return {
        name: pkgInfo['name'],
        version: pkgInfo['version'],
      }
    }
    return {
      name: pkgShr.name,
      version: pkgShr.version,
    }
  }
  