pacote 13.0.1 → 13.0.4
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 +8 -2
- package/package.json +9 -9
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 })
|
|
@@ -159,6 +166,7 @@ class GitFetcher extends Fetcher {
|
|
|
159
166
|
scripts.build ||
|
|
160
167
|
scripts.preinstall ||
|
|
161
168
|
scripts.install ||
|
|
169
|
+
scripts.prepack ||
|
|
162
170
|
scripts.prepare))) {
|
|
163
171
|
return
|
|
164
172
|
}
|
|
@@ -193,7 +201,6 @@ class GitFetcher extends Fetcher {
|
|
|
193
201
|
[_tarballFromResolved] () {
|
|
194
202
|
const stream = new Minipass()
|
|
195
203
|
stream.resolved = this.resolved
|
|
196
|
-
stream.integrity = this.integrity
|
|
197
204
|
stream.from = this.from
|
|
198
205
|
|
|
199
206
|
// check it out and then shell out to the DirFetcher tarball packer
|
|
@@ -303,7 +310,6 @@ class GitFetcher extends Fetcher {
|
|
|
303
310
|
this[_readPackageJson](dir + '/package.json')
|
|
304
311
|
.then(mani => this.package = {
|
|
305
312
|
...mani,
|
|
306
|
-
_integrity: this.integrity && String(this.integrity),
|
|
307
313
|
_resolved: this.resolved,
|
|
308
314
|
_from: this.from,
|
|
309
315
|
}))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.4",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"coverage-map": "map.js"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@npmcli/template-oss": "^2.
|
|
28
|
+
"@npmcli/template-oss": "^2.9.2",
|
|
29
29
|
"mutate-fs": "^2.1.1",
|
|
30
30
|
"npm-registry-mock": "^1.3.1",
|
|
31
31
|
"tap": "^15.1.6"
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"git"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@npmcli/git": "^
|
|
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": "^
|
|
47
|
-
"cacache": "^
|
|
46
|
+
"@npmcli/run-script": "^3.0.1",
|
|
47
|
+
"cacache": "^16.0.0",
|
|
48
48
|
"chownr": "^2.0.0",
|
|
49
49
|
"fs-minipass": "^2.1.0",
|
|
50
50
|
"infer-owner": "^1.0.4",
|
|
51
51
|
"minipass": "^3.1.6",
|
|
52
52
|
"mkdirp": "^1.0.4",
|
|
53
53
|
"npm-package-arg": "^9.0.0",
|
|
54
|
-
"npm-packlist": "^
|
|
54
|
+
"npm-packlist": "^4.0.0",
|
|
55
55
|
"npm-pick-manifest": "^7.0.0",
|
|
56
|
-
"npm-registry-fetch": "^13.0.
|
|
56
|
+
"npm-registry-fetch": "^13.0.1",
|
|
57
57
|
"proc-log": "^2.0.0",
|
|
58
58
|
"promise-retry": "^2.0.1",
|
|
59
|
-
"read-package-json": "^4.1.
|
|
59
|
+
"read-package-json": "^4.1.2",
|
|
60
60
|
"read-package-json-fast": "^2.0.3",
|
|
61
61
|
"rimraf": "^3.0.2",
|
|
62
62
|
"ssri": "^8.0.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"repository": "git@github.com:npm/pacote",
|
|
69
69
|
"templateOSS": {
|
|
70
|
-
"version": "2.
|
|
70
|
+
"version": "2.9.2",
|
|
71
71
|
"windowsCI": false
|
|
72
72
|
}
|
|
73
73
|
}
|