refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
22
node_modules/@babel/plugin-transform-react-jsx-self/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/plugin-transform-react-jsx-self/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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.
|
19
node_modules/@babel/plugin-transform-react-jsx-self/README.md
generated
vendored
Normal file
19
node_modules/@babel/plugin-transform-react-jsx-self/README.md
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# @babel/plugin-transform-react-jsx-self
|
||||
|
||||
> Add a __self prop to all JSX Elements
|
||||
|
||||
See our website [@babel/plugin-transform-react-jsx-self](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx-self) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-transform-react-jsx-self
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/plugin-transform-react-jsx-self --dev
|
||||
```
|
77
node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js
generated
vendored
Normal file
77
node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
|
||||
var _core = require("@babel/core");
|
||||
|
||||
const TRACE_ID = "__self";
|
||||
|
||||
function getThisFunctionParent(path) {
|
||||
let scope = path.scope;
|
||||
|
||||
do {
|
||||
if (scope.path.isFunctionParent() && !scope.path.isArrowFunctionExpression()) {
|
||||
return scope.path;
|
||||
}
|
||||
} while (scope = scope.parent);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function isDerivedClass(classPath) {
|
||||
return classPath.node.superClass !== null;
|
||||
}
|
||||
|
||||
function isThisAllowed(path) {
|
||||
const parentMethodOrFunction = getThisFunctionParent(path);
|
||||
|
||||
if (parentMethodOrFunction === null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!parentMethodOrFunction.isMethod()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (parentMethodOrFunction.node.kind !== "constructor") {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !isDerivedClass(parentMethodOrFunction.parentPath.parentPath);
|
||||
}
|
||||
|
||||
var _default = (0, _helperPluginUtils.declare)(api => {
|
||||
api.assertVersion(7);
|
||||
const visitor = {
|
||||
JSXOpeningElement(path) {
|
||||
if (!isThisAllowed(path)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const node = path.node;
|
||||
|
||||
const id = _core.types.jsxIdentifier(TRACE_ID);
|
||||
|
||||
const trace = _core.types.thisExpression();
|
||||
|
||||
node.attributes.push(_core.types.jsxAttribute(id, _core.types.jsxExpressionContainer(trace)));
|
||||
}
|
||||
|
||||
};
|
||||
return {
|
||||
name: "transform-react-jsx-self",
|
||||
visitor: {
|
||||
Program(path) {
|
||||
path.traverse(visitor);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
exports.default = _default;
|
66
node_modules/@babel/plugin-transform-react-jsx-self/package.json
generated
vendored
Normal file
66
node_modules/@babel/plugin-transform-react-jsx-self/package.json
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"_from": "@babel/plugin-transform-react-jsx-self@^7.0.0",
|
||||
"_id": "@babel/plugin-transform-react-jsx-self@7.14.9",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-Fqqu0f8zv9W+RyOnx29BX/RlEsBRANbOf5xs5oxb2aHP4FKbLXxIaVPUiCti56LAR1IixMH4EyaixhUsKqoBHw==",
|
||||
"_location": "/@babel/plugin-transform-react-jsx-self",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@babel/plugin-transform-react-jsx-self@^7.0.0",
|
||||
"name": "@babel/plugin-transform-react-jsx-self",
|
||||
"escapedName": "@babel%2fplugin-transform-react-jsx-self",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "^7.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^7.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/preset-react"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.14.9.tgz",
|
||||
"_shasum": "33041e665453391eb6ee54a2ecf3ba1d46bd30f4",
|
||||
"_spec": "@babel/plugin-transform-react-jsx-self@^7.0.0",
|
||||
"_where": "/home/simon/Documents/lifen-autotest/node_modules/@babel/preset-react",
|
||||
"author": {
|
||||
"name": "The Babel Team",
|
||||
"url": "https://babel.dev/team"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/helper-plugin-utils": "^7.14.5"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Add a __self prop to all JSX Elements",
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.14.8",
|
||||
"@babel/helper-plugin-test-runner": "7.14.5",
|
||||
"@babel/plugin-syntax-jsx": "7.14.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-react-jsx-self",
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"name": "@babel/plugin-transform-react-jsx-self",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-plugin-transform-react-jsx-self"
|
||||
},
|
||||
"version": "7.14.9"
|
||||
}
|
Reference in New Issue
Block a user