Commit d030f10 1 parent 314311c commit d030f10 Copy full SHA for d030f10
File tree 4 files changed +25
-13
lines changed
node_modules/@npmcli/query
4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,13 @@ const fixupPaths = astNode => {
168
168
astNode . nodes . length = 0
169
169
}
170
170
171
+ const fixupOutdated = astNode => {
172
+ if ( astNode . nodes . length ) {
173
+ astNode . outdatedKind = String ( astNode . nodes [ 0 ] )
174
+ astNode . nodes . length = 0
175
+ }
176
+ }
177
+
171
178
// a few of the supported ast nodes need to be tweaked in order to properly be
172
179
// interpreted as proper arborist query selectors, namely semver ranges from
173
180
// both ids and :semver pseudo-class selectors need to be translated from what
@@ -196,6 +203,8 @@ const transformAst = selector => {
196
203
return fixupSemverSpecs ( nextAstNode )
197
204
case ':type' :
198
205
return fixupTypes ( nextAstNode )
206
+ case ':outdated' :
207
+ return fixupOutdated ( nextAstNode )
199
208
}
200
209
} )
201
210
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @npmcli/query" ,
3
- "version" : " 1.2 .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"description" : " npm query parser and tools" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
9
9
"postlint" : " template-oss-check" ,
10
10
"template-oss-apply" : " template-oss-apply --force" ,
11
11
"lintfix" : " npm run lint -- --fix" ,
12
- "preversion" : " npm test" ,
13
- "postversion" : " npm publish" ,
14
- "prepublishOnly" : " git push origin --follow-tags" ,
15
12
"snap" : " tap" ,
16
13
"posttest" : " npm run lint"
17
14
},
38
35
" lib/"
39
36
],
40
37
"engines" : {
41
- "node" : " ^12.13 .0 || ^14.15 .0 || >=16 .0.0"
38
+ "node" : " ^14.17 .0 || ^16.13 .0 || >=18 .0.0"
42
39
},
43
40
"templateOSS" : {
44
41
"//@npmcli/template-oss" : " This file is partially managed by @npmcli/template-oss. Edits may be overwritten." ,
45
- "version" : " 3.5.0 "
42
+ "version" : " 4.3.2 "
46
43
},
47
44
"devDependencies" : {
48
45
"@npmcli/eslint-config" : " ^3.0.1" ,
49
- "@npmcli/template-oss" : " 3.5.0 " ,
46
+ "@npmcli/template-oss" : " 4.3.2 " ,
50
47
"tap" : " ^16.2.0"
51
48
},
52
49
"dependencies" : {
57
54
"repository" : {
58
55
"type" : " git" ,
59
56
"url" : " https://github.com/npm/query.git"
57
+ },
58
+ "tap" : {
59
+ "nyc-arg" : [
60
+ " --exclude" ,
61
+ " tap-snapshots/**"
62
+ ]
60
63
}
61
64
}
Original file line number Diff line number Diff line change 2334
2334
}
2335
2335
},
2336
2336
"node_modules/@npmcli/query" : {
2337
- "version" : " 1.2 .0" ,
2338
- "resolved" : " https://registry.npmjs.org/@npmcli/query/-/query-1.2 .0.tgz" ,
2339
- "integrity" : " sha512-uWglsUM3PjBLgTSmZ3/vygeGdvWEIZ3wTUnzGFbprC/RtvQSaT+GAXu1DXmSFj2bD3oOZdcRm1xdzsV2z1YWdw ==" ,
2337
+ "version" : " 2.0 .0" ,
2338
+ "resolved" : " https://registry.npmjs.org/@npmcli/query/-/query-2.0 .0.tgz" ,
2339
+ "integrity" : " sha512-ef3fUALbojBvtCi6wpogwnrtChBcK8Pdso5Vbz2EU0cud7VW1jcMGqwSNeSMU8V4cjpqVgudKQ+dosKO7N903g ==" ,
2340
2340
"dependencies" : {
2341
2341
"npm-package-arg" : " ^9.1.0" ,
2342
2342
"postcss-selector-parser" : " ^6.0.10" ,
2343
2343
"semver" : " ^7.3.7"
2344
2344
},
2345
2345
"engines" : {
2346
- "node" : " ^12.13 .0 || ^14.15 .0 || >=16 .0.0"
2346
+ "node" : " ^14.17 .0 || ^16.13 .0 || >=18 .0.0"
2347
2347
}
2348
2348
},
2349
2349
"node_modules/@npmcli/run-script" : {
13875
13875
"@npmcli/name-from-folder" : " ^1.0.1" ,
13876
13876
"@npmcli/node-gyp" : " ^2.0.0" ,
13877
13877
"@npmcli/package-json" : " ^2.0.0" ,
13878
- "@npmcli/query" : " ^1.2 .0" ,
13878
+ "@npmcli/query" : " ^2.0 .0" ,
13879
13879
"@npmcli/run-script" : " ^4.1.3" ,
13880
13880
"bin-links" : " ^3.0.3" ,
13881
13881
"cacache" : " ^16.1.3" ,
Original file line number Diff line number Diff line change 11
11
"@npmcli/name-from-folder" : " ^1.0.1" ,
12
12
"@npmcli/node-gyp" : " ^2.0.0" ,
13
13
"@npmcli/package-json" : " ^2.0.0" ,
14
- "@npmcli/query" : " ^1.2 .0" ,
14
+ "@npmcli/query" : " ^2.0 .0" ,
15
15
"@npmcli/run-script" : " ^4.1.3" ,
16
16
"bin-links" : " ^3.0.3" ,
17
17
"cacache" : " ^16.1.3" ,
You can’t perform that action at this time.
0 commit comments