mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-31 02:37:16 +07:00
Improve code quality and write tests
This commit is contained in:
22
node_modules/@babel/plugin-proposal-dynamic-import/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/plugin-proposal-dynamic-import/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-proposal-dynamic-import/README.md
generated
vendored
Normal file
19
node_modules/@babel/plugin-proposal-dynamic-import/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# @babel/plugin-proposal-dynamic-import
|
||||
|
||||
> Transform import() expressions
|
||||
|
||||
See our website [@babel/plugin-proposal-dynamic-import](https://babeljs.io/docs/en/next/babel-plugin-proposal-dynamic-import.html) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-proposal-dynamic-import
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/plugin-proposal-dynamic-import --dev
|
||||
```
|
69
node_modules/@babel/plugin-proposal-dynamic-import/lib/index.js
generated
vendored
Normal file
69
node_modules/@babel/plugin-proposal-dynamic-import/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function _helperPluginUtils() {
|
||||
const data = require("@babel/helper-plugin-utils");
|
||||
|
||||
_helperPluginUtils = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _pluginSyntaxDynamicImport() {
|
||||
const data = _interopRequireDefault(require("@babel/plugin-syntax-dynamic-import"));
|
||||
|
||||
_pluginSyntaxDynamicImport = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var _package = require("../package.json");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
const SUPPORTED_MODULES = ["commonjs", "amd", "systemjs"];
|
||||
const MODULES_NOT_FOUND = `\
|
||||
@babel/plugin-proposal-dynamic-import depends on a modules
|
||||
transform plugin. Supported plugins are:
|
||||
- @babel/plugin-transform-modules-commonjs ^7.4.0
|
||||
- @babel/plugin-transform-modules-amd ^7.4.0
|
||||
- @babel/plugin-transform-modules-systemjs ^7.4.0
|
||||
|
||||
If you are using Webpack or Rollup and thus don't want
|
||||
Babel to transpile your imports and exports, you can use
|
||||
the @babel/plugin-syntax-dynamic-import plugin and let your
|
||||
bundler handle dynamic imports.
|
||||
`;
|
||||
|
||||
var _default = (0, _helperPluginUtils().declare)(api => {
|
||||
api.assertVersion(7);
|
||||
return {
|
||||
name: "proposal-dynamic-import",
|
||||
inherits: _pluginSyntaxDynamicImport().default,
|
||||
|
||||
pre() {
|
||||
this.file.set("@babel/plugin-proposal-dynamic-import", _package.version);
|
||||
},
|
||||
|
||||
visitor: {
|
||||
Program() {
|
||||
const modules = this.file.get("@babel/plugin-transform-modules-*");
|
||||
|
||||
if (!SUPPORTED_MODULES.includes(modules)) {
|
||||
throw new Error(MODULES_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
exports.default = _default;
|
58
node_modules/@babel/plugin-proposal-dynamic-import/package.json
generated
vendored
Normal file
58
node_modules/@babel/plugin-proposal-dynamic-import/package.json
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"@babel/plugin-proposal-dynamic-import@7.5.0",
|
||||
"E:\\python\\setup-php"
|
||||
]
|
||||
],
|
||||
"_from": "@babel/plugin-proposal-dynamic-import@7.5.0",
|
||||
"_id": "@babel/plugin-proposal-dynamic-import@7.5.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==",
|
||||
"_location": "/@babel/plugin-proposal-dynamic-import",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@babel/plugin-proposal-dynamic-import@7.5.0",
|
||||
"name": "@babel/plugin-proposal-dynamic-import",
|
||||
"escapedName": "@babel%2fplugin-proposal-dynamic-import",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "7.5.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "7.5.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/preset-env"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz",
|
||||
"_spec": "7.5.0",
|
||||
"_where": "E:\\python\\setup-php",
|
||||
"dependencies": {
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0"
|
||||
},
|
||||
"description": "Transform import() expressions",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.5.0",
|
||||
"@babel/helper-plugin-test-runner": "^7.0.0"
|
||||
},
|
||||
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "@babel/plugin-proposal-dynamic-import",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-dynamic-import"
|
||||
},
|
||||
"version": "7.5.0"
|
||||
}
|
Reference in New Issue
Block a user