Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-09-20 23:11:42 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-09-21 23:08:28 +0300
commitd030f10fd535433e5a824df1b099f500a71075dd (patch)
tree7279b64f736cc9a2f17786d2c32aebcd3ef9aac4
parent314311c61b8f341715c168199d52976ee3237077 (diff)
deps: @npmcli/query@2.0.0
-rw-r--r--node_modules/@npmcli/query/lib/index.js9
-rw-r--r--node_modules/@npmcli/query/package.json17
-rw-r--r--package-lock.json10
-rw-r--r--workspaces/arborist/package.json2
4 files changed, 25 insertions, 13 deletions
diff --git a/node_modules/@npmcli/query/lib/index.js b/node_modules/@npmcli/query/lib/index.js
index 44f539ee0..09cff0f59 100644
--- a/node_modules/@npmcli/query/lib/index.js
+++ b/node_modules/@npmcli/query/lib/index.js
@@ -168,6 +168,13 @@ const fixupPaths = astNode => {
astNode.nodes.length = 0
}
+const fixupOutdated = astNode => {
+ if (astNode.nodes.length) {
+ astNode.outdatedKind = String(astNode.nodes[0])
+ astNode.nodes.length = 0
+ }
+}
+
// a few of the supported ast nodes need to be tweaked in order to properly be
// interpreted as proper arborist query selectors, namely semver ranges from
// both ids and :semver pseudo-class selectors need to be translated from what
@@ -196,6 +203,8 @@ const transformAst = selector => {
return fixupSemverSpecs(nextAstNode)
case ':type':
return fixupTypes(nextAstNode)
+ case ':outdated':
+ return fixupOutdated(nextAstNode)
}
})
}
diff --git a/node_modules/@npmcli/query/package.json b/node_modules/@npmcli/query/package.json
index 610d0b718..1e2ce917c 100644
--- a/node_modules/@npmcli/query/package.json
+++ b/node_modules/@npmcli/query/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/query",
- "version": "1.2.0",
+ "version": "2.0.0",
"description": "npm query parser and tools",
"main": "lib/index.js",
"scripts": {
@@ -9,9 +9,6 @@
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
- "preversion": "npm test",
- "postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"posttest": "npm run lint"
},
@@ -38,15 +35,15 @@
"lib/"
],
"engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"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"
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
- "@npmcli/template-oss": "3.5.0",
+ "@npmcli/template-oss": "4.3.2",
"tap": "^16.2.0"
},
"dependencies": {
@@ -57,5 +54,11 @@
"repository": {
"type": "git",
"url": "https://github.com/npm/query.git"
+ },
+ "tap": {
+ "nyc-arg": [
+ "--exclude",
+ "tap-snapshots/**"
+ ]
}
}
diff --git a/package-lock.json b/package-lock.json
index 2fabe79b6..069cf6dc0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2334,16 +2334,16 @@
}
},
"node_modules/@npmcli/query": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@npmcli/query/-/query-1.2.0.tgz",
- "integrity": "sha512-uWglsUM3PjBLgTSmZ3/vygeGdvWEIZ3wTUnzGFbprC/RtvQSaT+GAXu1DXmSFj2bD3oOZdcRm1xdzsV2z1YWdw==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@npmcli/query/-/query-2.0.0.tgz",
+ "integrity": "sha512-ef3fUALbojBvtCi6wpogwnrtChBcK8Pdso5Vbz2EU0cud7VW1jcMGqwSNeSMU8V4cjpqVgudKQ+dosKO7N903g==",
"dependencies": {
"npm-package-arg": "^9.1.0",
"postcss-selector-parser": "^6.0.10",
"semver": "^7.3.7"
},
"engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/@npmcli/run-script": {
@@ -13875,7 +13875,7 @@
"@npmcli/name-from-folder": "^1.0.1",
"@npmcli/node-gyp": "^2.0.0",
"@npmcli/package-json": "^2.0.0",
- "@npmcli/query": "^1.2.0",
+ "@npmcli/query": "^2.0.0",
"@npmcli/run-script": "^4.1.3",
"bin-links": "^3.0.3",
"cacache": "^16.1.3",
diff --git a/workspaces/arborist/package.json b/workspaces/arborist/package.json
index 4c685676d..58a156da8 100644
--- a/workspaces/arborist/package.json
+++ b/workspaces/arborist/package.json
@@ -11,7 +11,7 @@
"@npmcli/name-from-folder": "^1.0.1",
"@npmcli/node-gyp": "^2.0.0",
"@npmcli/package-json": "^2.0.0",
- "@npmcli/query": "^1.2.0",
+ "@npmcli/query": "^2.0.0",
"@npmcli/run-script": "^4.1.3",
"bin-links": "^3.0.3",
"cacache": "^16.1.3",