From b74ea378843a8af96f45d2f8fe68e7aec08809e0 Mon Sep 17 00:00:00 2001 From: Luan Bitar <7@lbitar.com> Date: Thu, 12 Mar 2020 15:56:36 -0300 Subject: [PATCH] fix: removing node_modules --- node_modules/.yarn-integrity | 22 ---- .../@babel/helper-plugin-utils/LICENSE | 22 ---- .../@babel/helper-plugin-utils/README.md | 19 --- .../@babel/helper-plugin-utils/lib/index.js | 77 ------------ .../@babel/helper-plugin-utils/package.json | 14 --- .../@babel/helper-plugin-utils/src/index.js | 95 --------------- .../plugin-proposal-optional-chaining/LICENSE | 22 ---- .../README.md | 19 --- .../lib/index.js | 115 ------------------ .../package.json | 27 ---- .../plugin-syntax-optional-chaining/LICENSE | 22 ---- .../plugin-syntax-optional-chaining/README.md | 19 --- .../lib/index.js | 22 ---- .../package.json | 23 ---- 14 files changed, 518 deletions(-) delete mode 100644 node_modules/.yarn-integrity delete mode 100644 node_modules/@babel/helper-plugin-utils/LICENSE delete mode 100644 node_modules/@babel/helper-plugin-utils/README.md delete mode 100644 node_modules/@babel/helper-plugin-utils/lib/index.js delete mode 100644 node_modules/@babel/helper-plugin-utils/package.json delete mode 100644 node_modules/@babel/helper-plugin-utils/src/index.js delete mode 100644 node_modules/@babel/plugin-proposal-optional-chaining/LICENSE delete mode 100644 node_modules/@babel/plugin-proposal-optional-chaining/README.md delete mode 100644 node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js delete mode 100644 node_modules/@babel/plugin-proposal-optional-chaining/package.json delete mode 100644 node_modules/@babel/plugin-syntax-optional-chaining/LICENSE delete mode 100644 node_modules/@babel/plugin-syntax-optional-chaining/README.md delete mode 100644 node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js delete mode 100644 node_modules/@babel/plugin-syntax-optional-chaining/package.json diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity deleted file mode 100644 index 851701c..0000000 --- a/node_modules/.yarn-integrity +++ /dev/null @@ -1,22 +0,0 @@ -{ - "systemParams": "darwin-x64-64", - "modulesFolders": [ - "node_modules" - ], - "flags": [], - "linkedModules": [ - "@fullogger/cli", - "mobi-widget-hub" - ], - "topLevelPatterns": [ - "@babel/plugin-proposal-optional-chaining@^7.8.3" - ], - "lockfileEntries": { - "@babel/helper-plugin-utils@^7.8.0": "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670", - "@babel/helper-plugin-utils@^7.8.3": "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670", - "@babel/plugin-proposal-optional-chaining@^7.8.3": "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.8.3.tgz#ae10b3214cb25f7adb1f3bc87ba42ca10b7e2543", - "@babel/plugin-syntax-optional-chaining@^7.8.0": "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - }, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/node_modules/@babel/helper-plugin-utils/LICENSE b/node_modules/@babel/helper-plugin-utils/LICENSE deleted file mode 100644 index f31575e..0000000 --- a/node_modules/@babel/helper-plugin-utils/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/helper-plugin-utils/README.md b/node_modules/@babel/helper-plugin-utils/README.md deleted file mode 100644 index 4e6303e..0000000 --- a/node_modules/@babel/helper-plugin-utils/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-plugin-utils - -> General utilities for plugins to use - -See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/en/next/babel-helper-plugin-utils.html) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/helper-plugin-utils -``` - -or using yarn: - -```sh -yarn add @babel/helper-plugin-utils --dev -``` diff --git a/node_modules/@babel/helper-plugin-utils/lib/index.js b/node_modules/@babel/helper-plugin-utils/lib/index.js deleted file mode 100644 index 6b994a3..0000000 --- a/node_modules/@babel/helper-plugin-utils/lib/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.declare = declare; - -function declare(builder) { - return (api, options, dirname) => { - if (!api.assertVersion) { - api = Object.assign(copyApiObject(api), { - assertVersion(range) { - throwVersionError(range, api.version); - } - - }); - } - - return builder(api, options || {}, dirname); - }; -} - -function copyApiObject(api) { - let proto = null; - - if (typeof api.version === "string" && /^7\./.test(api.version)) { - proto = Object.getPrototypeOf(api); - - if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) { - proto = null; - } - } - - return Object.assign({}, proto, {}, api); -} - -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} - -function throwVersionError(range, version) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - - range = `^${range}.0.0-0`; - } - - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - - const limit = Error.stackTraceLimit; - - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - - let err; - - if (version.slice(0, 2) === "7.") { - err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`); - } else { - err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - } - - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version, - range - }); -} \ No newline at end of file diff --git a/node_modules/@babel/helper-plugin-utils/package.json b/node_modules/@babel/helper-plugin-utils/package.json deleted file mode 100644 index 40a7d6a..0000000 --- a/node_modules/@babel/helper-plugin-utils/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@babel/helper-plugin-utils", - "version": "7.8.3", - "description": "General utilities for plugins to use", - "author": "Logan Smyth ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-utils", - "main": "lib/index.js", - "gitHead": "a7620bd266ae1345975767bbc7abf09034437017" -} diff --git a/node_modules/@babel/helper-plugin-utils/src/index.js b/node_modules/@babel/helper-plugin-utils/src/index.js deleted file mode 100644 index f0ecb83..0000000 --- a/node_modules/@babel/helper-plugin-utils/src/index.js +++ /dev/null @@ -1,95 +0,0 @@ -export function declare(builder) { - return (api, options, dirname) => { - if (!api.assertVersion) { - // Inject a custom version of 'assertVersion' for Babel 6 and early - // versions of Babel 7's beta that didn't have it. - api = Object.assign(copyApiObject(api), { - assertVersion(range) { - throwVersionError(range, api.version); - }, - }); - } - - return builder(api, options || {}, dirname); - }; -} - -function copyApiObject(api) { - // Babel >= 7 <= beta.41 passed the API as a new object that had - // babel/core as the prototype. While slightly faster, it also - // means that the Object.assign copy below fails. Rather than - // keep complexity, the Babel 6 behavior has been reverted and this - // normalizes all that for Babel 7. - let proto = null; - if (typeof api.version === "string" && /^7\./.test(api.version)) { - proto = Object.getPrototypeOf(api); - if ( - proto && - (!has(proto, "version") || - !has(proto, "transform") || - !has(proto, "template") || - !has(proto, "types")) - ) { - proto = null; - } - } - - return { - ...proto, - ...api, - }; -} - -function has(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} - -function throwVersionError(range, version) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - - const limit = Error.stackTraceLimit; - - if (typeof limit === "number" && limit < 25) { - // Bump up the limit if needed so that users are more likely - // to be able to see what is calling Babel. - Error.stackTraceLimit = 25; - } - - let err; - if (version.slice(0, 2) === "7.") { - err = new Error( - `Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + - `You'll need to update your @babel/core version.`, - ); - } else { - err = new Error( - `Requires Babel "${range}", but was loaded with "${version}". ` + - `If you are sure you have a compatible version of @babel/core, ` + - `it is likely that something in your build process is loading the ` + - `wrong version. Inspect the stack trace of this error to look for ` + - `the first entry that doesn't mention "@babel/core" or "babel-core" ` + - `to see what is calling Babel.`, - ); - } - - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - - throw Object.assign( - err, - ({ - code: "BABEL_VERSION_UNSUPPORTED", - version, - range, - }: any), - ); -} diff --git a/node_modules/@babel/plugin-proposal-optional-chaining/LICENSE b/node_modules/@babel/plugin-proposal-optional-chaining/LICENSE deleted file mode 100644 index f31575e..0000000 --- a/node_modules/@babel/plugin-proposal-optional-chaining/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/plugin-proposal-optional-chaining/README.md b/node_modules/@babel/plugin-proposal-optional-chaining/README.md deleted file mode 100644 index 2d25245..0000000 --- a/node_modules/@babel/plugin-proposal-optional-chaining/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-proposal-optional-chaining - -> Transform optional chaining operators into a series of nil checks - -See our website [@babel/plugin-proposal-optional-chaining](https://babeljs.io/docs/en/next/babel-plugin-proposal-optional-chaining.html) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-proposal-optional-chaining -``` - -or using yarn: - -```sh -yarn add @babel/plugin-proposal-optional-chaining --dev -``` diff --git a/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js b/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js deleted file mode 100644 index f82f328..0000000 --- a/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _helperPluginUtils = require("@babel/helper-plugin-utils"); - -var _pluginSyntaxOptionalChaining = _interopRequireDefault(require("@babel/plugin-syntax-optional-chaining")); - -var _core = require("@babel/core"); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var _default = (0, _helperPluginUtils.declare)((api, options) => { - api.assertVersion(7); - const { - loose = false - } = options; - return { - name: "proposal-optional-chaining", - inherits: _pluginSyntaxOptionalChaining.default, - visitor: { - "OptionalCallExpression|OptionalMemberExpression"(path) { - const { - parentPath, - scope - } = path; - let isDeleteOperation = false; - const optionals = []; - let optionalPath = path; - - while (optionalPath.isOptionalMemberExpression() || optionalPath.isOptionalCallExpression()) { - const { - node - } = optionalPath; - - if (node.optional) { - optionals.push(node); - } - - if (optionalPath.isOptionalMemberExpression()) { - optionalPath.node.type = "MemberExpression"; - optionalPath = optionalPath.get("object"); - } else if (optionalPath.isOptionalCallExpression()) { - optionalPath.node.type = "CallExpression"; - optionalPath = optionalPath.get("callee"); - } - } - - let replacementPath = path; - - if (parentPath.isUnaryExpression({ - operator: "delete" - })) { - replacementPath = parentPath; - isDeleteOperation = true; - } - - for (let i = optionals.length - 1; i >= 0; i--) { - const node = optionals[i]; - - const isCall = _core.types.isCallExpression(node); - - const replaceKey = isCall ? "callee" : "object"; - const chain = node[replaceKey]; - let ref; - let check; - - if (loose && isCall) { - check = ref = chain; - } else { - ref = scope.maybeGenerateMemoised(chain); - - if (ref) { - check = _core.types.assignmentExpression("=", _core.types.cloneNode(ref), chain); - node[replaceKey] = ref; - } else { - check = ref = chain; - } - } - - if (isCall && _core.types.isMemberExpression(chain)) { - if (loose) { - node.callee = chain; - } else { - const { - object - } = chain; - let context = scope.maybeGenerateMemoised(object); - - if (context) { - chain.object = _core.types.assignmentExpression("=", context, object); - } else if (_core.types.isSuper(object)) { - context = _core.types.thisExpression(); - } else { - context = object; - } - - node.arguments.unshift(_core.types.cloneNode(context)); - node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("call")); - } - } - - replacementPath.replaceWith(_core.types.conditionalExpression(loose ? _core.types.binaryExpression("==", _core.types.cloneNode(check), _core.types.nullLiteral()) : _core.types.logicalExpression("||", _core.types.binaryExpression("===", _core.types.cloneNode(check), _core.types.nullLiteral()), _core.types.binaryExpression("===", _core.types.cloneNode(ref), scope.buildUndefinedNode())), isDeleteOperation ? _core.types.booleanLiteral(true) : scope.buildUndefinedNode(), replacementPath.node)); - replacementPath = replacementPath.get("alternate"); - } - } - - } - }; -}); - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/@babel/plugin-proposal-optional-chaining/package.json b/node_modules/@babel/plugin-proposal-optional-chaining/package.json deleted file mode 100644 index 86d47c5..0000000 --- a/node_modules/@babel/plugin-proposal-optional-chaining/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@babel/plugin-proposal-optional-chaining", - "version": "7.8.3", - "description": "Transform optional chaining operators into a series of nil checks", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-chaining", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.8.3", - "@babel/helper-plugin-test-runner": "^7.8.3", - "@babel/plugin-transform-block-scoping": "^7.8.3" - }, - "gitHead": "a7620bd266ae1345975767bbc7abf09034437017" -} diff --git a/node_modules/@babel/plugin-syntax-optional-chaining/LICENSE b/node_modules/@babel/plugin-syntax-optional-chaining/LICENSE deleted file mode 100644 index f31575e..0000000 --- a/node_modules/@babel/plugin-syntax-optional-chaining/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/plugin-syntax-optional-chaining/README.md b/node_modules/@babel/plugin-syntax-optional-chaining/README.md deleted file mode 100644 index 712abc3..0000000 --- a/node_modules/@babel/plugin-syntax-optional-chaining/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-syntax-optional-chaining - -> Allow parsing of optional properties - -See our website [@babel/plugin-syntax-optional-chaining](https://babeljs.io/docs/en/next/babel-plugin-syntax-optional-chaining.html) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-syntax-optional-chaining -``` - -or using yarn: - -```sh -yarn add @babel/plugin-syntax-optional-chaining --dev -``` diff --git a/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js b/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js deleted file mode 100644 index 3bc82a1..0000000 --- a/node_modules/@babel/plugin-syntax-optional-chaining/lib/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _helperPluginUtils = require("@babel/helper-plugin-utils"); - -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return { - name: "syntax-optional-chaining", - - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("optionalChaining"); - } - - }; -}); - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/@babel/plugin-syntax-optional-chaining/package.json b/node_modules/@babel/plugin-syntax-optional-chaining/package.json deleted file mode 100644 index a1dcdc2..0000000 --- a/node_modules/@babel/plugin-syntax-optional-chaining/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@babel/plugin-syntax-optional-chaining", - "version": "7.8.3", - "description": "Allow parsing of optional properties", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-chaining", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.8.0" - } -}