cacache 16.0.3 → 16.0.6
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/verify.js +3 -1
- package/package.json +6 -6
package/lib/verify.js
CHANGED
|
@@ -13,6 +13,8 @@ const path = require('path')
|
|
|
13
13
|
const rimraf = util.promisify(require('rimraf'))
|
|
14
14
|
const ssri = require('ssri')
|
|
15
15
|
|
|
16
|
+
const globify = pattern => pattern.split('\\').join('/')
|
|
17
|
+
|
|
16
18
|
const hasOwnProperty = (obj, key) =>
|
|
17
19
|
Object.prototype.hasOwnProperty.call(obj, key)
|
|
18
20
|
|
|
@@ -119,7 +121,7 @@ function garbageCollect (cache, opts) {
|
|
|
119
121
|
indexStream.on('end', resolve).on('error', reject)
|
|
120
122
|
}).then(() => {
|
|
121
123
|
const contentDir = contentPath.contentDir(cache)
|
|
122
|
-
return glob(path.join(contentDir, '**'), {
|
|
124
|
+
return glob(globify(path.join(contentDir, '**')), {
|
|
123
125
|
follow: false,
|
|
124
126
|
nodir: true,
|
|
125
127
|
nosort: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cacache",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.6",
|
|
4
4
|
"cache-version": {
|
|
5
5
|
"content": "2",
|
|
6
6
|
"index": "5"
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"license": "ISC",
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@npmcli/fs": "^2.1.0",
|
|
53
|
-
"@npmcli/move-file": "^
|
|
53
|
+
"@npmcli/move-file": "^2.0.0",
|
|
54
54
|
"chownr": "^2.0.0",
|
|
55
55
|
"fs-minipass": "^2.1.0",
|
|
56
|
-
"glob": "^
|
|
56
|
+
"glob": "^8.0.1",
|
|
57
57
|
"infer-owner": "^1.0.4",
|
|
58
58
|
"lru-cache": "^7.7.1",
|
|
59
59
|
"minipass": "^3.1.6",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"p-map": "^4.0.0",
|
|
65
65
|
"promise-inflight": "^1.0.1",
|
|
66
66
|
"rimraf": "^3.0.2",
|
|
67
|
-
"ssri": "^
|
|
67
|
+
"ssri": "^9.0.0",
|
|
68
68
|
"tar": "^6.1.11",
|
|
69
69
|
"unique-filename": "^1.1.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@npmcli/eslint-config": "^3.0.1",
|
|
73
|
-
"@npmcli/template-oss": "3.1
|
|
73
|
+
"@npmcli/template-oss": "3.4.1",
|
|
74
74
|
"benchmark": "^2.1.4",
|
|
75
75
|
"chalk": "^4.1.2",
|
|
76
76
|
"require-inject": "^1.4.4",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"templateOSS": {
|
|
88
88
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
89
89
|
"windowsCI": false,
|
|
90
|
-
"version": "3.1
|
|
90
|
+
"version": "3.4.1"
|
|
91
91
|
},
|
|
92
92
|
"author": "GitHub Inc."
|
|
93
93
|
}
|