updated npm modules
This commit is contained in:
20
node_modules/find-cache-dir/index.js
generated
vendored
20
node_modules/find-cache-dir/index.js
generated
vendored
@@ -6,27 +6,27 @@ const makeDir = require('make-dir');
|
||||
|
||||
module.exports = (options = {}) => {
|
||||
const {name} = options;
|
||||
let dir = options.cwd;
|
||||
let directory = options.cwd;
|
||||
|
||||
if (options.files) {
|
||||
dir = commonDir(dir, options.files);
|
||||
directory = commonDir(directory, options.files);
|
||||
} else {
|
||||
dir = dir || process.cwd();
|
||||
directory = directory || process.cwd();
|
||||
}
|
||||
|
||||
dir = pkgDir.sync(dir);
|
||||
directory = pkgDir.sync(directory);
|
||||
|
||||
if (dir) {
|
||||
dir = path.join(dir, 'node_modules', '.cache', name);
|
||||
if (directory) {
|
||||
directory = path.join(directory, 'node_modules', '.cache', name);
|
||||
|
||||
if (dir && options.create) {
|
||||
makeDir.sync(dir);
|
||||
if (directory && options.create) {
|
||||
makeDir.sync(directory);
|
||||
}
|
||||
|
||||
if (options.thunk) {
|
||||
return (...args) => path.join(dir, ...args);
|
||||
return (...arguments_) => path.join(directory, ...arguments_);
|
||||
}
|
||||
}
|
||||
|
||||
return dir;
|
||||
return directory;
|
||||
};
|
||||
|
||||
26
node_modules/find-cache-dir/package.json
generated
vendored
26
node_modules/find-cache-dir/package.json
generated
vendored
@@ -1,10 +1,12 @@
|
||||
{
|
||||
"_from": "find-cache-dir@^2.0.0",
|
||||
"_id": "find-cache-dir@2.0.0",
|
||||
"_id": "find-cache-dir@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-LDUY6V1Xs5eFskUVYtIwatojt6+9xC9Chnlk/jYOOvn3FAFfSaWddxahDGyNHh0b2dMXa6YW2m0tk8TdVaXHlA==",
|
||||
"_integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==",
|
||||
"_location": "/find-cache-dir",
|
||||
"_phantomChildren": {},
|
||||
"_phantomChildren": {
|
||||
"semver": "5.6.0"
|
||||
},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
@@ -19,8 +21,8 @@
|
||||
"/babel-loader",
|
||||
"/terser-webpack-plugin"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.0.0.tgz",
|
||||
"_shasum": "4c1faed59f45184530fb9d7fa123a4d04a98472d",
|
||||
"_resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
|
||||
"_shasum": "8d0f94cd13fe43c6c7c261a0d86115ca918c05f7",
|
||||
"_spec": "find-cache-dir@^2.0.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\babel-loader",
|
||||
"bugs": {
|
||||
@@ -29,17 +31,17 @@
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"commondir": "^1.0.1",
|
||||
"make-dir": "^1.0.0",
|
||||
"make-dir": "^2.0.0",
|
||||
"pkg-dir": "^3.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Finds the common standard cache directory",
|
||||
"devDependencies": {
|
||||
"ava": "^0.25.0",
|
||||
"coveralls": "^3.0.1",
|
||||
"del": "^3.0.0",
|
||||
"nyc": "^12.0.2",
|
||||
"xo": "^0.21.1"
|
||||
"ava": "^1.3.1",
|
||||
"coveralls": "^3.0.3",
|
||||
"del": "^4.0.0",
|
||||
"nyc": "^13.3.0",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
@@ -71,5 +73,5 @@
|
||||
"scripts": {
|
||||
"test": "xo && nyc ava"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
"version": "2.1.0"
|
||||
}
|
||||
|
||||
6
node_modules/find-cache-dir/readme.md
generated
vendored
6
node_modules/find-cache-dir/readme.md
generated
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
> Finds the common standard cache directory
|
||||
|
||||
Recently the [`nyc`](https://github.com/bcoe/nyc) and [`AVA`](https://ava.li) projects decided to standardize on a common directory structure for storing cache information:
|
||||
The [`nyc`](https://github.com/istanbuljs/nyc) and [`AVA`](https://ava.li) projects decided to standardize on a common directory structure for storing cache information:
|
||||
|
||||
```sh
|
||||
# nyc
|
||||
@@ -60,7 +60,7 @@ Should be the same as your project name in `package.json`.
|
||||
|
||||
##### files
|
||||
|
||||
Type: `Array` `string`
|
||||
Type: `string[]` `string`
|
||||
|
||||
An array of files that will be searched for a common parent directory. This common parent directory will be used in lieu of the `cwd` option below.
|
||||
|
||||
@@ -104,7 +104,7 @@ This is helpful for actually putting actual files in the cache!
|
||||
## Adopters
|
||||
|
||||
- [`AVA`](https://ava.li)
|
||||
- [`nyc`](https://github.com/bcoe/nyc)
|
||||
- [`nyc`](https://github.com/istanbuljs/nyc)
|
||||
- [`babel-loader`](https://github.com/babel/babel-loader)
|
||||
- [`eslint-loader`](https://github.com/MoOx/eslint-loader)
|
||||
- [`Phenomic`](https://phenomic.io)
|
||||
|
||||
Reference in New Issue
Block a user