@npmcli/query
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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", |
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
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
8269
1