committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
13
node_modules/@babel/helper-simple-access/lib/index.js
generated
vendored
13
node_modules/@babel/helper-simple-access/lib/index.js
generated
vendored
@ -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;
|
||||
|
9
node_modules/@babel/helper-simple-access/package.json
generated
vendored
9
node_modules/@babel/helper-simple-access/package.json
generated
vendored
@ -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"
|
||||
}
|
Reference in New Issue
Block a user