Commit d55007d 1 parent 3b30af2 commit d55007d Copy full SHA for d55007d
File tree 4 files changed +16
-16
lines changed
node_modules/@npmcli/query
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -71,23 +71,23 @@ const fixupAttr = astNode => {
71
71
matcher . insensitive = true
72
72
}
73
73
} 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
76
83
matcher . value = attributeAstNode . value
77
84
78
85
// backwards compatibility
79
- matcher . attribute = attributeAstNode . qualifiedAttribute
86
+ matcher . attribute = matcher . qualifiedAttribute
80
87
81
88
if ( attributeAstNode . insensitive ) {
82
89
matcher . insensitive = true
83
90
}
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
- }
91
91
}
92
92
93
93
astNode . lookupProperties = properties
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @npmcli/query" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" : " npm query parser and tools" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1044
1044
}
1045
1045
},
1046
1046
"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 ==" ,
1050
1050
"dependencies" : {
1051
1051
"npm-package-arg" : " ^9.1.0" ,
1052
1052
"postcss-selector-parser" : " ^6.0.10" ,
10043
10043
"@npmcli/name-from-folder" : " ^1.0.1" ,
10044
10044
"@npmcli/node-gyp" : " ^2.0.0" ,
10045
10045
"@npmcli/package-json" : " ^2.0.0" ,
10046
- "@npmcli/query" : " ^1.1.0 " ,
10046
+ "@npmcli/query" : " ^1.1.1 " ,
10047
10047
"@npmcli/run-script" : " ^4.1.3" ,
10048
10048
"bin-links" : " ^3.0.0" ,
10049
10049
"cacache" : " ^16.0.6" ,
Original file line number Diff line number Diff line change 11
11
"@npmcli/name-from-folder" : " ^1.0.1" ,
12
12
"@npmcli/node-gyp" : " ^2.0.0" ,
13
13
"@npmcli/package-json" : " ^2.0.0" ,
14
- "@npmcli/query" : " ^1.1.0 " ,
14
+ "@npmcli/query" : " ^1.1.1 " ,
15
15
"@npmcli/run-script" : " ^4.1.3" ,
16
16
"bin-links" : " ^3.0.0" ,
17
17
"cacache" : " ^16.0.6" ,
You can’t perform that action at this time.
0 commit comments