10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-22 13:19:52 +00:00

v3 new release (#84)

swap to graphql
This commit is contained in:
github-actions[bot] 2022-07-11 13:48:02 -04:00 committed by GitHub
parent 20d2b4f98d
commit e4f3964f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1492 changed files with 63799 additions and 63001 deletions

View file

@ -19,11 +19,12 @@ const {
unaryExpression
} = _t;
function simplifyAccess(path, bindingNames) {
function simplifyAccess(path, bindingNames, includeUpdateExpression = true) {
path.traverse(simpleAssignmentVisitor, {
scope: path.scope,
bindingNames,
seen: new WeakSet()
seen: new WeakSet(),
includeUpdateExpression
});
}
@ -32,8 +33,14 @@ const simpleAssignmentVisitor = {
exit(path) {
const {
scope,
bindingNames
bindingNames,
includeUpdateExpression
} = this;
if (!includeUpdateExpression) {
return;
}
const arg = path.get("argument");
if (!arg.isIdentifier()) return;
const localName = arg.node.name;