Skip to content

Commit d55007d

Browse files
authored
deps: @npmcli/[email protected] (#5247)
1 parent 3b30af2 commit d55007d

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

node_modules/@npmcli/query/lib/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,23 @@ const fixupAttr = astNode => {
7171
matcher.insensitive = true
7272
}
7373
} else {
74-
matcher.qualifiedAttribute = attributeAstNode.qualifiedAttribute
75-
matcher.operator = attributeAstNode.operator || ''
74+
if (attributeAstNode.type !== 'attribute') {
75+
throw Object.assign(
76+
new Error('`:attr` pseudo-class expects an attribute matcher as the last value'),
77+
{ code: 'EQUERYATTR' }
78+
)
79+
}
80+
81+
matcher.qualifiedAttribute = unescapeSlashes(attributeAstNode.qualifiedAttribute)
82+
matcher.operator = attributeAstNode.operator
7683
matcher.value = attributeAstNode.value
7784

7885
// backwards compatibility
79-
matcher.attribute = attributeAstNode.qualifiedAttribute
86+
matcher.attribute = matcher.qualifiedAttribute
8087

8188
if (attributeAstNode.insensitive) {
8289
matcher.insensitive = true
8390
}
84-
85-
if (attributeAstNode.type !== 'attribute') {
86-
throw Object.assign(
87-
new Error('`:attr` pseudo-class expects an attribute matcher as the last value'),
88-
{ code: 'EQUERYATTR' }
89-
)
90-
}
9191
}
9292

9393
astNode.lookupProperties = properties

node_modules/@npmcli/query/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/query",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "npm query parser and tools",
55
"main": "lib/index.js",
66
"scripts": {

package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1044,9 +1044,9 @@
10441044
}
10451045
},
10461046
"node_modules/@npmcli/query": {
1047-
"version": "1.1.0",
1048-
"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-1.1.0.tgz",
1049-
"integrity": "sha512-MQWugz9zqVS3w3ccaC3tN6oruM9W8sLPahdUu6No85Rn3EIppMYISdxnxDnYuQbVO1YVaa2kkWJ/jixCWZ59tg==",
1047+
"version": "1.1.1",
1048+
"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-1.1.1.tgz",
1049+
"integrity": "sha512-UF3I0fD94wzQ84vojMO2jDB8ibjRSTqhi8oz2mzVKiJ9gZHbeGlu9kzPvgHuGDK0Hf2cARhWtTfCDHNEwlL9hg==",
10501050
"dependencies": {
10511051
"npm-package-arg": "^9.1.0",
10521052
"postcss-selector-parser": "^6.0.10",
@@ -10043,7 +10043,7 @@
1004310043
"@npmcli/name-from-folder": "^1.0.1",
1004410044
"@npmcli/node-gyp": "^2.0.0",
1004510045
"@npmcli/package-json": "^2.0.0",
10046-
"@npmcli/query": "^1.1.0",
10046+
"@npmcli/query": "^1.1.1",
1004710047
"@npmcli/run-script": "^4.1.3",
1004810048
"bin-links": "^3.0.0",
1004910049
"cacache": "^16.0.6",

workspaces/arborist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@npmcli/name-from-folder": "^1.0.1",
1212
"@npmcli/node-gyp": "^2.0.0",
1313
"@npmcli/package-json": "^2.0.0",
14-
"@npmcli/query": "^1.1.0",
14+
"@npmcli/query": "^1.1.1",
1515
"@npmcli/run-script": "^4.1.3",
1616
"bin-links": "^3.0.0",
1717
"cacache": "^16.0.6",

0 commit comments

Comments
 (0)