Skip to content

Commit

Permalink
deps: @npmcli/query@2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf authored and lukekarrys committed Sep 21, 2022
1 parent 314311c commit d030f10
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
9 changes: 9 additions & 0 deletions node_modules/@npmcli/query/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -196,6 +203,8 @@ const transformAst = selector => {
return fixupSemverSpecs(nextAstNode)
case ':type':
return fixupTypes(nextAstNode)
case ':outdated':
return fixupOutdated(nextAstNode)
}
})
}
Expand Down
17 changes: 10 additions & 7 deletions node_modules/@npmcli/query/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
},
Expand All @@ -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": {
Expand All @@ -57,5 +54,11 @@
"repository": {
"type": "git",
"url": "https://github.com/npm/query.git"
},
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
}
}
10 changes: 5 additions & 5 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d030f10

Please sign in to comment.