Updating NPM dependencies
This commit is contained in:
4
node_modules/@babel/template/lib/options.js
generated
vendored
4
node_modules/@babel/template/lib/options.js
generated
vendored
@@ -17,7 +17,7 @@ function merge(a, b) {
|
||||
syntacticPlaceholders = a.syntacticPlaceholders
|
||||
} = b;
|
||||
return {
|
||||
parser: Object.assign({}, a.parser, {}, b.parser),
|
||||
parser: Object.assign({}, a.parser, b.parser),
|
||||
placeholderWhitelist,
|
||||
placeholderPattern,
|
||||
preserveComments,
|
||||
@@ -63,7 +63,7 @@ function validate(opts) {
|
||||
parser,
|
||||
placeholderWhitelist: placeholderWhitelist || undefined,
|
||||
placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern,
|
||||
preserveComments: preserveComments == null ? false : preserveComments,
|
||||
preserveComments: preserveComments == null ? undefined : preserveComments,
|
||||
syntacticPlaceholders: syntacticPlaceholders == null ? undefined : syntacticPlaceholders
|
||||
};
|
||||
}
|
||||
|
||||
16
node_modules/@babel/template/lib/parse.js
generated
vendored
16
node_modules/@babel/template/lib/parse.js
generated
vendored
@@ -18,13 +18,13 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
||||
const PATTERN = /^[_$A-Z0-9]+$/;
|
||||
|
||||
function parseAndBuildMetadata(formatter, code, opts) {
|
||||
const ast = parseWithCodeFrame(code, opts.parser);
|
||||
const {
|
||||
placeholderWhitelist,
|
||||
placeholderPattern,
|
||||
preserveComments,
|
||||
syntacticPlaceholders
|
||||
} = opts;
|
||||
const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders);
|
||||
t.removePropertiesDeep(ast, {
|
||||
preserveComments
|
||||
});
|
||||
@@ -54,6 +54,8 @@ function parseAndBuildMetadata(formatter, code, opts) {
|
||||
}
|
||||
|
||||
function placeholderVisitorHandler(node, ancestors, state) {
|
||||
var _state$placeholderWhi;
|
||||
|
||||
let name;
|
||||
|
||||
if (t.isPlaceholder(node)) {
|
||||
@@ -79,7 +81,7 @@ function placeholderVisitorHandler(node, ancestors, state) {
|
||||
throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'");
|
||||
}
|
||||
|
||||
if (state.isLegacyRef.value && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && (!state.placeholderWhitelist || !state.placeholderWhitelist.has(name))) {
|
||||
if (state.isLegacyRef.value && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && !((_state$placeholderWhi = state.placeholderWhitelist) == null ? void 0 : _state$placeholderWhi.has(name))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -145,13 +147,19 @@ function resolveAncestors(ast, ancestors) {
|
||||
};
|
||||
}
|
||||
|
||||
function parseWithCodeFrame(code, parserOpts) {
|
||||
function parseWithCodeFrame(code, parserOpts, syntacticPlaceholders) {
|
||||
const plugins = (parserOpts.plugins || []).slice();
|
||||
|
||||
if (syntacticPlaceholders !== false) {
|
||||
plugins.push("placeholders");
|
||||
}
|
||||
|
||||
parserOpts = Object.assign({
|
||||
allowReturnOutsideFunction: true,
|
||||
allowSuperOutsideMethod: true,
|
||||
sourceType: "module"
|
||||
}, parserOpts, {
|
||||
plugins: (parserOpts.plugins || []).concat("placeholders")
|
||||
plugins
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
39
node_modules/@babel/template/package.json
generated
vendored
39
node_modules/@babel/template/package.json
generated
vendored
@@ -1,44 +1,48 @@
|
||||
{
|
||||
"_from": "@babel/template@^7.8.3",
|
||||
"_id": "@babel/template@7.8.3",
|
||||
"_from": "@babel/template@^7.10.4",
|
||||
"_id": "@babel/template@7.10.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==",
|
||||
"_integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
|
||||
"_location": "/@babel/template",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@babel/template@^7.8.3",
|
||||
"raw": "@babel/template@^7.10.4",
|
||||
"name": "@babel/template",
|
||||
"escapedName": "@babel%2ftemplate",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "^7.8.3",
|
||||
"rawSpec": "^7.10.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^7.8.3"
|
||||
"fetchSpec": "^7.10.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/core",
|
||||
"/@babel/helper-function-name",
|
||||
"/@babel/helper-module-transforms",
|
||||
"/@babel/helpers",
|
||||
"/istanbul-lib-instrument"
|
||||
"/babel-plugin-jest-hoist"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.3.tgz",
|
||||
"_shasum": "e02ad04fe262a657809327f578056ca15fd4d1b8",
|
||||
"_spec": "@babel/template@^7.8.3",
|
||||
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play/node_modules/@babel/core",
|
||||
"_resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
|
||||
"_shasum": "3251996c4200ebc71d1a8fc405fba940f36ba278",
|
||||
"_spec": "@babel/template@^7.10.4",
|
||||
"_where": "/home/codespace/workspace/upload-google-play/node_modules/@babel/core",
|
||||
"author": {
|
||||
"name": "Sebastian McKenzie",
|
||||
"email": "sebmck@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.8.3",
|
||||
"@babel/parser": "^7.8.3",
|
||||
"@babel/types": "^7.8.3"
|
||||
"@babel/code-frame": "^7.10.4",
|
||||
"@babel/parser": "^7.10.4",
|
||||
"@babel/types": "^7.10.4"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Generate an AST from a string template.",
|
||||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017",
|
||||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
|
||||
"homepage": "https://babeljs.io/",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
@@ -48,7 +52,8 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel/tree/master/packages/babel-template"
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-template"
|
||||
},
|
||||
"version": "7.8.3"
|
||||
"version": "7.10.4"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user