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
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;

View File

@ -1,6 +1,6 @@
{
"name": "@babel/helper-simple-access",
"version": "7.16.7",
"version": "7.18.6",
"description": "Babel helper for ensuring that access to a given value is performed through simple accesses",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-helper-simple-access",
@ -15,12 +15,13 @@
},
"main": "./lib/index.js",
"dependencies": {
"@babel/types": "^7.16.7"
"@babel/types": "^7.18.6"
},
"devDependencies": {
"@babel/traverse": "^7.16.7"
"@babel/traverse": "^7.18.6"
},
"engines": {
"node": ">=6.9.0"
}
},
"type": "commonjs"
}