+2499
-145
lines changed Original file line number Diff line number Diff line change
@@ -24,30 +24,38 @@
24
24
/@npmcli/map-workspaces/node_modules/*
25
25
!/@npmcli/map-workspaces/node_modules/@npmcli/
26
26
/@npmcli/map-workspaces/node_modules/@npmcli/*
27
-
!/@npmcli/map-workspaces/node_modules/@npmcli/git
28
27
!/@npmcli/map-workspaces/node_modules/@npmcli/name-from-folder
29
-
!/@npmcli/map-workspaces/node_modules/@npmcli/package-json
30
-
!/@npmcli/map-workspaces/node_modules/@npmcli/promise-spawn
31
-
!/@npmcli/map-workspaces/node_modules/hosted-git-info
32
-
!/@npmcli/map-workspaces/node_modules/ini
33
-
!/@npmcli/map-workspaces/node_modules/isexe
34
-
!/@npmcli/map-workspaces/node_modules/json-parse-even-better-errors
35
-
!/@npmcli/map-workspaces/node_modules/normalize-package-data
36
-
!/@npmcli/map-workspaces/node_modules/npm-install-checks
37
-
!/@npmcli/map-workspaces/node_modules/npm-normalize-package-bin
38
-
!/@npmcli/map-workspaces/node_modules/npm-package-arg
39
-
!/@npmcli/map-workspaces/node_modules/npm-pick-manifest
40
-
!/@npmcli/map-workspaces/node_modules/proc-log
41
-
!/@npmcli/map-workspaces/node_modules/validate-npm-package-name
42
-
!/@npmcli/map-workspaces/node_modules/which
43
28
!/@npmcli/metavuln-calculator
44
29
!/@npmcli/name-from-folder
45
30
!/@npmcli/node-gyp
46
31
!/@npmcli/package-json
32
+
!/@npmcli/package-json/node_modules/
33
+
/@npmcli/package-json/node_modules/*
34
+
!/@npmcli/package-json/node_modules/@npmcli/
35
+
/@npmcli/package-json/node_modules/@npmcli/*
36
+
!/@npmcli/package-json/node_modules/@npmcli/git
37
+
!/@npmcli/package-json/node_modules/@npmcli/promise-spawn
38
+
!/@npmcli/package-json/node_modules/hosted-git-info
39
+
!/@npmcli/package-json/node_modules/ini
40
+
!/@npmcli/package-json/node_modules/isexe
41
+
!/@npmcli/package-json/node_modules/json-parse-even-better-errors
42
+
!/@npmcli/package-json/node_modules/normalize-package-data
43
+
!/@npmcli/package-json/node_modules/npm-install-checks
44
+
!/@npmcli/package-json/node_modules/npm-normalize-package-bin
45
+
!/@npmcli/package-json/node_modules/npm-package-arg
46
+
!/@npmcli/package-json/node_modules/npm-pick-manifest
47
+
!/@npmcli/package-json/node_modules/proc-log
48
+
!/@npmcli/package-json/node_modules/validate-npm-package-name
49
+
!/@npmcli/package-json/node_modules/which
47
50
!/@npmcli/promise-spawn
48
51
!/@npmcli/query
49
52
!/@npmcli/redact
50
53
!/@npmcli/run-script
54
+
!/@npmcli/run-script/node_modules/
55
+
/@npmcli/run-script/node_modules/*
56
+
!/@npmcli/run-script/node_modules/@npmcli/
57
+
/@npmcli/run-script/node_modules/@npmcli/*
58
+
!/@npmcli/run-script/node_modules/@npmcli/package-json
51
59
!/@pkgjs/
52
60
/@pkgjs/*
53
61
!/@pkgjs/parseargs
@@ -121,6 +129,11 @@
121
129
!/indent-string
122
130
!/ini
123
131
!/init-package-json
132
+
!/init-package-json/node_modules/
133
+
/init-package-json/node_modules/*
134
+
!/init-package-json/node_modules/@npmcli/
135
+
/init-package-json/node_modules/@npmcli/*
136
+
!/init-package-json/node_modules/@npmcli/package-json
124
137
!/ip-address
125
138
!/ip-regex
126
139
!/is-cidr
@@ -176,6 +189,11 @@
176
189
!/p-map
177
190
!/package-json-from-dist
178
191
!/pacote
192
+
!/pacote/node_modules/
193
+
/pacote/node_modules/*
194
+
!/pacote/node_modules/@npmcli/
195
+
/pacote/node_modules/@npmcli/*
196
+
!/pacote/node_modules/@npmcli/package-json
179
197
!/parse-conflict-json
180
198
!/path-key
181
199
!/path-scurry
Original file line number Diff line number Diff line change
@@ -127,13 +127,9 @@ function unixifyPath (ref) {
127
127
return ref.replace(/\\|:/g, '/')
128
128
}
129
129
130
-
function securePath (ref) {
131
-
const secured = path.join('.', path.join('/', unixifyPath(ref)))
132
-
return secured.startsWith('.') ? '' : secured
133
-
}
134
-
135
130
function secureAndUnixifyPath (ref) {
136
-
return unixifyPath(securePath(ref))
131
+
const secured = unixifyPath(path.join('.', path.join('/', unixifyPath(ref))))
132
+
return secured.startsWith('./') ? '' : secured
137
133
}
138
134
139
135
// We don't want the `changes` array in here by default because this is a hot
@@ -376,7 +372,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
376
372
377
373
// expand "directories.bin"
378
374
if (steps.includes('binDir') && data.directories?.bin && !data.bin) {
379
-
const binsDir = path.resolve(pkg.path, securePath(data.directories.bin))
375
+
const binsDir = path.resolve(pkg.path, secureAndUnixifyPath(data.directories.bin))
380
376
const bins = await lazyLoadGlob()('**', { cwd: binsDir })
381
377
data.bin = bins.reduce((acc, binFile) => {
382
378
if (binFile && !binFile.startsWith('.')) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4