pacote 13.0.0 → 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 +10 -4
- package/package.json +4 -4
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 })
|
|
@@ -154,12 +161,13 @@ class GitFetcher extends Fetcher {
|
|
|
154
161
|
return this[_readPackageJson](dir + '/package.json').then(mani => {
|
|
155
162
|
// no need if we aren't going to do any preparation.
|
|
156
163
|
const scripts = mani.scripts
|
|
157
|
-
if (!scripts || !(
|
|
164
|
+
if (!mani.workspaces && (!scripts || !(
|
|
158
165
|
scripts.postinstall ||
|
|
159
166
|
scripts.build ||
|
|
160
167
|
scripts.preinstall ||
|
|
161
168
|
scripts.install ||
|
|
162
|
-
scripts.
|
|
169
|
+
scripts.prepack ||
|
|
170
|
+
scripts.prepare))) {
|
|
163
171
|
return
|
|
164
172
|
}
|
|
165
173
|
|
|
@@ -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.3",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"bin": {
|
|
@@ -40,10 +40,10 @@
|
|
|
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": "^
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"npm-package-arg": "^9.0.0",
|
|
54
54
|
"npm-packlist": "^3.0.0",
|
|
55
55
|
"npm-pick-manifest": "^7.0.0",
|
|
56
|
-
"npm-registry-fetch": "^
|
|
56
|
+
"npm-registry-fetch": "^13.0.0",
|
|
57
57
|
"proc-log": "^2.0.0",
|
|
58
58
|
"promise-retry": "^2.0.1",
|
|
59
59
|
"read-package-json": "^4.1.1",
|