Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Karrys <luke@lukekarrys.com>2022-08-03 18:26:48 +0300
committerGitHub <noreply@github.com>2022-08-03 18:26:48 +0300
commitd55007d9c535b17612a07a7a58cb6be94eedf77a (patch)
tree5f39f6e07f8b941a2b59537499562fd07c270a41 /node_modules
parent3b30af25e93665f5aa21897910a65d7f26bbd066 (diff)
deps: @npmcli/query@1.1.1 (#5247)
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/@npmcli/query/lib/index.js20
-rw-r--r--node_modules/@npmcli/query/package.json2
2 files changed, 11 insertions, 11 deletions
diff --git a/node_modules/@npmcli/query/lib/index.js b/node_modules/@npmcli/query/lib/index.js
index 3986baeac..36a8c700c 100644
--- a/node_modules/@npmcli/query/lib/index.js
+++ b/node_modules/@npmcli/query/lib/index.js
@@ -71,23 +71,23 @@ const fixupAttr = astNode => {
matcher.insensitive = true
}
} 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
if (attributeAstNode.insensitive) {
matcher.insensitive = true
}
-
- if (attributeAstNode.type !== 'attribute') {
- throw Object.assign(
- new Error('`:attr` pseudo-class expects an attribute matcher as the last value'),
- { code: 'EQUERYATTR' }
- )
- }
}
astNode.lookupProperties = properties
diff --git a/node_modules/@npmcli/query/package.json b/node_modules/@npmcli/query/package.json
index f7f656233..0c9247e0b 100644
--- a/node_modules/@npmcli/query/package.json
+++ b/node_modules/@npmcli/query/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/query",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "npm query parser and tools",
"main": "lib/index.js",
"scripts": {