Skip to content

Commit

Permalink
deps: npm-package-arg@9.1.1
Browse files Browse the repository at this point in the history
Fixes #4994
  • Loading branch information
lukekarrys committed Sep 28, 2022
1 parent 7e6b824 commit aeb4360
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
6 changes: 4 additions & 2 deletions node_modules/npm-package-arg/lib/npa.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ function fromFile (res, where) {
rawNoPrefix = rawSpec.replace(/^file:/, '')
}
// turn file:/../foo into file:../foo
if (/^\/\.\.?(\/|$)/.test(rawNoPrefix)) {
const rawSpec = res.rawSpec.replace(/^file:\//, 'file:')
// for 1, 2 or 3 leading slashes since we attempted
// in the previous step to make it a file protocol url with a leading slash
if (/^\/{1,3}\.\.?(\/|$)/.test(rawNoPrefix)) {
const rawSpec = res.rawSpec.replace(/^file:\/{1,3}/, 'file:')
resolvedUrl = new url.URL(rawSpec, `file://${path.resolve(where)}/`)
specUrl = new url.URL(rawSpec)
rawNoPrefix = rawSpec.replace(/^file:/, '')
Expand Down
20 changes: 12 additions & 8 deletions node_modules/npm-package-arg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npm-package-arg",
"version": "9.1.0",
"version": "9.1.1",
"description": "Parse the things that can be arguments to `npm install`",
"main": "./lib/npa.js",
"directories": {
Expand All @@ -18,13 +18,10 @@
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.5.0",
"@npmcli/template-oss": "4.3.2",
"tap": "^16.0.1"
},
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"test": "tap",
"snap": "tap",
"npmclilint": "npmcli-lint",
Expand All @@ -46,13 +43,20 @@
},
"homepage": "https://github.com/npm/npm-package-arg",
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"tap": {
"branches": 97
"branches": 97,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.5.0"
"version": "4.3.2",
"releaseBranches": [
"v9"
]
}
}
10 changes: 5 additions & 5 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"nopt": "^6.0.0",
"npm-audit-report": "^3.0.0",
"npm-install-checks": "^5.0.0",
"npm-package-arg": "^9.1.0",
"npm-package-arg": "^9.1.1",
"npm-pick-manifest": "^7.0.2",
"npm-profile": "^6.2.0",
"npm-registry-fetch": "^13.3.1",
Expand Down Expand Up @@ -8010,9 +8010,9 @@
"license": "ISC"
},
"node_modules/npm-package-arg": {
"version": "9.1.0",
"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-9.1.0.tgz",
"integrity": "sha512-4J0GL+u2Nh6OnhvUKXRr2ZMG4lR8qtLp+kv7UiV00Y+nGiSxtttCyIRHCt5L5BNkXQld/RceYItau3MDOoGiBw==",
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-9.1.1.tgz",
"integrity": "sha512-niGtiCjgDGnJWtRx6smFIbiyOEGhBnYzGTh5QsfIqMZe7sHabOdHr3bjR0+8D0M78NnuVSJiJ+E1JqbitIC/mQ==",
"inBundle": true,
"dependencies": {
"hosted-git-info": "^5.0.0",
Expand All @@ -8021,7 +8021,7 @@
"validate-npm-package-name": "^4.0.0"
},
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npm-packlist": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"nopt": "^6.0.0",
"npm-audit-report": "^3.0.0",
"npm-install-checks": "^5.0.0",
"npm-package-arg": "^9.1.0",
"npm-package-arg": "^9.1.1",
"npm-pick-manifest": "^7.0.2",
"npm-profile": "^6.2.0",
"npm-registry-fetch": "^13.3.1",
Expand Down

0 comments on commit aeb4360

Please sign in to comment.