Skip to content

Commit 2076368

Browse files
committed
deps: update @npmcli/[email protected]
1 parent feac87c commit 2076368

File tree

107 files changed

+2499
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+2499
-145
lines changed

node_modules/.gitignore

+33-15
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,38 @@
2424
/@npmcli/map-workspaces/node_modules/*
2525
!/@npmcli/map-workspaces/node_modules/@npmcli/
2626
/@npmcli/map-workspaces/node_modules/@npmcli/*
27-
!/@npmcli/map-workspaces/node_modules/@npmcli/git
2827
!/@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
4328
!/@npmcli/metavuln-calculator
4429
!/@npmcli/name-from-folder
4530
!/@npmcli/node-gyp
4631
!/@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
4750
!/@npmcli/promise-spawn
4851
!/@npmcli/query
4952
!/@npmcli/redact
5053
!/@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
5159
!/@pkgjs/
5260
/@pkgjs/*
5361
!/@pkgjs/parseargs
@@ -121,6 +129,11 @@
121129
!/indent-string
122130
!/ini
123131
!/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
124137
!/ip-address
125138
!/ip-regex
126139
!/is-cidr
@@ -176,6 +189,11 @@
176189
!/p-map
177190
!/package-json-from-dist
178191
!/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
179197
!/parse-conflict-json
180198
!/path-key
181199
!/path-scurry

node_modules/@npmcli/package-json/lib/normalize.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,9 @@ function unixifyPath (ref) {
127127
return ref.replace(/\\|:/g, '/')
128128
}
129129

130-
function securePath (ref) {
131-
const secured = path.join('.', path.join('/', unixifyPath(ref)))
132-
return secured.startsWith('.') ? '' : secured
133-
}
134-
135130
function secureAndUnixifyPath (ref) {
136-
return unixifyPath(securePath(ref))
131+
const secured = unixifyPath(path.join('.', path.join('/', unixifyPath(ref))))
132+
return secured.startsWith('./') ? '' : secured
137133
}
138134

139135
// 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 })
376372

377373
// expand "directories.bin"
378374
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))
380376
const bins = await lazyLoadGlob()('**', { cwd: binsDir })
381377
data.bin = bins.reduce((acc, binFile) => {
382378
if (binFile && !binFile.startsWith('.')) {

node_modules/@npmcli/package-json/package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/package-json",
3-
"version": "5.2.0",
3+
"version": "6.0.1",
44
"description": "Programmatic API to update package.json",
55
"main": "lib/index.js",
66
"files": [
@@ -10,12 +10,13 @@
1010
"scripts": {
1111
"snap": "tap",
1212
"test": "tap",
13-
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
14-
"lintfix": "npm run lint -- --fix",
13+
"lint": "npm run eslint",
14+
"lintfix": "npm run eslint -- --fix",
1515
"posttest": "npm run lint",
1616
"postsnap": "npm run lintfix --",
1717
"postlint": "template-oss-check",
18-
"template-oss-apply": "template-oss-apply --force"
18+
"template-oss-apply": "template-oss-apply --force",
19+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
1920
},
2021
"keywords": [
2122
"npm",
@@ -24,31 +25,31 @@
2425
"author": "GitHub Inc.",
2526
"license": "ISC",
2627
"devDependencies": {
27-
"@npmcli/eslint-config": "^4.0.0",
28-
"@npmcli/template-oss": "4.22.0",
28+
"@npmcli/eslint-config": "^5.0.0",
29+
"@npmcli/template-oss": "4.23.3",
2930
"read-package-json": "^7.0.0",
30-
"read-package-json-fast": "^3.0.2",
31+
"read-package-json-fast": "^4.0.0",
3132
"tap": "^16.0.1"
3233
},
3334
"dependencies": {
34-
"@npmcli/git": "^5.0.0",
35+
"@npmcli/git": "^6.0.0",
3536
"glob": "^10.2.2",
36-
"hosted-git-info": "^7.0.0",
37-
"json-parse-even-better-errors": "^3.0.0",
38-
"normalize-package-data": "^6.0.0",
39-
"proc-log": "^4.0.0",
37+
"hosted-git-info": "^8.0.0",
38+
"json-parse-even-better-errors": "^4.0.0",
39+
"normalize-package-data": "^7.0.0",
40+
"proc-log": "^5.0.0",
4041
"semver": "^7.5.3"
4142
},
4243
"repository": {
4344
"type": "git",
4445
"url": "git+https://github.com/npm/package-json.git"
4546
},
4647
"engines": {
47-
"node": "^16.14.0 || >=18.0.0"
48+
"node": "^18.17.0 || >=20.5.0"
4849
},
4950
"templateOSS": {
5051
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
51-
"version": "4.22.0",
52+
"version": "4.23.3",
5253
"publish": "true"
5354
},
5455
"tap": {

node_modules/@npmcli/map-workspaces/node_modules/@npmcli/package-json/package.json node_modules/@npmcli/run-script/node_modules/@npmcli/package-json/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/package-json",
3-
"version": "6.0.1",
3+
"version": "5.2.1",
44
"description": "Programmatic API to update package.json",
55
"main": "lib/index.js",
66
"files": [
@@ -25,27 +25,27 @@
2525
"author": "GitHub Inc.",
2626
"license": "ISC",
2727
"devDependencies": {
28-
"@npmcli/eslint-config": "^5.0.0",
28+
"@npmcli/eslint-config": "^4.0.0",
2929
"@npmcli/template-oss": "4.23.3",
3030
"read-package-json": "^7.0.0",
31-
"read-package-json-fast": "^4.0.0",
31+
"read-package-json-fast": "^3.0.2",
3232
"tap": "^16.0.1"
3333
},
3434
"dependencies": {
35-
"@npmcli/git": "^6.0.0",
35+
"@npmcli/git": "^5.0.0",
3636
"glob": "^10.2.2",
37-
"hosted-git-info": "^8.0.0",
38-
"json-parse-even-better-errors": "^4.0.0",
39-
"normalize-package-data": "^7.0.0",
40-
"proc-log": "^5.0.0",
37+
"hosted-git-info": "^7.0.0",
38+
"json-parse-even-better-errors": "^3.0.0",
39+
"normalize-package-data": "^6.0.0",
40+
"proc-log": "^4.0.0",
4141
"semver": "^7.5.3"
4242
},
4343
"repository": {
4444
"type": "git",
4545
"url": "git+https://github.com/npm/package-json.git"
4646
},
4747
"engines": {
48-
"node": "^18.17.0 || >=20.5.0"
48+
"node": "^16.14.0 || >=18.0.0"
4949
},
5050
"templateOSS": {
5151
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ISC License
2+
3+
Copyright GitHub Inc.
4+
5+
Permission to use, copy, modify, and/or distribute this
6+
software for any purpose with or without fee is hereby
7+
granted, provided that the above copyright notice and this
8+
permission notice appear in all copies.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
11+
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
12+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
13+
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
14+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
16+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
17+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
18+
USE OR PERFORMANCE OF THIS SOFTWARE.

0 commit comments

Comments
 (0)