From d55007d9c535b17612a07a7a58cb6be94eedf77a Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 3 Aug 2022 08:26:48 -0700 Subject: [PATCH] deps: @npmcli/query@1.1.1 (#5247) --- node_modules/@npmcli/query/lib/index.js | 20 ++++++++++---------- node_modules/@npmcli/query/package.json | 2 +- package-lock.json | 8 ++++---- workspaces/arborist/package.json | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/node_modules/@npmcli/query/lib/index.js b/node_modules/@npmcli/query/lib/index.js index 3986baeacc3c2..36a8c700caae1 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 f7f656233e73f..0c9247e0bb23b 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": { diff --git a/package-lock.json b/package-lock.json index 4a952e2ff5e50..5df46ecca633a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -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", diff --git a/workspaces/arborist/package.json b/workspaces/arborist/package.json index 9c87667c5920c..4f529a0a8c8bf 100644 --- a/workspaces/arborist/package.json +++ b/workspaces/arborist/package.json @@ -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",