pacote 11.3.4 → 11.3.5
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/fetcher.js +8 -0
- package/lib/git.js +6 -1
- package/package.json +2 -2
package/lib/fetcher.js
CHANGED
|
@@ -119,6 +119,13 @@ class FetcherBase {
|
|
|
119
119
|
'--no-progress',
|
|
120
120
|
'--no-save',
|
|
121
121
|
'--no-audit',
|
|
122
|
+
// override any omit settings from the environment
|
|
123
|
+
'--include=dev',
|
|
124
|
+
'--include=peer',
|
|
125
|
+
'--include=optional',
|
|
126
|
+
// we need the actual things, not just the lockfile
|
|
127
|
+
'--no-package-lock-only',
|
|
128
|
+
'--no-dry-run',
|
|
122
129
|
]
|
|
123
130
|
}
|
|
124
131
|
|
|
@@ -430,6 +437,7 @@ class FetcherBase {
|
|
|
430
437
|
return {
|
|
431
438
|
cwd,
|
|
432
439
|
noChmod: true,
|
|
440
|
+
noMtime: true,
|
|
433
441
|
filter: (name, entry) => {
|
|
434
442
|
if (/Link$/.test(entry.type))
|
|
435
443
|
return false
|
package/lib/git.js
CHANGED
|
@@ -85,6 +85,9 @@ class GitFetcher extends Fetcher {
|
|
|
85
85
|
[_resolvedFromHosted] (hosted) {
|
|
86
86
|
return this[_resolvedFromRepo](hosted.https && hosted.https())
|
|
87
87
|
.catch(er => {
|
|
88
|
+
// Throw early since we know pathspec errors will fail again if retried
|
|
89
|
+
if (er instanceof git.errors.GitPathspecError)
|
|
90
|
+
throw er
|
|
88
91
|
const ssh = hosted.sshurl && hosted.sshurl()
|
|
89
92
|
// no fallthrough if we can't fall through or have https auth
|
|
90
93
|
if (!ssh || hosted.auth)
|
|
@@ -260,9 +263,11 @@ class GitFetcher extends Fetcher {
|
|
|
260
263
|
// is present, otherwise ssh if the hosted type provides it
|
|
261
264
|
[_cloneHosted] (ref, tmp) {
|
|
262
265
|
const hosted = this.spec.hosted
|
|
263
|
-
const https = hosted.https()
|
|
264
266
|
return this[_cloneRepo](hosted.https({ noCommittish: true }), ref, tmp)
|
|
265
267
|
.catch(er => {
|
|
268
|
+
// Throw early since we know pathspec errors will fail again if retried
|
|
269
|
+
if (er instanceof git.errors.GitPathspecError)
|
|
270
|
+
throw er
|
|
266
271
|
const ssh = hosted.sshurl && hosted.sshurl({ noCommittish: true })
|
|
267
272
|
// no fallthrough if we can't fall through or have https auth
|
|
268
273
|
if (!ssh || hosted.auth)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.5",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"git"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@npmcli/git": "^2.0
|
|
36
|
+
"@npmcli/git": "^2.1.0",
|
|
37
37
|
"@npmcli/installed-package-contents": "^1.0.6",
|
|
38
38
|
"@npmcli/promise-spawn": "^1.2.0",
|
|
39
39
|
"@npmcli/run-script": "^1.8.2",
|