Skip to content

Commit d030f10

Browse files
nlflukekarrys
authored andcommitted
deps: @npmcli/[email protected]
1 parent 314311c commit d030f10

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

node_modules/@npmcli/query/lib/index.js

+9
Original file line numberDiff line numberDiff 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
}

node_modules/@npmcli/query/package.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -9,9 +9,6 @@
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
},
@@ -38,15 +35,15 @@
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": {
@@ -57,5 +54,11 @@
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
}

package-lock.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -2334,16 +2334,16 @@
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": {
@@ -13875,7 +13875,7 @@
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",

workspaces/arborist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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",

0 commit comments

Comments
 (0)