pacote 11.3.2 → 11.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/registry.js +3 -1
  2. package/package.json +1 -1
package/lib/registry.js CHANGED
@@ -3,6 +3,7 @@ const RemoteFetcher = require('./remote.js')
3
3
  const _tarballFromResolved = Symbol.for('pacote.Fetcher._tarballFromResolved')
4
4
  const pacoteVersion = require('../package.json').version
5
5
  const npa = require('npm-package-arg')
6
+ const rpj = require('read-package-json-fast')
6
7
  const pickManifest = require('npm-pick-manifest')
7
8
  const ssri = require('ssri')
8
9
  const Minipass = require('minipass')
@@ -156,7 +157,8 @@ class RegistryFetcher extends Fetcher {
156
157
  }
157
158
  if (this.integrity)
158
159
  mani._integrity = String(this.integrity)
159
- return this.package = mani
160
+ this.package = rpj.normalize(mani)
161
+ return this.package
160
162
  })
161
163
  }
162
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacote",
3
- "version": "11.3.2",
3
+ "version": "11.3.3",
4
4
  "description": "JavaScript package downloader",
5
5
  "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
6
6
  "bin": {