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.
- package/lib/registry.js +3 -1
- 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
|
-
|
|
160
|
+
this.package = rpj.normalize(mani)
|
|
161
|
+
return this.package
|
|
160
162
|
})
|
|
161
163
|
}
|
|
162
164
|
|