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.1.0 to 1.1.1

20

lib/index.js

@@ -74,8 +74,15 @@ 'use strict'

} else {
matcher.qualifiedAttribute = attributeAstNode.qualifiedAttribute
matcher.operator = attributeAstNode.operator || ''
if (attributeAstNode.type !== 'attribute') {
throw Object.assign(
new Error('`:attr` pseudo-class expects an attribute matcher as the last value'),
{ code: 'EQUERYATTR' }
)
}
matcher.qualifiedAttribute = unescapeSlashes(attributeAstNode.qualifiedAttribute)
matcher.operator = attributeAstNode.operator
matcher.value = attributeAstNode.value
// backwards compatibility
matcher.attribute = attributeAstNode.qualifiedAttribute
matcher.attribute = matcher.qualifiedAttribute

@@ -85,9 +92,2 @@ if (attributeAstNode.insensitive) {

}
if (attributeAstNode.type !== 'attribute') {
throw Object.assign(
new Error('`:attr` pseudo-class expects an attribute matcher as the last value'),
{ code: 'EQUERYATTR' }
)
}
}

@@ -94,0 +94,0 @@

{
"name": "@npmcli/query",
"version": "1.1.0",
"version": "1.1.1",
"description": "npm query parser and tools",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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