@npmcli/query
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -171,2 +171,9 @@ 'use strict' | ||
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 | ||
@@ -200,2 +207,4 @@ // interpreted as proper arborist query selectors, namely semver ranges from | ||
return fixupTypes(nextAstNode) | ||
case ':outdated': | ||
return fixupOutdated(nextAstNode) | ||
} | ||
@@ -202,0 +211,0 @@ }) |
{ | ||
"name": "@npmcli/query", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "npm query parser and tools", | ||
@@ -12,5 +12,2 @@ "main": "lib/index.js", | ||
"lintfix": "npm run lint -- --fix", | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"snap": "tap", | ||
@@ -42,11 +39,11 @@ "posttest": "npm run lint" | ||
"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" | ||
@@ -62,3 +59,9 @@ }, | ||
"url": "https://github.com/npm/query.git" | ||
}, | ||
"tap": { | ||
"nyc-arg": [ | ||
"--exclude", | ||
"tap-snapshots/**" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9744
192
0