diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-13 12:29:07 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-13 12:29:22 +0200 |
commit | da736d8259331a8ef13bf4bbb10bbb8a5c0e5299 (patch) | |
tree | 4d849133b1c9a9c7067e96ff7dd8faa1d927e0bb /deps/node/deps/npm/node_modules/copy-concurrently | |
parent | da228cf9d71b747f1824e85127039e5afc7effd8 (diff) | |
download | akono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.tar.gz akono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.tar.bz2 akono-da736d8259331a8ef13bf4bbb10bbb8a5c0e5299.zip |
remove node/v8 from source tree
Diffstat (limited to 'deps/node/deps/npm/node_modules/copy-concurrently')
17 files changed, 0 insertions, 947 deletions
diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/LICENSE b/deps/node/deps/npm/node_modules/copy-concurrently/LICENSE deleted file mode 100644 index e0040f66..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2017, Rebecca Turner <me@re-becca.org> - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/README.md b/deps/node/deps/npm/node_modules/copy-concurrently/README.md deleted file mode 100644 index e27b016d..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/README.md +++ /dev/null @@ -1,128 +0,0 @@ -# copy-concurrently - -Copy files, directories and symlinks - -``` -const copy = require('copy-concurrently') -copy('/path/to/thing', '/new/path/thing').then(() => { - // this is now copied -}).catch(err => { - // oh noooo -}) -``` - -Copies files, directories and symlinks. Ownership is maintained when -running as root, permissions are always maintained. On Windows, if symlinks -are unavailable then junctions will be used. - -## PUBLIC INTERFACE - -### copy(from, to, [options]) → Promise - -Recursively copies `from` to `to` and resolves its promise when finished. -If `to` already exists then the promise will be rejected with an `EEXIST` -error. - -Options are: - -* maxConcurrency – (Default: `1`) The maximum number of concurrent copies to do at once. -* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory. -* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires - an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory - fails then we'll try making a junction instead. - -Options can also include dependency injection: - -* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's. -* fs - (Default: `require('fs')`) The filesystem module to use. Can be used - to use `graceful-fs` or to inject a mock. -* writeStreamAtomic - (Default: `require('fs-write-stream-atomic')`) The - implementation of `writeStreamAtomic` to use. Used to inject a mock. -* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock. - -## EXTENSION INTERFACE - -Ordinarily you'd only call `copy` above. But it's possible to use it's -component functions directly. This is useful if, say, you're writing -[move-concurently](https://npmjs.com/package/move-concurrently). - -### copy.file(from, to, options) → Promise - -Copies an ordinary file `from` to destination `to`. Uses -`fs-write-stream-atomic` to ensure that the file is either entirely copied -or not at all. - -Options are: - -* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to - set the user and group of `to`. If uid is present then gid must be too. -* mode - (Optional) If set then `to` will have its perms set to `mode`. -* fs - (Default: `require('fs')`) The filesystem module to use. Can be used - to use `graceful-fs` or to inject a mock. -* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's. -* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The - implementation of `writeStreamAtomic` to use. Used to inject a mock. - -### copy.symlink(from, to, options) → Promise - -Copies a symlink `from` to destination `to`. If you're using Windows and -symlinking fails and what you're linking is a directory then junctions will -be tried instead. - -Options are: - -* top - The top level the copy is being run from. This is used to determine - if the symlink destination is within the set of files we're copying or - outside it. -* fs - (Default: `require('fs')`) The filesystem module to use. Can be used - to use `graceful-fs` or to inject a mock. -* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's. -* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires - an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory - fails then we'll try making a junction instead. - -### copy.recurse(from, to, options) → Promise - -Reads all of the files in directory `from` and adds them to the `queue` -using `recurseWith` (by default `copy.item`). - -Options are: - -* queue - A [`run-queue`](https://npmjs.com/package/run-queue) object to add files found inside `from` to. -* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory. -* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to - set the user and group of `to`. If uid is present then gid must be too. -* mode - (Optional) If set then `to` will have its perms set to `mode`. -* fs - (Default: `require('fs')`) The filesystem module to use. Can be used - to use `graceful-fs` or to inject a mock. -* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock. - -### copy.item(from, to, options) → Promise - -Copies some kind of `from` to destination `to`. This looks at the filetype -and calls `copy.file`, `copy.symlink` or `copy.recurse` as appropriate. - -Symlink copies are queued with a priority such that they happen after all -file and directory copies as you can't create a junction on windows to a -file that doesn't exist yet. - -Options are: - -* top - The top level the copy is being run from. This is used to determine - if the symlink destination is within the set of files we're copying or - outside it. -* queue - The [`run-queue`](https://npmjs.com/package/run-queue) object to - pass to `copy.recurse` if `from` is a directory. -* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory. -* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to - set the user and group of `to`. If uid is present then gid must be too. -* mode - (Optional) If set then `to` will have its perms set to `mode`. -* fs - (Default: `require('fs')`) The filesystem module to use. Can be used - to use `graceful-fs` or to inject a mock. -* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock. -* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires - an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory - fails then we'll try making a junction instead. -* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's. -* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The - implementation of `writeStreamAtomic` to use. Used to inject a mock. diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/copy.js b/deps/node/deps/npm/node_modules/copy-concurrently/copy.js deleted file mode 100644 index 36ce9f46..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/copy.js +++ /dev/null @@ -1,225 +0,0 @@ -'use strict' -module.exports = copy -module.exports.item = copyItem -module.exports.recurse = recurseDir -module.exports.symlink = copySymlink -module.exports.file = copyFile - -var nodeFs = require('fs') -var path = require('path') -var validate = require('aproba') -var stockWriteStreamAtomic = require('fs-write-stream-atomic') -var mkdirp = require('mkdirp') -var rimraf = require('rimraf') -var isWindows = require('./is-windows') -var RunQueue = require('run-queue') -var extend = Object.assign || require('util')._extend - -function promisify (Promise, fn) { - return function () { - var args = [].slice.call(arguments) - return new Promise(function (resolve, reject) { - return fn.apply(null, args.concat(function (err, value) { - if (err) { - reject(err) - } else { - resolve(value) - } - })) - }) - } -} - -function copy (from, to, opts) { - validate('SSO|SS', arguments) - opts = extend({}, opts || {}) - - var Promise = opts.Promise || global.Promise - var fs = opts.fs || nodeFs - - if (opts.isWindows == null) opts.isWindows = isWindows - if (!opts.Promise) opts.Promise = Promise - if (!opts.fs) opts.fs = fs - if (!opts.recurseWith) opts.recurseWith = copyItem - if (!opts.lstat) opts.lstat = promisify(opts.Promise, fs.lstat) - if (!opts.stat) opts.stat = promisify(opts.Promise, fs.stat) - if (!opts.chown) opts.chown = promisify(opts.Promise, fs.chown) - if (!opts.readdir) opts.readdir = promisify(opts.Promise, fs.readdir) - if (!opts.readlink) opts.readlink = promisify(opts.Promise, fs.readlink) - if (!opts.symlink) opts.symlink = promisify(opts.Promise, fs.symlink) - if (!opts.chmod) opts.chmod = promisify(opts.Promise, fs.chmod) - - opts.top = from - opts.mkdirpAsync = promisify(opts.Promise, mkdirp) - var rimrafAsync = promisify(opts.Promise, rimraf) - - var queue = new RunQueue({ - maxConcurrency: opts.maxConcurrency, - Promise: Promise - }) - opts.queue = queue - - queue.add(0, copyItem, [from, to, opts]) - - return queue.run().catch(function (err) { - // if the target already exists don't clobber it - if (err.code === 'EEXIST' || err.code === 'EPERM') { - return passThroughError() - } else { - return remove(to).then(passThroughError, passThroughError) - } - function passThroughError () { - return Promise.reject(err) - } - }) - - function remove (target) { - var opts = { - unlink: fs.unlink, - chmod: fs.chmod, - stat: fs.stat, - lstat: fs.lstat, - rmdir: fs.rmdir, - readdir: fs.readdir, - glob: false - } - return rimrafAsync(target, opts) - } -} - -function copyItem (from, to, opts) { - validate('SSO', [from, to, opts]) - var fs = opts.fs || nodeFs - var Promise = opts.Promise || global.Promise - var lstat = opts.lstat || promisify(Promise, fs.lstat) - - return lstat(to).then(function () { - return Promise.reject(eexists(from, to)) - }, function (err) { - if (err && err.code !== 'ENOENT') return Promise.reject(err) - return lstat(from) - }).then(function (fromStat) { - var cmdOpts = extend(extend({}, opts), fromStat) - if (fromStat.isDirectory()) { - return recurseDir(from, to, cmdOpts) - } else if (fromStat.isSymbolicLink()) { - opts.queue.add(1, copySymlink, [from, to, cmdOpts]) - } else if (fromStat.isFile()) { - return copyFile(from, to, cmdOpts) - } else if (fromStat.isBlockDevice()) { - return Promise.reject(eunsupported(from + " is a block device, and we don't know how to copy those.")) - } else if (fromStat.isCharacterDevice()) { - return Promise.reject(eunsupported(from + " is a character device, and we don't know how to copy those.")) - } else if (fromStat.isFIFO()) { - return Promise.reject(eunsupported(from + " is a FIFO, and we don't know how to copy those.")) - } else if (fromStat.isSocket()) { - return Promise.reject(eunsupported(from + " is a socket, and we don't know how to copy those.")) - } else { - return Promise.reject(eunsupported("We can't tell what " + from + " is and so we can't copy it.")) - } - }) -} - -function recurseDir (from, to, opts) { - validate('SSO', [from, to, opts]) - var recurseWith = opts.recurseWith || copyItem - var fs = opts.fs || nodeFs - var chown = opts.chown || promisify(Promise, fs.chown) - var readdir = opts.readdir || promisify(Promise, fs.readdir) - var mkdirpAsync = opts.mkdirpAsync || promisify(Promise, mkdirp) - - return mkdirpAsync(to, {fs: fs, mode: opts.mode}).then(function () { - var getuid = opts.getuid || process.getuid - if (getuid && opts.uid != null && getuid() === 0) { - return chown(to, opts.uid, opts.gid) - } - }).then(function () { - return readdir(from) - }).then(function (files) { - files.forEach(function (file) { - opts.queue.add(0, recurseWith, [path.join(from, file), path.join(to, file), opts]) - }) - }) -} - -function copySymlink (from, to, opts) { - validate('SSO', [from, to, opts]) - var fs = opts.fs || nodeFs - var readlink = opts.readlink || promisify(Promise, fs.readlink) - var stat = opts.stat || promisify(Promise, fs.symlink) - var symlink = opts.symlink || promisify(Promise, fs.symlink) - var Promise = opts.Promise || global.Promise - - return readlink(from).then(function (fromDest) { - var absoluteDest = path.resolve(path.dirname(from), fromDest) - // Treat absolute paths that are inside the tree we're - // copying as relative. This necessary to properly support junctions - // on windows (which are always absolute) but is also DWIM with symlinks. - var relativeDest = path.relative(opts.top, absoluteDest) - var linkFrom = relativeDest.substr(0, 2) === '..' ? fromDest : path.relative(path.dirname(from), absoluteDest) - if (opts.isWindows) { - return stat(absoluteDest).catch(function () { return null }).then(function (destStat) { - var isDir = destStat && destStat.isDirectory() - var type = isDir ? 'dir' : 'file' - return symlink(linkFrom, to, type).catch(function (err) { - if (type === 'dir') { - return symlink(linkFrom, to, 'junction') - } else { - return Promise.reject(err) - } - }) - }) - } else { - return symlink(linkFrom, to) - } - }) -} - -function copyFile (from, to, opts) { - validate('SSO', [from, to, opts]) - var fs = opts.fs || nodeFs - var writeStreamAtomic = opts.writeStreamAtomic || stockWriteStreamAtomic - var Promise = opts.Promise || global.Promise - var chmod = opts.chmod || promisify(Promise, fs.chmod) - - var writeOpts = {} - var getuid = opts.getuid || process.getuid - if (getuid && opts.uid != null && getuid() === 0) { - writeOpts.chown = { - uid: opts.uid, - gid: opts.gid - } - } - - return new Promise(function (resolve, reject) { - var errored = false - function onError (err) { - errored = true - reject(err) - } - fs.createReadStream(from) - .once('error', onError) - .pipe(writeStreamAtomic(to, writeOpts)) - .once('error', onError) - .once('close', function () { - if (errored) return - if (opts.mode != null) { - resolve(chmod(to, opts.mode)) - } else { - resolve() - } - }) - }) -} - -function eexists (from, to) { - var err = new Error('Could not move ' + from + ' to ' + to + ': destination already exists.') - err.code = 'EEXIST' - return err -} - -function eunsupported (msg) { - var err = new Error(msg) - err.code = 'EUNSUPPORTED' - return err -} diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/is-windows.js b/deps/node/deps/npm/node_modules/copy-concurrently/is-windows.js deleted file mode 100644 index 8a991d54..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/is-windows.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict' -module.exports = process.platform === 'win32' diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/LICENSE b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/LICENSE deleted file mode 100644 index 2a4982dc..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2015, Rebecca Turner <me@re-becca.org> - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/README.md b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/README.md deleted file mode 100644 index e9479920..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/README.md +++ /dev/null @@ -1,93 +0,0 @@ -aproba -====== - -A ridiculously light-weight function argument validator - -``` -var validate = require("aproba") - -function myfunc(a, b, c) { - // `a` must be a string, `b` a number, `c` a function - validate('SNF', arguments) // [a,b,c] is also valid -} - -myfunc('test', 23, function () {}) // ok -myfunc(123, 23, function () {}) // type error -myfunc('test', 23) // missing arg error -myfunc('test', 23, function () {}, true) // too many args error - -``` - -Valid types are: - -| type | description -| :--: | :---------- -| * | matches any type -| A | `Array.isArray` OR an `arguments` object -| S | typeof == string -| N | typeof == number -| F | typeof == function -| O | typeof == object and not type A and not type E -| B | typeof == boolean -| E | `instanceof Error` OR `null` **(special: see below)** -| Z | == `null` - -Validation failures throw one of three exception types, distinguished by a -`code` property of `EMISSINGARG`, `EINVALIDTYPE` or `ETOOMANYARGS`. - -If you pass in an invalid type then it will throw with a code of -`EUNKNOWNTYPE`. - -If an **error** argument is found and is not null then the remaining -arguments are optional. That is, if you say `ESO` then that's like using a -non-magical `E` in: `E|ESO|ZSO`. - -### But I have optional arguments?! - -You can provide more than one signature by separating them with pipes `|`. -If any signature matches the arguments then they'll be considered valid. - -So for example, say you wanted to write a signature for -`fs.createWriteStream`. The docs for it describe it thusly: - -``` -fs.createWriteStream(path[, options]) -``` - -This would be a signature of `SO|S`. That is, a string and and object, or -just a string. - -Now, if you read the full `fs` docs, you'll see that actually path can ALSO -be a buffer. And options can be a string, that is: -``` -path <String> | <Buffer> -options <String> | <Object> -``` - -To reproduce this you have to fully enumerate all of the possible -combinations and that implies a signature of `SO|SS|OO|OS|S|O`. The -awkwardness is a feature: It reminds you of the complexity you're adding to -your API when you do this sort of thing. - - -### Browser support - -This has no dependencies and should work in browsers, though you'll have -noisier stack traces. - -### Why this exists - -I wanted a very simple argument validator. It needed to do two things: - -1. Be more concise and easier to use than assertions - -2. Not encourage an infinite bikeshed of DSLs - -This is why types are specified by a single character and there's no such -thing as an optional argument. - -This is not intended to validate user data. This is specifically about -asserting the interface of your functions. - -If you need greater validation, I encourage you to write them by hand or -look elsewhere. diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/index.js b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/index.js deleted file mode 100644 index 6f3f797c..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/index.js +++ /dev/null @@ -1,105 +0,0 @@ -'use strict' - -function isArguments (thingy) { - return thingy != null && typeof thingy === 'object' && thingy.hasOwnProperty('callee') -} - -var types = { - '*': {label: 'any', check: function () { return true }}, - A: {label: 'array', check: function (thingy) { return Array.isArray(thingy) || isArguments(thingy) }}, - S: {label: 'string', check: function (thingy) { return typeof thingy === 'string' }}, - N: {label: 'number', check: function (thingy) { return typeof thingy === 'number' }}, - F: {label: 'function', check: function (thingy) { return typeof thingy === 'function' }}, - O: {label: 'object', check: function (thingy) { return typeof thingy === 'object' && thingy != null && !types.A.check(thingy) && !types.E.check(thingy) }}, - B: {label: 'boolean', check: function (thingy) { return typeof thingy === 'boolean' }}, - E: {label: 'error', check: function (thingy) { return thingy instanceof Error }}, - Z: {label: 'null', check: function (thingy) { return thingy == null }} -} - -function addSchema (schema, arity) { - var group = arity[schema.length] = arity[schema.length] || [] - if (group.indexOf(schema) === -1) group.push(schema) -} - -var validate = module.exports = function (rawSchemas, args) { - if (arguments.length !== 2) throw wrongNumberOfArgs(['SA'], arguments.length) - if (!rawSchemas) throw missingRequiredArg(0, 'rawSchemas') - if (!args) throw missingRequiredArg(1, 'args') - if (!types.S.check(rawSchemas)) throw invalidType(0, ['string'], rawSchemas) - if (!types.A.check(args)) throw invalidType(1, ['array'], args) - var schemas = rawSchemas.split('|') - var arity = {} - - schemas.forEach(function (schema) { - for (var ii = 0; ii < schema.length; ++ii) { - var type = schema[ii] - if (!types[type]) throw unknownType(ii, type) - } - if (/E.*E/.test(schema)) throw moreThanOneError(schema) - addSchema(schema, arity) - if (/E/.test(schema)) { - addSchema(schema.replace(/E.*$/, 'E'), arity) - addSchema(schema.replace(/E/, 'Z'), arity) - if (schema.length === 1) addSchema('', arity) - } - }) - var matching = arity[args.length] - if (!matching) { - throw wrongNumberOfArgs(Object.keys(arity), args.length) - } - for (var ii = 0; ii < args.length; ++ii) { - var newMatching = matching.filter(function (schema) { - var type = schema[ii] - var typeCheck = types[type].check - return typeCheck(args[ii]) - }) - if (!newMatching.length) { - var labels = matching.map(function (schema) { - return types[schema[ii]].label - }).filter(function (schema) { return schema != null }) - throw invalidType(ii, labels, args[ii]) - } - matching = newMatching - } -} - -function missingRequiredArg (num) { - return newException('EMISSINGARG', 'Missing required argument #' + (num + 1)) -} - -function unknownType (num, type) { - return newException('EUNKNOWNTYPE', 'Unknown type ' + type + ' in argument #' + (num + 1)) -} - -function invalidType (num, expectedTypes, value) { - var valueType - Object.keys(types).forEach(function (typeCode) { - if (types[typeCode].check(value)) valueType = types[typeCode].label - }) - return newException('EINVALIDTYPE', 'Argument #' + (num + 1) + ': Expected ' + - englishList(expectedTypes) + ' but got ' + valueType) -} - -function englishList (list) { - return list.join(', ').replace(/, ([^,]+)$/, ' or $1') -} - -function wrongNumberOfArgs (expected, got) { - var english = englishList(expected) - var args = expected.every(function (ex) { return ex.length === 1 }) - ? 'argument' - : 'arguments' - return newException('EWRONGARGCOUNT', 'Expected ' + english + ' ' + args + ' but got ' + got) -} - -function moreThanOneError (schema) { - return newException('ETOOMANYERRORTYPES', - 'Only one error type per argument signature is allowed, more than one found in "' + schema + '"') -} - -function newException (code, msg) { - var e = new Error(msg) - e.code = code - if (Error.captureStackTrace) Error.captureStackTrace(e, validate) - return e -} diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/package.json b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/package.json deleted file mode 100644 index e16eea15..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/aproba/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "_from": "aproba@^1.1.1", - "_id": "aproba@1.2.0", - "_inBundle": false, - "_integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "_location": "/copy-concurrently/aproba", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "aproba@^1.1.1", - "name": "aproba", - "escapedName": "aproba", - "rawSpec": "^1.1.1", - "saveSpec": null, - "fetchSpec": "^1.1.1" - }, - "_requiredBy": [ - "/copy-concurrently" - ], - "_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "_shasum": "6802e6264efd18c790a1b0d517f0f2627bf2c94a", - "_spec": "aproba@^1.1.1", - "_where": "/Users/aeschright/code/cli/node_modules/copy-concurrently", - "author": { - "name": "Rebecca Turner", - "email": "me@re-becca.org" - }, - "bugs": { - "url": "https://github.com/iarna/aproba/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "A ridiculously light-weight argument validator (now browser friendly)", - "devDependencies": { - "standard": "^10.0.3", - "tap": "^10.0.2" - }, - "directories": { - "test": "test" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/iarna/aproba", - "keywords": [ - "argument", - "validate" - ], - "license": "ISC", - "main": "index.js", - "name": "aproba", - "repository": { - "type": "git", - "url": "git+https://github.com/iarna/aproba.git" - }, - "scripts": { - "test": "standard && tap -j3 test/*.js" - }, - "version": "1.2.0" -} diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/.npmignore b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/.npmignore deleted file mode 100644 index 3c3629e6..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/LICENSE b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/LICENSE deleted file mode 100644 index 19d5f4bc..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Nadav Ivgi - -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.
\ No newline at end of file diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/README.md b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/README.md deleted file mode 100644 index 0940763f..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# iferr - -Higher-order functions for easier error handling. - -`if (err) return cb(err);` be gone! - -## Install -```bash -npm install iferr -``` - -## Use - -### JavaScript example -```js -var iferr = require('iferr'); - -function get_friends_count(id, cb) { - User.load_user(id, iferr(cb, function(user) { - user.load_friends(iferr(cb, function(friends) { - cb(null, friends.length); - })); - })); -} -``` - -### CoffeeScript example -```coffee -iferr = require 'iferr' - -get_friends_count = (id, cb) -> - User.load_user id, iferr cb, (user) -> - user.load_friends iferr cb, (friends) -> - cb null, friends.length -``` - -(TODO: document tiferr, throwerr and printerr) - -## License -MIT diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.coffee b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.coffee deleted file mode 100644 index da6d0071..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.coffee +++ /dev/null @@ -1,24 +0,0 @@ -# Delegates to `succ` on sucecss or to `fail` on error -# ex: Thing.load 123, iferr cb, (thing) -> ... -iferr = (fail, succ) -> (err, a...) -> - if err? then fail err - else succ? a... - -# Like iferr, but also catches errors thrown from `succ` and passes to `fail` -tiferr = (fail, succ) -> iferr fail, (a...) -> - try succ a... - catch err then fail err - -# Delegate to the success function on success, or throw the error otherwise -# ex: Thing.load 123, throwerr (thing) -> ... -throwerr = iferr.bind null, (err) -> throw err - -# Prints errors when one is passed, or does nothing otherwise -# ex: thing.save printerr -printerr = iferr (err) -> console.error err.stack or err - -module.exports = exports = iferr -exports.iferr = iferr -exports.tiferr = tiferr -exports.throwerr = throwerr -exports.printerr = printerr diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.js b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.js deleted file mode 100644 index 78fce3d2..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/index.js +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by CoffeeScript 1.7.1 -(function() { - var exports, iferr, printerr, throwerr, tiferr, - __slice = [].slice; - - iferr = function(fail, succ) { - return function() { - var a, err; - err = arguments[0], a = 2 <= arguments.length ? __slice.call(arguments, 1) : []; - if (err != null) { - return fail(err); - } else { - return typeof succ === "function" ? succ.apply(null, a) : void 0; - } - }; - }; - - tiferr = function(fail, succ) { - return iferr(fail, function() { - var a, err; - a = 1 <= arguments.length ? __slice.call(arguments, 0) : []; - try { - return succ.apply(null, a); - } catch (_error) { - err = _error; - return fail(err); - } - }); - }; - - throwerr = iferr.bind(null, function(err) { - throw err; - }); - - printerr = iferr(function(err) { - return console.error(err.stack || err); - }); - - module.exports = exports = iferr; - - exports.iferr = iferr; - - exports.tiferr = tiferr; - - exports.throwerr = throwerr; - - exports.printerr = printerr; - -}).call(this); diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/package.json b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/package.json deleted file mode 100644 index 3dfa53fe..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "_from": "iferr@^0.1.5", - "_id": "iferr@0.1.5", - "_inBundle": false, - "_integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", - "_location": "/copy-concurrently/iferr", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "iferr@^0.1.5", - "name": "iferr", - "escapedName": "iferr", - "rawSpec": "^0.1.5", - "saveSpec": null, - "fetchSpec": "^0.1.5" - }, - "_requiredBy": [ - "/copy-concurrently" - ], - "_resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "_shasum": "c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501", - "_spec": "iferr@^0.1.5", - "_where": "/Users/rebecca/code/npm/node_modules/copy-concurrently", - "author": { - "name": "Nadav Ivgi" - }, - "bugs": { - "url": "https://github.com/shesek/iferr/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Higher-order functions for easier error handling", - "devDependencies": { - "coffee-script": "^1.7.1", - "mocha": "^1.18.2" - }, - "homepage": "https://github.com/shesek/iferr", - "keywords": [ - "error", - "errors" - ], - "license": "MIT", - "main": "index.js", - "name": "iferr", - "repository": { - "type": "git", - "url": "git+https://github.com/shesek/iferr.git" - }, - "scripts": { - "prepublish": "coffee -c index.coffee", - "test": "mocha" - }, - "version": "0.1.5" -} diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/index.coffee b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/index.coffee deleted file mode 100644 index be0bc56f..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/index.coffee +++ /dev/null @@ -1,42 +0,0 @@ -{ iferr, tiferr, throwerr } = require '../index.coffee' -{ equal: eq, throws } = require 'assert' - -invoke_fail = (cb) -> cb new Error 'callback error' -invoke_succ = (cb) -> cb null -throw_error = -> throw new Error 'thrown' - -describe 'iferr', -> - it 'calls the error callback on errors', (done) -> - invoke_fail iferr( - (err) -> - eq err.message, 'callback error' - do done - -> - done new Error 'shouldn\'t call the success callback' - ) - - it 'calls the success callback on success', (done) -> - invoke_succ iferr( - -> done new Error 'shouldn\'t call the error callback' - done - ) - -describe 'tiferr', -> - it 'catches errors in the success callback', (done) -> - invoke_succ tiferr( - (err) -> - eq err.message, 'thrown' - do done - throw_error - ) - -describe 'throwerr', -> - it 'throws errors passed to the callback', (done)-> - try invoke_fail throwerr -> - done 'shouldn\'t call the success callback' - catch err - eq err.message, 'callback error' - do done - - it 'delegates to the success callback otherwise', (done) -> - invoke_succ throwerr done diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/mocha.opts b/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/mocha.opts deleted file mode 100644 index 019defcf..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/mocha.opts +++ /dev/null @@ -1,2 +0,0 @@ ---compilers coffee:coffee-script/register ---reporter spec diff --git a/deps/node/deps/npm/node_modules/copy-concurrently/package.json b/deps/node/deps/npm/node_modules/copy-concurrently/package.json deleted file mode 100644 index 5a89b02e..00000000 --- a/deps/node/deps/npm/node_modules/copy-concurrently/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "_from": "copy-concurrently@^1.0.0", - "_id": "copy-concurrently@1.0.5", - "_inBundle": false, - "_integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", - "_location": "/copy-concurrently", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "copy-concurrently@^1.0.0", - "name": "copy-concurrently", - "escapedName": "copy-concurrently", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/move-concurrently" - ], - "_resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", - "_shasum": "92297398cae34937fcafd6ec8139c18051f0b5e0", - "_spec": "copy-concurrently@^1.0.0", - "_where": "/Users/rebecca/code/npm/node_modules/move-concurrently", - "author": { - "name": "Rebecca Turner", - "email": "me@re-becca.org", - "url": "http://re-becca.org/" - }, - "bugs": { - "url": "https://github.com/npm/copy-concurrently/issues" - }, - "bundleDependencies": false, - "dependencies": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" - }, - "deprecated": false, - "description": "Promises of copies of files, directories and symlinks, with concurrency controls and win32 junction fallback.", - "devDependencies": { - "standard": "^8.6.0", - "tacks": "^1.2.6", - "tap": "^10.1.1" - }, - "directories": { - "test": "test" - }, - "files": [ - "copy.js", - "is-windows.js" - ], - "homepage": "https://www.npmjs.com/package/copy-concurrently", - "keywords": [ - "copy", - "cpr" - ], - "license": "ISC", - "main": "copy.js", - "name": "copy-concurrently", - "repository": { - "type": "git", - "url": "git+https://github.com/npm/copy-concurrently.git" - }, - "scripts": { - "test": "standard && tap --coverage test" - }, - "version": "1.0.5" -} |