File tree Expand file tree Collapse file tree
node_modules/@npmcli/query Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,6 +168,13 @@ const fixupPaths = astNode => {
168168 astNode . nodes . length = 0
169169}
170170
171+ const fixupOutdated = astNode => {
172+ if ( astNode . nodes . length ) {
173+ astNode . outdatedKind = String ( astNode . nodes [ 0 ] )
174+ astNode . nodes . length = 0
175+ }
176+ }
177+
171178// a few of the supported ast nodes need to be tweaked in order to properly be
172179// interpreted as proper arborist query selectors, namely semver ranges from
173180// both ids and :semver pseudo-class selectors need to be translated from what
@@ -196,6 +203,8 @@ const transformAst = selector => {
196203 return fixupSemverSpecs ( nextAstNode )
197204 case ':type' :
198205 return fixupTypes ( nextAstNode )
206+ case ':outdated' :
207+ return fixupOutdated ( nextAstNode )
199208 }
200209 } )
201210}
Original file line number Diff line number Diff line change 11{
22 "name" : " @npmcli/query" ,
3- "version" : " 1.2 .0" ,
3+ "version" : " 2.0 .0" ,
44 "description" : " npm query parser and tools" ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
99 "postlint" : " template-oss-check" ,
1010 "template-oss-apply" : " template-oss-apply --force" ,
1111 "lintfix" : " npm run lint -- --fix" ,
12- "preversion" : " npm test" ,
13- "postversion" : " npm publish" ,
14- "prepublishOnly" : " git push origin --follow-tags" ,
1512 "snap" : " tap" ,
1613 "posttest" : " npm run lint"
1714 },
3835 " lib/"
3936 ],
4037 "engines" : {
41- "node" : " ^12.13 .0 || ^14.15 .0 || >=16 .0.0"
38+ "node" : " ^14.17 .0 || ^16.13 .0 || >=18 .0.0"
4239 },
4340 "templateOSS" : {
4441 "//@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 "
4643 },
4744 "devDependencies" : {
4845 "@npmcli/eslint-config" : " ^3.0.1" ,
49- "@npmcli/template-oss" : " 3.5.0 " ,
46+ "@npmcli/template-oss" : " 4.3.2 " ,
5047 "tap" : " ^16.2.0"
5148 },
5249 "dependencies" : {
5754 "repository" : {
5855 "type" : " git" ,
5956 "url" : " https://github.com/npm/query.git"
57+ },
58+ "tap" : {
59+ "nyc-arg" : [
60+ " --exclude" ,
61+ " tap-snapshots/**"
62+ ]
6063 }
6164}
Original file line number Diff line number Diff line change 23342334 }
23352335 },
23362336 "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 ==" ,
23402340 "dependencies" : {
23412341 "npm-package-arg" : " ^9.1.0" ,
23422342 "postcss-selector-parser" : " ^6.0.10" ,
23432343 "semver" : " ^7.3.7"
23442344 },
23452345 "engines" : {
2346- "node" : " ^12.13 .0 || ^14.15 .0 || >=16 .0.0"
2346+ "node" : " ^14.17 .0 || ^16.13 .0 || >=18 .0.0"
23472347 }
23482348 },
23492349 "node_modules/@npmcli/run-script" : {
1387513875 "@npmcli/name-from-folder" : " ^1.0.1" ,
1387613876 "@npmcli/node-gyp" : " ^2.0.0" ,
1387713877 "@npmcli/package-json" : " ^2.0.0" ,
13878- "@npmcli/query" : " ^1.2 .0" ,
13878+ "@npmcli/query" : " ^2.0 .0" ,
1387913879 "@npmcli/run-script" : " ^4.1.3" ,
1388013880 "bin-links" : " ^3.0.3" ,
1388113881 "cacache" : " ^16.1.3" ,
Original file line number Diff line number Diff line change 1111 "@npmcli/name-from-folder" : " ^1.0.1" ,
1212 "@npmcli/node-gyp" : " ^2.0.0" ,
1313 "@npmcli/package-json" : " ^2.0.0" ,
14- "@npmcli/query" : " ^1.2 .0" ,
14+ "@npmcli/query" : " ^2.0 .0" ,
1515 "@npmcli/run-script" : " ^4.1.3" ,
1616 "bin-links" : " ^3.0.3" ,
1717 "cacache" : " ^16.1.3" ,
You can’t perform that action at this time.
0 commit comments