pacote 11.1.12 → 11.1.13
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 +6 -10
- package/package.json +2 -2
package/lib/fetcher.js
CHANGED
|
@@ -91,18 +91,11 @@ class FetcherBase {
|
|
|
91
91
|
|
|
92
92
|
// command to run 'prepare' scripts on directories and git dirs
|
|
93
93
|
// To use pacote with yarn, for example, set npmBin to 'yarn'
|
|
94
|
-
// and
|
|
94
|
+
// and npmCliConfig with yarn's equivalents.
|
|
95
95
|
this.npmBin = opts.npmBin || 'npm'
|
|
96
96
|
|
|
97
97
|
// command to install deps for preparing
|
|
98
|
-
this.npmInstallCmd = opts.npmInstallCmd || [
|
|
99
|
-
'install',
|
|
100
|
-
'--only=dev',
|
|
101
|
-
'--prod',
|
|
102
|
-
'--ignore-prepublish',
|
|
103
|
-
'--no-progress',
|
|
104
|
-
'--no-save',
|
|
105
|
-
]
|
|
98
|
+
this.npmInstallCmd = opts.npmInstallCmd || [ 'install' ]
|
|
106
99
|
|
|
107
100
|
// XXX fill more of this in based on what we know from this.opts
|
|
108
101
|
// we explicitly DO NOT fill in --tag, though, since we are often
|
|
@@ -113,7 +106,10 @@ class FetcherBase {
|
|
|
113
106
|
`--prefer-offline=${!!this.preferOffline}`,
|
|
114
107
|
`--prefer-online=${!!this.preferOnline}`,
|
|
115
108
|
`--offline=${!!this.offline}`,
|
|
116
|
-
|
|
109
|
+
...(this.before ? [`--before=${this.before.toISOString()}`] : []),
|
|
110
|
+
'--no-progress',
|
|
111
|
+
'--no-save',
|
|
112
|
+
'--no-audit',
|
|
117
113
|
]
|
|
118
114
|
}
|
|
119
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.13",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"minipass": "^3.1.3",
|
|
48
48
|
"mkdirp": "^1.0.3",
|
|
49
49
|
"npm-package-arg": "^8.0.1",
|
|
50
|
-
"npm-packlist": "^2.1.
|
|
50
|
+
"npm-packlist": "^2.1.4",
|
|
51
51
|
"npm-pick-manifest": "^6.0.0",
|
|
52
52
|
"npm-registry-fetch": "^9.0.0",
|
|
53
53
|
"promise-retry": "^1.1.1",
|