updated npm modules

This commit is contained in:
2019-05-20 20:43:45 -05:00
parent 2319197b81
commit f166b72b7d
1113 changed files with 8758 additions and 12227 deletions

2
node_modules/babel-loader/LICENSE generated vendored
View File

@@ -1,4 +1,4 @@
Copyright (c) 2014-2016 Luís Couto <hello@luiscouto.pt>
Copyright (c) 2014-2019 Luís Couto <hello@luiscouto.pt>
MIT License

18
node_modules/babel-loader/README.md generated vendored
View File

@@ -29,12 +29,6 @@ This package allows transpiling JavaScript files using [Babel](https://github.co
npm install -D babel-loader @babel/core @babel/preset-env webpack
```
> webpack 4.x | babel-loader 7.x | babel 6.x
```bash
npm install -D babel-loader@7 babel-core babel-preset-env webpack
```
<h2 align="center">Usage</h2>
webpack documentation: [Loaders](https://webpack.js.org/loaders/)
@@ -84,9 +78,9 @@ module: {
This loader also supports the following loader-specific option:
* `cacheDirectory`: Default `false`. When set, the given directory will be used to cache the results of the loader. Future webpack builds will attempt to read from the cache to avoid needing to run the potentially expensive Babel recompilation process on each run. If the value is blank (`loader: 'babel-loader?cacheDirectory'`) or `true` (`loader: 'babel-loader?cacheDirectory=true'`), the loader will use the default cache directory in `node_modules/.cache/babel-loader` or fallback to the default OS temporary file directory if no `node_modules` folder could be found in any root directory.
* `cacheDirectory`: Default `false`. When set, the given directory will be used to cache the results of the loader. Future webpack builds will attempt to read from the cache to avoid needing to run the potentially expensive Babel recompilation process on each run. If the value is set to `true` in options (`{cacheDirectory: true}`), the loader will use the default cache directory in `node_modules/.cache/babel-loader` or fallback to the default OS temporary file directory if no `node_modules` folder could be found in any root directory.
* `cacheIdentifier`: Default is a string composed by the `babel-core`'s version, the `babel-loader`'s version, the contents of `.babelrc` file if it exists, and the value of the environment variable `BABEL_ENV` with a fallback to the `NODE_ENV` environment variable. This can be set to a custom value to force cache busting if the identifier changes.
* `cacheIdentifier`: Default is a string composed by the `@babel/core`'s version, the `babel-loader`'s version, the contents of `.babelrc` file if it exists, and the value of the environment variable `BABEL_ENV` with a fallback to the `NODE_ENV` environment variable. This can be set to a custom value to force cache busting if the identifier changes.
* `cacheCompression`: Default `true`. When set, each Babel transform output will be compressed with Gzip. If you want to opt-out of cache compression, set it to `false` -- your project may benefit from this if it transpiles thousands of files.
@@ -108,11 +102,11 @@ Babel uses very small helpers for common functions such as `_extend`. By default
You can instead require the Babel runtime as a separate module to avoid the duplication.
The following configuration disables automatic per-file runtime injection in Babel, requiring `babel-plugin-transform-runtime` instead and making all helper references use it.
The following configuration disables automatic per-file runtime injection in Babel, requiring `@babel/plugin-transform-runtime` instead and making all helper references use it.
See the [docs](https://babeljs.io/docs/plugins/transform-runtime/) for more information.
**NOTE**: You must run `npm install -D @babel/plugin-transform-runtime` to include this in your project and `babel-runtime` itself as a dependency with `npm install @babel/runtime`.
**NOTE**: You must run `npm install -D @babel/plugin-transform-runtime` to include this in your project and `@babel/runtime` itself as a dependency with `npm install @babel/runtime`.
```javascript
rules: [
@@ -134,7 +128,7 @@ rules: [
#### **NOTE**: transform-runtime & custom polyfills (e.g. Promise library)
Since [babel-plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime) includes a polyfill that includes a custom [regenerator-runtime](https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js) and [core-js](https://github.com/zloirock/core-js), the following usual shimming method using `webpack.ProvidePlugin` will not work:
Since [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime) includes a polyfill that includes a custom [regenerator-runtime](https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js) and [core-js](https://github.com/zloirock/core-js), the following usual shimming method using `webpack.ProvidePlugin` will not work:
```javascript
// ...
@@ -190,7 +184,7 @@ If you receive this message, it means that you have the npm package `babel` inst
webpack then tries to load the `babel` package instead of the `babel-loader`.
To fix this, you should uninstall the npm package `babel`, as it is deprecated in Babel v6. (Instead, install `babel-cli` or `babel-core`.)
To fix this, you should uninstall the npm package `babel`, as it is deprecated in Babel v6. (Instead, install `@babel/cli` or `@babel/core`.)
In the case one of your dependencies is installing `babel` and you cannot uninstall it yourself, use the complete name of the loader in the webpack config:
```javascript
{

View File

@@ -22,7 +22,9 @@ if (/^6\./.test(babel.version)) {
throw new Error("\n babel-loader@8 will not work with the '@babel/core@6' bridge package. " + "If you want to use Babel 6.x, install 'babel-loader@7'.");
}
const pkg = require("../package.json");
const {
version
} = require("../package.json");
const cache = require("./cache");
@@ -30,7 +32,9 @@ const transform = require("./transform");
const injectCaller = require("./injectCaller");
const path = require("path");
const {
isAbsolute
} = require("path");
const loaderUtils = require("loader-utils");
@@ -66,7 +70,7 @@ function _loader() {
throw new Error("Customized loaders must be implemented as standalone modules.");
}
if (!path.isAbsolute(loaderOptions.customize)) {
if (!isAbsolute(loaderOptions.customize)) {
throw new Error("Customized loaders must be passed as absolute paths, since " + "babel-loader has no way to know what they would be relative to.");
}
@@ -165,7 +169,7 @@ function _loader() {
cacheIdentifier = JSON.stringify({
options,
"@babel/core": transform.version,
"@babel/loader": pkg.version
"@babel/loader": version
}),
cacheCompression = true,
metadataSubscribers = []

View File

@@ -1,8 +1,8 @@
{
"_from": "babel-loader@^8.0.4",
"_id": "babel-loader@8.0.5",
"_id": "babel-loader@8.0.6",
"_inBundle": false,
"_integrity": "sha512-NTnHnVRd2JnRqPC0vW+iOQWU5pchDbYXsG2E6DMXEpMfUcQKclF9gmf3G3ZMhzG7IG9ji4coL0cm+FxeWxDpnw==",
"_integrity": "sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw==",
"_location": "/babel-loader",
"_phantomChildren": {},
"_requested": {
@@ -18,8 +18,8 @@
"_requiredBy": [
"/laravel-mix"
],
"_resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.5.tgz",
"_shasum": "225322d7509c2157655840bba52e46b6c2f2fe33",
"_resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.6.tgz",
"_shasum": "e33bdb6f362b03f4bb141a0c21ab87c501b70dfb",
"_spec": "babel-loader@^8.0.4",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\laravel-mix",
"author": {
@@ -44,7 +44,7 @@
"find-cache-dir": "^2.0.0",
"loader-utils": "^1.0.2",
"mkdirp": "^0.5.1",
"util.promisify": "^1.0.0"
"pify": "^4.0.1"
},
"deprecated": false,
"description": "babel module loader for webpack",
@@ -52,19 +52,19 @@
"@babel/cli": "^7.2.0",
"@babel/core": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"ava": "1.0.1",
"ava": "^1.1.0",
"babel-eslint": "^10.0.1",
"babel-plugin-istanbul": "^5.1.0",
"babel-plugin-react-intl": "^3.0.1",
"cross-env": "^5.2.0",
"eslint": "^5.9.0",
"eslint-config-babel": "^8.0.2",
"eslint-config-prettier": "^3.3.0",
"eslint-config-babel": "^9.0.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^1.2.0",
"lint-staged": "^8.1.0",
"nyc": "^13.1.0",
"nyc": "^14.1.1",
"prettier": "^1.15.3",
"react": "^16.0.0",
"react-intl": "^2.1.2",
@@ -143,5 +143,5 @@
"test": "yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only",
"test-only": "nyc ava"
},
"version": "8.0.5"
"version": "8.0.6"
}