pacote 13.0.2 → 13.0.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/git.js +7 -2
- package/package.json +2 -2
package/lib/git.js
CHANGED
|
@@ -38,6 +38,13 @@ const addGitPlus = url => url && `git+${url}`.replace(/^(git\+)+/, 'git+')
|
|
|
38
38
|
class GitFetcher extends Fetcher {
|
|
39
39
|
constructor (spec, opts) {
|
|
40
40
|
super(spec, opts)
|
|
41
|
+
|
|
42
|
+
// we never want to compare integrity for git dependencies: npm/rfcs#525
|
|
43
|
+
if (this.opts.integrity) {
|
|
44
|
+
delete this.opts.integrity
|
|
45
|
+
log.warn(`skipping integrity check for git dependency ${this.spec.fetchSpec}`)
|
|
46
|
+
}
|
|
47
|
+
|
|
41
48
|
this.resolvedRef = null
|
|
42
49
|
if (this.spec.hosted) {
|
|
43
50
|
this.from = this.spec.hosted.shortcut({ noCommittish: false })
|
|
@@ -194,7 +201,6 @@ class GitFetcher extends Fetcher {
|
|
|
194
201
|
[_tarballFromResolved] () {
|
|
195
202
|
const stream = new Minipass()
|
|
196
203
|
stream.resolved = this.resolved
|
|
197
|
-
stream.integrity = this.integrity
|
|
198
204
|
stream.from = this.from
|
|
199
205
|
|
|
200
206
|
// check it out and then shell out to the DirFetcher tarball packer
|
|
@@ -304,7 +310,6 @@ class GitFetcher extends Fetcher {
|
|
|
304
310
|
this[_readPackageJson](dir + '/package.json')
|
|
305
311
|
.then(mani => this.package = {
|
|
306
312
|
...mani,
|
|
307
|
-
_integrity: this.integrity && String(this.integrity),
|
|
308
313
|
_resolved: this.resolved,
|
|
309
314
|
_from: this.from,
|
|
310
315
|
}))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.3",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@npmcli/git": "^3.0.0",
|
|
44
44
|
"@npmcli/installed-package-contents": "^1.0.7",
|
|
45
45
|
"@npmcli/promise-spawn": "^1.2.0",
|
|
46
|
-
"@npmcli/run-script": "^
|
|
46
|
+
"@npmcli/run-script": "^3.0.0",
|
|
47
47
|
"cacache": "^15.3.0",
|
|
48
48
|
"chownr": "^2.0.0",
|
|
49
49
|
"fs-minipass": "^2.1.0",
|