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

@ -4,35 +4,56 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports.requeueComputedKeyAndDecorators = requeueComputedKeyAndDecorators;
exports.skipAllButComputedKey = skipAllButComputedKey;
var _t = require("@babel/types");
const {
VISITOR_KEYS,
staticBlock
} = _t;
function skipAllButComputedKey(path) {
if (!path.node.computed) {
path.skip();
return;
}
path.skip();
const keys = VISITOR_KEYS[path.type];
for (const key of keys) {
if (key !== "key") path.skipKey(key);
if (path.node.computed) {
path.context.maybeQueue(path.get("key"));
}
}
const skipKey = (staticBlock ? "StaticBlock|" : "") + "ClassPrivateProperty|TypeAnnotation|FunctionDeclaration|FunctionExpression";
var _default = {
[skipKey]: path => path.skip(),
function requeueComputedKeyAndDecorators(path) {
const {
context,
node
} = path;
"Method|ClassProperty"(path) {
skipAllButComputedKey(path);
if (node.computed) {
context.maybeQueue(path.get("key"));
}
if (node.decorators) {
for (const decorator of path.get("decorators")) {
context.maybeQueue(decorator);
}
}
}
const visitor = {
FunctionParent(path) {
if (path.isArrowFunctionExpression()) {
return;
} else {
path.skip();
if (path.isMethod()) {
requeueComputedKeyAndDecorators(path);
}
}
},
Property(path) {
if (path.isObjectProperty()) {
return;
}
path.skip();
requeueComputedKeyAndDecorators(path);
}
};
var _default = visitor;
exports.default = _default;

View File

@ -1,6 +1,6 @@
{
"name": "@babel/helper-environment-visitor",
"version": "7.16.7",
"version": "7.18.6",
"description": "Helper visitor to only visit nodes in the current 'this' context",
"repository": {
"type": "git",
@ -17,14 +17,13 @@
".": "./lib/index.js",
"./package.json": "./package.json"
},
"dependencies": {
"@babel/types": "^7.16.7"
},
"devDependencies": {
"@babel/traverse": "^7.16.7"
"@babel/traverse": "^7.18.6",
"@babel/types": "^7.18.6"
},
"engines": {
"node": ">=6.9.0"
},
"author": "The Babel Team (https://babel.dev/team)"
"author": "The Babel Team (https://babel.dev/team)",
"type": "commonjs"
}