File tree 4 files changed +28
-14
lines changed
node_modules/npm-package-arg
4 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,10 @@ function fromFile (res, where) {
241
241
rawNoPrefix = rawSpec . replace ( / ^ f i l e : / , '' )
242
242
}
243
243
// turn file:/../foo into file:../foo
244
- if ( / ^ \/ \. \. ? ( \/ | $ ) / . test ( rawNoPrefix ) ) {
245
- const rawSpec = res . rawSpec . replace ( / ^ f i l e : \/ / , 'file:' )
244
+ // for 1, 2 or 3 leading slashes since we attempted
245
+ // in the previous step to make it a file protocol url with a leading slash
246
+ if ( / ^ \/ { 1 , 3 } \. \. ? ( \/ | $ ) / . test ( rawNoPrefix ) ) {
247
+ const rawSpec = res . rawSpec . replace ( / ^ f i l e : \/ { 1 , 3 } / , 'file:' )
246
248
resolvedUrl = new url . URL ( rawSpec , `file://${ path . resolve ( where ) } /` )
247
249
specUrl = new url . URL ( rawSpec )
248
250
rawNoPrefix = rawSpec . replace ( / ^ f i l e : / , '' )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " npm-package-arg" ,
3
- "version" : " 9.1.0 " ,
3
+ "version" : " 9.1.2 " ,
4
4
"description" : " Parse the things that can be arguments to `npm install`" ,
5
5
"main" : " ./lib/npa.js" ,
6
6
"directories" : {
18
18
},
19
19
"devDependencies" : {
20
20
"@npmcli/eslint-config" : " ^3.0.1" ,
21
- "@npmcli/template-oss" : " 3.5.0 " ,
21
+ "@npmcli/template-oss" : " 4.3.2 " ,
22
22
"tap" : " ^16.0.1"
23
23
},
24
24
"scripts" : {
25
- "preversion" : " npm test" ,
26
- "postversion" : " npm publish" ,
27
- "prepublishOnly" : " git push origin --follow-tags" ,
28
25
"test" : " tap" ,
29
26
"snap" : " tap" ,
30
27
"npmclilint" : " npmcli-lint" ,
49
46
"node" : " ^12.13.0 || ^14.15.0 || >=16.0.0"
50
47
},
51
48
"tap" : {
52
- "branches" : 97
49
+ "branches" : 97 ,
50
+ "nyc-arg" : [
51
+ " --exclude" ,
52
+ " tap-snapshots/**"
53
+ ]
53
54
},
54
55
"templateOSS" : {
55
56
"//@npmcli/template-oss" : " This file is partially managed by @npmcli/template-oss. Edits may be overwritten." ,
56
- "version" : " 3.5.0"
57
+ "version" : " 4.3.2" ,
58
+ "releaseBranches" : [
59
+ " v9"
60
+ ],
61
+ "ciVersions" : [
62
+ " 12.13.0" ,
63
+ " 12.x" ,
64
+ " 14.15.0" ,
65
+ " 14.x" ,
66
+ " 16.0.0" ,
67
+ " 16.x"
68
+ ]
57
69
}
58
70
}
Original file line number Diff line number Diff line change 135
135
"nopt" : " ^6.0.0" ,
136
136
"npm-audit-report" : " ^3.0.0" ,
137
137
"npm-install-checks" : " ^5.0.0" ,
138
- "npm-package-arg" : " ^9.1.0 " ,
138
+ "npm-package-arg" : " ^9.1.2 " ,
139
139
"npm-pick-manifest" : " ^7.0.2" ,
140
140
"npm-profile" : " ^6.2.0" ,
141
141
"npm-registry-fetch" : " ^13.3.1" ,
8010
8010
"license" : " ISC"
8011
8011
},
8012
8012
"node_modules/npm-package-arg" : {
8013
- "version" : " 9.1.0 " ,
8014
- "resolved" : " https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-9.1.0 .tgz" ,
8015
- "integrity" : " sha512-4J0GL+u2Nh6OnhvUKXRr2ZMG4lR8qtLp+kv7UiV00Y+nGiSxtttCyIRHCt5L5BNkXQld/RceYItau3MDOoGiBw ==" ,
8013
+ "version" : " 9.1.2 " ,
8014
+ "resolved" : " https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-9.1.2 .tgz" ,
8015
+ "integrity" : " sha512-pzd9rLEx4TfNJkovvlBSLGhq31gGu2QDexFPWT19yCDh0JgnRhlBLNo5759N0AJmBk+kQ9Y/hXoLnlgFD+ukmg ==" ,
8016
8016
"inBundle" : true ,
8017
8017
"dependencies" : {
8018
8018
"hosted-git-info" : " ^5.0.0" ,
Original file line number Diff line number Diff line change 100
100
"nopt" : " ^6.0.0" ,
101
101
"npm-audit-report" : " ^3.0.0" ,
102
102
"npm-install-checks" : " ^5.0.0" ,
103
- "npm-package-arg" : " ^9.1.0 " ,
103
+ "npm-package-arg" : " ^9.1.2 " ,
104
104
"npm-pick-manifest" : " ^7.0.2" ,
105
105
"npm-profile" : " ^6.2.0" ,
106
106
"npm-registry-fetch" : " ^13.3.1" ,
You can’t perform that action at this time.
0 commit comments