pacote 19.0.0 → 19.0.2
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/dir.js +2 -0
- package/lib/fetcher.js +9 -1
- package/package.json +7 -6
package/lib/dir.js
CHANGED
|
@@ -39,6 +39,8 @@ class DirFetcher extends Fetcher {
|
|
|
39
39
|
const stdio = this.opts.foregroundScripts ? 'inherit' : 'pipe'
|
|
40
40
|
|
|
41
41
|
return runScript({
|
|
42
|
+
// this || undefined is because runScript will be unhappy with the default null value
|
|
43
|
+
scriptShell: this.opts.scriptShell || undefined,
|
|
42
44
|
pkg: mani,
|
|
43
45
|
event: 'prepare',
|
|
44
46
|
path: this.resolved,
|
package/lib/fetcher.js
CHANGED
|
@@ -188,7 +188,15 @@ class FetcherBase {
|
|
|
188
188
|
// private
|
|
189
189
|
// Note: cacache will raise a EINTEGRITY error if the integrity doesn't match
|
|
190
190
|
#tarballFromCache () {
|
|
191
|
-
|
|
191
|
+
const startTime = Date.now()
|
|
192
|
+
const stream = cacache.get.stream.byDigest(this.cache, this.integrity, this.opts)
|
|
193
|
+
const elapsedTime = Date.now() - startTime
|
|
194
|
+
// cache is good, so log it as a hit in particular since there was no fetch logged
|
|
195
|
+
log.http(
|
|
196
|
+
'cache',
|
|
197
|
+
`${this.spec} ${elapsedTime}ms (cache hit)`
|
|
198
|
+
)
|
|
199
|
+
return stream
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
get [_.cacheFetches] () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacote",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.2",
|
|
4
4
|
"description": "JavaScript package downloader",
|
|
5
5
|
"author": "GitHub Inc.",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@npmcli/arborist": "^7.1.0",
|
|
30
30
|
"@npmcli/eslint-config": "^5.0.0",
|
|
31
|
-
"@npmcli/template-oss": "4.
|
|
31
|
+
"@npmcli/template-oss": "4.29.0",
|
|
32
32
|
"hosted-git-info": "^8.0.0",
|
|
33
33
|
"mutate-fs": "^2.1.1",
|
|
34
34
|
"nock": "^13.2.4",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"npm-registry-fetch": "^18.0.0",
|
|
60
60
|
"proc-log": "^5.0.0",
|
|
61
61
|
"promise-retry": "^2.0.1",
|
|
62
|
-
"sigstore": "^
|
|
62
|
+
"sigstore": "^3.0.0",
|
|
63
63
|
"ssri": "^12.0.0",
|
|
64
|
-
"tar": "^
|
|
64
|
+
"tar": "^7.5.10"
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": "^18.17.0 || >=20.5.0"
|
|
@@ -72,8 +72,9 @@
|
|
|
72
72
|
},
|
|
73
73
|
"templateOSS": {
|
|
74
74
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
75
|
-
"version": "4.
|
|
75
|
+
"version": "4.29.0",
|
|
76
76
|
"windowsCI": false,
|
|
77
|
-
"publish": "true"
|
|
77
|
+
"publish": "true",
|
|
78
|
+
"backport": 19
|
|
78
79
|
}
|
|
79
80
|
}
|