Skip to content

Commit

Permalink
deps: @npmcli/query@1.1.1 (#5247)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Aug 3, 2022
1 parent 3b30af2 commit d55007d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions node_modules/@npmcli/query/lib/index.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json
Expand Up @@ -1044,9 +1044,9 @@
}
},
"node_modules/@npmcli/query": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-1.1.0.tgz",
"integrity": "sha512-MQWugz9zqVS3w3ccaC3tN6oruM9W8sLPahdUu6No85Rn3EIppMYISdxnxDnYuQbVO1YVaa2kkWJ/jixCWZ59tg==",
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@npmcli/query/-/query-1.1.1.tgz",
"integrity": "sha512-UF3I0fD94wzQ84vojMO2jDB8ibjRSTqhi8oz2mzVKiJ9gZHbeGlu9kzPvgHuGDK0Hf2cARhWtTfCDHNEwlL9hg==",
"dependencies": {
"npm-package-arg": "^9.1.0",
"postcss-selector-parser": "^6.0.10",
Expand Down Expand Up @@ -10043,7 +10043,7 @@
"@npmcli/name-from-folder": "^1.0.1",
"@npmcli/node-gyp": "^2.0.0",
"@npmcli/package-json": "^2.0.0",
"@npmcli/query": "^1.1.0",
"@npmcli/query": "^1.1.1",
"@npmcli/run-script": "^4.1.3",
"bin-links": "^3.0.0",
"cacache": "^16.0.6",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/package.json
Expand Up @@ -11,7 +11,7 @@
"@npmcli/name-from-folder": "^1.0.1",
"@npmcli/node-gyp": "^2.0.0",
"@npmcli/package-json": "^2.0.0",
"@npmcli/query": "^1.1.0",
"@npmcli/query": "^1.1.1",
"@npmcli/run-script": "^4.1.3",
"bin-links": "^3.0.0",
"cacache": "^16.0.6",
Expand Down

0 comments on commit d55007d

Please sign in to comment.