Socket
Socket
Sign inDemoInstall

@npmcli/query

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/query - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

9

lib/index.js

@@ -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 @@ })

17

package.json
{
"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/**"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc