diff options
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules')
24 files changed, 0 insertions, 1342 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js deleted file mode 100644 index 15282bb392..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/index.js +++ /dev/null @@ -1,123 +0,0 @@ -'use strict'; -const isObj = require('is-obj'); - -function getPathSegments(path) { - const pathArr = path.split('.'); - const parts = []; - - for (let i = 0; i < pathArr.length; i++) { - let p = pathArr[i]; - - while (p[p.length - 1] === '\\' && pathArr[i + 1] !== undefined) { - p = p.slice(0, -1) + '.'; - p += pathArr[++i]; - } - - parts.push(p); - } - - return parts; -} - -module.exports = { - get(obj, path, value) { - if (!isObj(obj) || typeof path !== 'string') { - return value === undefined ? obj : value; - } - - const pathArr = getPathSegments(path); - - for (let i = 0; i < pathArr.length; i++) { - if (!Object.prototype.propertyIsEnumerable.call(obj, pathArr[i])) { - return value; - } - - obj = obj[pathArr[i]]; - - if (obj === undefined || obj === null) { - // `obj` is either `undefined` or `null` so we want to stop the loop, and - // if this is not the last bit of the path, and - // if it did't return `undefined` - // it would return `null` if `obj` is `null` - // but we want `get({foo: null}, 'foo.bar')` to equal `undefined`, or the supplied value, not `null` - if (i !== pathArr.length - 1) { - return value; - } - - break; - } - } - - return obj; - }, - - set(obj, path, value) { - if (!isObj(obj) || typeof path !== 'string') { - return obj; - } - - const root = obj; - const pathArr = getPathSegments(path); - - for (let i = 0; i < pathArr.length; i++) { - const p = pathArr[i]; - - if (!isObj(obj[p])) { - obj[p] = {}; - } - - if (i === pathArr.length - 1) { - obj[p] = value; - } - - obj = obj[p]; - } - - return root; - }, - - delete(obj, path) { - if (!isObj(obj) || typeof path !== 'string') { - return; - } - - const pathArr = getPathSegments(path); - - for (let i = 0; i < pathArr.length; i++) { - const p = pathArr[i]; - - if (i === pathArr.length - 1) { - delete obj[p]; - return; - } - - obj = obj[p]; - - if (!isObj(obj)) { - return; - } - } - }, - - has(obj, path) { - if (!isObj(obj) || typeof path !== 'string') { - return false; - } - - const pathArr = getPathSegments(path); - - for (let i = 0; i < pathArr.length; i++) { - if (isObj(obj)) { - if (!(pathArr[i] in obj)) { - return false; - } - - obj = obj[pathArr[i]]; - } else { - return false; - } - } - - return true; - } -}; diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/index.js deleted file mode 100644 index 4d023bc690..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; -module.exports = function (x) { - var type = typeof x; - return x !== null && (type === 'object' || type === 'function'); -}; diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json deleted file mode 100644 index 3946ff2a89..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "is-obj@^1.0.0", - "_id": "is-obj@1.0.1", - "_integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "_location": "/update-notifier/configstore/dot-prop/is-obj", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-obj@^1.0.0", - "name": "is-obj", - "escapedName": "is-obj", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/update-notifier/configstore/dot-prop" - ], - "_resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "_shasum": "3e4729ac1f5fde025cd7d83a896dab9f4f67db0f", - "_shrinkwrap": null, - "_spec": "is-obj@^1.0.0", - "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": null, - "bugs": { - "url": "https://github.com/sindresorhus/is-obj/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Check if a value is an object", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/is-obj#readme", - "keywords": [ - "obj", - "object", - "is", - "check", - "test", - "type" - ], - "license": "MIT", - "name": "is-obj", - "optionalDependencies": {}, - "peerDependencies": {}, - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-obj.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.1" -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/readme.md deleted file mode 100644 index d311026430..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# is-obj [![Build Status](https://travis-ci.org/sindresorhus/is-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/is-obj) - -> Check if a value is an object - -Keep in mind that array, function, regexp, etc, are objects in JavaScript.<br> -See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects. - - -## Install - -``` -$ npm install --save is-obj -``` - - -## Usage - -```js -const isObj = require('is-obj'); - -isObj({foo: 'bar'}); -//=> true - -isObj([1, 2, 3]); -//=> true - -isObj('foo'); -//=> false -``` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json deleted file mode 100644 index 1512c61aff..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "_from": "dot-prop@^4.1.0", - "_id": "dot-prop@4.2.0", - "_inBundle": false, - "_integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", - "_location": "/update-notifier/configstore/dot-prop", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "dot-prop@^4.1.0", - "name": "dot-prop", - "escapedName": "dot-prop", - "rawSpec": "^4.1.0", - "saveSpec": null, - "fetchSpec": "^4.1.0" - }, - "_requiredBy": [ - "/update-notifier/configstore" - ], - "_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", - "_shasum": "1f19e0c2e1aa0e32797c49799f2837ac6af69c57", - "_spec": "dot-prop@^4.1.0", - "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/dot-prop/issues" - }, - "bundleDependencies": false, - "dependencies": { - "is-obj": "^1.0.0" - }, - "deprecated": false, - "description": "Get, set, or delete a property from a nested object using a dot path", - "devDependencies": { - "ava": "*", - "matcha": "^0.7.0", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/dot-prop#readme", - "keywords": [ - "obj", - "object", - "prop", - "property", - "dot", - "path", - "get", - "set", - "delete", - "del", - "access", - "notation", - "dotty" - ], - "license": "MIT", - "name": "dot-prop", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/dot-prop.git" - }, - "scripts": { - "bench": "matcha bench.js", - "test": "xo && ava" - }, - "version": "4.2.0", - "xo": { - "esnext": true - } -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md deleted file mode 100644 index fab3b7afe0..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/readme.md +++ /dev/null @@ -1,103 +0,0 @@ -# dot-prop [![Build Status](https://travis-ci.org/sindresorhus/dot-prop.svg?branch=master)](https://travis-ci.org/sindresorhus/dot-prop) - -> Get, set, or delete a property from a nested object using a dot path - - -## Install - -``` -$ npm install --save dot-prop -``` - - -## Usage - -```js -const dotProp = require('dot-prop'); - -// getter -dotProp.get({foo: {bar: 'unicorn'}}, 'foo.bar'); -//=> 'unicorn' - -dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep'); -//=> undefined - -dotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep', 'default value'); -//=> 'default value' - -dotProp.get({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\.dot'); -//=> 'unicorn' - -// setter -const obj = {foo: {bar: 'a'}}; -dotProp.set(obj, 'foo.bar', 'b'); -console.log(obj); -//=> {foo: {bar: 'b'}} - -const foo = dotProp.set({}, 'foo.bar', 'c'); -console.log(foo); -//=> {foo: {bar: 'c'}} - -dotProp.set(obj, 'foo.baz', 'x'); -console.log(obj); -//=> {foo: {bar: 'b', baz: 'x'}} - -// has -dotProp.has({foo: {bar: 'unicorn'}}, 'foo.bar'); -//=> true - -// deleter -const obj = {foo: {bar: 'a'}}; -dotProp.delete(obj, 'foo.bar'); -console.log(obj); -//=> {foo: {}} - -obj.foo.bar = {x: 'y', y: 'x'}; -dotProp.delete(obj, 'foo.bar.x'); -console.log(obj); -//=> {foo: {bar: {y: 'x'}}} -``` - - -## API - -### get(obj, path, [defaultValue]) - -### set(obj, path, value) - -Returns the object. - -### has(obj, path) - -### delete(obj, path) - -#### obj - -Type: `Object` - -Object to get, set, or delete the `path` value. - -#### path - -Type: `string` - -Path of the property in the object, using `.` to separate each nested key. - -Use `\\.` if you have a `.` in the key. - -#### value - -Type: `any` - -Value to set at `path`. - -#### defaultValue - -Type: `any` - -Default value. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/index.js deleted file mode 100644 index ca1f5e9c6a..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/index.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const pify = require('pify'); - -const defaults = { - mode: 0o777 & (~process.umask()), - fs -}; - -// https://github.com/nodejs/node/issues/8987 -// https://github.com/libuv/libuv/pull/1088 -const checkPath = pth => { - if (process.platform === 'win32') { - const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); - - if (pathHasInvalidWinCharacters) { - const err = new Error(`Path contains invalid characters: ${pth}`); - err.code = 'EINVAL'; - throw err; - } - } -}; - -module.exports = (input, opts) => Promise.resolve().then(() => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - const fsP = pify(opts.fs); - - const make = pth => { - return fsP.mkdir(pth, opts.mode) - .then(() => pth) - .catch(err => { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - return make(path.dirname(pth)).then(() => make(pth)); - } - - return fsP.stat(pth) - .then(stats => stats.isDirectory() ? pth : Promise.reject()) - .catch(() => { - throw err; - }); - }); - }; - - return make(path.resolve(input)); -}); - -module.exports.sync = (input, opts) => { - checkPath(input); - opts = Object.assign({}, defaults, opts); - - const make = pth => { - try { - opts.fs.mkdirSync(pth, opts.mode); - } catch (err) { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; - } - - make(path.dirname(pth)); - return make(pth); - } - - try { - if (!opts.fs.statSync(pth).isDirectory()) { - throw new Error(); - } - } catch (_) { - throw err; - } - } - - return pth; - }; - - return make(path.resolve(input)); -}; diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/index.js deleted file mode 100644 index 7c720ebee8..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/index.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -var processFn = function (fn, P, opts) { - return function () { - var that = this; - var args = new Array(arguments.length); - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P(function (resolve, reject) { - args.push(function (err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - - for (var i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - - fn.apply(that, args); - }); - }; -}; - -var pify = module.exports = function (obj, P, opts) { - if (typeof P !== 'function') { - opts = P; - P = Promise; - } - - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - - var filter = function (key) { - var match = function (pattern) { - return typeof pattern === 'string' ? key === pattern : pattern.test(key); - }; - - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - var ret = typeof obj === 'function' ? function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - - return Object.keys(obj).reduce(function (ret, key) { - var x = obj[key]; - - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x; - - return ret; - }, ret); -}; - -pify.all = pify; diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/package.json deleted file mode 100644 index f267937ec3..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "_from": "pify@^2.3.0", - "_id": "pify@2.3.0", - "_inBundle": false, - "_integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "_location": "/update-notifier/configstore/make-dir/pify", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "pify@^2.3.0", - "name": "pify", - "escapedName": "pify", - "rawSpec": "^2.3.0", - "saveSpec": null, - "fetchSpec": "^2.3.0" - }, - "_requiredBy": [ - "/update-notifier/configstore/make-dir" - ], - "_resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "_shasum": "ed141a6ac043a849ea588498e7dca8b15330e90c", - "_spec": "pify@^2.3.0", - "_where": "/Users/rebecca/code/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/pify/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Promisify a callback-style function", - "devDependencies": { - "ava": "*", - "pinkie-promise": "^1.0.0", - "v8-natives": "0.0.2", - "xo": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/pify#readme", - "keywords": [ - "promise", - "promises", - "promisify", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "es2015" - ], - "license": "MIT", - "name": "pify", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/pify.git" - }, - "scripts": { - "optimization-test": "node --allow-natives-syntax optimization-test.js", - "test": "xo && ava && npm run optimization-test" - }, - "version": "2.3.0" -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/readme.md deleted file mode 100644 index 97aeeb628b..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/node_modules/pify/readme.md +++ /dev/null @@ -1,119 +0,0 @@ -# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) - -> Promisify a callback-style function - - -## Install - -``` -$ npm install --save pify -``` - - -## Usage - -```js -const fs = require('fs'); -const pify = require('pify'); - -// promisify a single function - -pify(fs.readFile)('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); - -// or promisify all methods in a module - -pify(fs).readFile('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); -``` - - -## API - -### pify(input, [promiseModule], [options]) - -Returns a promise wrapped version of the supplied function or module. - -#### input - -Type: `function`, `object` - -Callback-style function or module whose methods you want to promisify. - -#### promiseModule - -Type: `function` - -Custom promise module to use instead of the native one. - -Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. - -#### options - -##### multiArgs - -Type: `boolean` -Default: `false` - -By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. - -```js -const request = require('request'); -const pify = require('pify'); - -pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { - const [httpResponse, body] = result; -}); -``` - -##### include - -Type: `array` of (`string`|`regex`) - -Methods in a module to promisify. Remaining methods will be left untouched. - -##### exclude - -Type: `array` of (`string`|`regex`) -Default: `[/.+Sync$/]` - -Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. - -##### excludeMain - -Type: `boolean` -Default: `false` - -By default, if given module is a function itself, this function will be promisified. Turn this option on if you want to promisify only methods of the module. - -```js -const pify = require('pify'); - -function fn() { - return true; -} - -fn.method = (data, callback) => { - setImmediate(() => { - callback(data, null); - }); -}; - -// promisify methods but not fn() -const promiseFn = pify(fn, {excludeMain: true}); - -if (promiseFn()) { - promiseFn.method('hi').then(data => { - console.log(data); - }); -} -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/package.json deleted file mode 100644 index 73f3d8f512..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "_from": "make-dir@^1.0.0", - "_id": "make-dir@1.0.0", - "_inBundle": false, - "_integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=", - "_location": "/update-notifier/configstore/make-dir", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "make-dir@^1.0.0", - "name": "make-dir", - "escapedName": "make-dir", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/update-notifier/configstore" - ], - "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.0.0.tgz", - "_shasum": "97a011751e91dd87cfadef58832ebb04936de978", - "_spec": "make-dir@^1.0.0", - "_where": "/Users/rebecca/code/npm/node_modules/update-notifier/node_modules/configstore", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/make-dir/issues" - }, - "bundleDependencies": false, - "dependencies": { - "pify": "^2.3.0" - }, - "deprecated": false, - "description": "Make a directory and its parents if needed - Think `mkdir -p`", - "devDependencies": { - "ava": "*", - "coveralls": "^2.13.0", - "graceful-fs": "^4.1.11", - "nyc": "^10.2.0", - "path-type": "^2.0.0", - "tempy": "^0.1.0", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/make-dir#readme", - "keywords": [ - "mkdir", - "mkdirp", - "make", - "directories", - "dir", - "dirs", - "folders", - "directory", - "folder", - "path", - "parent", - "parents", - "intermediate", - "recursively", - "recursive", - "create", - "fs", - "filesystem", - "file-system" - ], - "license": "MIT", - "name": "make-dir", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/make-dir.git" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "version": "1.0.0" -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/readme.md deleted file mode 100644 index 23cf232521..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/make-dir/readme.md +++ /dev/null @@ -1,113 +0,0 @@ -# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/make-dir/badge.svg)](https://coveralls.io/github/sindresorhus/make-dir) - -> Make a directory and its parents if needed - Think `mkdir -p` - - -## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp) - -- Promise API *(Async/await ready!)* -- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66) -- 100% test coverage -- CI-tested on macOS, Linux, and Windows -- Actively maintained -- Doesn't bundle a CLI - - -## Install - -``` -$ npm install --save make-dir -``` - - -## Usage - -``` -$ pwd -/Users/sindresorhus/fun -$ tree -. -``` - -```js -const makeDir = require('make-dir'); - -makeDir('unicorn/rainbow/cake').then(path => { - console.log(path); - //=> '/Users/sindresorhus/fun/unicorn/rainbow/cake' -}); -``` - -``` -$ tree -. -└── unicorn - └── rainbow - └── cake -``` - -Multiple directories: - -```js -const makeDir = require('make-dir'); - -Promise.all([ - makeDir('unicorn/rainbow') - makeDir('foo/bar') -]).then(paths => { - console.log(paths); - /* - [ - '/Users/sindresorhus/fun/unicorn/rainbow', - '/Users/sindresorhus/fun/foo/bar' - ] - */ -}); -``` - - -## API - -### makeDir(path, [options]) - -Returns a `Promise` for the path to the created directory. - -### makeDir.sync(path, [options]) - -Returns the path to the created directory. - -#### path - -Type: `string` - -Directory to create. - -#### options - -Type: `Object` - -##### mode - -Type: `integer`<br> -Default: `0o777 & (~process.umask())` - -Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/). - -##### fs - -Type: `Object`<br> -Default: `require('fs')` - -Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). - - -## Related - -- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module -- [del](https://github.com/sindresorhus/del) - Delete files and directories -- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/index.js deleted file mode 100644 index 5bc7787f4b..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -const cryptoRandomString = require('crypto-random-string'); - -module.exports = () => cryptoRandomString(32); diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/index.js deleted file mode 100644 index ceaf65bfcf..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/index.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -const crypto = require('crypto'); - -module.exports = len => { - if (!Number.isFinite(len)) { - throw new TypeError('Expected a finite number'); - } - - return crypto.randomBytes(Math.ceil(len / 2)).toString('hex').slice(0, len); -}; diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/license b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/license deleted file mode 100644 index 654d0bfe94..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json deleted file mode 100644 index d3bf40f81c..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "_from": "crypto-random-string@^1.0.0", - "_id": "crypto-random-string@1.0.0", - "_integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", - "_location": "/update-notifier/configstore/unique-string/crypto-random-string", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "crypto-random-string@^1.0.0", - "name": "crypto-random-string", - "escapedName": "crypto-random-string", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/update-notifier/configstore/unique-string" - ], - "_resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", - "_shasum": "a230f64f568310e1498009940790ec99545bca7e", - "_shrinkwrap": null, - "_spec": "crypto-random-string@^1.0.0", - "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": null, - "bugs": { - "url": "https://github.com/sindresorhus/crypto-random-string/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Generate a cryptographically strong random string", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/crypto-random-string#readme", - "keywords": [ - "random", - "string", - "str", - "rand", - "text", - "id", - "identifier", - "slug", - "salt", - "crypto", - "strong", - "secure", - "hex" - ], - "license": "MIT", - "name": "crypto-random-string", - "optionalDependencies": {}, - "peerDependencies": {}, - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/crypto-random-string.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0", - "xo": { - "esnext": true - } -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/readme.md deleted file mode 100644 index dab5a2e9c2..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/readme.md +++ /dev/null @@ -1,49 +0,0 @@ -# crypto-random-string [![Build Status](https://travis-ci.org/sindresorhus/crypto-random-string.svg?branch=master)](https://travis-ci.org/sindresorhus/crypto-random-string) - -> Generate a [cryptographically strong](https://en.m.wikipedia.org/wiki/Strong_cryptography) random string - -Can be useful for creating an identifier, slug, salt, fixture, etc. - - -## Install - -``` -$ npm install --save crypto-random-string -``` - - -## Usage - -```js -const cryptoRandomString = require('crypto-random-string'); - -cryptoRandomString(10); -//=> '2cf05d94db' -``` - - -## API - -### cryptoRandomString(length) - -#### length - -Type: `number` - -Length of the returned string. - - -## Related - -- [random-int](https://github.com/sindresorhus/random-int) - Generate a random integer -- [random-float](https://github.com/sindresorhus/random-float) - Generate a random float -- [random-item](https://github.com/sindresorhus/random-item) - Get a random item from an array -- [random-boolean](https://github.com/arthurvr/random-boolean) - Get a random boolean -- [random-obj-key](https://github.com/sindresorhus/random-obj-key) - Get a random key from an object -- [random-obj-prop](https://github.com/sindresorhus/random-obj-prop) - Get a random property from an object -- [unique-random](https://github.com/sindresorhus/unique-random) - Generate random numbers that are consecutively unique - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json deleted file mode 100644 index 62130d8bfc..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "_from": "unique-string@^1.0.0", - "_id": "unique-string@1.0.0", - "_integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", - "_location": "/update-notifier/configstore/unique-string", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "unique-string@^1.0.0", - "name": "unique-string", - "escapedName": "unique-string", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/update-notifier/configstore" - ], - "_resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", - "_shasum": "9e1057cca851abb93398f8b33ae187b99caec11a", - "_shrinkwrap": null, - "_spec": "unique-string@^1.0.0", - "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": null, - "bugs": { - "url": "https://github.com/sindresorhus/unique-string/issues" - }, - "bundleDependencies": false, - "dependencies": { - "crypto-random-string": "^1.0.0" - }, - "deprecated": false, - "description": "Generate a unique random string", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/unique-string#readme", - "keywords": [ - "unique", - "string", - "random", - "uniq", - "str", - "rand", - "text", - "id", - "identifier", - "slug", - "hex" - ], - "license": "MIT", - "name": "unique-string", - "optionalDependencies": {}, - "peerDependencies": {}, - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/unique-string.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0", - "xo": { - "esnext": true - } -} diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/readme.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/readme.md deleted file mode 100644 index 5d5ac971e4..0000000000 --- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/readme.md +++ /dev/null @@ -1,32 +0,0 @@ -# unique-string [![Build Status](https://travis-ci.org/sindresorhus/unique-string.svg?branch=master)](https://travis-ci.org/sindresorhus/unique-string) - -> Generate a unique random string - - -## Install - -``` -$ npm install --save unique-string -``` - - -## Usage - -```js -const uniqueString = require('unique-string'); - -uniqueString(); -//=> 'b4de2a49c8ffa3fbee04446f045483b2' -``` - - -## API - -### uniqueString() - -Returns a 32 character unique string. Matches the length of MD5, which is [unique enough](http://stackoverflow.com/a/2444336/64949) for non-crypto purposes. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) |