Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: @npmcli/query@1.1.1 #5247

Merged
merged 1 commit into from Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally we don't need to do this since it has no lockfile.

"@npmcli/query": "^1.1.1",
"@npmcli/run-script": "^4.1.3",
"bin-links": "^3.0.0",
"cacache": "^16.0.6",
Expand Down