Skip to content

Commit 12587fa

Browse files
committedAug 21, 2024
deps: npm-package-arg@11.0.3
1 parent 1a9ac86 commit 12587fa

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed
 

‎node_modules/npm-package-arg/lib/npa.js

+4
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ function fromAlias (res, where) {
380380
throw new Error('aliases only work for registry deps')
381381
}
382382

383+
if (!subSpec.name) {
384+
throw new Error('aliases must have a name')
385+
}
386+
383387
res.subSpec = subSpec
384388
res.registry = true
385389
res.type = 'alias'

‎node_modules/npm-package-arg/package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "npm-package-arg",
3-
"version": "11.0.2",
3+
"version": "11.0.3",
44
"description": "Parse the things that can be arguments to `npm install`",
55
"main": "./lib/npa.js",
66
"directories": {
@@ -18,23 +18,24 @@
1818
},
1919
"devDependencies": {
2020
"@npmcli/eslint-config": "^4.0.0",
21-
"@npmcli/template-oss": "4.21.3",
21+
"@npmcli/template-oss": "4.23.1",
2222
"tap": "^16.0.1"
2323
},
2424
"scripts": {
2525
"test": "tap",
2626
"snap": "tap",
2727
"npmclilint": "npmcli-lint",
28-
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
29-
"lintfix": "npm run lint -- --fix",
28+
"lint": "npm run eslint",
29+
"lintfix": "npm run eslint -- --fix",
3030
"posttest": "npm run lint",
3131
"postsnap": "npm run lintfix --",
3232
"postlint": "template-oss-check",
33-
"template-oss-apply": "template-oss-apply --force"
33+
"template-oss-apply": "template-oss-apply --force",
34+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
3435
},
3536
"repository": {
3637
"type": "git",
37-
"url": "https://github.com/npm/npm-package-arg.git"
38+
"url": "git+https://github.com/npm/npm-package-arg.git"
3839
},
3940
"author": "GitHub Inc.",
4041
"license": "ISC",
@@ -54,7 +55,7 @@
5455
},
5556
"templateOSS": {
5657
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
57-
"version": "4.21.3",
58+
"version": "4.23.1",
5859
"publish": true
5960
}
6061
}

‎package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"normalize-package-data": "^6.0.2",
133133
"npm-audit-report": "^5.0.0",
134134
"npm-install-checks": "^6.3.0",
135-
"npm-package-arg": "^11.0.2",
135+
"npm-package-arg": "^11.0.3",
136136
"npm-pick-manifest": "^9.1.0",
137137
"npm-profile": "^10.0.0",
138138
"npm-registry-fetch": "^17.1.0",
@@ -9506,9 +9506,9 @@
95069506
}
95079507
},
95089508
"node_modules/npm-package-arg": {
9509-
"version": "11.0.2",
9510-
"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-11.0.2.tgz",
9511-
"integrity": "sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw==",
9509+
"version": "11.0.3",
9510+
"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-11.0.3.tgz",
9511+
"integrity": "sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==",
95129512
"inBundle": true,
95139513
"license": "ISC",
95149514
"dependencies": {

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"normalize-package-data": "^6.0.2",
9898
"npm-audit-report": "^5.0.0",
9999
"npm-install-checks": "^6.3.0",
100-
"npm-package-arg": "^11.0.2",
100+
"npm-package-arg": "^11.0.3",
101101
"npm-pick-manifest": "^9.1.0",
102102
"npm-profile": "^10.0.0",
103103
"npm-registry-fetch": "^17.1.0",

0 commit comments

Comments
 (0)
Please sign in to comment.