From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/nyc/CHANGELOG.md | 12 + node_modules/nyc/README.md | 49 +- node_modules/nyc/bin/nyc.js | 34 +- node_modules/nyc/index.js | 16 +- node_modules/nyc/lib/commands/check-coverage.js | 46 + node_modules/nyc/lib/commands/instrument.js | 7 +- node_modules/nyc/lib/commands/report.js | 39 + node_modules/nyc/lib/config-util.js | 126 +- .../nyc/node_modules/align-text/package.json | 60 +- .../nyc/node_modules/amdefine/package.json | 57 +- .../nyc/node_modules/ansi-regex/package.json | 51 +- .../nyc/node_modules/ansi-styles/package.json | 51 +- .../nyc/node_modules/append-transform/package.json | 52 +- node_modules/nyc/node_modules/archy/package.json | 52 +- .../nyc/node_modules/arr-diff/package.json | 60 +- .../nyc/node_modules/arr-flatten/package.json | 58 +- .../nyc/node_modules/array-unique/package.json | 53 +- node_modules/nyc/node_modules/arrify/package.json | 53 +- node_modules/nyc/node_modules/async/package.json | 65 +- .../nyc/node_modules/babel-code-frame/package.json | 73 +- .../nyc/node_modules/babel-generator/package.json | 72 +- .../nyc/node_modules/babel-messages/package.json | 77 +- .../nyc/node_modules/babel-runtime/package.json | 72 +- .../nyc/node_modules/babel-template/package.json | 73 +- .../nyc/node_modules/babel-traverse/package.json | 72 +- .../nyc/node_modules/babel-types/package.json | 72 +- node_modules/nyc/node_modules/babylon/package.json | 196 +- .../nyc/node_modules/balanced-match/package.json | 56 +- .../nyc/node_modules/brace-expansion/package.json | 60 +- node_modules/nyc/node_modules/braces/package.json | 64 +- .../nyc/node_modules/builtin-modules/package.json | 53 +- .../node_modules/caching-transform/package.json | 52 +- .../nyc/node_modules/camelcase/package.json | 53 +- .../nyc/node_modules/center-align/package.json | 60 +- node_modules/nyc/node_modules/chalk/package.json | 50 +- .../cliui/node_modules/wordwrap/package.json | 47 +- node_modules/nyc/node_modules/cliui/package.json | 52 +- .../nyc/node_modules/code-point-at/package.json | 57 +- .../nyc/node_modules/commondir/package.json | 52 +- .../nyc/node_modules/concat-map/package.json | 48 +- .../node_modules/convert-source-map/package.json | 56 +- node_modules/nyc/node_modules/core-js/package.json | 57 +- .../nyc/node_modules/cross-spawn/package.json | 56 +- .../nyc/node_modules/debug-log/package.json | 58 +- node_modules/nyc/node_modules/debug/CHANGELOG.md | 5 + node_modules/nyc/node_modules/debug/component.json | 2 +- node_modules/nyc/node_modules/debug/package.json | 68 +- .../nyc/node_modules/debug/src/inspector-log.js | 15 + node_modules/nyc/node_modules/debug/src/node.js | 4 +- .../nyc/node_modules/decamelize/package.json | 57 +- .../default-require-extensions/package.json | 52 +- .../nyc/node_modules/detect-indent/package.json | 52 +- .../nyc/node_modules/error-ex/package.json | 50 +- .../node_modules/escape-string-regexp/package.json | 51 +- node_modules/nyc/node_modules/esutils/package.json | 46 +- .../execa/node_modules/cross-spawn/package.json | 56 +- node_modules/nyc/node_modules/execa/package.json | 50 +- .../nyc/node_modules/expand-brackets/package.json | 64 +- .../nyc/node_modules/expand-range/package.json | 60 +- node_modules/nyc/node_modules/extglob/package.json | 52 +- .../nyc/node_modules/filename-regex/package.json | 61 +- .../nyc/node_modules/fill-range/package.json | 60 +- .../nyc/node_modules/find-cache-dir/package.json | 52 +- node_modules/nyc/node_modules/find-up/package.json | 58 +- node_modules/nyc/node_modules/for-in/package.json | 61 +- node_modules/nyc/node_modules/for-own/package.json | 60 +- .../nyc/node_modules/foreground-child/package.json | 55 +- .../nyc/node_modules/fs.realpath/package.json | 56 +- .../nyc/node_modules/get-caller-file/package.json | 56 +- .../nyc/node_modules/get-stream/package.json | 61 +- .../nyc/node_modules/glob-base/package.json | 60 +- .../nyc/node_modules/glob-parent/package.json | 52 +- node_modules/nyc/node_modules/glob/package.json | 57 +- node_modules/nyc/node_modules/globals/package.json | 70 +- .../nyc/node_modules/graceful-fs/package.json | 59 +- .../handlebars/.idea/dictionaries/nknappmeier.xml | 7 + .../.idea/inspectionProfiles/Project_Default.xml | 6 + .../node_modules/handlebars/.idea/workspace.xml | 1339 +++-- .../nyc/node_modules/handlebars/CONTRIBUTING.md | 2 +- node_modules/nyc/node_modules/handlebars/LICENSE | 2 +- .../nyc/node_modules/handlebars/README.markdown | 1 + .../nyc/node_modules/handlebars/appveyor.yml | 38 + .../handlebars/dist/amd/handlebars/base.js | 4 +- .../handlebars/dist/amd/precompiler.js | 43 +- .../handlebars/dist/cjs/handlebars/base.js | 4 +- .../handlebars/dist/cjs/precompiler.js | 43 +- .../node_modules/handlebars/dist/handlebars.amd.js | 8 +- .../handlebars/dist/handlebars.amd.min.js | 6 +- .../nyc/node_modules/handlebars/dist/handlebars.js | 6 +- .../node_modules/handlebars/dist/handlebars.min.js | 6 +- .../handlebars/dist/handlebars.runtime.amd.js | 8 +- .../handlebars/dist/handlebars.runtime.amd.min.js | 6 +- .../handlebars/dist/handlebars.runtime.js | 6 +- .../handlebars/dist/handlebars.runtime.min.js | 6 +- .../node_modules/handlebars/docs/compiler-api.md | 36 +- .../node_modules/handlebars/lib/handlebars/base.js | 2 +- .../nyc/node_modules/handlebars/lib/precompiler.js | 40 +- .../node_modules/source-map/package.json | 57 +- .../nyc/node_modules/handlebars/package-lock.json | 5492 ++++++++++++++++++++ .../nyc/node_modules/handlebars/package.json | 79 +- .../nyc/node_modules/handlebars/release-notes.md | 12 +- .../nyc/node_modules/has-ansi/package.json | 46 +- .../nyc/node_modules/has-flag/package.json | 47 +- .../nyc/node_modules/hosted-git-info/package.json | 66 +- .../nyc/node_modules/imurmurhash/package.json | 50 +- .../nyc/node_modules/inflight/package.json | 68 +- .../nyc/node_modules/inherits/package.json | 57 +- .../nyc/node_modules/invariant/package.json | 60 +- .../nyc/node_modules/invert-kv/package.json | 52 +- .../nyc/node_modules/is-arrayish/package.json | 53 +- .../nyc/node_modules/is-buffer/package.json | 56 +- .../node_modules/is-builtin-module/package.json | 52 +- .../nyc/node_modules/is-dotfile/package.json | 61 +- .../nyc/node_modules/is-equal-shallow/package.json | 56 +- .../nyc/node_modules/is-extendable/package.json | 53 +- .../nyc/node_modules/is-extglob/package.json | 52 +- .../nyc/node_modules/is-finite/package.json | 56 +- .../is-fullwidth-code-point/package.json | 52 +- node_modules/nyc/node_modules/is-glob/package.json | 56 +- .../nyc/node_modules/is-number/package.json | 56 +- .../nyc/node_modules/is-posix-bracket/package.json | 57 +- .../nyc/node_modules/is-primitive/package.json | 53 +- .../nyc/node_modules/is-stream/package.json | 57 +- node_modules/nyc/node_modules/is-utf8/package.json | 54 +- node_modules/nyc/node_modules/isarray/package.json | 50 +- node_modules/nyc/node_modules/isexe/package.json | 56 +- .../nyc/node_modules/isobject/package.json | 60 +- .../istanbul-lib-coverage/package.json | 61 +- .../node_modules/istanbul-lib-hook/CHANGELOG.md | 13 +- .../nyc/node_modules/istanbul-lib-hook/lib/hook.js | 42 +- .../node_modules/istanbul-lib-hook/package.json | 74 +- .../istanbul-lib-instrument/CHANGELOG.md | 27 + .../istanbul-lib-instrument/dist/visitor.js | 31 + .../istanbul-lib-instrument/package.json | 73 +- .../node_modules/istanbul-lib-report/CHANGELOG.md | 13 +- .../istanbul-lib-report/lib/file-writer.js | 1 - .../node_modules/supports-color/package.json | 50 +- .../node_modules/istanbul-lib-report/package.json | 74 +- .../istanbul-lib-source-maps/CHANGELOG.md | 10 +- .../node_modules/debug/.coveralls.yml | 1 + .../node_modules/debug/.eslintrc | 14 + .../node_modules/debug/.npmignore | 9 + .../node_modules/debug/.travis.yml | 20 + .../node_modules/debug/CHANGELOG.md | 395 ++ .../node_modules/debug/LICENSE | 19 + .../node_modules/debug/Makefile | 58 + .../node_modules/debug/README.md | 368 ++ .../node_modules/debug/karma.conf.js | 70 + .../node_modules/debug/node.js | 1 + .../node_modules/debug/package.json | 82 + .../node_modules/debug/src/browser.js | 195 + .../node_modules/debug/src/debug.js | 225 + .../node_modules/debug/src/index.js | 10 + .../node_modules/debug/src/node.js | 186 + .../istanbul-lib-source-maps/package.json | 78 +- .../nyc/node_modules/istanbul-reports/CHANGELOG.md | 10 +- .../nyc/node_modules/istanbul-reports/package.json | 79 +- .../nyc/node_modules/js-tokens/package.json | 57 +- node_modules/nyc/node_modules/jsesc/package.json | 56 +- node_modules/nyc/node_modules/kind-of/package.json | 60 +- .../nyc/node_modules/lazy-cache/package.json | 61 +- node_modules/nyc/node_modules/lcid/package.json | 52 +- .../nyc/node_modules/load-json-file/package.json | 52 +- .../node_modules/path-exists/package.json | 57 +- .../nyc/node_modules/locate-path/package.json | 56 +- node_modules/nyc/node_modules/lodash/package.json | 61 +- node_modules/nyc/node_modules/longest/package.json | 57 +- .../nyc/node_modules/loose-envify/package.json | 56 +- .../nyc/node_modules/lru-cache/package.json | 61 +- node_modules/nyc/node_modules/md5-hex/package.json | 56 +- .../nyc/node_modules/md5-o-matic/package.json | 50 +- node_modules/nyc/node_modules/mem/package.json | 56 +- .../nyc/node_modules/merge-source-map/package.json | 56 +- .../nyc/node_modules/micromatch/package.json | 64 +- .../nyc/node_modules/mimic-fn/package.json | 57 +- .../nyc/node_modules/minimatch/package.json | 57 +- .../nyc/node_modules/minimist/package.json | 49 +- node_modules/nyc/node_modules/mkdirp/package.json | 52 +- node_modules/nyc/node_modules/ms/package.json | 62 +- .../normalize-package-data/package.json | 76 +- .../nyc/node_modules/normalize-path/package.json | 60 +- .../nyc/node_modules/npm-run-path/package.json | 56 +- .../nyc/node_modules/number-is-nan/package.json | 57 +- .../nyc/node_modules/object-assign/package.json | 65 +- .../nyc/node_modules/object.omit/package.json | 60 +- node_modules/nyc/node_modules/once/package.json | 55 +- .../nyc/node_modules/optimist/package.json | 50 +- .../nyc/node_modules/os-homedir/package.json | 57 +- .../nyc/node_modules/os-locale/package.json | 65 +- .../nyc/node_modules/p-finally/package.json | 57 +- node_modules/nyc/node_modules/p-limit/package.json | 57 +- .../nyc/node_modules/p-locate/package.json | 56 +- .../nyc/node_modules/parse-glob/package.json | 52 +- .../nyc/node_modules/parse-json/package.json | 55 +- .../nyc/node_modules/path-exists/package.json | 52 +- .../nyc/node_modules/path-is-absolute/package.json | 57 +- .../nyc/node_modules/path-key/package.json | 57 +- .../nyc/node_modules/path-parse/package.json | 52 +- .../nyc/node_modules/path-type/package.json | 52 +- node_modules/nyc/node_modules/pify/package.json | 57 +- .../nyc/node_modules/pinkie-promise/package.json | 56 +- node_modules/nyc/node_modules/pinkie/package.json | 53 +- .../pkg-dir/node_modules/find-up/package.json | 56 +- node_modules/nyc/node_modules/pkg-dir/package.json | 52 +- .../nyc/node_modules/preserve/package.json | 52 +- .../nyc/node_modules/pseudomap/package.json | 52 +- .../is-number/node_modules/kind-of/package.json | 70 +- .../randomatic/node_modules/is-number/package.json | 60 +- .../randomatic/node_modules/kind-of/package.json | 60 +- .../nyc/node_modules/randomatic/package.json | 61 +- .../read-pkg-up/node_modules/find-up/package.json | 56 +- .../nyc/node_modules/read-pkg-up/package.json | 52 +- .../nyc/node_modules/read-pkg/package.json | 52 +- .../node_modules/regenerator-runtime/package.json | 58 +- .../nyc/node_modules/regex-cache/package.json | 61 +- .../remove-trailing-separator/package.json | 57 +- .../nyc/node_modules/repeat-element/package.json | 53 +- .../nyc/node_modules/repeat-string/package.json | 61 +- .../nyc/node_modules/repeating/package.json | 56 +- .../node_modules/require-directory/package.json | 53 +- .../require-main-filename/package.json | 57 +- .../nyc/node_modules/resolve-from/package.json | 53 +- .../nyc/node_modules/right-align/package.json | 52 +- node_modules/nyc/node_modules/rimraf/package.json | 64 +- node_modules/nyc/node_modules/rimraf/rimraf.js | 5 +- node_modules/nyc/node_modules/semver/package.json | 62 +- .../nyc/node_modules/set-blocking/package.json | 57 +- .../nyc/node_modules/shebang-command/package.json | 56 +- .../nyc/node_modules/shebang-regex/package.json | 53 +- .../nyc/node_modules/signal-exit/package.json | 61 +- node_modules/nyc/node_modules/slide/package.json | 52 +- .../nyc/node_modules/source-map/package.json | 73 +- .../nyc/node_modules/spawn-wrap/package.json | 63 +- .../nyc/node_modules/spdx-correct/package.json | 56 +- .../spdx-expression-parse/package.json | 57 +- .../nyc/node_modules/spdx-license-ids/package.json | 57 +- .../node_modules/ansi-regex/package.json | 65 +- .../is-fullwidth-code-point/package.json | 57 +- .../node_modules/strip-ansi/package.json | 64 +- .../nyc/node_modules/string-width/package.json | 57 +- .../nyc/node_modules/strip-ansi/package.json | 50 +- .../nyc/node_modules/strip-bom/package.json | 52 +- .../nyc/node_modules/strip-eof/package.json | 53 +- .../nyc/node_modules/supports-color/package.json | 47 +- .../nyc/node_modules/test-exclude/package.json | 60 +- .../node_modules/to-fast-properties/package.json | 57 +- .../nyc/node_modules/trim-right/package.json | 53 +- .../uglify-js/node_modules/yargs/package.json | 60 +- .../nyc/node_modules/uglify-js/package.json | 49 +- .../node_modules/uglify-to-browserify/package.json | 50 +- .../validate-npm-package-license/package.json | 56 +- .../nyc/node_modules/which-module/package.json | 57 +- node_modules/nyc/node_modules/which/package.json | 57 +- .../nyc/node_modules/window-size/package.json | 50 +- .../nyc/node_modules/wordwrap/package.json | 52 +- .../node_modules/string-width/package.json | 56 +- .../nyc/node_modules/wrap-ansi/package.json | 50 +- node_modules/nyc/node_modules/wrappy/package.json | 59 +- .../node_modules/write-file-atomic/package.json | 60 +- node_modules/nyc/node_modules/y18n/package.json | 61 +- node_modules/nyc/node_modules/yallist/package.json | 55 +- .../nyc/node_modules/yargs-parser/CHANGELOG.md | 75 + .../nyc/node_modules/yargs-parser/README.md | 45 +- .../nyc/node_modules/yargs-parser/index.js | 56 +- .../yargs-parser/lib/tokenize-arg-string.js | 6 +- .../yargs-parser/node_modules/camelcase/index.js | 62 +- .../node_modules/camelcase/package.json | 78 +- .../yargs-parser/node_modules/camelcase/readme.md | 2 +- .../nyc/node_modules/yargs-parser/package.json | 83 +- node_modules/nyc/node_modules/yargs/CHANGELOG.md | 112 + node_modules/nyc/node_modules/yargs/README.md | 29 +- .../nyc/node_modules/yargs/completion.sh.hbs | 4 +- node_modules/nyc/node_modules/yargs/index.js | 3 +- .../nyc/node_modules/yargs/lib/apply-extends.js | 21 +- node_modules/nyc/node_modules/yargs/lib/argsert.js | 30 +- node_modules/nyc/node_modules/yargs/lib/assign.js | 15 - node_modules/nyc/node_modules/yargs/lib/command.js | 309 +- .../nyc/node_modules/yargs/lib/completion.js | 51 +- .../nyc/node_modules/yargs/lib/levenshtein.js | 10 +- .../nyc/node_modules/yargs/lib/obj-filter.js | 7 +- node_modules/nyc/node_modules/yargs/lib/usage.js | 299 +- .../nyc/node_modules/yargs/lib/validation.js | 239 +- node_modules/nyc/node_modules/yargs/lib/yerror.js | 1 + .../nyc/node_modules/yargs/locales/en.json | 4 +- .../nyc/node_modules/yargs/locales/hi.json | 5 +- .../nyc/node_modules/yargs/locales/id.json | 5 +- .../nyc/node_modules/yargs/locales/ja.json | 5 +- .../nyc/node_modules/yargs/locales/ko.json | 5 +- .../nyc/node_modules/yargs/locales/nl.json | 5 +- .../nyc/node_modules/yargs/locales/pl.json | 5 +- .../nyc/node_modules/yargs/locales/pt_BR.json | 6 +- .../nyc/node_modules/yargs/locales/tr.json | 4 +- .../yargs/node_modules/camelcase/index.js | 64 - .../yargs/node_modules/camelcase/license | 21 - .../yargs/node_modules/camelcase/package.json | 112 - .../yargs/node_modules/camelcase/readme.md | 57 - .../cliui/node_modules/string-width/package.json | 56 +- .../yargs/node_modules/cliui/package.json | 56 +- .../yargs/node_modules/load-json-file/index.js | 11 - .../yargs/node_modules/load-json-file/license | 21 - .../yargs/node_modules/load-json-file/package.json | 111 - .../yargs/node_modules/load-json-file/readme.md | 45 - .../yargs/node_modules/path-type/index.js | 26 - .../yargs/node_modules/path-type/license | 21 - .../yargs/node_modules/path-type/package.json | 116 - .../yargs/node_modules/path-type/readme.md | 42 - .../yargs/node_modules/read-pkg-up/index.js | 26 - .../yargs/node_modules/read-pkg-up/license | 21 - .../yargs/node_modules/read-pkg-up/package.json | 130 - .../yargs/node_modules/read-pkg-up/readme.md | 80 - .../yargs/node_modules/read-pkg/index.js | 47 - .../yargs/node_modules/read-pkg/license | 21 - .../yargs/node_modules/read-pkg/package.json | 113 - .../yargs/node_modules/read-pkg/readme.md | 79 - .../yargs/node_modules/strip-bom/index.js | 14 - .../yargs/node_modules/strip-bom/license | 21 - .../yargs/node_modules/strip-bom/package.json | 109 - .../yargs/node_modules/strip-bom/readme.md | 36 - .../yargs/node_modules/yargs-parser/CHANGELOG.md | 223 - .../yargs/node_modules/yargs-parser/LICENSE.txt | 14 - .../yargs/node_modules/yargs-parser/README.md | 281 - .../yargs/node_modules/yargs-parser/index.js | 764 --- .../yargs-parser/lib/tokenize-arg-string.js | 34 - .../yargs/node_modules/yargs-parser/package.json | 115 - node_modules/nyc/node_modules/yargs/package.json | 94 +- node_modules/nyc/node_modules/yargs/yargs.js | 476 +- node_modules/nyc/package.json | 21 +- 327 files changed, 11933 insertions(+), 14097 deletions(-) create mode 100644 node_modules/nyc/lib/commands/check-coverage.js create mode 100644 node_modules/nyc/lib/commands/report.js create mode 100644 node_modules/nyc/node_modules/debug/src/inspector-log.js create mode 100644 node_modules/nyc/node_modules/handlebars/.idea/dictionaries/nknappmeier.xml create mode 100644 node_modules/nyc/node_modules/handlebars/.idea/inspectionProfiles/Project_Default.xml create mode 100644 node_modules/nyc/node_modules/handlebars/appveyor.yml create mode 100644 node_modules/nyc/node_modules/handlebars/package-lock.json create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/.coveralls.yml create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/.eslintrc create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/.npmignore create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/.travis.yml create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/CHANGELOG.md create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/LICENSE create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/Makefile create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/README.md create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/karma.conf.js create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/node.js create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/package.json create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/src/browser.js create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/src/debug.js create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/src/index.js create mode 100644 node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/debug/src/node.js delete mode 100644 node_modules/nyc/node_modules/yargs/lib/assign.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/camelcase/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/camelcase/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/camelcase/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/camelcase/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/load-json-file/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/load-json-file/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/load-json-file/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/load-json-file/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/path-type/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/path-type/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/path-type/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/path-type/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg-up/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg-up/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg-up/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg-up/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/read-pkg/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/strip-bom/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/strip-bom/license delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/strip-bom/package.json delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/strip-bom/readme.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/CHANGELOG.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/LICENSE.txt delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/README.md delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/index.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/lib/tokenize-arg-string.js delete mode 100644 node_modules/nyc/node_modules/yargs/node_modules/yargs-parser/package.json (limited to 'node_modules/nyc') diff --git a/node_modules/nyc/CHANGELOG.md b/node_modules/nyc/CHANGELOG.md index 9738ceb61..125dcbab8 100644 --- a/node_modules/nyc/CHANGELOG.md +++ b/node_modules/nyc/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [11.3.0](https://github.com/istanbuljs/nyc/compare/v11.2.1...v11.3.0) (2017-10-23) + + +### Features + +* add --exclude-after-remap option for users who pre-instrument their codebase ([#697](https://github.com/istanbuljs/nyc/issues/697)) ([cdfdff3](https://github.com/istanbuljs/nyc/commit/cdfdff3)) +* add option to hook vm.runInContext ([#680](https://github.com/istanbuljs/nyc/issues/680)) ([f04b7a9](https://github.com/istanbuljs/nyc/commit/f04b7a9)) +* allow instrument-only to produce sourcemaps ([#674](https://github.com/istanbuljs/nyc/issues/674)) ([f31d7a6](https://github.com/istanbuljs/nyc/commit/f31d7a6)) + + + ## [11.2.1](https://github.com/istanbuljs/nyc/compare/v11.2.0...v11.2.1) (2017-09-06) diff --git a/node_modules/nyc/README.md b/node_modules/nyc/README.md index f6196f1a8..08160b587 100644 --- a/node_modules/nyc/README.md +++ b/node_modules/nyc/README.md @@ -53,14 +53,14 @@ and a `text-lcov` coverage report. nyc --reporter=lcov --reporter=text-lcov npm test ``` -### Accurate stack traces using source maps +### Accurate stack traces using source-maps When `produce-source-map` is set to true, then the instrumented source files will include inline source maps for the instrumenter transform. When combined with [source-map-support](https://github.com/evanw/node-source-map-support), stack traces for instrumented code will reflect their original lines. -### Support for custom require hooks (babel, webpack, etc.) +### Support for custom require hooks (babel, typescript, etc.) nyc supports custom require hooks like [`babel-register`](http://babeljs.io/docs/usage/require/). nyc can @@ -69,9 +69,20 @@ flag](#require-additional-modules). Source maps are used to map coverage information back to the appropriate lines of the pre-transpiled code. You'll have to configure your custom require hook -to inline the source map in the transpiled code. For Babel that means setting +to inline the source-map in the transpiled code. For Babel that means setting the `sourceMaps` option to `inline`. +### Source-Map support for pre-instrumented codebases + +If you opt to pre-instrument your source-code (rather than using a just-in-time +transpiler like [`babel-register`](http://babeljs.io/docs/usage/require/)) +nyc supports both inline source-maps and `.map` files. + +_Important: If you are using nyc with a project that pre-instruments its code, +run nyc with the configuration option `--exclude-after-remap` set to `false`. +Otherwise nyc's reports will exclude any files that source-maps remap to folders +covered under exclude rules._ + ## Use with `babel-plugin-istanbul` for Babel Support We recommend using [`babel-plugin-istanbul`](https://github.com/istanbuljs/babel-plugin-istanbul) if your @@ -118,12 +129,12 @@ That's all there is to it, better ES2015+ syntax highlighting awaits: -## Support for alternate file extensions (.jsx, .es6) +## Support for alternate file extensions (.jsx, .mjs) Supporting file extensions can be configured through either the configuration arguments or with the `nyc` config section in `package.json`. ```shell -nyc --extension .jsx --extension .es6 npm test +nyc --extension .jsx --extension .mjs npm test ``` ```json @@ -131,7 +142,7 @@ nyc --extension .jsx --extension .es6 npm test "nyc": { "extension": [ ".jsx", - ".es6" + ".mjs" ] } } @@ -143,7 +154,7 @@ nyc can fail tests if coverage falls below a threshold. After running your tests with nyc, simply run: ```shell -nyc check-coverage --lines 95 --functions 95 --branches 95 +nyc --check-coverage --lines 95 --functions 95 --branches 95 ``` nyc also accepts a `--check-coverage` shorthand, which can be used to @@ -158,7 +169,7 @@ The above check fails if coverage falls below 100%. To check thresholds on a per-file basis run: ```shell -nyc check-coverage --lines 95 --per-file +nyc --check-coverage --lines 95 --per-file ``` ## Running reports @@ -173,12 +184,14 @@ To view your coverage report: -you can use [any reporters that are supported by `istanbul`](https://github.com/istanbuljs/istanbuljs/tree/master/packages/istanbul-reports/lib): +You can use [any reporters that are supported by `istanbul`](https://github.com/istanbuljs/istanbuljs/tree/master/packages/istanbul-reports/lib): `clover`, `cobertura`, `html`, `json-summary`, `json`, `lcov`, `lcovonly`, `none`, `teamcity`, `text-lcov`, `text-summary`, `text`. ```bash nyc report --reporter=lcov ``` +You can find examples of the output for various reporters [here](https://istanbul.js.org/docs/advanced/alternative-reporters). + ## Excluding files You can tell nyc to exclude specific files and directories by adding @@ -318,9 +331,18 @@ You can specify custom high and low watermarks in nyc's configuration: } ``` -## Other advanced features +## Parsing Hints (Ignoring Lines) -Take a look at http://istanbul.js.org/docs/advanced/ and please feel free to [contribute documentation](https://github.com/istanbuljs/istanbuljs.github.io/tree/development/content). +There may be some sections of your codebase that you wish to purposefully +exclude from coverage tracking, to do so you can use the following parsing +hints: + +* `/* istanbul ignore if */`: ignore the next if statement. +* `/* istanbul ignore else */`: ignore the else portion of an if statement. +* `/* istanbul ignore next */`: ignore the next _thing_ in the source-code ( + functions, if statements, classes, you name it). +* `/* istanbul ignore file */`: ignore an entire source-file (this should be + placed at the top of the file). ## Integrating with coveralls @@ -394,8 +416,13 @@ Here's how to get `nyc` integrated with codecov and travis-ci.org: That's all there is to it! ## Integrating with TAP formatters + Many testing frameworks (Mocha, Tape, Tap, etc.) can produce [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol) output. [tap-nyc](https://github.com/MegaArman/tap-nyc) is a TAP formatter designed to look nice with nyc. ## More tutorials You can find more tutorials at http://istanbul.js.org/docs/tutorials + +## Other advanced features + +Take a look at http://istanbul.js.org/docs/advanced/ and please feel free to [contribute documentation](https://github.com/istanbuljs/istanbuljs.github.io/tree/development/content). diff --git a/node_modules/nyc/bin/nyc.js b/node_modules/nyc/bin/nyc.js index d2d837d9c..8918a3503 100755 --- a/node_modules/nyc/bin/nyc.js +++ b/node_modules/nyc/bin/nyc.js @@ -17,42 +17,38 @@ var wrapper = require.resolve('./wrap.js') // we keep these values in a few different forms, // used in the various execution contexts of nyc: // reporting, instrumenting subprocesses, etc. -var yargs = configUtil.decorateYargs(configUtil.buildYargs()) +var yargs = configUtil.addCommandsAndHelp(configUtil.buildYargs()) var instrumenterArgs = processArgs.hideInstrumenteeArgs() var argv = yargs.parse(instrumenterArgs) -var config = configUtil.loadConfig(instrumenterArgs) if (argv._[0] === 'report') { - // run a report. - process.env.NYC_CWD = process.cwd() - - report(config) + // look in lib/commands/report.js for logic. } else if (argv._[0] === 'check-coverage') { - checkCoverage(config) + // look in lib/commands/check-coverage.js for logic. } else if (argv._[0] === 'instrument') { // look in lib/commands/instrument.js for logic. } else if (argv._.length) { // if instrument is set to false, // enable a noop instrumenter. - if (!config.instrument) config.instrumenter = './lib/instrumenters/noop' - else config.instrumenter = './lib/instrumenters/istanbul' + if (!argv.instrument) argv.instrumenter = './lib/instrumenters/noop' + else argv.instrumenter = './lib/instrumenters/istanbul' - var nyc = (new NYC(config)) - if (config.clean) { + var nyc = (new NYC(argv)) + if (argv.clean) { nyc.reset() } else { nyc.createTempDirectory() } - if (config.all) nyc.addAllFiles() + if (argv.all) nyc.addAllFiles() var env = { - NYC_CONFIG: JSON.stringify(config), + NYC_CONFIG: JSON.stringify(argv), NYC_CWD: process.cwd(), NYC_ROOT_ID: nyc.rootId, - NYC_INSTRUMENTER: config.instrumenter + NYC_INSTRUMENTER: argv.instrumenter } - if (config['babel-cache'] === false) { + if (argv['babel-cache'] === false) { // babel's cache interferes with some configurations, so is // disabled by default. opt in by setting babel-cache=true. env.BABEL_DISABLE_CACHE = process.env.BABEL_DISABLE_CACHE = '1' @@ -71,13 +67,13 @@ if (argv._[0] === 'report') { ), function (done) { var mainChildExitCode = process.exitCode - if (config.checkCoverage) { - checkCoverage(config) + if (argv.checkCoverage) { + checkCoverage(argv) process.exitCode = process.exitCode || mainChildExitCode - if (!config.silent) report(config) + if (!argv.silent) report(argv) return done() } else { - if (!config.silent) report(config) + if (!argv.silent) report(argv) return done() } }) diff --git a/node_modules/nyc/index.js b/node_modules/nyc/index.js index b31c1abcf..87ada2daf 100755 --- a/node_modules/nyc/index.js +++ b/node_modules/nyc/index.js @@ -79,6 +79,7 @@ function NYC (config) { }.bind(this), {}) this.hookRunInContext = config.hookRunInContext + this.hookRunInThisContext = config.hookRunInThisContext this.fakeRequire = null this.processInfo = new ProcessInfo(config && config._processInfo) @@ -311,6 +312,9 @@ NYC.prototype._wrapRequire = function () { NYC.prototype._addOtherHooks = function () { if (this.hookRunInContext) { + this._addHook('RunInContext') + } + if (this.hookRunInThisContext) { this._addHook('RunInThisContext') } } @@ -420,9 +424,15 @@ NYC.prototype._getCoverageMapFromAllCoverageFiles = function () { this.loadReports().forEach(function (report) { map.merge(report) }) - map.filter(function (filename) { - return _this.exclude.shouldInstrument(filename) - }) + // depending on whether source-code is pre-instrumented + // or instrumented using a JIT plugin like babel-require + // you may opt to exclude files after applying + // source-map remapping logic. + if (this.config.excludeAfterRemap) { + map.filter(function (filename) { + return _this.exclude.shouldInstrument(filename) + }) + } map.data = this.sourceMaps.remapCoverage(map.data) return map } diff --git a/node_modules/nyc/lib/commands/check-coverage.js b/node_modules/nyc/lib/commands/check-coverage.js new file mode 100644 index 000000000..c12667bbe --- /dev/null +++ b/node_modules/nyc/lib/commands/check-coverage.js @@ -0,0 +1,46 @@ +var NYC +try { + NYC = require('../../index.covered.js') +} catch (e) { + NYC = require('../../index.js') +} + +exports.command = 'check-coverage' + +exports.describe = 'check whether coverage is within thresholds provided' + +exports.builder = function (yargs) { + yargs + .option('branches', { + default: 0, + description: 'what % of branches must be covered?' + }) + .option('functions', { + default: 0, + description: 'what % of functions must be covered?' + }) + .option('lines', { + default: 90, + description: 'what % of lines must be covered?' + }) + .option('statements', { + default: 0, + description: 'what % of statements must be covered?' + }) + .option('per-file', { + default: false, + description: 'check thresholds per file' + }) + .example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided") +} + +exports.handler = function (argv) { + process.env.NYC_CWD = process.cwd() + + ;(new NYC(argv)).checkCoverage({ + lines: argv.lines, + functions: argv.functions, + branches: argv.branches, + statements: argv.statements + }, argv['per-file']) +} diff --git a/node_modules/nyc/lib/commands/instrument.js b/node_modules/nyc/lib/commands/instrument.js index 6ff4a5222..cf1e97461 100644 --- a/node_modules/nyc/lib/commands/instrument.js +++ b/node_modules/nyc/lib/commands/instrument.js @@ -11,7 +11,6 @@ exports.describe = 'instruments a file or a directory tree and writes the instru exports.builder = function (yargs) { return yargs - .usage('$0 instrument [output]') .option('require', { alias: 'i', default: [], @@ -27,6 +26,11 @@ exports.builder = function (yargs) { type: 'boolean', description: 'should nyc detect and handle source maps?' }) + .option('produce-source-map', { + default: false, + type: 'boolean', + description: "should nyc's instrumenter produce source maps?" + }) .option('instrument', { default: true, type: 'boolean', @@ -44,6 +48,7 @@ exports.handler = function (argv) { var nyc = new NYC({ instrumenter: argv.instrumenter, sourceMap: argv.sourceMap, + produceSourceMap: argv.produceSourceMap, extension: argv.extension, require: argv.require }) diff --git a/node_modules/nyc/lib/commands/report.js b/node_modules/nyc/lib/commands/report.js new file mode 100644 index 000000000..8289980b9 --- /dev/null +++ b/node_modules/nyc/lib/commands/report.js @@ -0,0 +1,39 @@ +var NYC +try { + NYC = require('../../index.covered.js') +} catch (e) { + NYC = require('../../index.js') +} + +exports.command = 'report' + +exports.describe = 'run coverage report for .nyc_output' + +exports.builder = function (yargs) { + return yargs + .option('reporter', { + alias: 'r', + describe: 'coverage reporter(s) to use', + default: 'text' + }) + .option('report-dir', { + describe: 'directory to output coverage reports in', + default: 'coverage' + }) + .option('temp-directory', { + describe: 'directory to read raw coverage information from', + default: './.nyc_output' + }) + .option('show-process-tree', { + describe: 'display the tree of spawned processes', + default: false, + type: 'boolean' + }) + .example('$0 report --reporter=lcov', 'output an HTML lcov report to ./coverage') +} + +exports.handler = function (argv) { + process.env.NYC_CWD = process.cwd() + var nyc = new NYC(argv) + nyc.report() +} diff --git a/node_modules/nyc/lib/config-util.js b/node_modules/nyc/lib/config-util.js index 3c733e083..2c55a3a11 100644 --- a/node_modules/nyc/lib/config-util.js +++ b/node_modules/nyc/lib/config-util.js @@ -1,3 +1,5 @@ +'use strict' + const arrify = require('arrify') const fs = require('fs') const path = require('path') @@ -7,37 +9,29 @@ const Yargs = require('yargs/yargs') var Config = {} -// load config from a cascade of sources: -// * command line arguments -// * package.json -// * .nycrc -Config.loadConfig = function (argv, cwd) { +function guessCWD (cwd) { cwd = cwd || process.env.NYC_CWD || process.cwd() - var pkgPath = findUp.sync('package.json', {cwd: cwd}) - var rcPath = findUp.sync(['.nycrc', '.nycrc.json'], {cwd: cwd}) - var rcConfig = null + const pkgPath = findUp.sync('package.json', {cwd: cwd}) + if (pkgPath) { + cwd = path.dirname(pkgPath) + } + return cwd +} + +function loadConfig (argv, cwd) { + const rcPath = findUp.sync(['.nycrc', '.nycrc.json'], {cwd: cwd}) + let config = {} if (rcPath) { - rcConfig = JSON.parse( + config = JSON.parse( fs.readFileSync(rcPath, 'utf-8') ) } - if (pkgPath) { - cwd = path.dirname(pkgPath) - } - - var config = Config.buildYargs(cwd) - if (rcConfig) config.config(rcConfig) - config = config.parse(argv || []) - - // post-hoc, we convert several of the - // configuration settings to arrays, providing - // a consistent contract to index.js. - config.require = arrify(config.require) - config.extension = arrify(config.extension) - config.exclude = arrify(config.exclude) - config.include = arrify(config.include) + if (config.require) config.require = arrify(config.require) + if (config.extension) config.extension = arrify(config.extension) + if (config.exclude) config.exclude = arrify(config.exclude) + if (config.include) config.include = arrify(config.include) return config } @@ -45,56 +39,11 @@ Config.loadConfig = function (argv, cwd) { // build a yargs object, omitting any settings // that would cause the application to exit early. Config.buildYargs = function (cwd) { + cwd = guessCWD(cwd) + const config = loadConfig() return Yargs([]) - .usage('$0 [command] [options]\n\nrun your tests with the nyc bin to instrument them with coverage') - .command('report', 'run coverage report for .nyc_output', function (yargs) { - return yargs - .usage('$0 report [options]') - .option('reporter', { - alias: 'r', - describe: 'coverage reporter(s) to use', - default: 'text' - }) - .option('report-dir', { - describe: 'directory to output coverage reports in', - default: 'coverage' - }) - .option('temp-directory', { - describe: 'directory to read raw coverage information from', - default: './.nyc_output' - }) - .option('show-process-tree', { - describe: 'display the tree of spawned processes', - default: false, - type: 'boolean' - }) - .example('$0 report --reporter=lcov', 'output an HTML lcov report to ./coverage') - }) - .command('check-coverage', 'check whether coverage is within thresholds provided', function (yargs) { - return yargs - .usage('$0 check-coverage [options]') - .option('branches', { - default: 0, - description: 'what % of branches must be covered?' - }) - .option('functions', { - default: 0, - description: 'what % of functions must be covered?' - }) - .option('lines', { - default: 90, - description: 'what % of lines must be covered?' - }) - .option('statements', { - default: 0, - description: 'what % of statements must be covered?' - }) - .option('per-file', { - default: false, - description: 'check thresholds per file' - }) - .example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided") - }) + .usage('$0 [command] [options]') + .usage('$0 [options] [bin-to-instrument]') .option('reporter', { alias: 'r', describe: 'coverage reporter(s) to use', @@ -126,6 +75,12 @@ Config.buildYargs = function (cwd) { describe: 'a list of specific files and directories that should be excluded from coverage, glob patterns are supported, node_modules is always excluded', global: false }) + .option('exclude-after-remap', { + default: true, + type: 'boolean', + description: 'should exclude logic be performed after the source-map remaps filenames?', + global: false + }) .option('include', { alias: 'n', default: [], @@ -139,7 +94,7 @@ Config.buildYargs = function (cwd) { .option('require', { alias: 'i', default: [], - describe: 'a list of additional modules that nyc should attempt to require in its subprocess, e.g., babel-register, babel-polyfill.', + describe: 'a list of additional modules that nyc should attempt to require in its subprocess, e.g., babel-register, babel-polyfill', global: false }) .option('eager', { @@ -218,6 +173,12 @@ Config.buildYargs = function (cwd) { global: false }) .option('hook-run-in-context', { + default: true, + type: 'boolean', + description: 'should nyc wrap vm.runInContext?', + global: false + }) + .option('hook-run-in-this-context', { default: true, type: 'boolean', description: 'should nyc wrap vm.runInThisContext?', @@ -240,24 +201,29 @@ Config.buildYargs = function (cwd) { default: './.nyc_output', global: false }) - .pkgConf('nyc', cwd || process.cwd()) + .pkgConf('nyc', cwd) .example('$0 npm test', 'instrument your tests with coverage') - .example('$0 --require babel-core/register npm test', 'instrument your tests with coverage and babel') + .example('$0 --require babel-core/register npm test', 'instrument your tests with coverage and transpile with Babel') .example('$0 report --reporter=text-lcov', 'output lcov report after running your tests') .epilog('visit https://git.io/vHysA for list of available reporters') - .boolean('help') .boolean('h') .boolean('version') + .config(config) + .help(false) + .version(false) } -// decorate yargs with all the actions -// that would make it exit: help, version, command. -Config.decorateYargs = function (yargs) { +// we add operations that would make yargs +// exit post-hoc, allowing for a multi-pass +// parsing step. +Config.addCommandsAndHelp = function (yargs) { return yargs .help('h') .alias('h', 'help') .version() + .command(require('../lib/commands/check-coverage')) .command(require('../lib/commands/instrument')) + .command(require('../lib/commands/report')) } module.exports = Config diff --git a/node_modules/nyc/node_modules/align-text/package.json b/node_modules/nyc/node_modules/align-text/package.json index 81a52afc7..588c77f43 100644 --- a/node_modules/nyc/node_modules/align-text/package.json +++ b/node_modules/nyc/node_modules/align-text/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "align-text@^0.1.3", - "scope": null, - "escapedName": "align-text", - "name": "align-text", - "rawSpec": "^0.1.3", - "spec": ">=0.1.3 <0.2.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/center-align" - ] - ], - "_from": "align-text@>=0.1.3 <0.2.0", + "_from": "align-text@^0.1.3", "_id": "align-text@0.1.4", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "_location": "/align-text", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-9-west.internal.npmjs.com", - "tmp": "tmp/align-text-0.1.4.tgz_1454377856920_0.9624228512402624" - }, - "_npmUser": { - "name": "shinnn", - "email": "snnskwtnb@gmail.com" - }, - "_npmVersion": "3.6.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "align-text@^0.1.3", - "scope": null, - "escapedName": "align-text", "name": "align-text", + "escapedName": "align-text", "rawSpec": "^0.1.3", - "spec": ">=0.1.3 <0.2.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^0.1.3" }, "_requiredBy": [ "/center-align", @@ -43,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "_shasum": "0cd90a561093f35d0a99256c22b7069433fad117", - "_shrinkwrap": null, "_spec": "align-text@^0.1.3", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/center-align", "author": { @@ -53,29 +30,25 @@ "bugs": { "url": "https://github.com/jonschlinkert/align-text/issues" }, + "bundleDependencies": false, "dependencies": { "kind-of": "^3.0.2", "longest": "^1.0.1", "repeat-string": "^1.5.2" }, + "deprecated": false, "description": "Align the text in a string.", "devDependencies": { "mocha": "*", "should": "*", "word-wrap": "^1.0.3" }, - "directories": {}, - "dist": { - "shasum": "0cd90a561093f35d0a99256c22b7069433fad117", - "tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "7f08e823a54c6bda319d875895813537a66a4c5e", "homepage": "https://github.com/jonschlinkert/align-text", "keywords": [ "align", @@ -93,20 +66,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "shinnn", - "email": "snnskwtnb@gmail.com" - } - ], "name": "align-text", - "optionalDependencies": {}, - "readme": "# align-text [![NPM version](https://badge.fury.io/js/align-text.svg)](http://badge.fury.io/js/align-text) [![Build Status](https://travis-ci.org/jonschlinkert/align-text.svg)](https://travis-ci.org/jonschlinkert/align-text)\n\n> Align the text in a string.\n\n**Examples**\n\nAlign text values in an array:\n\n```js\nalign([1, 2, 3, 100]);\n//=> [' 1', ' 2', ' 3', '100']\n```\n\nOr [do stuff like this](./example.js):\n\n[![screen shot 2015-06-09 at 2 08 34 am](https://cloud.githubusercontent.com/assets/383994/8051597/7b716fbc-0e4c-11e5-9aef-4493fd22db58.png)](./example.js)\n\nVisit [the example](./example.js) to see how this works.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i align-text --save\n```\n\n## Usage\n\n```js\nvar align = require('align-text');\nalign(text, callback_function_or_integer);\n```\n\n**Params**\n\n* `text` can be a **string or array**. If a string is passed, a string will be returned. If an array is passed, an array will be returned.\n* `callback|integer`: if an integer, the text will be indented by that amount. If a function, it must return an integer representing the amount of leading indentation to use as `align` loops over each line.\n\n**Example**\n\n```js\nalign(text, 4);\n```\n\nWould align:\n\n```\nabc\nabc\nabc\n```\n\nTo:\n\n```\n abc\n abc\n abc\n```\n\n## callback\n\n### params\n\nThe callback is used to determine the indentation of each line and gets the following params:\n\n* `len` the length of the \"current\" line\n* `longest` the length of the longest line\n* `line` the current line (string) being aligned\n* `lines` the array of all lines\n\n### return\n\nThe callback may return:\n\n* an integer that represents the number of spaces to use for padding,\n* or an object with the following properties:\n - `indent`: **{Number}** the amount of indentation to use. Default is `0` when an object is returned.\n - `character`: **{String}** the character to use for indentation. Default is `''` (empty string) when an object is returned.\n - `prefix`: **{String}** leading characters to use at the beginning of each line. `''` (empty string) when an object is returned.\n\n**Integer example:**\n\n```js\n// calculate half the difference between the length\n// of the current line and the longest line\nfunction centerAlign(len, longest, line, lines) {\n return Math.floor((longest - len) / 2);\n}\n```\n\n**Object example:**\n\n```js\nfunction centerAlign(len, longest, line, lines) {\n return {\n character: '\\t',\n indent: Math.floor((longest - len) / 2),\n prefix: '~ ',\n }\n}\n```\n\n## Usage examples\n\n### Center align\n\nUsing the `centerAlign` function from above:\n\n```js\nalign(text, centerAlign);\n```\n\nWould align this text:\n\n```js\nLorem ipsum dolor sit amet\nconsectetur adipiscin\nelit, sed do eiusmod tempor incididun\nut labore et dolor\nmagna aliqua. Ut enim ad mini\nveniam, quis\n```\n\nResulting in this:\n\n```\n Lorem ipsum dolor sit amet,\n consectetur adipiscing\nelit, sed do eiusmod tempor incididunt\n ut labore et dolore\n magna aliqua. Ut enim ad minim\n veniam, quis\n```\n\n**Customize**\n\nIf you wanted to add more padding on the left, just pass the number in the callback.\n\nFor example, to add 4 spaces before every line:\n\n```js\nfunction centerAlign(len, longest, line, lines) {\n return 4 + Math.floor((longest - len) / 2);\n}\n```\n\nWould result in:\n\n```\n Lorem ipsum dolor sit amet,\n consectetur adipiscing\n elit, sed do eiusmod tempor incididunt\n ut labore et dolore\n magna aliqua. Ut enim ad minim\n veniam, quis\n```\n\n### Bullets\n\n```js\nalign(text, function (len, max, line, lines) {\n return {prefix: ' - '};\n});\n```\n\nWould return:\n\n```\n- Lorem ipsum dolor sit amet,\n- consectetur adipiscing\n- elit, sed do eiusmod tempor incididunt\n- ut labore et dolore\n- magna aliqua. Ut enim ad minim\n- veniam, quis\n```\n\n### Different indent character\n\n```js\nalign(text, function (len, max, line, lines) {\n return { \n indent: Math.floor((max - len) / 2), \n character: '~', \n };\n});\n```\n\nWould return\n\n```\n~~~~~Lorem ipsum dolor sit amet,\n~~~~~~~~consectetur adipiscing\nelit, sed do eiusmod tempor incididunt\n~~~~~~~~~ut labore et dolore\n~~~~magna aliqua. Ut enim ad minim\n~~~~~~~~~~~~~veniam, quis\n```\n\n## Related projects\n\n* [center-align](https://github.com/jonschlinkert/center-align): Center-align the text in a string.\n* [justify](https://github.com/bahamas10/node-justify): Left or right (or both) justify text using a custom width and character\n* [longest](https://github.com/jonschlinkert/longest): Get the longest item in an array.\n* [right-align](https://github.com/jonschlinkert/right-align): Right-align the text in a string.\n* [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string.\n* [word-wrap](https://github.com/jonschlinkert/word-wrap): Wrap words to a specified length.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/align-text/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 09, 2015._\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/jonschlinkert/align-text.git" diff --git a/node_modules/nyc/node_modules/amdefine/package.json b/node_modules/nyc/node_modules/amdefine/package.json index 9d5ba4a00..2f66409be 100644 --- a/node_modules/nyc/node_modules/amdefine/package.json +++ b/node_modules/nyc/node_modules/amdefine/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "amdefine@>=0.0.4", - "scope": null, - "escapedName": "amdefine", - "name": "amdefine", - "rawSpec": ">=0.0.4", - "spec": ">=0.0.4", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/handlebars/node_modules/source-map" - ] - ], "_from": "amdefine@>=0.0.4", "_id": "amdefine@1.0.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "_location": "/amdefine", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/amdefine-1.0.1.tgz_1478062849665_0.19916908955201507" - }, - "_npmUser": { - "name": "jrburke", - "email": "jrburke@gmail.com" - }, - "_npmVersion": "3.10.3", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "amdefine@>=0.0.4", - "scope": null, - "escapedName": "amdefine", "name": "amdefine", + "escapedName": "amdefine", "rawSpec": ">=0.0.4", - "spec": ">=0.0.4", - "type": "range" + "saveSpec": null, + "fetchSpec": ">=0.0.4" }, "_requiredBy": [ "/handlebars/source-map" ], "_resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "_shasum": "4a5282ac164729e93619bcfd3ad151f817ce91f5", - "_shrinkwrap": null, "_spec": "amdefine@>=0.0.4", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/handlebars/node_modules/source-map", "author": { @@ -53,35 +30,19 @@ "bugs": { "url": "https://github.com/jrburke/amdefine/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Provide AMD's define() API for declaring modules in the AMD format", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "4a5282ac164729e93619bcfd3ad151f817ce91f5", - "tarball": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz" - }, "engines": { "node": ">=0.4.2" }, - "gitHead": "e59edc9da24404ec7937098e3992f8fb0e260be7", "homepage": "http://github.com/jrburke/amdefine", "license": "BSD-3-Clause OR MIT", "main": "./amdefine.js", - "maintainers": [ - { - "name": "jrburke", - "email": "jrburke@gmail.com" - } - ], "name": "amdefine", - "optionalDependencies": {}, - "readme": "# amdefine\n\nA module that can be used to implement AMD's define() in Node. This allows you\nto code to the AMD API and have the module work in node programs without\nrequiring those other programs to use AMD.\n\n## Usage\n\n**1)** Update your package.json to indicate amdefine as a dependency:\n\n```javascript\n \"dependencies\": {\n \"amdefine\": \">=0.1.0\"\n }\n```\n\nThen run `npm install` to get amdefine into your project.\n\n**2)** At the top of each module that uses define(), place this code:\n\n```javascript\nif (typeof define !== 'function') { var define = require('amdefine')(module) }\n```\n\n**Only use these snippets** when loading amdefine. If you preserve the basic structure,\nwith the braces, it will be stripped out when using the [RequireJS optimizer](#optimizer).\n\nYou can add spaces, line breaks and even require amdefine with a local path, but\nkeep the rest of the structure to get the stripping behavior.\n\nAs you may know, because `if` statements in JavaScript don't have their own scope, the var\ndeclaration in the above snippet is made whether the `if` expression is truthy or not. If\nRequireJS is loaded then the declaration is superfluous because `define` is already already\ndeclared in the same scope in RequireJS. Fortunately JavaScript handles multiple `var`\ndeclarations of the same variable in the same scope gracefully.\n\nIf you want to deliver amdefine.js with your code rather than specifying it as a dependency\nwith npm, then just download the latest release and refer to it using a relative path:\n\n[Latest Version](https://github.com/jrburke/amdefine/raw/latest/amdefine.js)\n\n### amdefine/intercept\n\nConsider this very experimental.\n\nInstead of pasting the piece of text for the amdefine setup of a `define`\nvariable in each module you create or consume, you can use `amdefine/intercept`\ninstead. It will automatically insert the above snippet in each .js file loaded\nby Node.\n\n**Warning**: you should only use this if you are creating an application that\nis consuming AMD style defined()'d modules that are distributed via npm and want\nto run that code in Node.\n\nFor library code where you are not sure if it will be used by others in Node or\nin the browser, then explicitly depending on amdefine and placing the code\nsnippet above is suggested path, instead of using `amdefine/intercept`. The\nintercept module affects all .js files loaded in the Node app, and it is\ninconsiderate to modify global state like that unless you are also controlling\nthe top level app.\n\n#### Why distribute AMD-style modules via npm?\n\nnpm has a lot of weaknesses for front-end use (installed layout is not great,\nshould have better support for the `baseUrl + moduleID + '.js' style of loading,\nsingle file JS installs), but some people want a JS package manager and are\nwilling to live with those constraints. If that is you, but still want to author\nin AMD style modules to get dynamic require([]), better direct source usage and\npowerful loader plugin support in the browser, then this tool can help.\n\n#### amdefine/intercept usage\n\nJust require it in your top level app module (for example index.js, server.js):\n\n```javascript\nrequire('amdefine/intercept');\n```\n\nThe module does not return a value, so no need to assign the result to a local\nvariable.\n\nThen just require() code as you normally would with Node's require(). Any .js\nloaded after the intercept require will have the amdefine check injected in\nthe .js source as it is loaded. It does not modify the source on disk, just\nprepends some content to the text of the module as it is loaded by Node.\n\n#### How amdefine/intercept works\n\nIt overrides the `Module._extensions['.js']` in Node to automatically prepend\nthe amdefine snippet above. So, it will affect any .js file loaded by your\napp.\n\n## define() usage\n\nIt is best if you use the anonymous forms of define() in your module:\n\n```javascript\ndefine(function (require) {\n var dependency = require('dependency');\n});\n```\n\nor\n\n```javascript\ndefine(['dependency'], function (dependency) {\n\n});\n```\n\n## RequireJS optimizer integration. \n\nVersion 1.0.3 of the [RequireJS optimizer](http://requirejs.org/docs/optimization.html)\nwill have support for stripping the `if (typeof define !== 'function')` check\nmentioned above, so you can include this snippet for code that runs in the\nbrowser, but avoid taking the cost of the if() statement once the code is\noptimized for deployment.\n\n## Node 0.4 Support\n\nIf you want to support Node 0.4, then add `require` as the second parameter to amdefine:\n\n```javascript\n//Only if you want Node 0.4. If using 0.5 or later, use the above snippet.\nif (typeof define !== 'function') { var define = require('amdefine')(module, require) }\n```\n\n## Limitations\n\n### Synchronous vs Asynchronous\n\namdefine creates a define() function that is callable by your code. It will\nexecute and trace dependencies and call the factory function *synchronously*,\nto keep the behavior in line with Node's synchronous dependency tracing.\n\nThe exception: calling AMD's callback-style require() from inside a factory\nfunction. The require callback is called on process.nextTick():\n\n```javascript\ndefine(function (require) {\n require(['a'], function(a) {\n //'a' is loaded synchronously, but\n //this callback is called on process.nextTick().\n });\n});\n```\n\n### Loader Plugins\n\nLoader plugins are supported as long as they call their load() callbacks\nsynchronously. So ones that do network requests will not work. However plugins\nlike [text](http://requirejs.org/docs/api.html#text) can load text files locally.\n\nThe plugin API's `load.fromText()` is **not supported** in amdefine, so this means\ntranspiler plugins like the [CoffeeScript loader plugin](https://github.com/jrburke/require-cs)\nwill not work. This may be fixable, but it is a bit complex, and I do not have\nenough node-fu to figure it out yet. See the source for amdefine.js if you want\nto get an idea of the issues involved.\n\n## Tests\n\nTo run the tests, cd to **tests** and run:\n\n```\nnode all.js\nnode all-intercept.js\n```\n\n## License\n\nNew BSD and MIT. Check the LICENSE file for all the details.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jrburke/amdefine.git" }, - "scripts": {}, "version": "1.0.1" } diff --git a/node_modules/nyc/node_modules/ansi-regex/package.json b/node_modules/nyc/node_modules/ansi-regex/package.json index 36edae481..27d95a667 100644 --- a/node_modules/nyc/node_modules/ansi-regex/package.json +++ b/node_modules/nyc/node_modules/ansi-regex/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "ansi-regex@^2.0.0", - "scope": null, - "escapedName": "ansi-regex", - "name": "ansi-regex", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/has-ansi" - ] - ], - "_from": "ansi-regex@>=2.0.0 <3.0.0", + "_from": "ansi-regex@^2.0.0", "_id": "ansi-regex@2.1.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "_location": "/ansi-regex", - "_nodeVersion": "0.10.32", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/ansi-regex-2.1.1.tgz_1484363378013_0.4482989883981645" - }, - "_npmUser": { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - "_npmVersion": "2.14.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "ansi-regex@^2.0.0", - "scope": null, - "escapedName": "ansi-regex", "name": "ansi-regex", + "escapedName": "ansi-regex", "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/has-ansi", @@ -43,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df", - "_shrinkwrap": null, "_spec": "ansi-regex@^2.0.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/has-ansi", "author": { @@ -54,24 +31,19 @@ "bugs": { "url": "https://github.com/chalk/ansi-regex/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Regular expression for matching ANSI escape codes", "devDependencies": { "ava": "0.17.0", "xo": "0.16.0" }, - "directories": {}, - "dist": { - "shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df", - "tarball": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "7c908e7b4eb6cd82bfe1295e33fdf6d166c7ed85", "homepage": "https://github.com/chalk/ansi-regex#readme", "keywords": [ "ansi", @@ -119,9 +91,6 @@ } ], "name": "ansi-regex", - "optionalDependencies": {}, - "readme": "# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)\n\n> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```\n$ npm install --save ansi-regex\n```\n\n\n## Usage\n\n```js\nconst ansiRegex = require('ansi-regex');\n\nansiRegex().test('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nansiRegex().test('cake');\n//=> false\n\n'\\u001b[4mcake\\u001b[0m'.match(ansiRegex());\n//=> ['\\u001b[4m', '\\u001b[0m']\n```\n\n## FAQ\n\n### Why do you test for codes not in the ECMA 48 standard?\n\nSome of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.\n\nOn the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of \"interrupts\" that can mean different things on certain brands of processors, most of which have been phased out.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/chalk/ansi-regex.git" diff --git a/node_modules/nyc/node_modules/ansi-styles/package.json b/node_modules/nyc/node_modules/ansi-styles/package.json index c22d9fb02..6d26b3647 100644 --- a/node_modules/nyc/node_modules/ansi-styles/package.json +++ b/node_modules/nyc/node_modules/ansi-styles/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "ansi-styles@^2.2.1", - "scope": null, - "escapedName": "ansi-styles", - "name": "ansi-styles", - "rawSpec": "^2.2.1", - "spec": ">=2.2.1 <3.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/chalk" - ] - ], - "_from": "ansi-styles@>=2.2.1 <3.0.0", + "_from": "ansi-styles@^2.2.1", "_id": "ansi-styles@2.2.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "_location": "/ansi-styles", - "_nodeVersion": "4.3.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/ansi-styles-2.2.1.tgz_1459197317833_0.9694824463222176" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.8.3", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "ansi-styles@^2.2.1", - "scope": null, - "escapedName": "ansi-styles", "name": "ansi-styles", + "escapedName": "ansi-styles", "rawSpec": "^2.2.1", - "spec": ">=2.2.1 <3.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^2.2.1" }, "_requiredBy": [ "/chalk" ], "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "_shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe", - "_shrinkwrap": null, "_spec": "ansi-styles@^2.2.1", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/chalk", "author": { @@ -53,23 +30,18 @@ "bugs": { "url": "https://github.com/chalk/ansi-styles/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "ANSI escape codes for styling strings in the terminal", "devDependencies": { "mocha": "*" }, - "directories": {}, - "dist": { - "shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe", - "tarball": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "95c59b23be760108b6530ca1c89477c21b258032", "homepage": "https://github.com/chalk/ansi-styles#readme", "keywords": [ "ansi", @@ -107,9 +79,6 @@ } ], "name": "ansi-styles", - "optionalDependencies": {}, - "readme": "# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)\n\n> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal\n\nYou probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.\n\n![](screenshot.png)\n\n\n## Install\n\n```\n$ npm install --save ansi-styles\n```\n\n\n## Usage\n\n```js\nvar ansi = require('ansi-styles');\n\nconsole.log(ansi.green.open + 'Hello world!' + ansi.green.close);\n```\n\n\n## API\n\nEach style has an `open` and `close` property.\n\n\n## Styles\n\n### Modifiers\n\n- `reset`\n- `bold`\n- `dim`\n- `italic` *(not widely supported)*\n- `underline`\n- `inverse`\n- `hidden`\n- `strikethrough` *(not widely supported)*\n\n### Colors\n\n- `black`\n- `red`\n- `green`\n- `yellow`\n- `blue`\n- `magenta`\n- `cyan`\n- `white`\n- `gray`\n\n### Background colors\n\n- `bgBlack`\n- `bgRed`\n- `bgGreen`\n- `bgYellow`\n- `bgBlue`\n- `bgMagenta`\n- `bgCyan`\n- `bgWhite`\n\n\n## Advanced usage\n\nBy default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.\n\n- `ansi.modifiers`\n- `ansi.colors`\n- `ansi.bgColors`\n\n\n###### Example\n\n```js\nconsole.log(ansi.colors.green.open);\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/chalk/ansi-styles.git" diff --git a/node_modules/nyc/node_modules/append-transform/package.json b/node_modules/nyc/node_modules/append-transform/package.json index 8404fbd52..52ffc046c 100644 --- a/node_modules/nyc/node_modules/append-transform/package.json +++ b/node_modules/nyc/node_modules/append-transform/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "append-transform@^0.4.0", - "scope": null, - "escapedName": "append-transform", - "name": "append-transform", - "rawSpec": "^0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-hook" - ] - ], - "_from": "append-transform@>=0.4.0 <0.5.0", + "_from": "append-transform@^0.4.0", "_id": "append-transform@0.4.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", "_location": "/append-transform", - "_nodeVersion": "0.10.40", - "_npmUser": { - "name": "jamestalmage", - "email": "james@talmage.io" - }, - "_npmVersion": "3.4.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "append-transform@^0.4.0", - "scope": null, - "escapedName": "append-transform", "name": "append-transform", + "escapedName": "append-transform", "rawSpec": "^0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^0.4.0" }, "_requiredBy": [ "/istanbul-lib-hook" ], "_resolved": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz", "_shasum": "d76ebf8ca94d276e247a36bad44a4b74ab611991", - "_shrinkwrap": null, "_spec": "append-transform@^0.4.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-hook", "author": { @@ -49,9 +30,11 @@ "bugs": { "url": "https://github.com/jamestalmage/append-transform/issues" }, + "bundleDependencies": false, "dependencies": { "default-require-extensions": "^1.0.0" }, + "deprecated": false, "description": "Install a transform to `require.extensions` that always runs last, even if additional extensions are added later.", "devDependencies": { "ava": "^0.7.0", @@ -60,18 +43,12 @@ "nyc": "^4.0.1", "xo": "^0.11.2" }, - "directories": {}, - "dist": { - "shasum": "d76ebf8ca94d276e247a36bad44a4b74ab611991", - "tarball": "https://registry.npmjs.org/append-transform/-/append-transform-0.4.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "0b737d26fdebbdfb8ed4be096535099ed7da9ab1", "homepage": "https://github.com/jamestalmage/append-transform#readme", "keywords": [ "transform", @@ -84,16 +61,7 @@ "module" ], "license": "MIT", - "maintainers": [ - { - "name": "jamestalmage", - "email": "james@talmage.io" - } - ], "name": "append-transform", - "optionalDependencies": {}, - "readme": "# append-transform [![Build Status](https://travis-ci.org/jamestalmage/append-transform.svg?branch=master)](https://travis-ci.org/jamestalmage/append-transform) [![Coverage Status](https://coveralls.io/repos/jamestalmage/append-transform/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/append-transform?branch=master)\n\n> Install a transform to `require.extensions` that always runs last, even if additional extensions are added later.\n\nThe [typical require extension](https://gist.github.com/jamestalmage/df922691475cff66c7e6) looks something like this:\n\n```js\n var myTransform = require('my-transform');\n \n var oldExtension = require.extensions['.js'];\n require.extensions['.js'] = function (module, filename) {\n var oldCompile = module._compile;\n module._compile = function (code, filename) {\n code = myTransform(code);\n module._compile = oldCompile;\n module._compile(code, filename);\n }; \n oldExtension(module, filename);\n };\n```\n\nIn **almost** all cases, that is sufficient and is the method that should be used (check out [`pirates`](https://www.npmjs.com/package/pirates) for an easy way to do it correctly). In **rare** cases you must ensure your transform remains the last one, even if other transforms are added later. For example, `nyc` uses this module to ensure its transform is applied last so it can capture the final source-map information, and ensure any language extensions it can't understand are already transpiled (ES2015 via `babel` for instance).\n\n*WARNING:* You should be sure you *actually* need this, as it takes control away from the user. Your transform remains the last one applied, even as users continue to add more transforms. This is potentially confusing. Coverage libraries like `nyc` (and `istanbul` on which it relies) have valid reasons for doing this, but you should prefer conventional transform installation via [`pirates`](https://www.npmjs.com/package/pirates).\n\nReferences: \n - [Detailed Breakdown of How Require Extensions Work](https://gist.github.com/jamestalmage/df922691475cff66c7e6)\n - The [test suite](https://github.com/jamestalmage/append-transform/blob/master/test/execution-order.js) provides a good overview of how this library manipulates the order in which transforms are applied.\n\n## Install\n\n```\n$ npm install --save append-transform\n```\n\n\n## Usage\n\n```js\nvar appendTransform = require('append-transform');\nvar myTransform = require('my-transform');\n\nappendTransform(function (code, filename) {\n if (myTransform.shouldTransform(filename)) {\n code = myTransform.transform(code);\n }\n return code;\n});\n```\n\n## API\n\n### appendTransform(transformFn, [extension])\n\n#### transformFn\n\nType: `function(code: string, filename: string)` \n*Required*\n\nA callback that modifies the incoming `code` argument in some way, and returns the transformed result. `filename` is provided to filter which files the transform applies to. If a transform should not manipulate a particular file, just return `code` without modifying it. It is fairly common to avoid transforming files in `node_modules`. In that case you may want to use [`node-modules-regexp`](https://www.npmjs.com/package/node-modules-regexp) to help reliably detect `node_modules` paths and avoid transforming them.\n\n\n#### extension\n\nType: `string` \nDefault: `\".js\"`\n\nThe extension for the types of files this transform is capable of handling.\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/jamestalmage/append-transform.git" diff --git a/node_modules/nyc/node_modules/archy/package.json b/node_modules/nyc/node_modules/archy/package.json index 246b8ea75..adad232aa 100644 --- a/node_modules/nyc/node_modules/archy/package.json +++ b/node_modules/nyc/node_modules/archy/package.json @@ -1,43 +1,25 @@ { - "_args": [ - [ - { - "raw": "archy@^1.0.0", - "scope": null, - "escapedName": "archy", - "name": "archy", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc" - ] - ], - "_from": "archy@>=1.0.0 <2.0.0", + "_from": "archy@^1.0.0", "_id": "archy@1.0.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "_location": "/archy", - "_npmUser": { - "name": "substack", - "email": "mail@substack.net" - }, - "_npmVersion": "1.4.25", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "archy@^1.0.0", - "scope": null, - "escapedName": "archy", "name": "archy", + "escapedName": "archy", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", "_shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", - "_shrinkwrap": null, "_spec": "archy@^1.0.0", "_where": "/Users/benjamincoe/bcoe/nyc", "author": { @@ -48,18 +30,13 @@ "bugs": { "url": "https://github.com/substack/node-archy/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "render nested hierarchies `npm ls` style with unicode pipes", "devDependencies": { "tap": "~0.3.3", "tape": "~0.1.1" }, - "directories": {}, - "dist": { - "shasum": "f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40", - "tarball": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz" - }, - "gitHead": "30223c16191e877bf027b15b12daf077b9b55b84", "homepage": "https://github.com/substack/node-archy#readme", "keywords": [ "hierarchy", @@ -70,16 +47,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - } - ], "name": "archy", - "optionalDependencies": {}, - "readme": "# archy\n\nRender nested hierarchies `npm ls` style with unicode pipes.\n\n[![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy)\n\n[![build status](https://secure.travis-ci.org/substack/node-archy.png)](http://travis-ci.org/substack/node-archy)\n\n# example\n\n``` js\nvar archy = require('archy');\nvar s = archy({\n label : 'beep',\n nodes : [\n 'ity',\n {\n label : 'boop',\n nodes : [\n {\n label : 'o_O',\n nodes : [\n {\n label : 'oh',\n nodes : [ 'hello', 'puny' ]\n },\n 'human'\n ]\n },\n 'party\\ntime!'\n ]\n }\n ]\n});\nconsole.log(s);\n```\n\noutput\n\n```\nbeep\n├── ity\n└─┬ boop\n ├─┬ o_O\n │ ├─┬ oh\n │ │ ├── hello\n │ │ └── puny\n │ └── human\n └── party\n time!\n```\n\n# methods\n\nvar archy = require('archy')\n\n## archy(obj, prefix='', opts={})\n\nReturn a string representation of `obj` with unicode pipe characters like how\n`npm ls` looks.\n\n`obj` should be a tree of nested objects with `'label'` and `'nodes'` fields.\n`'label'` is a string of text to display at a node level and `'nodes'` is an\narray of the descendents of the current node.\n\nIf a node is a string, that string will be used as the `'label'` and an empty\narray of `'nodes'` will be used.\n\n`prefix` gets prepended to all the lines and is used by the algorithm to\nrecursively update.\n\nIf `'label'` has newlines they will be indented at the present indentation level\nwith the current prefix.\n\nTo disable unicode results in favor of all-ansi output set `opts.unicode` to\n`false`.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install archy\n```\n\n# license\n\nMIT\n", - "readmeFilename": "readme.markdown", "repository": { "type": "git", "url": "git+ssh://git@github.com/substack/node-archy.git" diff --git a/node_modules/nyc/node_modules/arr-diff/package.json b/node_modules/nyc/node_modules/arr-diff/package.json index a7819d3a4..b582897da 100644 --- a/node_modules/nyc/node_modules/arr-diff/package.json +++ b/node_modules/nyc/node_modules/arr-diff/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "arr-diff@^2.0.0", - "scope": null, - "escapedName": "arr-diff", - "name": "arr-diff", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch" - ] - ], - "_from": "arr-diff@>=2.0.0 <3.0.0", + "_from": "arr-diff@^2.0.0", "_id": "arr-diff@2.0.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "_location": "/arr-diff", - "_nodeVersion": "5.0.0", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.3.6", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "arr-diff@^2.0.0", - "scope": null, - "escapedName": "arr-diff", "name": "arr-diff", + "escapedName": "arr-diff", "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/micromatch" ], "_resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", "_shasum": "8f3b827f955a8bd669697e4a4256ac3ceae356cf", - "_shrinkwrap": null, "_spec": "arr-diff@^2.0.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch", "author": { @@ -48,9 +29,11 @@ "bugs": { "url": "https://github.com/jonschlinkert/arr-diff/issues" }, + "bundleDependencies": false, "dependencies": { "arr-flatten": "^1.0.1" }, + "deprecated": false, "description": "Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.", "devDependencies": { "array-differ": "^1.0.0", @@ -60,18 +43,12 @@ "mocha": "*", "should": "*" }, - "directories": {}, - "dist": { - "shasum": "8f3b827f955a8bd669697e4a4256ac3ceae356cf", - "tarball": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "b89f54eb88ca51afd0e0ea6be9a4a63e5ccecf27", "homepage": "https://github.com/jonschlinkert/arr-diff", "keywords": [ "arr", @@ -82,24 +59,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "paulmillr", - "email": "paul@paulmillr.com" - } - ], "name": "arr-diff", - "optionalDependencies": {}, - "readme": "# arr-diff [![NPM version](https://img.shields.io/npm/v/arr-diff.svg)](https://www.npmjs.com/package/arr-diff) [![Build Status](https://img.shields.io/travis/jonschlinkert/base.svg)](https://travis-ci.org/jonschlinkert/base)\n\n> Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i arr-diff --save\n```\nInstall with [bower](http://bower.io/)\n\n```sh\n$ bower install arr-diff --save\n```\n\n## API\n\n### [diff](index.js#L33)\n\nReturn the difference between the first array and additional arrays.\n\n**Params**\n\n* `a` **{Array}**\n* `b` **{Array}**\n* `returns` **{Array}**\n\n**Example**\n\n```js\nvar diff = require('arr-diff');\n\nvar a = ['a', 'b', 'c', 'd'];\nvar b = ['b', 'c'];\n\nconsole.log(diff(a, b))\n//=> ['a', 'd']\n```\n\n## Related projects\n\n* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten)\n* [array-filter](https://www.npmjs.com/package/array-filter): Array#filter for older browsers. | [homepage](https://github.com/juliangruber/array-filter)\n* [array-intersection](https://www.npmjs.com/package/array-intersection): Return an array with the unique values present in _all_ given arrays using strict equality… [more](https://www.npmjs.com/package/array-intersection) | [homepage](https://github.com/jonschlinkert/array-intersection)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/arr-diff/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on Sat Dec 05 2015 23:24:53 GMT-0500 (EST)._\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/arr-diff.git" diff --git a/node_modules/nyc/node_modules/arr-flatten/package.json b/node_modules/nyc/node_modules/arr-flatten/package.json index e663c62fb..e41356c3b 100644 --- a/node_modules/nyc/node_modules/arr-flatten/package.json +++ b/node_modules/nyc/node_modules/arr-flatten/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "arr-flatten@^1.0.1", - "scope": null, - "escapedName": "arr-flatten", - "name": "arr-flatten", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/arr-diff" - ] - ], - "_from": "arr-flatten@>=1.0.1 <2.0.0", + "_from": "arr-flatten@^1.0.1", "_id": "arr-flatten@1.1.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "_location": "/arr-flatten", - "_nodeVersion": "7.7.3", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/arr-flatten-1.1.0.tgz_1499280630530_0.4138362631201744" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "5.0.4", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "arr-flatten@^1.0.1", - "scope": null, - "escapedName": "arr-flatten", "name": "arr-flatten", + "escapedName": "arr-flatten", "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.1" }, "_requiredBy": [ "/arr-diff" ], "_resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", "_shasum": "36048bbff4e7b47e136644316c99669ea5ae91f1", - "_shrinkwrap": null, "_spec": "arr-flatten@^1.0.1", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/arr-diff", "author": { @@ -52,6 +29,7 @@ "bugs": { "url": "https://github.com/jonschlinkert/arr-flatten/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "Jon Schlinkert", @@ -62,7 +40,7 @@ "url": "https://lukeed.com" } ], - "dependencies": {}, + "deprecated": false, "description": "Recursively flatten an array or arrays.", "devDependencies": { "ansi-bold": "^0.1.1", @@ -82,19 +60,12 @@ "utils-flatten": "^1.0.0", "write": "^0.3.3" }, - "directories": {}, - "dist": { - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "shasum": "36048bbff4e7b47e136644316c99669ea5ae91f1", - "tarball": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "76a1ae28b03fdb1cbe5d49fa521bc4807b9f94d3", "homepage": "https://github.com/jonschlinkert/arr-flatten", "keywords": [ "arr", @@ -109,16 +80,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], "name": "arr-flatten", - "optionalDependencies": {}, - "readme": "# arr-flatten [![NPM version](https://img.shields.io/npm/v/arr-flatten.svg?style=flat)](https://www.npmjs.com/package/arr-flatten) [![NPM monthly downloads](https://img.shields.io/npm/dm/arr-flatten.svg?style=flat)](https://npmjs.org/package/arr-flatten) [![NPM total downloads](https://img.shields.io/npm/dt/arr-flatten.svg?style=flat)](https://npmjs.org/package/arr-flatten) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/arr-flatten.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/arr-flatten) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/arr-flatten.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/arr-flatten)\n\n> Recursively flatten an array or arrays.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save arr-flatten\n```\n\n## Install\n\nInstall with [bower](https://bower.io/)\n\n```sh\n$ bower install arr-flatten --save\n```\n\n## Usage\n\n```js\nvar flatten = require('arr-flatten');\n\nflatten(['a', ['b', ['c']], 'd', ['e']]);\n//=> ['a', 'b', 'c', 'd', 'e']\n```\n\n## Why another flatten utility?\n\nI wanted the fastest implementation I could find, with implementation choices that should work for 95% of use cases, but no cruft to cover the other 5%.\n\n## About\n\n### Related projects\n\n* [arr-filter](https://www.npmjs.com/package/arr-filter): Faster alternative to javascript's native filter method. | [homepage](https://github.com/jonschlinkert/arr-filter \"Faster alternative to javascript's native filter method.\")\n* [arr-union](https://www.npmjs.com/package/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality… [more](https://github.com/jonschlinkert/arr-union) | [homepage](https://github.com/jonschlinkert/arr-union \"Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons.\")\n* [array-each](https://www.npmjs.com/package/array-each): Loop over each item in an array and call the given function on every element. | [homepage](https://github.com/jonschlinkert/array-each \"Loop over each item in an array and call the given function on every element.\")\n* [array-unique](https://www.npmjs.com/package/array-unique): Remove duplicate values from an array. Fastest ES5 implementation. | [homepage](https://github.com/jonschlinkert/array-unique \"Remove duplicate values from an array. Fastest ES5 implementation.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 20 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [lukeed](https://github.com/lukeed) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 05, 2017._", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/arr-flatten.git" diff --git a/node_modules/nyc/node_modules/array-unique/package.json b/node_modules/nyc/node_modules/array-unique/package.json index d209176fb..49372613b 100755 --- a/node_modules/nyc/node_modules/array-unique/package.json +++ b/node_modules/nyc/node_modules/array-unique/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "array-unique@^0.2.1", - "scope": null, - "escapedName": "array-unique", - "name": "array-unique", - "rawSpec": "^0.2.1", - "spec": ">=0.2.1 <0.3.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch" - ] - ], - "_from": "array-unique@>=0.2.1 <0.3.0", + "_from": "array-unique@^0.2.1", "_id": "array-unique@0.2.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", "_location": "/array-unique", - "_nodeVersion": "1.6.2", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "2.7.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "array-unique@^0.2.1", - "scope": null, - "escapedName": "array-unique", "name": "array-unique", + "escapedName": "array-unique", "rawSpec": "^0.2.1", - "spec": ">=0.2.1 <0.3.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^0.2.1" }, "_requiredBy": [ "/micromatch" ], "_resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", "_shasum": "a1d97ccafcbc2625cc70fadceb36a50c58b01a53", - "_shrinkwrap": null, "_spec": "array-unique@^0.2.1", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch", "author": { @@ -48,7 +29,8 @@ "bugs": { "url": "https://github.com/jonschlinkert/array-unique/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Return an array free of duplicate values. Fastest ES5 implementation.", "devDependencies": { "array-uniq": "^1.0.2", @@ -56,34 +38,19 @@ "mocha": "*", "should": "*" }, - "directories": {}, - "dist": { - "shasum": "a1d97ccafcbc2625cc70fadceb36a50c58b01a53", - "tarball": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "36fde8e586fb7cf880b8b3aa6515df889e64ed85", "homepage": "https://github.com/jonschlinkert/array-unique", "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/array-unique/blob/master/LICENSE" }, "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], "name": "array-unique", - "optionalDependencies": {}, - "readme": "# array-unique [![NPM version](https://badge.fury.io/js/array-unique.svg)](http://badge.fury.io/js/array-unique) [![Build Status](https://travis-ci.org/jonschlinkert/array-unique.svg)](https://travis-ci.org/jonschlinkert/array-unique) \n\n> Return an array free of duplicate values. Fastest ES5 implementation.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i array-unique --save\n```\n\n## Usage\n\n```js\nvar unique = require('array-unique');\n\nunique(['a', 'b', 'c', 'c']);\n//=> ['a', 'b', 'c']\n```\n\n## Related\n* [arr-diff](https://github.com/jonschlinkert/arr-diff): Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.\n* [arr-union](https://github.com/jonschlinkert/arr-union): Returns an array of unique values using strict equality for comparisons.\n* [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten.\n* [arr-reduce](https://github.com/jonschlinkert/arr-reduce): Fast array reduce that also loops over sparse elements.\n* [arr-map](https://github.com/jonschlinkert/arr-map): Faster, node.js focused alternative to JavaScript's native array map.\n* [arr-pluck](https://github.com/jonschlinkert/arr-pluck): Retrieves the value of a specified property from all elements in the collection.\n\n## Run tests\nInstall dev dependencies.\n\n```bash\nnpm i -d && npm test\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-unique/issues)\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 24, 2015._", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/jonschlinkert/array-unique.git" diff --git a/node_modules/nyc/node_modules/arrify/package.json b/node_modules/nyc/node_modules/arrify/package.json index f06a6be54..d7a40821f 100644 --- a/node_modules/nyc/node_modules/arrify/package.json +++ b/node_modules/nyc/node_modules/arrify/package.json @@ -1,37 +1,19 @@ { - "_args": [ - [ - { - "raw": "arrify@^1.0.1", - "scope": null, - "escapedName": "arrify", - "name": "arrify", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc" - ] - ], - "_from": "arrify@>=1.0.1 <2.0.0", + "_from": "arrify@^1.0.1", "_id": "arrify@1.0.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "_location": "/arrify", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.5.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "arrify@^1.0.1", - "scope": null, - "escapedName": "arrify", "name": "arrify", + "escapedName": "arrify", "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.1" }, "_requiredBy": [ "/", @@ -39,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "_shasum": "898508da2226f380df904728456849c1501a4b0d", - "_shrinkwrap": null, "_spec": "arrify@^1.0.1", "_where": "/Users/benjamincoe/bcoe/nyc", "author": { @@ -50,24 +31,19 @@ "bugs": { "url": "https://github.com/sindresorhus/arrify/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Convert a value to an array", "devDependencies": { "ava": "*", "xo": "*" }, - "directories": {}, - "dist": { - "shasum": "898508da2226f380df904728456849c1501a4b0d", - "tarball": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "087edee1a58d5adaac6cae5a107886121ef43783", "homepage": "https://github.com/sindresorhus/arrify#readme", "keywords": [ "array", @@ -78,16 +54,7 @@ "value" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "arrify", - "optionalDependencies": {}, - "readme": "# arrify [![Build Status](https://travis-ci.org/sindresorhus/arrify.svg?branch=master)](https://travis-ci.org/sindresorhus/arrify)\n\n> Convert a value to an array\n\n\n## Install\n\n```\n$ npm install --save arrify\n```\n\n\n## Usage\n\n```js\nconst arrify = require('arrify');\n\narrify('unicorn');\n//=> ['unicorn']\n\narrify(['unicorn']);\n//=> ['unicorn']\n\narrify(null);\n//=> []\n\narrify(undefined);\n//=> []\n```\n\n*Supplying `null` or `undefined` results in an empty array.*\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/arrify.git" diff --git a/node_modules/nyc/node_modules/async/package.json b/node_modules/nyc/node_modules/async/package.json index 9937cc493..be00749ee 100644 --- a/node_modules/nyc/node_modules/async/package.json +++ b/node_modules/nyc/node_modules/async/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "async@^1.4.0", - "scope": null, - "escapedName": "async", - "name": "async", - "rawSpec": "^1.4.0", - "spec": ">=1.4.0 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/handlebars" - ] - ], - "_from": "async@>=1.4.0 <2.0.0", + "_from": "async@^1.4.0", "_id": "async@1.5.2", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "_location": "/async", - "_nodeVersion": "4.2.3", - "_npmUser": { - "name": "aearly", - "email": "alexander.early@gmail.com" - }, - "_npmVersion": "3.5.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "async@^1.4.0", - "scope": null, - "escapedName": "async", "name": "async", + "escapedName": "async", "rawSpec": "^1.4.0", - "spec": ">=1.4.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.4.0" }, "_requiredBy": [ "/handlebars" ], "_resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "_shasum": "ec6a61ae56480c0c3cb241c95618e20892f9672a", - "_shrinkwrap": null, "_spec": "async@^1.4.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/handlebars", "author": { @@ -47,7 +28,8 @@ "bugs": { "url": "https://github.com/caolan/async/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Higher-order functions and common patterns for asynchronous code", "devDependencies": { "benchmark": "github:bestiejs/benchmark.js", @@ -74,17 +56,11 @@ "xyz": "^0.5.0", "yargs": "~3.9.1" }, - "directories": {}, - "dist": { - "shasum": "ec6a61ae56480c0c3cb241c95618e20892f9672a", - "tarball": "https://registry.npmjs.org/async/-/async-1.5.2.tgz" - }, "files": [ "lib", "dist/async.js", "dist/async.min.js" ], - "gitHead": "9ab5c67b7cb3a4c3dad4a2d4552a2f6775545d6c", "homepage": "https://github.com/caolan/async#readme", "jam": { "main": "lib/async.js", @@ -105,28 +81,7 @@ ], "license": "MIT", "main": "lib/async.js", - "maintainers": [ - { - "name": "caolan", - "email": "caolan.mcmahon@gmail.com" - }, - { - "name": "beaugunderson", - "email": "beau@beaugunderson.com" - }, - { - "name": "aearly", - "email": "alexander.early@gmail.com" - }, - { - "name": "megawac", - "email": "megawac@gmail.com" - } - ], "name": "async", - "optionalDependencies": {}, - "readme": "# Async.js\n\n[![Build Status via Travis CI](https://travis-ci.org/caolan/async.svg?branch=master)](https://travis-ci.org/caolan/async)\n[![NPM version](http://img.shields.io/npm/v/async.svg)](https://www.npmjs.org/package/async)\n[![Coverage Status](https://coveralls.io/repos/caolan/async/badge.svg?branch=master)](https://coveralls.io/r/caolan/async?branch=master)\n[![Join the chat at https://gitter.im/caolan/async](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/caolan/async?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n\nAsync is a utility module which provides straight-forward, powerful functions\nfor working with asynchronous JavaScript. Although originally designed for\nuse with [Node.js](http://nodejs.org) and installable via `npm install async`,\nit can also be used directly in the browser.\n\nAsync is also installable via:\n\n- [bower](http://bower.io/): `bower install async`\n- [component](https://github.com/component/component): `component install\n caolan/async`\n- [jam](http://jamjs.org/): `jam install async`\n- [spm](http://spmjs.io/): `spm install async`\n\nAsync provides around 20 functions that include the usual 'functional'\nsuspects (`map`, `reduce`, `filter`, `each`…) as well as some common patterns\nfor asynchronous control flow (`parallel`, `series`, `waterfall`…). All these\nfunctions assume you follow the Node.js convention of providing a single\ncallback as the last argument of your `async` function.\n\n\n## Quick Examples\n\n```javascript\nasync.map(['file1','file2','file3'], fs.stat, function(err, results){\n // results is now an array of stats for each file\n});\n\nasync.filter(['file1','file2','file3'], fs.exists, function(results){\n // results now equals an array of the existing files\n});\n\nasync.parallel([\n function(){ ... },\n function(){ ... }\n], callback);\n\nasync.series([\n function(){ ... },\n function(){ ... }\n]);\n```\n\nThere are many more functions available so take a look at the docs below for a\nfull list. This module aims to be comprehensive, so if you feel anything is\nmissing please create a GitHub issue for it.\n\n## Common Pitfalls [(StackOverflow)](http://stackoverflow.com/questions/tagged/async.js)\n### Synchronous iteration functions\n\nIf you get an error like `RangeError: Maximum call stack size exceeded.` or other stack overflow issues when using async, you are likely using a synchronous iterator. By *synchronous* we mean a function that calls its callback on the same tick in the javascript event loop, without doing any I/O or using any timers. Calling many callbacks iteratively will quickly overflow the stack. If you run into this issue, just defer your callback with `async.setImmediate` to start a new call stack on the next tick of the event loop.\n\nThis can also arise by accident if you callback early in certain cases:\n\n```js\nasync.eachSeries(hugeArray, function iterator(item, callback) {\n if (inCache(item)) {\n callback(null, cache[item]); // if many items are cached, you'll overflow\n } else {\n doSomeIO(item, callback);\n }\n}, function done() {\n //...\n});\n```\n\nJust change it to:\n\n```js\nasync.eachSeries(hugeArray, function iterator(item, callback) {\n if (inCache(item)) {\n async.setImmediate(function () {\n callback(null, cache[item]);\n });\n } else {\n doSomeIO(item, callback);\n //...\n```\n\nAsync guards against synchronous functions in some, but not all, cases. If you are still running into stack overflows, you can defer as suggested above, or wrap functions with [`async.ensureAsync`](#ensureAsync) Functions that are asynchronous by their nature do not have this problem and don't need the extra callback deferral.\n\nIf JavaScript's event loop is still a bit nebulous, check out [this article](http://blog.carbonfive.com/2013/10/27/the-javascript-event-loop-explained/) or [this talk](http://2014.jsconf.eu/speakers/philip-roberts-what-the-heck-is-the-event-loop-anyway.html) for more detailed information about how it works.\n\n\n### Multiple callbacks\n\nMake sure to always `return` when calling a callback early, otherwise you will cause multiple callbacks and unpredictable behavior in many cases.\n\n```js\nasync.waterfall([\n function (callback) {\n getSomething(options, function (err, result) {\n if (err) {\n callback(new Error(\"failed getting something:\" + err.message));\n // we should return here\n }\n // since we did not return, this callback still will be called and\n // `processData` will be called twice\n callback(null, result);\n });\n },\n processData\n], done)\n```\n\nIt is always good practice to `return callback(err, result)` whenever a callback call is not the last statement of a function.\n\n\n### Binding a context to an iterator\n\nThis section is really about `bind`, not about `async`. If you are wondering how to\nmake `async` execute your iterators in a given context, or are confused as to why\na method of another library isn't working as an iterator, study this example:\n\n```js\n// Here is a simple object with an (unnecessarily roundabout) squaring method\nvar AsyncSquaringLibrary = {\n squareExponent: 2,\n square: function(number, callback){\n var result = Math.pow(number, this.squareExponent);\n setTimeout(function(){\n callback(null, result);\n }, 200);\n }\n};\n\nasync.map([1, 2, 3], AsyncSquaringLibrary.square, function(err, result){\n // result is [NaN, NaN, NaN]\n // This fails because the `this.squareExponent` expression in the square\n // function is not evaluated in the context of AsyncSquaringLibrary, and is\n // therefore undefined.\n});\n\nasync.map([1, 2, 3], AsyncSquaringLibrary.square.bind(AsyncSquaringLibrary), function(err, result){\n // result is [1, 4, 9]\n // With the help of bind we can attach a context to the iterator before\n // passing it to async. Now the square function will be executed in its\n // 'home' AsyncSquaringLibrary context and the value of `this.squareExponent`\n // will be as expected.\n});\n```\n\n## Download\n\nThe source is available for download from\n[GitHub](https://github.com/caolan/async/blob/master/lib/async.js).\nAlternatively, you can install using Node Package Manager (`npm`):\n\n npm install async\n\nAs well as using Bower:\n\n bower install async\n\n__Development:__ [async.js](https://github.com/caolan/async/raw/master/lib/async.js) - 29.6kb Uncompressed\n\n## In the Browser\n\nSo far it's been tested in IE6, IE7, IE8, FF3.6 and Chrome 5.\n\nUsage:\n\n```html\n\n\n```\n\n## Documentation\n\nSome functions are also available in the following forms:\n* `Series` - the same as `` but runs only a single async operation at a time\n* `Limit` - the same as `` but runs a maximum of `limit` async operations at a time\n\n### Collections\n\n* [`each`](#each), `eachSeries`, `eachLimit`\n* [`forEachOf`](#forEachOf), `forEachOfSeries`, `forEachOfLimit`\n* [`map`](#map), `mapSeries`, `mapLimit`\n* [`filter`](#filter), `filterSeries`, `filterLimit`\n* [`reject`](#reject), `rejectSeries`, `rejectLimit`\n* [`reduce`](#reduce), [`reduceRight`](#reduceRight)\n* [`detect`](#detect), `detectSeries`, `detectLimit`\n* [`sortBy`](#sortBy)\n* [`some`](#some), `someLimit`\n* [`every`](#every), `everyLimit`\n* [`concat`](#concat), `concatSeries`\n\n### Control Flow\n\n* [`series`](#seriestasks-callback)\n* [`parallel`](#parallel), `parallelLimit`\n* [`whilst`](#whilst), [`doWhilst`](#doWhilst)\n* [`until`](#until), [`doUntil`](#doUntil)\n* [`during`](#during), [`doDuring`](#doDuring)\n* [`forever`](#forever)\n* [`waterfall`](#waterfall)\n* [`compose`](#compose)\n* [`seq`](#seq)\n* [`applyEach`](#applyEach), `applyEachSeries`\n* [`queue`](#queue), [`priorityQueue`](#priorityQueue)\n* [`cargo`](#cargo)\n* [`auto`](#auto)\n* [`retry`](#retry)\n* [`iterator`](#iterator)\n* [`times`](#times), `timesSeries`, `timesLimit`\n\n### Utils\n\n* [`apply`](#apply)\n* [`nextTick`](#nextTick)\n* [`memoize`](#memoize)\n* [`unmemoize`](#unmemoize)\n* [`ensureAsync`](#ensureAsync)\n* [`constant`](#constant)\n* [`asyncify`](#asyncify)\n* [`wrapSync`](#wrapSync)\n* [`log`](#log)\n* [`dir`](#dir)\n* [`noConflict`](#noConflict)\n\n## Collections\n\n\n\n### each(arr, iterator, [callback])\n\nApplies the function `iterator` to each item in `arr`, in parallel.\nThe `iterator` is called with an item from the list, and a callback for when it\nhas finished. If the `iterator` passes an error to its `callback`, the main\n`callback` (for the `each` function) is immediately called with the error.\n\nNote, that since this function applies `iterator` to each item in parallel,\nthere is no guarantee that the iterator functions will complete in order.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A function to apply to each item in `arr`.\n The iterator is passed a `callback(err)` which must be called once it has\n completed. If no error has occurred, the `callback` should be run without\n arguments or with an explicit `null` argument. The array index is not passed\n to the iterator. If you need the index, use [`forEachOf`](#forEachOf).\n* `callback(err)` - *Optional* A callback which is called when all `iterator` functions\n have finished, or an error occurs.\n\n__Examples__\n\n\n```js\n// assuming openFiles is an array of file names and saveFile is a function\n// to save the modified contents of that file:\n\nasync.each(openFiles, saveFile, function(err){\n // if any of the saves produced an error, err would equal that error\n});\n```\n\n```js\n// assuming openFiles is an array of file names\n\nasync.each(openFiles, function(file, callback) {\n\n // Perform operation on file here.\n console.log('Processing file ' + file);\n\n if( file.length > 32 ) {\n console.log('This file name is too long');\n callback('File name too long');\n } else {\n // Do work to process file here\n console.log('File processed');\n callback();\n }\n}, function(err){\n // if any of the file processing produced an error, err would equal that error\n if( err ) {\n // One of the iterations produced an error.\n // All processing will now stop.\n console.log('A file failed to process');\n } else {\n console.log('All files have been processed successfully');\n }\n});\n```\n\n__Related__\n\n* eachSeries(arr, iterator, [callback])\n* eachLimit(arr, limit, iterator, [callback])\n\n---------------------------------------\n\n\n\n\n### forEachOf(obj, iterator, [callback])\n\nLike `each`, except that it iterates over objects, and passes the key as the second argument to the iterator.\n\n__Arguments__\n\n* `obj` - An object or array to iterate over.\n* `iterator(item, key, callback)` - A function to apply to each item in `obj`.\nThe `key` is the item's key, or index in the case of an array. The iterator is\npassed a `callback(err)` which must be called once it has completed. If no\nerror has occurred, the callback should be run without arguments or with an\nexplicit `null` argument.\n* `callback(err)` - *Optional* A callback which is called when all `iterator` functions have finished, or an error occurs.\n\n__Example__\n\n```js\nvar obj = {dev: \"/dev.json\", test: \"/test.json\", prod: \"/prod.json\"};\nvar configs = {};\n\nasync.forEachOf(obj, function (value, key, callback) {\n fs.readFile(__dirname + value, \"utf8\", function (err, data) {\n if (err) return callback(err);\n try {\n configs[key] = JSON.parse(data);\n } catch (e) {\n return callback(e);\n }\n callback();\n })\n}, function (err) {\n if (err) console.error(err.message);\n // configs is now a map of JSON data\n doSomethingWith(configs);\n})\n```\n\n__Related__\n\n* forEachOfSeries(obj, iterator, [callback])\n* forEachOfLimit(obj, limit, iterator, [callback])\n\n---------------------------------------\n\n\n### map(arr, iterator, [callback])\n\nProduces a new array of values by mapping each value in `arr` through\nthe `iterator` function. The `iterator` is called with an item from `arr` and a\ncallback for when it has finished processing. Each of these callback takes 2 arguments:\nan `error`, and the transformed item from `arr`. If `iterator` passes an error to its\ncallback, the main `callback` (for the `map` function) is immediately called with the error.\n\nNote, that since this function applies the `iterator` to each item in parallel,\nthere is no guarantee that the `iterator` functions will complete in order.\nHowever, the results array will be in the same order as the original `arr`.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A function to apply to each item in `arr`.\n The iterator is passed a `callback(err, transformed)` which must be called once\n it has completed with an error (which can be `null`) and a transformed item.\n* `callback(err, results)` - *Optional* A callback which is called when all `iterator`\n functions have finished, or an error occurs. Results is an array of the\n transformed items from the `arr`.\n\n__Example__\n\n```js\nasync.map(['file1','file2','file3'], fs.stat, function(err, results){\n // results is now an array of stats for each file\n});\n```\n\n__Related__\n* mapSeries(arr, iterator, [callback])\n* mapLimit(arr, limit, iterator, [callback])\n\n---------------------------------------\n\n\n\n### filter(arr, iterator, [callback])\n\n__Alias:__ `select`\n\nReturns a new array of all the values in `arr` which pass an async truth test.\n_The callback for each `iterator` call only accepts a single argument of `true` or\n`false`; it does not accept an error argument first!_ This is in-line with the\nway node libraries work with truth tests like `fs.exists`. This operation is\nperformed in parallel, but the results array will be in the same order as the\noriginal.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A truth test to apply to each item in `arr`.\n The `iterator` is passed a `callback(truthValue)`, which must be called with a\n boolean argument once it has completed.\n* `callback(results)` - *Optional* A callback which is called after all the `iterator`\n functions have finished.\n\n__Example__\n\n```js\nasync.filter(['file1','file2','file3'], fs.exists, function(results){\n // results now equals an array of the existing files\n});\n```\n\n__Related__\n\n* filterSeries(arr, iterator, [callback])\n* filterLimit(arr, limit, iterator, [callback])\n\n---------------------------------------\n\n\n### reject(arr, iterator, [callback])\n\nThe opposite of [`filter`](#filter). Removes values that pass an `async` truth test.\n\n__Related__\n\n* rejectSeries(arr, iterator, [callback])\n* rejectLimit(arr, limit, iterator, [callback])\n\n---------------------------------------\n\n\n### reduce(arr, memo, iterator, [callback])\n\n__Aliases:__ `inject`, `foldl`\n\nReduces `arr` into a single value using an async `iterator` to return\neach successive step. `memo` is the initial state of the reduction.\nThis function only operates in series.\n\nFor performance reasons, it may make sense to split a call to this function into\na parallel map, and then use the normal `Array.prototype.reduce` on the results.\nThis function is for situations where each step in the reduction needs to be async;\nif you can get the data before reducing it, then it's probably a good idea to do so.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `memo` - The initial state of the reduction.\n* `iterator(memo, item, callback)` - A function applied to each item in the\n array to produce the next step in the reduction. The `iterator` is passed a\n `callback(err, reduction)` which accepts an optional error as its first\n argument, and the state of the reduction as the second. If an error is\n passed to the callback, the reduction is stopped and the main `callback` is\n immediately called with the error.\n* `callback(err, result)` - *Optional* A callback which is called after all the `iterator`\n functions have finished. Result is the reduced value.\n\n__Example__\n\n```js\nasync.reduce([1,2,3], 0, function(memo, item, callback){\n // pointless async:\n process.nextTick(function(){\n callback(null, memo + item)\n });\n}, function(err, result){\n // result is now equal to the last value of memo, which is 6\n});\n```\n\n---------------------------------------\n\n\n### reduceRight(arr, memo, iterator, [callback])\n\n__Alias:__ `foldr`\n\nSame as [`reduce`](#reduce), only operates on `arr` in reverse order.\n\n\n---------------------------------------\n\n\n### detect(arr, iterator, [callback])\n\nReturns the first value in `arr` that passes an async truth test. The\n`iterator` is applied in parallel, meaning the first iterator to return `true` will\nfire the detect `callback` with that result. That means the result might not be\nthe first item in the original `arr` (in terms of order) that passes the test.\n\nIf order within the original `arr` is important, then look at [`detectSeries`](#detectSeries).\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A truth test to apply to each item in `arr`.\n The iterator is passed a `callback(truthValue)` which must be called with a\n boolean argument once it has completed. **Note: this callback does not take an error as its first argument.**\n* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns\n `true`, or after all the `iterator` functions have finished. Result will be\n the first item in the array that passes the truth test (iterator) or the\n value `undefined` if none passed. **Note: this callback does not take an error as its first argument.**\n\n__Example__\n\n```js\nasync.detect(['file1','file2','file3'], fs.exists, function(result){\n // result now equals the first file in the list that exists\n});\n```\n\n__Related__\n\n* detectSeries(arr, iterator, [callback])\n* detectLimit(arr, limit, iterator, [callback])\n\n---------------------------------------\n\n\n### sortBy(arr, iterator, [callback])\n\nSorts a list by the results of running each `arr` value through an async `iterator`.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A function to apply to each item in `arr`.\n The iterator is passed a `callback(err, sortValue)` which must be called once it\n has completed with an error (which can be `null`) and a value to use as the sort\n criteria.\n* `callback(err, results)` - *Optional* A callback which is called after all the `iterator`\n functions have finished, or an error occurs. Results is the items from\n the original `arr` sorted by the values returned by the `iterator` calls.\n\n__Example__\n\n```js\nasync.sortBy(['file1','file2','file3'], function(file, callback){\n fs.stat(file, function(err, stats){\n callback(err, stats.mtime);\n });\n}, function(err, results){\n // results is now the original array of files sorted by\n // modified date\n});\n```\n\n__Sort Order__\n\nBy modifying the callback parameter the sorting order can be influenced:\n\n```js\n//ascending order\nasync.sortBy([1,9,3,5], function(x, callback){\n callback(null, x);\n}, function(err,result){\n //result callback\n} );\n\n//descending order\nasync.sortBy([1,9,3,5], function(x, callback){\n callback(null, x*-1); //<- x*-1 instead of x, turns the order around\n}, function(err,result){\n //result callback\n} );\n```\n\n---------------------------------------\n\n\n### some(arr, iterator, [callback])\n\n__Alias:__ `any`\n\nReturns `true` if at least one element in the `arr` satisfies an async test.\n_The callback for each iterator call only accepts a single argument of `true` or\n`false`; it does not accept an error argument first!_ This is in-line with the\nway node libraries work with truth tests like `fs.exists`. Once any iterator\ncall returns `true`, the main `callback` is immediately called.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A truth test to apply to each item in the array\n in parallel. The iterator is passed a `callback(truthValue)`` which must be\n called with a boolean argument once it has completed.\n* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns\n `true`, or after all the iterator functions have finished. Result will be\n either `true` or `false` depending on the values of the async tests.\n\n **Note: the callbacks do not take an error as their first argument.**\n__Example__\n\n```js\nasync.some(['file1','file2','file3'], fs.exists, function(result){\n // if result is true then at least one of the files exists\n});\n```\n\n__Related__\n\n* someLimit(arr, limit, iterator, callback)\n\n---------------------------------------\n\n\n### every(arr, iterator, [callback])\n\n__Alias:__ `all`\n\nReturns `true` if every element in `arr` satisfies an async test.\n_The callback for each `iterator` call only accepts a single argument of `true` or\n`false`; it does not accept an error argument first!_ This is in-line with the\nway node libraries work with truth tests like `fs.exists`.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A truth test to apply to each item in the array\n in parallel. The iterator is passed a `callback(truthValue)` which must be\n called with a boolean argument once it has completed.\n* `callback(result)` - *Optional* A callback which is called as soon as any iterator returns\n `false`, or after all the iterator functions have finished. Result will be\n either `true` or `false` depending on the values of the async tests.\n\n **Note: the callbacks do not take an error as their first argument.**\n\n__Example__\n\n```js\nasync.every(['file1','file2','file3'], fs.exists, function(result){\n // if result is true then every file exists\n});\n```\n\n__Related__\n\n* everyLimit(arr, limit, iterator, callback)\n\n---------------------------------------\n\n\n### concat(arr, iterator, [callback])\n\nApplies `iterator` to each item in `arr`, concatenating the results. Returns the\nconcatenated list. The `iterator`s are called in parallel, and the results are\nconcatenated as they return. There is no guarantee that the results array will\nbe returned in the original order of `arr` passed to the `iterator` function.\n\n__Arguments__\n\n* `arr` - An array to iterate over.\n* `iterator(item, callback)` - A function to apply to each item in `arr`.\n The iterator is passed a `callback(err, results)` which must be called once it\n has completed with an error (which can be `null`) and an array of results.\n* `callback(err, results)` - *Optional* A callback which is called after all the `iterator`\n functions have finished, or an error occurs. Results is an array containing\n the concatenated results of the `iterator` function.\n\n__Example__\n\n```js\nasync.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files){\n // files is now a list of filenames that exist in the 3 directories\n});\n```\n\n__Related__\n\n* concatSeries(arr, iterator, [callback])\n\n\n## Control Flow\n\n\n### series(tasks, [callback])\n\nRun the functions in the `tasks` array in series, each one running once the previous\nfunction has completed. If any functions in the series pass an error to its\ncallback, no more functions are run, and `callback` is immediately called with the value of the error.\nOtherwise, `callback` receives an array of results when `tasks` have completed.\n\nIt is also possible to use an object instead of an array. Each property will be\nrun as a function, and the results will be passed to the final `callback` as an object\ninstead of an array. This can be a more readable way of handling results from\n[`series`](#series).\n\n**Note** that while many implementations preserve the order of object properties, the\n[ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)\nexplicitly states that\n\n> The mechanics and order of enumerating the properties is not specified.\n\nSo if you rely on the order in which your series of functions are executed, and want\nthis to work on all platforms, consider using an array.\n\n__Arguments__\n\n* `tasks` - An array or object containing functions to run, each function is passed\n a `callback(err, result)` it must call on completion with an error `err` (which can\n be `null`) and an optional `result` value.\n* `callback(err, results)` - An optional callback to run once all the functions\n have completed. This function gets a results array (or object) containing all\n the result arguments passed to the `task` callbacks.\n\n__Example__\n\n```js\nasync.series([\n function(callback){\n // do some stuff ...\n callback(null, 'one');\n },\n function(callback){\n // do some more stuff ...\n callback(null, 'two');\n }\n],\n// optional callback\nfunction(err, results){\n // results is now equal to ['one', 'two']\n});\n\n\n// an example using an object instead of an array\nasync.series({\n one: function(callback){\n setTimeout(function(){\n callback(null, 1);\n }, 200);\n },\n two: function(callback){\n setTimeout(function(){\n callback(null, 2);\n }, 100);\n }\n},\nfunction(err, results) {\n // results is now equal to: {one: 1, two: 2}\n});\n```\n\n---------------------------------------\n\n\n### parallel(tasks, [callback])\n\nRun the `tasks` array of functions in parallel, without waiting until the previous\nfunction has completed. If any of the functions pass an error to its\ncallback, the main `callback` is immediately called with the value of the error.\nOnce the `tasks` have completed, the results are passed to the final `callback` as an\narray.\n\n**Note:** `parallel` is about kicking-off I/O tasks in parallel, not about parallel execution of code. If your tasks do not use any timers or perform any I/O, they will actually be executed in series. Any synchronous setup sections for each task will happen one after the other. JavaScript remains single-threaded.\n\nIt is also possible to use an object instead of an array. Each property will be\nrun as a function and the results will be passed to the final `callback` as an object\ninstead of an array. This can be a more readable way of handling results from\n[`parallel`](#parallel).\n\n\n__Arguments__\n\n* `tasks` - An array or object containing functions to run. Each function is passed\n a `callback(err, result)` which it must call on completion with an error `err`\n (which can be `null`) and an optional `result` value.\n* `callback(err, results)` - An optional callback to run once all the functions\n have completed successfully. This function gets a results array (or object) containing all\n the result arguments passed to the task callbacks.\n\n__Example__\n\n```js\nasync.parallel([\n function(callback){\n setTimeout(function(){\n callback(null, 'one');\n }, 200);\n },\n function(callback){\n setTimeout(function(){\n callback(null, 'two');\n }, 100);\n }\n],\n// optional callback\nfunction(err, results){\n // the results array will equal ['one','two'] even though\n // the second function had a shorter timeout.\n});\n\n\n// an example using an object instead of an array\nasync.parallel({\n one: function(callback){\n setTimeout(function(){\n callback(null, 1);\n }, 200);\n },\n two: function(callback){\n setTimeout(function(){\n callback(null, 2);\n }, 100);\n }\n},\nfunction(err, results) {\n // results is now equals to: {one: 1, two: 2}\n});\n```\n\n__Related__\n\n* parallelLimit(tasks, limit, [callback])\n\n---------------------------------------\n\n\n### whilst(test, fn, callback)\n\nRepeatedly call `fn`, while `test` returns `true`. Calls `callback` when stopped,\nor an error occurs.\n\n__Arguments__\n\n* `test()` - synchronous truth test to perform before each execution of `fn`.\n* `fn(callback)` - A function which is called each time `test` passes. The function is\n passed a `callback(err)`, which must be called once it has completed with an\n optional `err` argument.\n* `callback(err, [results])` - A callback which is called after the test\n function has failed and repeated execution of `fn` has stopped. `callback`\n will be passed an error and any arguments passed to the final `fn`'s callback.\n\n__Example__\n\n```js\nvar count = 0;\n\nasync.whilst(\n function () { return count < 5; },\n function (callback) {\n count++;\n setTimeout(function () {\n callback(null, count);\n }, 1000);\n },\n function (err, n) {\n // 5 seconds have passed, n = 5\n }\n);\n```\n\n---------------------------------------\n\n\n### doWhilst(fn, test, callback)\n\nThe post-check version of [`whilst`](#whilst). To reflect the difference in\nthe order of operations, the arguments `test` and `fn` are switched.\n\n`doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.\n\n---------------------------------------\n\n\n### until(test, fn, callback)\n\nRepeatedly call `fn` until `test` returns `true`. Calls `callback` when stopped,\nor an error occurs. `callback` will be passed an error and any arguments passed\nto the final `fn`'s callback.\n\nThe inverse of [`whilst`](#whilst).\n\n---------------------------------------\n\n\n### doUntil(fn, test, callback)\n\nLike [`doWhilst`](#doWhilst), except the `test` is inverted. Note the argument ordering differs from `until`.\n\n---------------------------------------\n\n\n### during(test, fn, callback)\n\nLike [`whilst`](#whilst), except the `test` is an asynchronous function that is passed a callback in the form of `function (err, truth)`. If error is passed to `test` or `fn`, the main callback is immediately called with the value of the error.\n\n__Example__\n\n```js\nvar count = 0;\n\nasync.during(\n function (callback) {\n return callback(null, count < 5);\n },\n function (callback) {\n count++;\n setTimeout(callback, 1000);\n },\n function (err) {\n // 5 seconds have passed\n }\n);\n```\n\n---------------------------------------\n\n\n### doDuring(fn, test, callback)\n\nThe post-check version of [`during`](#during). To reflect the difference in\nthe order of operations, the arguments `test` and `fn` are switched.\n\nAlso a version of [`doWhilst`](#doWhilst) with asynchronous `test` function.\n\n---------------------------------------\n\n\n### forever(fn, [errback])\n\nCalls the asynchronous function `fn` with a callback parameter that allows it to\ncall itself again, in series, indefinitely.\n\nIf an error is passed to the callback then `errback` is called with the\nerror, and execution stops, otherwise it will never be called.\n\n```js\nasync.forever(\n function(next) {\n // next is suitable for passing to things that need a callback(err [, whatever]);\n // it will result in this function being called again.\n },\n function(err) {\n // if next is called with a value in its first parameter, it will appear\n // in here as 'err', and execution will stop.\n }\n);\n```\n\n---------------------------------------\n\n\n### waterfall(tasks, [callback])\n\nRuns the `tasks` array of functions in series, each passing their results to the next in\nthe array. However, if any of the `tasks` pass an error to their own callback, the\nnext function is not executed, and the main `callback` is immediately called with\nthe error.\n\n__Arguments__\n\n* `tasks` - An array of functions to run, each function is passed a\n `callback(err, result1, result2, ...)` it must call on completion. The first\n argument is an error (which can be `null`) and any further arguments will be\n passed as arguments in order to the next task.\n* `callback(err, [results])` - An optional callback to run once all the functions\n have completed. This will be passed the results of the last task's callback.\n\n\n\n__Example__\n\n```js\nasync.waterfall([\n function(callback) {\n callback(null, 'one', 'two');\n },\n function(arg1, arg2, callback) {\n // arg1 now equals 'one' and arg2 now equals 'two'\n callback(null, 'three');\n },\n function(arg1, callback) {\n // arg1 now equals 'three'\n callback(null, 'done');\n }\n], function (err, result) {\n // result now equals 'done'\n});\n```\nOr, with named functions:\n\n```js\nasync.waterfall([\n myFirstFunction,\n mySecondFunction,\n myLastFunction,\n], function (err, result) {\n // result now equals 'done'\n});\nfunction myFirstFunction(callback) {\n callback(null, 'one', 'two');\n}\nfunction mySecondFunction(arg1, arg2, callback) {\n // arg1 now equals 'one' and arg2 now equals 'two'\n callback(null, 'three');\n}\nfunction myLastFunction(arg1, callback) {\n // arg1 now equals 'three'\n callback(null, 'done');\n}\n```\n\nOr, if you need to pass any argument to the first function:\n\n```js\nasync.waterfall([\n async.apply(myFirstFunction, 'zero'),\n mySecondFunction,\n myLastFunction,\n], function (err, result) {\n // result now equals 'done'\n});\nfunction myFirstFunction(arg1, callback) {\n // arg1 now equals 'zero'\n callback(null, 'one', 'two');\n}\nfunction mySecondFunction(arg1, arg2, callback) {\n // arg1 now equals 'one' and arg2 now equals 'two'\n callback(null, 'three');\n}\nfunction myLastFunction(arg1, callback) {\n // arg1 now equals 'three'\n callback(null, 'done');\n}\n```\n\n---------------------------------------\n\n### compose(fn1, fn2...)\n\nCreates a function which is a composition of the passed asynchronous\nfunctions. Each function consumes the return value of the function that\nfollows. Composing functions `f()`, `g()`, and `h()` would produce the result of\n`f(g(h()))`, only this version uses callbacks to obtain the return values.\n\nEach function is executed with the `this` binding of the composed function.\n\n__Arguments__\n\n* `functions...` - the asynchronous functions to compose\n\n\n__Example__\n\n```js\nfunction add1(n, callback) {\n setTimeout(function () {\n callback(null, n + 1);\n }, 10);\n}\n\nfunction mul3(n, callback) {\n setTimeout(function () {\n callback(null, n * 3);\n }, 10);\n}\n\nvar add1mul3 = async.compose(mul3, add1);\n\nadd1mul3(4, function (err, result) {\n // result now equals 15\n});\n```\n\n---------------------------------------\n\n### seq(fn1, fn2...)\n\nVersion of the compose function that is more natural to read.\nEach function consumes the return value of the previous function.\nIt is the equivalent of [`compose`](#compose) with the arguments reversed.\n\nEach function is executed with the `this` binding of the composed function.\n\n__Arguments__\n\n* `functions...` - the asynchronous functions to compose\n\n\n__Example__\n\n```js\n// Requires lodash (or underscore), express3 and dresende's orm2.\n// Part of an app, that fetches cats of the logged user.\n// This example uses `seq` function to avoid overnesting and error\n// handling clutter.\napp.get('/cats', function(request, response) {\n var User = request.models.User;\n async.seq(\n _.bind(User.get, User), // 'User.get' has signature (id, callback(err, data))\n function(user, fn) {\n user.getCats(fn); // 'getCats' has signature (callback(err, data))\n }\n )(req.session.user_id, function (err, cats) {\n if (err) {\n console.error(err);\n response.json({ status: 'error', message: err.message });\n } else {\n response.json({ status: 'ok', message: 'Cats found', data: cats });\n }\n });\n});\n```\n\n---------------------------------------\n\n### applyEach(fns, args..., callback)\n\nApplies the provided arguments to each function in the array, calling\n`callback` after all functions have completed. If you only provide the first\nargument, then it will return a function which lets you pass in the\narguments as if it were a single function call.\n\n__Arguments__\n\n* `fns` - the asynchronous functions to all call with the same arguments\n* `args...` - any number of separate arguments to pass to the function\n* `callback` - the final argument should be the callback, called when all\n functions have completed processing\n\n\n__Example__\n\n```js\nasync.applyEach([enableSearch, updateSchema], 'bucket', callback);\n\n// partial application example:\nasync.each(\n buckets,\n async.applyEach([enableSearch, updateSchema]),\n callback\n);\n```\n\n__Related__\n\n* applyEachSeries(tasks, args..., [callback])\n\n---------------------------------------\n\n\n### queue(worker, [concurrency])\n\nCreates a `queue` object with the specified `concurrency`. Tasks added to the\n`queue` are processed in parallel (up to the `concurrency` limit). If all\n`worker`s are in progress, the task is queued until one becomes available.\nOnce a `worker` completes a `task`, that `task`'s callback is called.\n\n__Arguments__\n\n* `worker(task, callback)` - An asynchronous function for processing a queued\n task, which must call its `callback(err)` argument when finished, with an\n optional `error` as an argument. If you want to handle errors from an individual task, pass a callback to `q.push()`.\n* `concurrency` - An `integer` for determining how many `worker` functions should be\n run in parallel. If omitted, the concurrency defaults to `1`. If the concurrency is `0`, an error is thrown.\n\n__Queue objects__\n\nThe `queue` object returned by this function has the following properties and\nmethods:\n\n* `length()` - a function returning the number of items waiting to be processed.\n* `started` - a function returning whether or not any items have been pushed and processed by the queue\n* `running()` - a function returning the number of items currently being processed.\n* `workersList()` - a function returning the array of items currently being processed.\n* `idle()` - a function returning false if there are items waiting or being processed, or true if not.\n* `concurrency` - an integer for determining how many `worker` functions should be\n run in parallel. This property can be changed after a `queue` is created to\n alter the concurrency on-the-fly.\n* `push(task, [callback])` - add a new task to the `queue`. Calls `callback` once\n the `worker` has finished processing the task. Instead of a single task, a `tasks` array\n can be submitted. The respective callback is used for every task in the list.\n* `unshift(task, [callback])` - add a new task to the front of the `queue`.\n* `saturated` - a callback that is called when the `queue` length hits the `concurrency` limit,\n and further tasks will be queued.\n* `empty` - a callback that is called when the last item from the `queue` is given to a `worker`.\n* `drain` - a callback that is called when the last item from the `queue` has returned from the `worker`.\n* `paused` - a boolean for determining whether the queue is in a paused state\n* `pause()` - a function that pauses the processing of tasks until `resume()` is called.\n* `resume()` - a function that resumes the processing of queued tasks when the queue is paused.\n* `kill()` - a function that removes the `drain` callback and empties remaining tasks from the queue forcing it to go idle.\n\n__Example__\n\n```js\n// create a queue object with concurrency 2\n\nvar q = async.queue(function (task, callback) {\n console.log('hello ' + task.name);\n callback();\n}, 2);\n\n\n// assign a callback\nq.drain = function() {\n console.log('all items have been processed');\n}\n\n// add some items to the queue\n\nq.push({name: 'foo'}, function (err) {\n console.log('finished processing foo');\n});\nq.push({name: 'bar'}, function (err) {\n console.log('finished processing bar');\n});\n\n// add some items to the queue (batch-wise)\n\nq.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function (err) {\n console.log('finished processing item');\n});\n\n// add some items to the front of the queue\n\nq.unshift({name: 'bar'}, function (err) {\n console.log('finished processing bar');\n});\n```\n\n\n---------------------------------------\n\n\n### priorityQueue(worker, concurrency)\n\nThe same as [`queue`](#queue) only tasks are assigned a priority and completed in ascending priority order. There are two differences between `queue` and `priorityQueue` objects:\n\n* `push(task, priority, [callback])` - `priority` should be a number. If an array of\n `tasks` is given, all tasks will be assigned the same priority.\n* The `unshift` method was removed.\n\n---------------------------------------\n\n\n### cargo(worker, [payload])\n\nCreates a `cargo` object with the specified payload. Tasks added to the\ncargo will be processed altogether (up to the `payload` limit). If the\n`worker` is in progress, the task is queued until it becomes available. Once\nthe `worker` has completed some tasks, each callback of those tasks is called.\nCheck out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966) for how `cargo` and `queue` work.\n\nWhile [queue](#queue) passes only one task to one of a group of workers\nat a time, cargo passes an array of tasks to a single worker, repeating\nwhen the worker is finished.\n\n__Arguments__\n\n* `worker(tasks, callback)` - An asynchronous function for processing an array of\n queued tasks, which must call its `callback(err)` argument when finished, with\n an optional `err` argument.\n* `payload` - An optional `integer` for determining how many tasks should be\n processed per round; if omitted, the default is unlimited.\n\n__Cargo objects__\n\nThe `cargo` object returned by this function has the following properties and\nmethods:\n\n* `length()` - A function returning the number of items waiting to be processed.\n* `payload` - An `integer` for determining how many tasks should be\n process per round. This property can be changed after a `cargo` is created to\n alter the payload on-the-fly.\n* `push(task, [callback])` - Adds `task` to the `queue`. The callback is called\n once the `worker` has finished processing the task. Instead of a single task, an array of `tasks`\n can be submitted. The respective callback is used for every task in the list.\n* `saturated` - A callback that is called when the `queue.length()` hits the concurrency and further tasks will be queued.\n* `empty` - A callback that is called when the last item from the `queue` is given to a `worker`.\n* `drain` - A callback that is called when the last item from the `queue` has returned from the `worker`.\n* `idle()`, `pause()`, `resume()`, `kill()` - cargo inherits all of the same methods and event calbacks as [`queue`](#queue)\n\n__Example__\n\n```js\n// create a cargo object with payload 2\n\nvar cargo = async.cargo(function (tasks, callback) {\n for(var i=0; i\n### auto(tasks, [concurrency], [callback])\n\nDetermines the best order for running the functions in `tasks`, based on their requirements. Each function can optionally depend on other functions being completed first, and each function is run as soon as its requirements are satisfied.\n\nIf any of the functions pass an error to their callback, the `auto` sequence will stop. Further tasks will not execute (so any other functions depending on it will not run), and the main `callback` is immediately called with the error. Functions also receive an object containing the results of functions which have completed so far.\n\nNote, all functions are called with a `results` object as a second argument,\nso it is unsafe to pass functions in the `tasks` object which cannot handle the\nextra argument.\n\nFor example, this snippet of code:\n\n```js\nasync.auto({\n readData: async.apply(fs.readFile, 'data.txt', 'utf-8')\n}, callback);\n```\n\nwill have the effect of calling `readFile` with the results object as the last\nargument, which will fail:\n\n```js\nfs.readFile('data.txt', 'utf-8', cb, {});\n```\n\nInstead, wrap the call to `readFile` in a function which does not forward the\n`results` object:\n\n```js\nasync.auto({\n readData: function(cb, results){\n fs.readFile('data.txt', 'utf-8', cb);\n }\n}, callback);\n```\n\n__Arguments__\n\n* `tasks` - An object. Each of its properties is either a function or an array of\n requirements, with the function itself the last item in the array. The object's key\n of a property serves as the name of the task defined by that property,\n i.e. can be used when specifying requirements for other tasks.\n The function receives two arguments: (1) a `callback(err, result)` which must be\n called when finished, passing an `error` (which can be `null`) and the result of\n the function's execution, and (2) a `results` object, containing the results of\n the previously executed functions.\n* `concurrency` - An optional `integer` for determining the maximum number of tasks that can be run in parallel. By default, as many as possible.\n* `callback(err, results)` - An optional callback which is called when all the\n tasks have been completed. It receives the `err` argument if any `tasks`\n pass an error to their callback. Results are always returned; however, if\n an error occurs, no further `tasks` will be performed, and the results\n object will only contain partial results.\n\n\n__Example__\n\n```js\nasync.auto({\n get_data: function(callback){\n console.log('in get_data');\n // async code to get some data\n callback(null, 'data', 'converted to array');\n },\n make_folder: function(callback){\n console.log('in make_folder');\n // async code to create a directory to store a file in\n // this is run at the same time as getting the data\n callback(null, 'folder');\n },\n write_file: ['get_data', 'make_folder', function(callback, results){\n console.log('in write_file', JSON.stringify(results));\n // once there is some data and the directory exists,\n // write the data to a file in the directory\n callback(null, 'filename');\n }],\n email_link: ['write_file', function(callback, results){\n console.log('in email_link', JSON.stringify(results));\n // once the file is written let's email a link to it...\n // results.write_file contains the filename returned by write_file.\n callback(null, {'file':results.write_file, 'email':'user@example.com'});\n }]\n}, function(err, results) {\n console.log('err = ', err);\n console.log('results = ', results);\n});\n```\n\nThis is a fairly trivial example, but to do this using the basic parallel and\nseries functions would look like this:\n\n```js\nasync.parallel([\n function(callback){\n console.log('in get_data');\n // async code to get some data\n callback(null, 'data', 'converted to array');\n },\n function(callback){\n console.log('in make_folder');\n // async code to create a directory to store a file in\n // this is run at the same time as getting the data\n callback(null, 'folder');\n }\n],\nfunction(err, results){\n async.series([\n function(callback){\n console.log('in write_file', JSON.stringify(results));\n // once there is some data and the directory exists,\n // write the data to a file in the directory\n results.push('filename');\n callback(null);\n },\n function(callback){\n console.log('in email_link', JSON.stringify(results));\n // once the file is written let's email a link to it...\n callback(null, {'file':results.pop(), 'email':'user@example.com'});\n }\n ]);\n});\n```\n\nFor a complicated series of `async` tasks, using the [`auto`](#auto) function makes adding\nnew tasks much easier (and the code more readable).\n\n\n---------------------------------------\n\n\n### retry([opts = {times: 5, interval: 0}| 5], task, [callback])\n\nAttempts to get a successful response from `task` no more than `times` times before\nreturning an error. If the task is successful, the `callback` will be passed the result\nof the successful task. If all attempts fail, the callback will be passed the error and\nresult (if any) of the final attempt.\n\n__Arguments__\n\n* `opts` - Can be either an object with `times` and `interval` or a number.\n * `times` - The number of attempts to make before giving up. The default is `5`.\n * `interval` - The time to wait between retries, in milliseconds. The default is `0`.\n * If `opts` is a number, the number specifies the number of times to retry, with the default interval of `0`. \n* `task(callback, results)` - A function which receives two arguments: (1) a `callback(err, result)`\n which must be called when finished, passing `err` (which can be `null`) and the `result` of\n the function's execution, and (2) a `results` object, containing the results of\n the previously executed functions (if nested inside another control flow).\n* `callback(err, results)` - An optional callback which is called when the\n task has succeeded, or after the final failed attempt. It receives the `err` and `result` arguments of the last attempt at completing the `task`.\n\nThe [`retry`](#retry) function can be used as a stand-alone control flow by passing a callback, as shown below:\n\n```js\n// try calling apiMethod 3 times\nasync.retry(3, apiMethod, function(err, result) {\n // do something with the result\n});\n```\n\n```js\n// try calling apiMethod 3 times, waiting 200 ms between each retry \nasync.retry({times: 3, interval: 200}, apiMethod, function(err, result) {\n // do something with the result\n});\n```\n\n```js\n// try calling apiMethod the default 5 times no delay between each retry \nasync.retry(apiMethod, function(err, result) {\n // do something with the result\n});\n```\n\nIt can also be embedded within other control flow functions to retry individual methods\nthat are not as reliable, like this:\n\n```js\nasync.auto({\n users: api.getUsers.bind(api),\n payments: async.retry(3, api.getPayments.bind(api))\n}, function(err, results) {\n // do something with the results\n});\n```\n\n\n---------------------------------------\n\n\n### iterator(tasks)\n\nCreates an iterator function which calls the next function in the `tasks` array,\nreturning a continuation to call the next one after that. It's also possible to\n“peek” at the next iterator with `iterator.next()`.\n\nThis function is used internally by the `async` module, but can be useful when\nyou want to manually control the flow of functions in series.\n\n__Arguments__\n\n* `tasks` - An array of functions to run.\n\n__Example__\n\n```js\nvar iterator = async.iterator([\n function(){ sys.p('one'); },\n function(){ sys.p('two'); },\n function(){ sys.p('three'); }\n]);\n\nnode> var iterator2 = iterator();\n'one'\nnode> var iterator3 = iterator2();\n'two'\nnode> iterator3();\n'three'\nnode> var nextfn = iterator2.next();\nnode> nextfn();\n'three'\n```\n\n---------------------------------------\n\n\n### apply(function, arguments..)\n\nCreates a continuation function with some arguments already applied.\n\nUseful as a shorthand when combined with other control flow functions. Any arguments\npassed to the returned function are added to the arguments originally passed\nto apply.\n\n__Arguments__\n\n* `function` - The function you want to eventually apply all arguments to.\n* `arguments...` - Any number of arguments to automatically apply when the\n continuation is called.\n\n__Example__\n\n```js\n// using apply\n\nasync.parallel([\n async.apply(fs.writeFile, 'testfile1', 'test1'),\n async.apply(fs.writeFile, 'testfile2', 'test2'),\n]);\n\n\n// the same process without using apply\n\nasync.parallel([\n function(callback){\n fs.writeFile('testfile1', 'test1', callback);\n },\n function(callback){\n fs.writeFile('testfile2', 'test2', callback);\n }\n]);\n```\n\nIt's possible to pass any number of additional arguments when calling the\ncontinuation:\n\n```js\nnode> var fn = async.apply(sys.puts, 'one');\nnode> fn('two', 'three');\none\ntwo\nthree\n```\n\n---------------------------------------\n\n\n### nextTick(callback), setImmediate(callback)\n\nCalls `callback` on a later loop around the event loop. In Node.js this just\ncalls `process.nextTick`; in the browser it falls back to `setImmediate(callback)`\nif available, otherwise `setTimeout(callback, 0)`, which means other higher priority\nevents may precede the execution of `callback`.\n\nThis is used internally for browser-compatibility purposes.\n\n__Arguments__\n\n* `callback` - The function to call on a later loop around the event loop.\n\n__Example__\n\n```js\nvar call_order = [];\nasync.nextTick(function(){\n call_order.push('two');\n // call_order now equals ['one','two']\n});\ncall_order.push('one')\n```\n\n\n### times(n, iterator, [callback])\n\nCalls the `iterator` function `n` times, and accumulates results in the same manner\nyou would use with [`map`](#map).\n\n__Arguments__\n\n* `n` - The number of times to run the function.\n* `iterator` - The function to call `n` times.\n* `callback` - see [`map`](#map)\n\n__Example__\n\n```js\n// Pretend this is some complicated async factory\nvar createUser = function(id, callback) {\n callback(null, {\n id: 'user' + id\n })\n}\n// generate 5 users\nasync.times(5, function(n, next){\n createUser(n, function(err, user) {\n next(err, user)\n })\n}, function(err, users) {\n // we should now have 5 users\n});\n```\n\n__Related__\n\n* timesSeries(n, iterator, [callback])\n* timesLimit(n, limit, iterator, [callback])\n\n\n## Utils\n\n\n### memoize(fn, [hasher])\n\nCaches the results of an `async` function. When creating a hash to store function\nresults against, the callback is omitted from the hash and an optional hash\nfunction can be used.\n\nIf no hash function is specified, the first argument is used as a hash key, which may work reasonably if it is a string or a data type that converts to a distinct string. Note that objects and arrays will not behave reasonably. Neither will cases where the other arguments are significant. In such cases, specify your own hash function.\n\nThe cache of results is exposed as the `memo` property of the function returned\nby `memoize`.\n\n__Arguments__\n\n* `fn` - The function to proxy and cache results from.\n* `hasher` - An optional function for generating a custom hash for storing\n results. It has all the arguments applied to it apart from the callback, and\n must be synchronous.\n\n__Example__\n\n```js\nvar slow_fn = function (name, callback) {\n // do something\n callback(null, result);\n};\nvar fn = async.memoize(slow_fn);\n\n// fn can now be used as if it were slow_fn\nfn('some name', function () {\n // callback\n});\n```\n\n\n### unmemoize(fn)\n\nUndoes a [`memoize`](#memoize)d function, reverting it to the original, unmemoized\nform. Handy for testing.\n\n__Arguments__\n\n* `fn` - the memoized function\n\n---------------------------------------\n\n\n### ensureAsync(fn)\n\nWrap an async function and ensure it calls its callback on a later tick of the event loop. If the function already calls its callback on a next tick, no extra deferral is added. This is useful for preventing stack overflows (`RangeError: Maximum call stack size exceeded`) and generally keeping [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony) contained.\n\n__Arguments__\n\n* `fn` - an async function, one that expects a node-style callback as its last argument\n\nReturns a wrapped function with the exact same call signature as the function passed in.\n\n__Example__\n\n```js\nfunction sometimesAsync(arg, callback) {\n if (cache[arg]) {\n return callback(null, cache[arg]); // this would be synchronous!!\n } else {\n doSomeIO(arg, callback); // this IO would be asynchronous\n }\n}\n\n// this has a risk of stack overflows if many results are cached in a row\nasync.mapSeries(args, sometimesAsync, done);\n\n// this will defer sometimesAsync's callback if necessary,\n// preventing stack overflows\nasync.mapSeries(args, async.ensureAsync(sometimesAsync), done);\n\n```\n\n---------------------------------------\n\n\n### constant(values...)\n\nReturns a function that when called, calls-back with the values provided. Useful as the first function in a `waterfall`, or for plugging values in to `auto`.\n\n__Example__\n\n```js\nasync.waterfall([\n async.constant(42),\n function (value, next) {\n // value === 42\n },\n //...\n], callback);\n\nasync.waterfall([\n async.constant(filename, \"utf8\"),\n fs.readFile,\n function (fileData, next) {\n //...\n }\n //...\n], callback);\n\nasync.auto({\n hostname: async.constant(\"https://server.net/\"),\n port: findFreePort,\n launchServer: [\"hostname\", \"port\", function (cb, options) {\n startServer(options, cb);\n }],\n //...\n}, callback);\n\n```\n\n---------------------------------------\n\n\n\n### asyncify(func)\n\n__Alias:__ `wrapSync`\n\nTake a sync function and make it async, passing its return value to a callback. This is useful for plugging sync functions into a waterfall, series, or other async functions. Any arguments passed to the generated function will be passed to the wrapped function (except for the final callback argument). Errors thrown will be passed to the callback.\n\n__Example__\n\n```js\nasync.waterfall([\n async.apply(fs.readFile, filename, \"utf8\"),\n async.asyncify(JSON.parse),\n function (data, next) {\n // data is the result of parsing the text.\n // If there was a parsing error, it would have been caught.\n }\n], callback)\n```\n\nIf the function passed to `asyncify` returns a Promise, that promises's resolved/rejected state will be used to call the callback, rather than simply the synchronous return value. Example:\n\n```js\nasync.waterfall([\n async.apply(fs.readFile, filename, \"utf8\"),\n async.asyncify(function (contents) {\n return db.model.create(contents);\n }),\n function (model, next) {\n // `model` is the instantiated model object. \n // If there was an error, this function would be skipped.\n }\n], callback)\n```\n\nThis also means you can asyncify ES2016 `async` functions.\n\n```js\nvar q = async.queue(async.asyncify(async function (file) {\n var intermediateStep = await processFile(file);\n return await somePromise(intermediateStep)\n}));\n\nq.push(files);\n```\n\n---------------------------------------\n\n\n### log(function, arguments)\n\nLogs the result of an `async` function to the `console`. Only works in Node.js or\nin browsers that support `console.log` and `console.error` (such as FF and Chrome).\nIf multiple arguments are returned from the async function, `console.log` is\ncalled on each argument in order.\n\n__Arguments__\n\n* `function` - The function you want to eventually apply all arguments to.\n* `arguments...` - Any number of arguments to apply to the function.\n\n__Example__\n\n```js\nvar hello = function(name, callback){\n setTimeout(function(){\n callback(null, 'hello ' + name);\n }, 1000);\n};\n```\n```js\nnode> async.log(hello, 'world');\n'hello world'\n```\n\n---------------------------------------\n\n\n### dir(function, arguments)\n\nLogs the result of an `async` function to the `console` using `console.dir` to\ndisplay the properties of the resulting object. Only works in Node.js or\nin browsers that support `console.dir` and `console.error` (such as FF and Chrome).\nIf multiple arguments are returned from the async function, `console.dir` is\ncalled on each argument in order.\n\n__Arguments__\n\n* `function` - The function you want to eventually apply all arguments to.\n* `arguments...` - Any number of arguments to apply to the function.\n\n__Example__\n\n```js\nvar hello = function(name, callback){\n setTimeout(function(){\n callback(null, {hello: name});\n }, 1000);\n};\n```\n```js\nnode> async.dir(hello, 'world');\n{hello: 'world'}\n```\n\n---------------------------------------\n\n\n### noConflict()\n\nChanges the value of `async` back to its original value, returning a reference to the\n`async` object.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/caolan/async.git" diff --git a/node_modules/nyc/node_modules/babel-code-frame/package.json b/node_modules/nyc/node_modules/babel-code-frame/package.json index 9061e4ec5..bc779b7fb 100644 --- a/node_modules/nyc/node_modules/babel-code-frame/package.json +++ b/node_modules/nyc/node_modules/babel-code-frame/package.json @@ -1,99 +1,46 @@ { - "_args": [ - [ - { - "raw": "babel-code-frame@^6.26.0", - "scope": null, - "escapedName": "babel-code-frame", - "name": "babel-code-frame", - "rawSpec": "^6.26.0", - "spec": ">=6.26.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/babel-traverse" - ] - ], - "_from": "babel-code-frame@>=6.26.0 <7.0.0", + "_from": "babel-code-frame@^6.26.0", "_id": "babel-code-frame@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "_location": "/babel-code-frame", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-code-frame-6.26.0.tgz_1502898849653_0.8458143274765462" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-code-frame@^6.26.0", - "scope": null, - "escapedName": "babel-code-frame", "name": "babel-code-frame", + "escapedName": "babel-code-frame", "rawSpec": "^6.26.0", - "spec": ">=6.26.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.26.0" }, "_requiredBy": [ "/babel-traverse" ], "_resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "_shasum": "63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b", - "_shrinkwrap": null, "_spec": "babel-code-frame@^6.26.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/babel-traverse", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "chalk": "^1.1.3", "esutils": "^2.0.2", "js-tokens": "^3.0.2" }, + "deprecated": false, "description": "Generate errors that contain a code frame that point to source locations.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b", - "tarball": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz" - }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-code-frame", - "optionalDependencies": {}, - "readme": "# babel-code-frame\n\n> Generate errors that contain a code frame that point to source locations.\n\n## Install\n\n```sh\nnpm install --save-dev babel-code-frame\n```\n\n## Usage\n\n```js\nimport codeFrame from 'babel-code-frame';\n\nconst rawLines = `class Foo {\n constructor()\n}`;\nconst lineNumber = 2;\nconst colNumber = 16;\n\nconst result = codeFrame(rawLines, lineNumber, colNumber, { /* options */ });\n\nconsole.log(result);\n```\n\n```sh\n 1 | class Foo {\n> 2 | constructor()\n | ^\n 3 | }\n```\n\nIf the column number is not known, you may pass `null` instead.\n\n## Options\n\n### `highlightCode`\n\n`boolean`, defaults to `false`.\n\nToggles syntax highlighting the code as JavaScript for terminals.\n\n### `linesAbove`\n\n`number`, defaults to `2`.\n\nAdjust the number of lines to show above the error.\n\n### `linesBelow`\n\n`number`, defaults to `3`.\n\nAdjust the number of lines to show below the error.\n\n### `forceColor`\n\n`boolean`, defaults to `false`.\n\nEnable this to forcibly syntax highlight the code as JavaScript (for non-terminals); overrides `highlightCode`.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-code-frame" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babel-generator/package.json b/node_modules/nyc/node_modules/babel-generator/package.json index 11d183c85..cf53f6ace 100644 --- a/node_modules/nyc/node_modules/babel-generator/package.json +++ b/node_modules/nyc/node_modules/babel-generator/package.json @@ -1,54 +1,32 @@ { - "_args": [ - [ - { - "raw": "babel-generator@^6.18.0", - "scope": null, - "escapedName": "babel-generator", - "name": "babel-generator", - "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument" - ] - ], - "_from": "babel-generator@>=6.18.0 <7.0.0", + "_from": "babel-generator@^6.18.0", "_id": "babel-generator@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", "_location": "/babel-generator", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-generator-6.26.0.tgz_1502898854668_0.4309290638193488" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-generator@^6.18.0", - "scope": null, - "escapedName": "babel-generator", "name": "babel-generator", + "escapedName": "babel-generator", "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.18.0" }, "_requiredBy": [ "/istanbul-lib-instrument" ], "_resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", "_shasum": "ac1ae20070b79f6e3ca1d3269613053774f20dc5", - "_shrinkwrap": null, "_spec": "babel-generator@^6.18.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "babel-messages": "^6.23.0", "babel-runtime": "^6.26.0", @@ -59,52 +37,22 @@ "source-map": "^0.5.6", "trim-right": "^1.0.1" }, + "deprecated": false, "description": "Turns an AST into code.", "devDependencies": { "babel-helper-fixtures": "^6.26.0", "babylon": "^6.18.0" }, - "directories": {}, - "dist": { - "shasum": "ac1ae20070b79f6e3ca1d3269613053774f20dc5", - "tarball": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz" - }, "files": [ "lib" ], "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-generator", - "optionalDependencies": {}, - "readme": "# babel-generator\n\n> Turns an AST into code.\n\n## Install\n\n```sh\nnpm install --save-dev babel-generator\n```\n\n## Usage\n\n```js\nimport {parse} from 'babylon';\nimport generate from 'babel-generator';\n\nconst code = 'class Example {}';\nconst ast = parse(code);\n\nconst output = generate(ast, { /* options */ }, code);\n```\n\n## Options\n\nOptions for formatting output:\n\nname | type | default | description\n-----------------------|----------|-----------------|--------------------------------------------------------------------------\nauxiliaryCommentBefore | string | | Optional string to add as a block comment at the start of the output file\nauxiliaryCommentAfter | string | | Optional string to add as a block comment at the end of the output file\nshouldPrintComment | function | `opts.comments` | Function that takes a comment (as a string) and returns `true` if the comment should be included in the output. By default, comments are included if `opts.comments` is `true` or if `opts.minifed` is `false` and the comment contains `@preserve` or `@license`\nretainLines | boolean | `false` | Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces)\nretainFunctionParens | boolean | `false` | Retain parens around function expressions (could be used to change engine parsing behavior)\ncomments | boolean | `true` | Should comments be included in output\ncompact | boolean or `'auto'` | `opts.minified` | Set to `true` to avoid adding whitespace for formatting\nminified | boolean | `false` | Should the output be minified\nconcise | boolean | `false` | Set to `true` to reduce whitespace (but not as much as `opts.compact`)\nquotes | `'single'` or `'double'` | autodetect based on `ast.tokens` | The type of quote to use in the output\nfilename | string | | Used in warning messages\nflowCommaSeparator | boolean | `false` | Set to `true` to use commas instead of semicolons as Flow property separators\njsonCompatibleStrings | boolean | `false` | Set to true to run `jsesc` with \"json\": true to print \"\\u00A9\" vs. \"©\";\n\nOptions for source maps:\n\nname | type | default | description\n-----------------------|----------|-----------------|--------------------------------------------------------------------------\nsourceMaps | boolean | `false` | Enable generating source maps\nsourceMapTarget | string | | The filename of the generated code that the source map will be associated with\nsourceRoot | string | | A root for all relative URLs in the source map\nsourceFileName | string | | The filename for the source code (i.e. the code in the `code` argument). This will only be used if `code` is a string.\n\n## AST from Multiple Sources\n\nIn most cases, Babel does a 1:1 transformation of input-file to output-file. However,\nyou may be dealing with AST constructed from multiple sources - JS files, templates, etc.\nIf this is the case, and you want the sourcemaps to reflect the correct sources, you'll need\nto pass an object to `generate` as the `code` parameter. Keys\nshould be the source filenames, and values should be the source content.\n\nHere's an example of what that might look like:\n\n```js\nimport {parse} from 'babylon';\nimport generate from 'babel-generator';\n\nconst a = 'var a = 1;';\nconst b = 'var b = 2;';\nconst astA = parse(a, { sourceFilename: 'a.js' });\nconst astB = parse(b, { sourceFilename: 'b.js' });\nconst ast = {\n type: 'Program',\n body: [].concat(astA.program.body, astB.program.body)\n};\n\nconst { code, map } = generate(ast, { sourceMaps: true }, {\n 'a.js': a,\n 'b.js': b\n});\n\n// Sourcemap will point to both a.js and b.js where appropriate.\n```\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-generator" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babel-messages/package.json b/node_modules/nyc/node_modules/babel-messages/package.json index d8bd640ba..14b97e5d1 100644 --- a/node_modules/nyc/node_modules/babel-messages/package.json +++ b/node_modules/nyc/node_modules/babel-messages/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "babel-messages@^6.23.0", - "scope": null, - "escapedName": "babel-messages", - "name": "babel-messages", - "rawSpec": "^6.23.0", - "spec": ">=6.23.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/babel-generator" - ] - ], - "_from": "babel-messages@>=6.23.0 <7.0.0", + "_from": "babel-messages@^6.23.0", "_id": "babel-messages@6.23.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "_location": "/babel-messages", - "_nodeVersion": "6.9.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/babel-messages-6.23.0.tgz_1487027061100_0.7234047667589039" - }, - "_npmUser": { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - }, - "_npmVersion": "3.10.8", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-messages@^6.23.0", - "scope": null, - "escapedName": "babel-messages", "name": "babel-messages", + "escapedName": "babel-messages", "rawSpec": "^6.23.0", - "spec": ">=6.23.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.23.0" }, "_requiredBy": [ "/babel-generator", @@ -43,60 +21,25 @@ ], "_resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", "_shasum": "f3cdf4703858035b2a2951c6ec5edf6c62f2630e", - "_shrinkwrap": null, "_spec": "babel-messages@^6.23.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/babel-generator", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "babel-runtime": "^6.22.0" }, + "deprecated": false, "description": "Collection of debug messages used by Babel.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "f3cdf4703858035b2a2951c6ec5edf6c62f2630e", - "tarball": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz" - }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "amasad", - "email": "amjad.masad@gmail.com" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "jmm", - "email": "npm-public@jessemccarthy.net" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - } - ], "name": "babel-messages", - "optionalDependencies": {}, - "readme": "# babel-messages\n\n> Collection of debug messages used by Babel.\n\n## Install\n\n```sh\nnpm install --save-dev babel-messages\n```\n\n## Usage\n\n```js\nimport * as messages from 'babel-messages';\n\nmessages.get('tailCallReassignmentDeopt');\n// > \"Function reference has been...\"\n```\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-messages" }, - "scripts": {}, "version": "6.23.0" } diff --git a/node_modules/nyc/node_modules/babel-runtime/package.json b/node_modules/nyc/node_modules/babel-runtime/package.json index e358dde41..5337c2eb7 100644 --- a/node_modules/nyc/node_modules/babel-runtime/package.json +++ b/node_modules/nyc/node_modules/babel-runtime/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "babel-runtime@^6.26.0", - "scope": null, - "escapedName": "babel-runtime", - "name": "babel-runtime", - "rawSpec": "^6.26.0", - "spec": ">=6.26.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/babel-generator" - ] - ], - "_from": "babel-runtime@>=6.26.0 <7.0.0", + "_from": "babel-runtime@^6.26.0", "_id": "babel-runtime@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "_location": "/babel-runtime", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-runtime-6.26.0.tgz_1502898849886_0.663184720557183" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-runtime@^6.26.0", - "scope": null, - "escapedName": "babel-runtime", "name": "babel-runtime", + "escapedName": "babel-runtime", "rawSpec": "^6.26.0", - "spec": ">=6.26.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.26.0" }, "_requiredBy": [ "/babel-generator", @@ -46,58 +24,28 @@ ], "_resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "_shasum": "965c7058668e82b55d7bfe04ff2337bc8b5647fe", - "_shrinkwrap": null, "_spec": "babel-runtime@^6.26.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/babel-generator", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "core-js": "^2.4.0", "regenerator-runtime": "^0.11.0" }, + "deprecated": false, "description": "babel selfContained runtime", "devDependencies": { "babel-helpers": "^6.22.0", "babel-plugin-transform-runtime": "^6.23.0" }, - "directories": {}, - "dist": { - "shasum": "965c7058668e82b55d7bfe04ff2337bc8b5647fe", - "tarball": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz" - }, "license": "MIT", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-runtime", - "optionalDependencies": {}, - "readme": "# babel-runtime\n\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-runtime" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babel-template/package.json b/node_modules/nyc/node_modules/babel-template/package.json index aeeaebe44..af6e109cd 100644 --- a/node_modules/nyc/node_modules/babel-template/package.json +++ b/node_modules/nyc/node_modules/babel-template/package.json @@ -1,54 +1,32 @@ { - "_args": [ - [ - { - "raw": "babel-template@^6.16.0", - "scope": null, - "escapedName": "babel-template", - "name": "babel-template", - "rawSpec": "^6.16.0", - "spec": ">=6.16.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument" - ] - ], - "_from": "babel-template@>=6.16.0 <7.0.0", + "_from": "babel-template@^6.16.0", "_id": "babel-template@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "_location": "/babel-template", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-template-6.26.0.tgz_1502898857848_0.5731625664047897" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-template@^6.16.0", - "scope": null, - "escapedName": "babel-template", "name": "babel-template", + "escapedName": "babel-template", "rawSpec": "^6.16.0", - "spec": ">=6.16.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.16.0" }, "_requiredBy": [ "/istanbul-lib-instrument" ], "_resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", "_shasum": "de03e2d16396b069f46dd9fff8521fb1a0e35e02", - "_shrinkwrap": null, "_spec": "babel-template@^6.16.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "babel-runtime": "^6.26.0", "babel-traverse": "^6.26.0", @@ -56,46 +34,15 @@ "babylon": "^6.18.0", "lodash": "^4.17.4" }, + "deprecated": false, "description": "Generate an AST from a string template.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "de03e2d16396b069f46dd9fff8521fb1a0e35e02", - "tarball": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz" - }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-template", - "optionalDependencies": {}, - "readme": "# babel-template\n\n> Generate an AST from a string template.\n\nIn computer science, this is known as an implementation of quasiquotes.\n\n## Install\n\n```sh\nnpm install --save-dev babel-template\n```\n\n## Usage\n\n```js\nimport template from \"babel-template\";\nimport generate from \"babel-generator\";\nimport * as t from \"babel-types\";\n\nconst buildRequire = template(`\n var IMPORT_NAME = require(SOURCE);\n`);\n\nconst ast = buildRequire({\n IMPORT_NAME: t.identifier(\"myModule\"),\n SOURCE: t.stringLiteral(\"my-module\")\n});\n\nconsole.log(generate(ast).code);\n```\n\n```js\nconst myModule = require(\"my-module\");\n```\n\n## API\n\n### `template(code, [opts])`\n\n#### code\n\nType: `string`\n\n#### options\n\n`babel-template` accepts all of the options from [babylon], and specifies\nsome defaults of its own:\n\n* `allowReturnOutsideFunction` is set to `true` by default.\n* `allowSuperOutsideMethod` is set to `true` by default.\n\n##### preserveComments\n\nType: `boolean`\nDefault: `false`\n\nSet this to `true` to preserve any comments from the `code` parameter.\n\n#### Return value\n\n`babel-template` returns a `function` which is invoked with an optional object\nof replacements. See the usage section for an example.\n\n[babylon]: https://github.com/babel/babylon#options\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-template" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babel-traverse/package.json b/node_modules/nyc/node_modules/babel-traverse/package.json index 35fb95ad4..08899700c 100644 --- a/node_modules/nyc/node_modules/babel-traverse/package.json +++ b/node_modules/nyc/node_modules/babel-traverse/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "babel-traverse@^6.18.0", - "scope": null, - "escapedName": "babel-traverse", - "name": "babel-traverse", - "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument" - ] - ], - "_from": "babel-traverse@>=6.18.0 <7.0.0", + "_from": "babel-traverse@^6.18.0", "_id": "babel-traverse@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "_location": "/babel-traverse", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-traverse-6.26.0.tgz_1502898856222_0.6180560656357557" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-traverse@^6.18.0", - "scope": null, - "escapedName": "babel-traverse", "name": "babel-traverse", + "escapedName": "babel-traverse", "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.18.0" }, "_requiredBy": [ "/babel-template", @@ -43,13 +21,13 @@ ], "_resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", "_shasum": "46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee", - "_shrinkwrap": null, "_spec": "babel-traverse@^6.18.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "babel-code-frame": "^6.26.0", "babel-messages": "^6.23.0", @@ -61,48 +39,18 @@ "invariant": "^2.2.2", "lodash": "^4.17.4" }, + "deprecated": false, "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", "devDependencies": { "babel-generator": "^6.26.0" }, - "directories": {}, - "dist": { - "shasum": "46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee", - "tarball": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz" - }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-traverse", - "optionalDependencies": {}, - "readme": "# babel-traverse\n\n> babel-traverse maintains the overall tree state, and is responsible for replacing, removing, and adding nodes.\n\n## Install\n\n```sh\n$ npm install --save babel-traverse\n```\n\n## Usage\n\nWe can use it alongside Babylon to traverse and update nodes:\n\n```js\nimport * as babylon from \"babylon\";\nimport traverse from \"babel-traverse\";\n\nconst code = `function square(n) {\n return n * n;\n}`;\n\nconst ast = babylon.parse(code);\n\ntraverse(ast, {\n enter(path) {\n if (path.isIdentifier({ name: \"n\" })) {\n path.node.name = \"x\";\n }\n }\n});\n```\n[:book: **Read the full docs here**](https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-traverse)\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-traverse" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babel-types/package.json b/node_modules/nyc/node_modules/babel-types/package.json index ef9314524..96faf572f 100644 --- a/node_modules/nyc/node_modules/babel-types/package.json +++ b/node_modules/nyc/node_modules/babel-types/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "babel-types@^6.18.0", - "scope": null, - "escapedName": "babel-types", - "name": "babel-types", - "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument" - ] - ], - "_from": "babel-types@>=6.18.0 <7.0.0", + "_from": "babel-types@^6.18.0", "_id": "babel-types@6.26.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "_location": "/babel-types", - "_nodeVersion": "6.9.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babel-types-6.26.0.tgz_1502898852975_0.1106437393464148" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babel-types@^6.18.0", - "scope": null, - "escapedName": "babel-types", "name": "babel-types", + "escapedName": "babel-types", "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.18.0" }, "_requiredBy": [ "/babel-generator", @@ -45,62 +23,32 @@ ], "_resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", "_shasum": "a3b073f94ab49eb6fa55cd65227a334380632497", - "_shrinkwrap": null, "_spec": "babel-types@^6.18.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument", "author": { "name": "Sebastian McKenzie", "email": "sebmck@gmail.com" }, + "bundleDependencies": false, "dependencies": { "babel-runtime": "^6.26.0", "esutils": "^2.0.2", "lodash": "^4.17.4", "to-fast-properties": "^1.0.3" }, + "deprecated": false, "description": "Babel Types is a Lodash-esque utility library for AST nodes", "devDependencies": { "babel-generator": "^6.26.0", "babylon": "^6.18.0" }, - "directories": {}, - "dist": { - "shasum": "a3b073f94ab49eb6fa55cd65227a334380632497", - "tarball": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz" - }, "homepage": "https://babeljs.io/", "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babel-types", - "optionalDependencies": {}, - "readme": "# babel-types\n\n> This module contains methods for building ASTs manually and for checking the types of AST nodes.\n\n## Install\n\n```sh\nnpm install --save-dev babel-types\n```\n\n## API\n\n\n\n### anyTypeAnnotation\n```javascript\nt.anyTypeAnnotation()\n```\n\nSee also `t.isAnyTypeAnnotation(node, opts)` and `t.assertAnyTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### arrayExpression\n```javascript\nt.arrayExpression(elements)\n```\n\nSee also `t.isArrayExpression(node, opts)` and `t.assertArrayExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `elements`: `Array` (default: `[]`)\n\n---\n\n### arrayPattern\n```javascript\nt.arrayPattern(elements, typeAnnotation)\n```\n\nSee also `t.isArrayPattern(node, opts)` and `t.assertArrayPattern(node, opts)`.\n\nAliases: `Pattern`, `LVal`\n\n - `elements`: `Array` (required)\n - `typeAnnotation` (required)\n - `decorators`: `Array` (default: `null`)\n\n---\n\n### arrayTypeAnnotation\n```javascript\nt.arrayTypeAnnotation(elementType)\n```\n\nSee also `t.isArrayTypeAnnotation(node, opts)` and `t.assertArrayTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `elementType` (required)\n\n---\n\n### arrowFunctionExpression\n```javascript\nt.arrowFunctionExpression(params, body, async)\n```\n\nSee also `t.isArrowFunctionExpression(node, opts)` and `t.assertArrowFunctionExpression(node, opts)`.\n\nAliases: `Scopable`, `Function`, `BlockParent`, `FunctionParent`, `Expression`, `Pureish`\n\n - `params`: `Array` (required)\n - `body`: `BlockStatement | Expression` (required)\n - `async`: `boolean` (default: `false`)\n - `returnType` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### assignmentExpression\n```javascript\nt.assignmentExpression(operator, left, right)\n```\n\nSee also `t.isAssignmentExpression(node, opts)` and `t.assertAssignmentExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `operator`: `string` (required)\n - `left`: `LVal` (required)\n - `right`: `Expression` (required)\n\n---\n\n### assignmentPattern\n```javascript\nt.assignmentPattern(left, right)\n```\n\nSee also `t.isAssignmentPattern(node, opts)` and `t.assertAssignmentPattern(node, opts)`.\n\nAliases: `Pattern`, `LVal`\n\n - `left`: `Identifier` (required)\n - `right`: `Expression` (required)\n - `decorators`: `Array` (default: `null`)\n\n---\n\n### awaitExpression\n```javascript\nt.awaitExpression(argument)\n```\n\nSee also `t.isAwaitExpression(node, opts)` and `t.assertAwaitExpression(node, opts)`.\n\nAliases: `Expression`, `Terminatorless`\n\n - `argument`: `Expression` (required)\n\n---\n\n### binaryExpression\n```javascript\nt.binaryExpression(operator, left, right)\n```\n\nSee also `t.isBinaryExpression(node, opts)` and `t.assertBinaryExpression(node, opts)`.\n\nAliases: `Binary`, `Expression`\n\n - `operator`: `'+' | '-' | '/' | '%' | '*' | '**' | '&' | '|' | '>>' | '>>>' | '<<' | '^' | '==' | '===' | '!=' | '!==' | 'in' | 'instanceof' | '>' | '<' | '>=' | '<='` (required)\n - `left`: `Expression` (required)\n - `right`: `Expression` (required)\n\n---\n\n### bindExpression\n```javascript\nt.bindExpression(object, callee)\n```\n\nSee also `t.isBindExpression(node, opts)` and `t.assertBindExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `object` (required)\n - `callee` (required)\n\n---\n\n### blockStatement\n```javascript\nt.blockStatement(body, directives)\n```\n\nSee also `t.isBlockStatement(node, opts)` and `t.assertBlockStatement(node, opts)`.\n\nAliases: `Scopable`, `BlockParent`, `Block`, `Statement`\n\n - `body`: `Array` (required)\n - `directives`: `Array` (default: `[]`)\n\n---\n\n### booleanLiteral\n```javascript\nt.booleanLiteral(value)\n```\n\nSee also `t.isBooleanLiteral(node, opts)` and `t.assertBooleanLiteral(node, opts)`.\n\nAliases: `Expression`, `Pureish`, `Literal`, `Immutable`\n\n - `value`: `boolean` (required)\n\n---\n\n### booleanLiteralTypeAnnotation\n```javascript\nt.booleanLiteralTypeAnnotation()\n```\n\nSee also `t.isBooleanLiteralTypeAnnotation(node, opts)` and `t.assertBooleanLiteralTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n\n---\n\n### booleanTypeAnnotation\n```javascript\nt.booleanTypeAnnotation()\n```\n\nSee also `t.isBooleanTypeAnnotation(node, opts)` and `t.assertBooleanTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### breakStatement\n```javascript\nt.breakStatement(label)\n```\n\nSee also `t.isBreakStatement(node, opts)` and `t.assertBreakStatement(node, opts)`.\n\nAliases: `Statement`, `Terminatorless`, `CompletionStatement`\n\n - `label`: `Identifier` (default: `null`)\n\n---\n\n### callExpression\n```javascript\nt.callExpression(callee, arguments)\n```\n\nSee also `t.isCallExpression(node, opts)` and `t.assertCallExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `callee`: `Expression` (required)\n - `arguments`: `Array` (required)\n\n---\n\n### catchClause\n```javascript\nt.catchClause(param, body)\n```\n\nSee also `t.isCatchClause(node, opts)` and `t.assertCatchClause(node, opts)`.\n\nAliases: `Scopable`\n\n - `param`: `Identifier` (required)\n - `body`: `BlockStatement` (required)\n\n---\n\n### classBody\n```javascript\nt.classBody(body)\n```\n\nSee also `t.isClassBody(node, opts)` and `t.assertClassBody(node, opts)`.\n\n - `body`: `Array` (required)\n\n---\n\n### classDeclaration\n```javascript\nt.classDeclaration(id, superClass, body, decorators)\n```\n\nSee also `t.isClassDeclaration(node, opts)` and `t.assertClassDeclaration(node, opts)`.\n\nAliases: `Scopable`, `Class`, `Statement`, `Declaration`, `Pureish`\n\n - `id`: `Identifier` (required)\n - `superClass`: `Expression` (default: `null`)\n - `body`: `ClassBody` (required)\n - `decorators`: `Array` (required)\n - `implements` (default: `null`)\n - `mixins` (default: `null`)\n - `superTypeParameters` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### classExpression\n```javascript\nt.classExpression(id, superClass, body, decorators)\n```\n\nSee also `t.isClassExpression(node, opts)` and `t.assertClassExpression(node, opts)`.\n\nAliases: `Scopable`, `Class`, `Expression`, `Pureish`\n\n - `id`: `Identifier` (default: `null`)\n - `superClass`: `Expression` (default: `null`)\n - `body`: `ClassBody` (required)\n - `decorators`: `Array` (required)\n - `implements` (default: `null`)\n - `mixins` (default: `null`)\n - `superTypeParameters` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### classImplements\n```javascript\nt.classImplements(id, typeParameters)\n```\n\nSee also `t.isClassImplements(node, opts)` and `t.assertClassImplements(node, opts)`.\n\nAliases: `Flow`\n\n - `id` (required)\n - `typeParameters` (required)\n\n---\n\n### classMethod\n```javascript\nt.classMethod(kind, key, params, body, computed, static)\n```\n\nSee also `t.isClassMethod(node, opts)` and `t.assertClassMethod(node, opts)`.\n\nAliases: `Function`, `Scopable`, `BlockParent`, `FunctionParent`, `Method`\n\n - `kind`: `\"get\" | \"set\" | \"method\" | \"constructor\"` (default: `'method'`)\n - `key`if computed then `Expression` else `Identifier | Literal` (required)\n - `params`: `Array` (required)\n - `body`: `BlockStatement` (required)\n - `computed`: `boolean` (default: `false`)\n - `static`: `boolean` (default: `false`)\n - `async`: `boolean` (default: `false`)\n - `decorators` (default: `null`)\n - `generator`: `boolean` (default: `false`)\n - `returnType` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### classProperty\n```javascript\nt.classProperty(key, value, typeAnnotation, decorators, computed)\n```\n\nSee also `t.isClassProperty(node, opts)` and `t.assertClassProperty(node, opts)`.\n\nAliases: `Property`\n\n - `key` (required)\n - `value` (required)\n - `typeAnnotation` (required)\n - `decorators` (required)\n - `computed`: `boolean` (default: `false`)\n\n---\n\n### conditionalExpression\n```javascript\nt.conditionalExpression(test, consequent, alternate)\n```\n\nSee also `t.isConditionalExpression(node, opts)` and `t.assertConditionalExpression(node, opts)`.\n\nAliases: `Expression`, `Conditional`\n\n - `test`: `Expression` (required)\n - `consequent`: `Expression` (required)\n - `alternate`: `Expression` (required)\n\n---\n\n### continueStatement\n```javascript\nt.continueStatement(label)\n```\n\nSee also `t.isContinueStatement(node, opts)` and `t.assertContinueStatement(node, opts)`.\n\nAliases: `Statement`, `Terminatorless`, `CompletionStatement`\n\n - `label`: `Identifier` (default: `null`)\n\n---\n\n### debuggerStatement\n```javascript\nt.debuggerStatement()\n```\n\nSee also `t.isDebuggerStatement(node, opts)` and `t.assertDebuggerStatement(node, opts)`.\n\nAliases: `Statement`\n\n\n---\n\n### declareClass\n```javascript\nt.declareClass(id, typeParameters, extends, body)\n```\n\nSee also `t.isDeclareClass(node, opts)` and `t.assertDeclareClass(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `extends` (required)\n - `body` (required)\n\n---\n\n### declareExportDeclaration\n```javascript\nt.declareExportDeclaration(declaration, specifiers, source)\n```\n\nSee also `t.isDeclareExportDeclaration(node, opts)` and `t.assertDeclareExportDeclaration(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `declaration` (required)\n - `specifiers` (required)\n - `source` (required)\n\n---\n\n### declareFunction\n```javascript\nt.declareFunction(id)\n```\n\nSee also `t.isDeclareFunction(node, opts)` and `t.assertDeclareFunction(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n\n---\n\n### declareInterface\n```javascript\nt.declareInterface(id, typeParameters, extends, body)\n```\n\nSee also `t.isDeclareInterface(node, opts)` and `t.assertDeclareInterface(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `extends` (required)\n - `body` (required)\n\n---\n\n### declareModule\n```javascript\nt.declareModule(id, body)\n```\n\nSee also `t.isDeclareModule(node, opts)` and `t.assertDeclareModule(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `body` (required)\n\n---\n\n### declareModuleExports\n```javascript\nt.declareModuleExports(typeAnnotation)\n```\n\nSee also `t.isDeclareModuleExports(node, opts)` and `t.assertDeclareModuleExports(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `typeAnnotation` (required)\n\n---\n\n### declareOpaqueType\n```javascript\nt.declareOpaqueType(id, typeParameters, supertype)\n```\n\nSee also `t.isDeclareOpaqueType(node, opts)` and `t.assertDeclareOpaqueType(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `supertype` (required)\n\n---\n\n### declareTypeAlias\n```javascript\nt.declareTypeAlias(id, typeParameters, right)\n```\n\nSee also `t.isDeclareTypeAlias(node, opts)` and `t.assertDeclareTypeAlias(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `right` (required)\n\n---\n\n### declareVariable\n```javascript\nt.declareVariable(id)\n```\n\nSee also `t.isDeclareVariable(node, opts)` and `t.assertDeclareVariable(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n\n---\n\n### decorator\n```javascript\nt.decorator(expression)\n```\n\nSee also `t.isDecorator(node, opts)` and `t.assertDecorator(node, opts)`.\n\n - `expression`: `Expression` (required)\n\n---\n\n### directive\n```javascript\nt.directive(value)\n```\n\nSee also `t.isDirective(node, opts)` and `t.assertDirective(node, opts)`.\n\n - `value`: `DirectiveLiteral` (required)\n\n---\n\n### directiveLiteral\n```javascript\nt.directiveLiteral(value)\n```\n\nSee also `t.isDirectiveLiteral(node, opts)` and `t.assertDirectiveLiteral(node, opts)`.\n\n - `value`: `string` (required)\n\n---\n\n### doExpression\n```javascript\nt.doExpression(body)\n```\n\nSee also `t.isDoExpression(node, opts)` and `t.assertDoExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `body`: `BlockStatement` (required)\n\n---\n\n### doWhileStatement\n```javascript\nt.doWhileStatement(test, body)\n```\n\nSee also `t.isDoWhileStatement(node, opts)` and `t.assertDoWhileStatement(node, opts)`.\n\nAliases: `Statement`, `BlockParent`, `Loop`, `While`, `Scopable`\n\n - `test`: `Expression` (required)\n - `body`: `Statement` (required)\n\n---\n\n### emptyStatement\n```javascript\nt.emptyStatement()\n```\n\nSee also `t.isEmptyStatement(node, opts)` and `t.assertEmptyStatement(node, opts)`.\n\nAliases: `Statement`\n\n\n---\n\n### emptyTypeAnnotation\n```javascript\nt.emptyTypeAnnotation()\n```\n\nSee also `t.isEmptyTypeAnnotation(node, opts)` and `t.assertEmptyTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### existentialTypeParam\n```javascript\nt.existentialTypeParam()\n```\n\nSee also `t.isExistentialTypeParam(node, opts)` and `t.assertExistentialTypeParam(node, opts)`.\n\nAliases: `Flow`\n\n\n---\n\n### exportAllDeclaration\n```javascript\nt.exportAllDeclaration(source)\n```\n\nSee also `t.isExportAllDeclaration(node, opts)` and `t.assertExportAllDeclaration(node, opts)`.\n\nAliases: `Statement`, `Declaration`, `ModuleDeclaration`, `ExportDeclaration`\n\n - `source`: `StringLiteral` (required)\n\n---\n\n### exportDefaultDeclaration\n```javascript\nt.exportDefaultDeclaration(declaration)\n```\n\nSee also `t.isExportDefaultDeclaration(node, opts)` and `t.assertExportDefaultDeclaration(node, opts)`.\n\nAliases: `Statement`, `Declaration`, `ModuleDeclaration`, `ExportDeclaration`\n\n - `declaration`: `FunctionDeclaration | ClassDeclaration | Expression` (required)\n\n---\n\n### exportDefaultSpecifier\n```javascript\nt.exportDefaultSpecifier(exported)\n```\n\nSee also `t.isExportDefaultSpecifier(node, opts)` and `t.assertExportDefaultSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `exported`: `Identifier` (required)\n\n---\n\n### exportNamedDeclaration\n```javascript\nt.exportNamedDeclaration(declaration, specifiers, source)\n```\n\nSee also `t.isExportNamedDeclaration(node, opts)` and `t.assertExportNamedDeclaration(node, opts)`.\n\nAliases: `Statement`, `Declaration`, `ModuleDeclaration`, `ExportDeclaration`\n\n - `declaration`: `Declaration` (default: `null`)\n - `specifiers`: `Array` (required)\n - `source`: `StringLiteral` (default: `null`)\n\n---\n\n### exportNamespaceSpecifier\n```javascript\nt.exportNamespaceSpecifier(exported)\n```\n\nSee also `t.isExportNamespaceSpecifier(node, opts)` and `t.assertExportNamespaceSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `exported`: `Identifier` (required)\n\n---\n\n### exportSpecifier\n```javascript\nt.exportSpecifier(local, exported)\n```\n\nSee also `t.isExportSpecifier(node, opts)` and `t.assertExportSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `local`: `Identifier` (required)\n - `exported`: `Identifier` (required)\n\n---\n\n### expressionStatement\n```javascript\nt.expressionStatement(expression)\n```\n\nSee also `t.isExpressionStatement(node, opts)` and `t.assertExpressionStatement(node, opts)`.\n\nAliases: `Statement`, `ExpressionWrapper`\n\n - `expression`: `Expression` (required)\n\n---\n\n### file\n```javascript\nt.file(program, comments, tokens)\n```\n\nSee also `t.isFile(node, opts)` and `t.assertFile(node, opts)`.\n\n - `program`: `Program` (required)\n - `comments` (required)\n - `tokens` (required)\n\n---\n\n### forAwaitStatement\n```javascript\nt.forAwaitStatement(left, right, body)\n```\n\nSee also `t.isForAwaitStatement(node, opts)` and `t.assertForAwaitStatement(node, opts)`.\n\nAliases: `Scopable`, `Statement`, `For`, `BlockParent`, `Loop`, `ForXStatement`\n\n - `left`: `VariableDeclaration | LVal` (required)\n - `right`: `Expression` (required)\n - `body`: `Statement` (required)\n\n---\n\n### forInStatement\n```javascript\nt.forInStatement(left, right, body)\n```\n\nSee also `t.isForInStatement(node, opts)` and `t.assertForInStatement(node, opts)`.\n\nAliases: `Scopable`, `Statement`, `For`, `BlockParent`, `Loop`, `ForXStatement`\n\n - `left`: `VariableDeclaration | LVal` (required)\n - `right`: `Expression` (required)\n - `body`: `Statement` (required)\n\n---\n\n### forOfStatement\n```javascript\nt.forOfStatement(left, right, body)\n```\n\nSee also `t.isForOfStatement(node, opts)` and `t.assertForOfStatement(node, opts)`.\n\nAliases: `Scopable`, `Statement`, `For`, `BlockParent`, `Loop`, `ForXStatement`\n\n - `left`: `VariableDeclaration | LVal` (required)\n - `right`: `Expression` (required)\n - `body`: `Statement` (required)\n\n---\n\n### forStatement\n```javascript\nt.forStatement(init, test, update, body)\n```\n\nSee also `t.isForStatement(node, opts)` and `t.assertForStatement(node, opts)`.\n\nAliases: `Scopable`, `Statement`, `For`, `BlockParent`, `Loop`\n\n - `init`: `VariableDeclaration | Expression` (default: `null`)\n - `test`: `Expression` (default: `null`)\n - `update`: `Expression` (default: `null`)\n - `body`: `Statement` (required)\n\n---\n\n### functionDeclaration\n```javascript\nt.functionDeclaration(id, params, body, generator, async)\n```\n\nSee also `t.isFunctionDeclaration(node, opts)` and `t.assertFunctionDeclaration(node, opts)`.\n\nAliases: `Scopable`, `Function`, `BlockParent`, `FunctionParent`, `Statement`, `Pureish`, `Declaration`\n\n - `id`: `Identifier` (required)\n - `params`: `Array` (required)\n - `body`: `BlockStatement` (required)\n - `generator`: `boolean` (default: `false`)\n - `async`: `boolean` (default: `false`)\n - `returnType` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### functionExpression\n```javascript\nt.functionExpression(id, params, body, generator, async)\n```\n\nSee also `t.isFunctionExpression(node, opts)` and `t.assertFunctionExpression(node, opts)`.\n\nAliases: `Scopable`, `Function`, `BlockParent`, `FunctionParent`, `Expression`, `Pureish`\n\n - `id`: `Identifier` (default: `null`)\n - `params`: `Array` (required)\n - `body`: `BlockStatement` (required)\n - `generator`: `boolean` (default: `false`)\n - `async`: `boolean` (default: `false`)\n - `returnType` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### functionTypeAnnotation\n```javascript\nt.functionTypeAnnotation(typeParameters, params, rest, returnType)\n```\n\nSee also `t.isFunctionTypeAnnotation(node, opts)` and `t.assertFunctionTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `typeParameters` (required)\n - `params` (required)\n - `rest` (required)\n - `returnType` (required)\n\n---\n\n### functionTypeParam\n```javascript\nt.functionTypeParam(name, typeAnnotation)\n```\n\nSee also `t.isFunctionTypeParam(node, opts)` and `t.assertFunctionTypeParam(node, opts)`.\n\nAliases: `Flow`\n\n - `name` (required)\n - `typeAnnotation` (required)\n\n---\n\n### genericTypeAnnotation\n```javascript\nt.genericTypeAnnotation(id, typeParameters)\n```\n\nSee also `t.isGenericTypeAnnotation(node, opts)` and `t.assertGenericTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `id` (required)\n - `typeParameters` (required)\n\n---\n\n### identifier\n```javascript\nt.identifier(name)\n```\n\nSee also `t.isIdentifier(node, opts)` and `t.assertIdentifier(node, opts)`.\n\nAliases: `Expression`, `LVal`\n\n - `name``string` (required)\n - `decorators`: `Array` (default: `null`)\n - `typeAnnotation` (default: `null`)\n\n---\n\n### ifStatement\n```javascript\nt.ifStatement(test, consequent, alternate)\n```\n\nSee also `t.isIfStatement(node, opts)` and `t.assertIfStatement(node, opts)`.\n\nAliases: `Statement`, `Conditional`\n\n - `test`: `Expression` (required)\n - `consequent`: `Statement` (required)\n - `alternate`: `Statement` (default: `null`)\n\n---\n\n### import\n```javascript\nt.import()\n```\n\nSee also `t.isImport(node, opts)` and `t.assertImport(node, opts)`.\n\nAliases: `Expression`\n\n\n---\n\n### importDeclaration\n```javascript\nt.importDeclaration(specifiers, source)\n```\n\nSee also `t.isImportDeclaration(node, opts)` and `t.assertImportDeclaration(node, opts)`.\n\nAliases: `Statement`, `Declaration`, `ModuleDeclaration`\n\n - `specifiers`: `Array` (required)\n - `source`: `StringLiteral` (required)\n\n---\n\n### importDefaultSpecifier\n```javascript\nt.importDefaultSpecifier(local)\n```\n\nSee also `t.isImportDefaultSpecifier(node, opts)` and `t.assertImportDefaultSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `local`: `Identifier` (required)\n\n---\n\n### importNamespaceSpecifier\n```javascript\nt.importNamespaceSpecifier(local)\n```\n\nSee also `t.isImportNamespaceSpecifier(node, opts)` and `t.assertImportNamespaceSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `local`: `Identifier` (required)\n\n---\n\n### importSpecifier\n```javascript\nt.importSpecifier(local, imported)\n```\n\nSee also `t.isImportSpecifier(node, opts)` and `t.assertImportSpecifier(node, opts)`.\n\nAliases: `ModuleSpecifier`\n\n - `local`: `Identifier` (required)\n - `imported`: `Identifier` (required)\n - `importKind`: `null | 'type' | 'typeof'` (default: `null`)\n\n---\n\n### interfaceDeclaration\n```javascript\nt.interfaceDeclaration(id, typeParameters, extends, body)\n```\n\nSee also `t.isInterfaceDeclaration(node, opts)` and `t.assertInterfaceDeclaration(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `extends` (required)\n - `body` (required)\n\n---\n\n### interfaceExtends\n```javascript\nt.interfaceExtends(id, typeParameters)\n```\n\nSee also `t.isInterfaceExtends(node, opts)` and `t.assertInterfaceExtends(node, opts)`.\n\nAliases: `Flow`\n\n - `id` (required)\n - `typeParameters` (required)\n\n---\n\n### intersectionTypeAnnotation\n```javascript\nt.intersectionTypeAnnotation(types)\n```\n\nSee also `t.isIntersectionTypeAnnotation(node, opts)` and `t.assertIntersectionTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `types` (required)\n\n---\n\n### jSXAttribute\n```javascript\nt.jSXAttribute(name, value)\n```\n\nSee also `t.isJSXAttribute(node, opts)` and `t.assertJSXAttribute(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `name`: `JSXIdentifier | JSXNamespacedName` (required)\n - `value`: `JSXElement | StringLiteral | JSXExpressionContainer` (default: `null`)\n\n---\n\n### jSXClosingElement\n```javascript\nt.jSXClosingElement(name)\n```\n\nSee also `t.isJSXClosingElement(node, opts)` and `t.assertJSXClosingElement(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `name`: `JSXIdentifier | JSXMemberExpression` (required)\n\n---\n\n### jSXElement\n```javascript\nt.jSXElement(openingElement, closingElement, children, selfClosing)\n```\n\nSee also `t.isJSXElement(node, opts)` and `t.assertJSXElement(node, opts)`.\n\nAliases: `JSX`, `Immutable`, `Expression`\n\n - `openingElement`: `JSXOpeningElement` (required)\n - `closingElement`: `JSXClosingElement` (default: `null`)\n - `children`: `Array` (required)\n - `selfClosing` (required)\n\n---\n\n### jSXEmptyExpression\n```javascript\nt.jSXEmptyExpression()\n```\n\nSee also `t.isJSXEmptyExpression(node, opts)` and `t.assertJSXEmptyExpression(node, opts)`.\n\nAliases: `JSX`, `Expression`\n\n\n---\n\n### jSXExpressionContainer\n```javascript\nt.jSXExpressionContainer(expression)\n```\n\nSee also `t.isJSXExpressionContainer(node, opts)` and `t.assertJSXExpressionContainer(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `expression`: `Expression` (required)\n\n---\n\n### jSXIdentifier\n```javascript\nt.jSXIdentifier(name)\n```\n\nSee also `t.isJSXIdentifier(node, opts)` and `t.assertJSXIdentifier(node, opts)`.\n\nAliases: `JSX`, `Expression`\n\n - `name`: `string` (required)\n\n---\n\n### jSXMemberExpression\n```javascript\nt.jSXMemberExpression(object, property)\n```\n\nSee also `t.isJSXMemberExpression(node, opts)` and `t.assertJSXMemberExpression(node, opts)`.\n\nAliases: `JSX`, `Expression`\n\n - `object`: `JSXMemberExpression | JSXIdentifier` (required)\n - `property`: `JSXIdentifier` (required)\n\n---\n\n### jSXNamespacedName\n```javascript\nt.jSXNamespacedName(namespace, name)\n```\n\nSee also `t.isJSXNamespacedName(node, opts)` and `t.assertJSXNamespacedName(node, opts)`.\n\nAliases: `JSX`\n\n - `namespace`: `JSXIdentifier` (required)\n - `name`: `JSXIdentifier` (required)\n\n---\n\n### jSXOpeningElement\n```javascript\nt.jSXOpeningElement(name, attributes, selfClosing)\n```\n\nSee also `t.isJSXOpeningElement(node, opts)` and `t.assertJSXOpeningElement(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `name`: `JSXIdentifier | JSXMemberExpression` (required)\n - `attributes`: `Array` (required)\n - `selfClosing`: `boolean` (default: `false`)\n\n---\n\n### jSXSpreadAttribute\n```javascript\nt.jSXSpreadAttribute(argument)\n```\n\nSee also `t.isJSXSpreadAttribute(node, opts)` and `t.assertJSXSpreadAttribute(node, opts)`.\n\nAliases: `JSX`\n\n - `argument`: `Expression` (required)\n\n---\n\n### jSXSpreadChild\n```javascript\nt.jSXSpreadChild(expression)\n```\n\nSee also `t.isJSXSpreadChild(node, opts)` and `t.assertJSXSpreadChild(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `expression`: `Expression` (required)\n\n---\n\n### jSXText\n```javascript\nt.jSXText(value)\n```\n\nSee also `t.isJSXText(node, opts)` and `t.assertJSXText(node, opts)`.\n\nAliases: `JSX`, `Immutable`\n\n - `value`: `string` (required)\n\n---\n\n### labeledStatement\n```javascript\nt.labeledStatement(label, body)\n```\n\nSee also `t.isLabeledStatement(node, opts)` and `t.assertLabeledStatement(node, opts)`.\n\nAliases: `Statement`\n\n - `label`: `Identifier` (required)\n - `body`: `Statement` (required)\n\n---\n\n### logicalExpression\n```javascript\nt.logicalExpression(operator, left, right)\n```\n\nSee also `t.isLogicalExpression(node, opts)` and `t.assertLogicalExpression(node, opts)`.\n\nAliases: `Binary`, `Expression`\n\n - `operator`: `'||' | '&&'` (required)\n - `left`: `Expression` (required)\n - `right`: `Expression` (required)\n\n---\n\n### memberExpression\n```javascript\nt.memberExpression(object, property, computed)\n```\n\nSee also `t.isMemberExpression(node, opts)` and `t.assertMemberExpression(node, opts)`.\n\nAliases: `Expression`, `LVal`\n\n - `object`: `Expression` (required)\n - `property`if computed then `Expression` else `Identifier` (required)\n - `computed`: `boolean` (default: `false`)\n\n---\n\n### metaProperty\n```javascript\nt.metaProperty(meta, property)\n```\n\nSee also `t.isMetaProperty(node, opts)` and `t.assertMetaProperty(node, opts)`.\n\nAliases: `Expression`\n\n - `meta`: `string` (required)\n - `property`: `string` (required)\n\n---\n\n### mixedTypeAnnotation\n```javascript\nt.mixedTypeAnnotation()\n```\n\nSee also `t.isMixedTypeAnnotation(node, opts)` and `t.assertMixedTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### newExpression\n```javascript\nt.newExpression(callee, arguments)\n```\n\nSee also `t.isNewExpression(node, opts)` and `t.assertNewExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `callee`: `Expression` (required)\n - `arguments`: `Array` (required)\n\n---\n\n### noop\n```javascript\nt.noop()\n```\n\nSee also `t.isNoop(node, opts)` and `t.assertNoop(node, opts)`.\n\n\n---\n\n### nullLiteral\n```javascript\nt.nullLiteral()\n```\n\nSee also `t.isNullLiteral(node, opts)` and `t.assertNullLiteral(node, opts)`.\n\nAliases: `Expression`, `Pureish`, `Literal`, `Immutable`\n\n\n---\n\n### nullLiteralTypeAnnotation\n```javascript\nt.nullLiteralTypeAnnotation()\n```\n\nSee also `t.isNullLiteralTypeAnnotation(node, opts)` and `t.assertNullLiteralTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### nullableTypeAnnotation\n```javascript\nt.nullableTypeAnnotation(typeAnnotation)\n```\n\nSee also `t.isNullableTypeAnnotation(node, opts)` and `t.assertNullableTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `typeAnnotation` (required)\n\n---\n\n### numberTypeAnnotation\n```javascript\nt.numberTypeAnnotation()\n```\n\nSee also `t.isNumberTypeAnnotation(node, opts)` and `t.assertNumberTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### numericLiteral\n```javascript\nt.numericLiteral(value)\n```\n\nSee also `t.isNumericLiteral(node, opts)` and `t.assertNumericLiteral(node, opts)`.\n\nAliases: `Expression`, `Pureish`, `Literal`, `Immutable`\n\n - `value`: `number` (required)\n\n---\n\n### numericLiteralTypeAnnotation\n```javascript\nt.numericLiteralTypeAnnotation()\n```\n\nSee also `t.isNumericLiteralTypeAnnotation(node, opts)` and `t.assertNumericLiteralTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n\n---\n\n### objectExpression\n```javascript\nt.objectExpression(properties)\n```\n\nSee also `t.isObjectExpression(node, opts)` and `t.assertObjectExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `properties`: `Array` (required)\n\n---\n\n### objectMethod\n```javascript\nt.objectMethod(kind, key, params, body, computed)\n```\n\nSee also `t.isObjectMethod(node, opts)` and `t.assertObjectMethod(node, opts)`.\n\nAliases: `UserWhitespacable`, `Function`, `Scopable`, `BlockParent`, `FunctionParent`, `Method`, `ObjectMember`\n\n - `kind`: `\"method\" | \"get\" | \"set\"` (default: `'method'`)\n - `key`if computed then `Expression` else `Identifier | Literal` (required)\n - `params` (required)\n - `body`: `BlockStatement` (required)\n - `computed`: `boolean` (default: `false`)\n - `async`: `boolean` (default: `false`)\n - `decorators`: `Array` (default: `null`)\n - `generator`: `boolean` (default: `false`)\n - `returnType` (default: `null`)\n - `typeParameters` (default: `null`)\n\n---\n\n### objectPattern\n```javascript\nt.objectPattern(properties, typeAnnotation)\n```\n\nSee also `t.isObjectPattern(node, opts)` and `t.assertObjectPattern(node, opts)`.\n\nAliases: `Pattern`, `LVal`\n\n - `properties`: `Array` (required)\n - `typeAnnotation` (required)\n - `decorators`: `Array` (default: `null`)\n\n---\n\n### objectProperty\n```javascript\nt.objectProperty(key, value, computed, shorthand, decorators)\n```\n\nSee also `t.isObjectProperty(node, opts)` and `t.assertObjectProperty(node, opts)`.\n\nAliases: `UserWhitespacable`, `Property`, `ObjectMember`\n\n - `key`if computed then `Expression` else `Identifier | Literal` (required)\n - `value`: `Expression | Pattern | RestElement` (required)\n - `computed`: `boolean` (default: `false`)\n - `shorthand`: `boolean` (default: `false`)\n - `decorators`: `Array` (default: `null`)\n\n---\n\n### objectTypeAnnotation\n```javascript\nt.objectTypeAnnotation(properties, indexers, callProperties)\n```\n\nSee also `t.isObjectTypeAnnotation(node, opts)` and `t.assertObjectTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `properties` (required)\n - `indexers` (required)\n - `callProperties` (required)\n\n---\n\n### objectTypeCallProperty\n```javascript\nt.objectTypeCallProperty(value)\n```\n\nSee also `t.isObjectTypeCallProperty(node, opts)` and `t.assertObjectTypeCallProperty(node, opts)`.\n\nAliases: `Flow`, `UserWhitespacable`\n\n - `value` (required)\n\n---\n\n### objectTypeIndexer\n```javascript\nt.objectTypeIndexer(id, key, value)\n```\n\nSee also `t.isObjectTypeIndexer(node, opts)` and `t.assertObjectTypeIndexer(node, opts)`.\n\nAliases: `Flow`, `UserWhitespacable`\n\n - `id` (required)\n - `key` (required)\n - `value` (required)\n\n---\n\n### objectTypeProperty\n```javascript\nt.objectTypeProperty(key, value)\n```\n\nSee also `t.isObjectTypeProperty(node, opts)` and `t.assertObjectTypeProperty(node, opts)`.\n\nAliases: `Flow`, `UserWhitespacable`\n\n - `key` (required)\n - `value` (required)\n\n---\n\n### objectTypeSpreadProperty\n```javascript\nt.objectTypeSpreadProperty(argument)\n```\n\nSee also `t.isObjectTypeSpreadProperty(node, opts)` and `t.assertObjectTypeSpreadProperty(node, opts)`.\n\nAliases: `Flow`, `UserWhitespacable`\n\n - `argument` (required)\n\n---\n\n### opaqueType\n```javascript\nt.opaqueType(id, typeParameters, impltype, supertype)\n```\n\nSee also `t.isOpaqueType(node, opts)` and `t.assertOpaqueType(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `impltype` (required)\n - `supertype` (required)\n\n---\n\n### parenthesizedExpression\n```javascript\nt.parenthesizedExpression(expression)\n```\n\nSee also `t.isParenthesizedExpression(node, opts)` and `t.assertParenthesizedExpression(node, opts)`.\n\nAliases: `Expression`, `ExpressionWrapper`\n\n - `expression`: `Expression` (required)\n\n---\n\n### program\n```javascript\nt.program(body, directives)\n```\n\nSee also `t.isProgram(node, opts)` and `t.assertProgram(node, opts)`.\n\nAliases: `Scopable`, `BlockParent`, `Block`, `FunctionParent`\n\n - `body`: `Array` (required)\n - `directives`: `Array` (default: `[]`)\n\n---\n\n### qualifiedTypeIdentifier\n```javascript\nt.qualifiedTypeIdentifier(id, qualification)\n```\n\nSee also `t.isQualifiedTypeIdentifier(node, opts)` and `t.assertQualifiedTypeIdentifier(node, opts)`.\n\nAliases: `Flow`\n\n - `id` (required)\n - `qualification` (required)\n\n---\n\n### regExpLiteral\n```javascript\nt.regExpLiteral(pattern, flags)\n```\n\nSee also `t.isRegExpLiteral(node, opts)` and `t.assertRegExpLiteral(node, opts)`.\n\nAliases: `Expression`, `Literal`\n\n - `pattern`: `string` (required)\n - `flags`: `string` (default: `''`)\n\n---\n\n### restElement\n```javascript\nt.restElement(argument, typeAnnotation)\n```\n\nSee also `t.isRestElement(node, opts)` and `t.assertRestElement(node, opts)`.\n\nAliases: `LVal`\n\n - `argument`: `LVal` (required)\n - `typeAnnotation` (required)\n - `decorators`: `Array` (default: `null`)\n\n---\n\n### restProperty\n```javascript\nt.restProperty(argument)\n```\n\nSee also `t.isRestProperty(node, opts)` and `t.assertRestProperty(node, opts)`.\n\nAliases: `UnaryLike`\n\n - `argument`: `LVal` (required)\n\n---\n\n### returnStatement\n```javascript\nt.returnStatement(argument)\n```\n\nSee also `t.isReturnStatement(node, opts)` and `t.assertReturnStatement(node, opts)`.\n\nAliases: `Statement`, `Terminatorless`, `CompletionStatement`\n\n - `argument`: `Expression` (default: `null`)\n\n---\n\n### sequenceExpression\n```javascript\nt.sequenceExpression(expressions)\n```\n\nSee also `t.isSequenceExpression(node, opts)` and `t.assertSequenceExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `expressions`: `Array` (required)\n\n---\n\n### spreadElement\n```javascript\nt.spreadElement(argument)\n```\n\nSee also `t.isSpreadElement(node, opts)` and `t.assertSpreadElement(node, opts)`.\n\nAliases: `UnaryLike`\n\n - `argument`: `Expression` (required)\n\n---\n\n### spreadProperty\n```javascript\nt.spreadProperty(argument)\n```\n\nSee also `t.isSpreadProperty(node, opts)` and `t.assertSpreadProperty(node, opts)`.\n\nAliases: `UnaryLike`\n\n - `argument`: `Expression` (required)\n\n---\n\n### stringLiteral\n```javascript\nt.stringLiteral(value)\n```\n\nSee also `t.isStringLiteral(node, opts)` and `t.assertStringLiteral(node, opts)`.\n\nAliases: `Expression`, `Pureish`, `Literal`, `Immutable`\n\n - `value`: `string` (required)\n\n---\n\n### stringLiteralTypeAnnotation\n```javascript\nt.stringLiteralTypeAnnotation()\n```\n\nSee also `t.isStringLiteralTypeAnnotation(node, opts)` and `t.assertStringLiteralTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n\n---\n\n### stringTypeAnnotation\n```javascript\nt.stringTypeAnnotation()\n```\n\nSee also `t.isStringTypeAnnotation(node, opts)` and `t.assertStringTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### super\n```javascript\nt.super()\n```\n\nSee also `t.isSuper(node, opts)` and `t.assertSuper(node, opts)`.\n\nAliases: `Expression`\n\n\n---\n\n### switchCase\n```javascript\nt.switchCase(test, consequent)\n```\n\nSee also `t.isSwitchCase(node, opts)` and `t.assertSwitchCase(node, opts)`.\n\n - `test`: `Expression` (default: `null`)\n - `consequent`: `Array` (required)\n\n---\n\n### switchStatement\n```javascript\nt.switchStatement(discriminant, cases)\n```\n\nSee also `t.isSwitchStatement(node, opts)` and `t.assertSwitchStatement(node, opts)`.\n\nAliases: `Statement`, `BlockParent`, `Scopable`\n\n - `discriminant`: `Expression` (required)\n - `cases`: `Array` (required)\n\n---\n\n### taggedTemplateExpression\n```javascript\nt.taggedTemplateExpression(tag, quasi)\n```\n\nSee also `t.isTaggedTemplateExpression(node, opts)` and `t.assertTaggedTemplateExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `tag`: `Expression` (required)\n - `quasi`: `TemplateLiteral` (required)\n\n---\n\n### templateElement\n```javascript\nt.templateElement(value, tail)\n```\n\nSee also `t.isTemplateElement(node, opts)` and `t.assertTemplateElement(node, opts)`.\n\n - `value` (required)\n - `tail`: `boolean` (default: `false`)\n\n---\n\n### templateLiteral\n```javascript\nt.templateLiteral(quasis, expressions)\n```\n\nSee also `t.isTemplateLiteral(node, opts)` and `t.assertTemplateLiteral(node, opts)`.\n\nAliases: `Expression`, `Literal`\n\n - `quasis`: `Array` (required)\n - `expressions`: `Array` (required)\n\n---\n\n### thisExpression\n```javascript\nt.thisExpression()\n```\n\nSee also `t.isThisExpression(node, opts)` and `t.assertThisExpression(node, opts)`.\n\nAliases: `Expression`\n\n\n---\n\n### thisTypeAnnotation\n```javascript\nt.thisTypeAnnotation()\n```\n\nSee also `t.isThisTypeAnnotation(node, opts)` and `t.assertThisTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### throwStatement\n```javascript\nt.throwStatement(argument)\n```\n\nSee also `t.isThrowStatement(node, opts)` and `t.assertThrowStatement(node, opts)`.\n\nAliases: `Statement`, `Terminatorless`, `CompletionStatement`\n\n - `argument`: `Expression` (required)\n\n---\n\n### tryStatement\n```javascript\nt.tryStatement(block, handler, finalizer)\n```\n\nSee also `t.isTryStatement(node, opts)` and `t.assertTryStatement(node, opts)`.\n\nAliases: `Statement`\n\n - `block` (required)\n - `handler` (default: `null`)\n - `finalizer`: `BlockStatement` (default: `null`)\n - `body`: `BlockStatement` (default: `null`)\n\n---\n\n### tupleTypeAnnotation\n```javascript\nt.tupleTypeAnnotation(types)\n```\n\nSee also `t.isTupleTypeAnnotation(node, opts)` and `t.assertTupleTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `types` (required)\n\n---\n\n### typeAlias\n```javascript\nt.typeAlias(id, typeParameters, right)\n```\n\nSee also `t.isTypeAlias(node, opts)` and `t.assertTypeAlias(node, opts)`.\n\nAliases: `Flow`, `FlowDeclaration`, `Statement`, `Declaration`\n\n - `id` (required)\n - `typeParameters` (required)\n - `right` (required)\n\n---\n\n### typeAnnotation\n```javascript\nt.typeAnnotation(typeAnnotation)\n```\n\nSee also `t.isTypeAnnotation(node, opts)` and `t.assertTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `typeAnnotation` (required)\n\n---\n\n### typeCastExpression\n```javascript\nt.typeCastExpression(expression, typeAnnotation)\n```\n\nSee also `t.isTypeCastExpression(node, opts)` and `t.assertTypeCastExpression(node, opts)`.\n\nAliases: `Flow`, `ExpressionWrapper`, `Expression`\n\n - `expression` (required)\n - `typeAnnotation` (required)\n\n---\n\n### typeParameter\n```javascript\nt.typeParameter(bound)\n```\n\nSee also `t.isTypeParameter(node, opts)` and `t.assertTypeParameter(node, opts)`.\n\nAliases: `Flow`\n\n - `bound` (required)\n\n---\n\n### typeParameterDeclaration\n```javascript\nt.typeParameterDeclaration(params)\n```\n\nSee also `t.isTypeParameterDeclaration(node, opts)` and `t.assertTypeParameterDeclaration(node, opts)`.\n\nAliases: `Flow`\n\n - `params` (required)\n\n---\n\n### typeParameterInstantiation\n```javascript\nt.typeParameterInstantiation(params)\n```\n\nSee also `t.isTypeParameterInstantiation(node, opts)` and `t.assertTypeParameterInstantiation(node, opts)`.\n\nAliases: `Flow`\n\n - `params` (required)\n\n---\n\n### typeofTypeAnnotation\n```javascript\nt.typeofTypeAnnotation(argument)\n```\n\nSee also `t.isTypeofTypeAnnotation(node, opts)` and `t.assertTypeofTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `argument` (required)\n\n---\n\n### unaryExpression\n```javascript\nt.unaryExpression(operator, argument, prefix)\n```\n\nSee also `t.isUnaryExpression(node, opts)` and `t.assertUnaryExpression(node, opts)`.\n\nAliases: `UnaryLike`, `Expression`\n\n - `operator`: `'void' | 'delete' | '!' | '+' | '-' | '++' | '--' | '~' | 'typeof'` (required)\n - `argument`: `Expression` (required)\n - `prefix`: `boolean` (default: `true`)\n\n---\n\n### unionTypeAnnotation\n```javascript\nt.unionTypeAnnotation(types)\n```\n\nSee also `t.isUnionTypeAnnotation(node, opts)` and `t.assertUnionTypeAnnotation(node, opts)`.\n\nAliases: `Flow`\n\n - `types` (required)\n\n---\n\n### updateExpression\n```javascript\nt.updateExpression(operator, argument, prefix)\n```\n\nSee also `t.isUpdateExpression(node, opts)` and `t.assertUpdateExpression(node, opts)`.\n\nAliases: `Expression`\n\n - `operator`: `'++' | '--'` (required)\n - `argument`: `Expression` (required)\n - `prefix`: `boolean` (default: `false`)\n\n---\n\n### variableDeclaration\n```javascript\nt.variableDeclaration(kind, declarations)\n```\n\nSee also `t.isVariableDeclaration(node, opts)` and `t.assertVariableDeclaration(node, opts)`.\n\nAliases: `Statement`, `Declaration`\n\n - `kind`: `\"var\" | \"let\" | \"const\"` (required)\n - `declarations`: `Array` (required)\n\n---\n\n### variableDeclarator\n```javascript\nt.variableDeclarator(id, init)\n```\n\nSee also `t.isVariableDeclarator(node, opts)` and `t.assertVariableDeclarator(node, opts)`.\n\n - `id`: `LVal` (required)\n - `init`: `Expression` (default: `null`)\n\n---\n\n### voidTypeAnnotation\n```javascript\nt.voidTypeAnnotation()\n```\n\nSee also `t.isVoidTypeAnnotation(node, opts)` and `t.assertVoidTypeAnnotation(node, opts)`.\n\nAliases: `Flow`, `FlowBaseAnnotation`\n\n\n---\n\n### whileStatement\n```javascript\nt.whileStatement(test, body)\n```\n\nSee also `t.isWhileStatement(node, opts)` and `t.assertWhileStatement(node, opts)`.\n\nAliases: `Statement`, `BlockParent`, `Loop`, `While`, `Scopable`\n\n - `test`: `Expression` (required)\n - `body`: `BlockStatement | Statement` (required)\n\n---\n\n### withStatement\n```javascript\nt.withStatement(object, body)\n```\n\nSee also `t.isWithStatement(node, opts)` and `t.assertWithStatement(node, opts)`.\n\nAliases: `Statement`\n\n - `object` (required)\n - `body`: `BlockStatement | Statement` (required)\n\n---\n\n### yieldExpression\n```javascript\nt.yieldExpression(argument, delegate)\n```\n\nSee also `t.isYieldExpression(node, opts)` and `t.assertYieldExpression(node, opts)`.\n\nAliases: `Expression`, `Terminatorless`\n\n - `argument`: `Expression` (default: `null`)\n - `delegate`: `boolean` (default: `false`)\n\n---\n\n\n\n\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-types" }, - "scripts": {}, "version": "6.26.0" } diff --git a/node_modules/nyc/node_modules/babylon/package.json b/node_modules/nyc/node_modules/babylon/package.json index 1dbec55f3..72ee36e67 100644 --- a/node_modules/nyc/node_modules/babylon/package.json +++ b/node_modules/nyc/node_modules/babylon/package.json @@ -1,41 +1,19 @@ { - "_args": [ - [ - { - "raw": "babylon@^6.18.0", - "scope": null, - "escapedName": "babylon", - "name": "babylon", - "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument" - ] - ], - "_from": "babylon@>=6.18.0 <7.0.0", + "_from": "babylon@^6.18.0", "_id": "babylon@6.18.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", "_location": "/babylon", - "_nodeVersion": "8.1.4", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/babylon-6.18.0.tgz_1502826087244_0.3836642249953002" - }, - "_npmUser": { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - "_npmVersion": "5.3.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "babylon@^6.18.0", - "scope": null, - "escapedName": "babylon", "name": "babylon", + "escapedName": "babylon", "rawSpec": "^6.18.0", - "spec": ">=6.18.0 <7.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^6.18.0" }, "_requiredBy": [ "/babel-template", @@ -44,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", "_shasum": "af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3", - "_shrinkwrap": null, "_spec": "babylon@^6.18.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/istanbul-lib-instrument", "author": { @@ -66,129 +43,8 @@ "bugs": { "url": "https://github.com/babel/babylon/issues" }, - "contributors": [ - { - "name": "List of Acorn contributors. Updated before every release." - }, - { - "name": "Adrian Rakovsky" - }, - { - "name": "Alistair Braidwood" - }, - { - "name": "Andres Suarez" - }, - { - "name": "Aparajita Fishman" - }, - { - "name": "Arian Stolwijk" - }, - { - "name": "Artem Govorov" - }, - { - "name": "Brandon Mills" - }, - { - "name": "Charles Hughes" - }, - { - "name": "Conrad Irwin" - }, - { - "name": "David Bonnet" - }, - { - "name": "Forbes Lindesay" - }, - { - "name": "Gilad Peleg" - }, - { - "name": "impinball" - }, - { - "name": "Ingvar Stepanyan" - }, - { - "name": "Jesse McCarthy" - }, - { - "name": "Jiaxing Wang" - }, - { - "name": "Joel Kemp" - }, - { - "name": "Johannes Herr" - }, - { - "name": "Jürg Lehni" - }, - { - "name": "keeyipchan" - }, - { - "name": "Kevin Kwok" - }, - { - "name": "krator" - }, - { - "name": "Marijn Haverbeke" - }, - { - "name": "Martin Carlberg" - }, - { - "name": "Mathias Bynens" - }, - { - "name": "Mathieu 'p01' Henri" - }, - { - "name": "Max Schaefer" - }, - { - "name": "Max Zerzouri" - }, - { - "name": "Mihai Bazon" - }, - { - "name": "Mike Rennie" - }, - { - "name": "Nick Fitzgerald" - }, - { - "name": "Oskar Schöldström" - }, - { - "name": "Paul Harper" - }, - { - "name": "Peter Rust" - }, - { - "name": "PlNG" - }, - { - "name": "r-e-d" - }, - { - "name": "Rich Harris" - }, - { - "name": "Sebastian McKenzie" - }, - { - "name": "zsjforcn" - } - ], - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "A JavaScript parser", "devDependencies": { "ava": "^0.17.0", @@ -215,17 +71,10 @@ "rollup-watch": "^3.2.2", "unicode-9.0.0": "~0.7.0" }, - "directories": {}, - "dist": { - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "shasum": "af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3", - "tarball": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz" - }, "files": [ "bin", "lib" ], - "gitHead": "da66d3f65b0d305c0bb042873d57f26f0c0b0538", "greenkeeper": { "ignore": [ "cross-env" @@ -240,28 +89,6 @@ ], "license": "MIT", "main": "lib/index.js", - "maintainers": [ - { - "name": "thejameskyle", - "email": "me@thejameskyle.com" - }, - { - "name": "sebmck", - "email": "sebmck@gmail.com" - }, - { - "name": "danez", - "email": "daniel@tschinder.de" - }, - { - "name": "hzoo", - "email": "hi@henryzoo.com" - }, - { - "name": "loganfsmyth", - "email": "loganfsmyth@gmail.com" - } - ], "name": "babylon", "nyc": { "include": [ @@ -271,9 +98,6 @@ "sourceMap": false, "instrument": false }, - "optionalDependencies": {}, - "readme": "

\n \"babylon\"\n

\n\n

\n Babylon is a JavaScript parser used in Babel.\n

\n\n

\n \"Travis\n \"Codecov\n

\n\n - The latest ECMAScript version enabled by default (ES2017).\n - Comment attachment.\n - Support for JSX and Flow.\n - Support for experimental language proposals (accepting PRs for anything at least [stage-0](https://github.com/tc39/proposals/blob/master/stage-0-proposals.md)).\n\n## Credits\n\nHeavily based on [acorn](https://github.com/marijnh/acorn) and [acorn-jsx](https://github.com/RReverser/acorn-jsx),\nthanks to the awesome work of [@RReverser](https://github.com/RReverser) and [@marijnh](https://github.com/marijnh).\n\nSignificant diversions are expected to occur in the future such as streaming, EBNF definitions, sweet.js integration, interspatial parsing and more.\n\n## API\n\n### `babylon.parse(code, [options])`\n\n### `babylon.parseExpression(code, [options])`\n\n`parse()` parses the provided `code` as an entire ECMAScript program, while\n`parseExpression()` tries to parse a single Expression with performance in\nmind. When in doubt, use `.parse()`.\n\n### Options\n\n- **allowImportExportEverywhere**: By default, `import` and `export`\n declarations can only appear at a program's top level. Setting this\n option to `true` allows them anywhere where a statement is allowed.\n\n- **allowReturnOutsideFunction**: By default, a return statement at\n the top level raises an error. Set this to `true` to accept such\n code.\n\n- **allowSuperOutsideMethod**: TODO\n\n- **sourceType**: Indicate the mode the code should be parsed in. Can be\n either `\"script\"` or `\"module\"`.\n\n- **sourceFilename**: Correlate output AST nodes with their source filename. Useful when generating code and source maps from the ASTs of multiple input files.\n\n- **startLine**: By default, the first line of code parsed is treated as line 1. You can provide a line number to alternatively start with. Useful for integration with other source tools.\n\n- **plugins**: Array containing the plugins that you want to enable.\n\n- **strictMode**: TODO\n\n### Output\n\nBabylon generates AST according to [Babel AST format][].\nIt is based on [ESTree spec][] with the following deviations:\n\n> There is now an `estree` plugin which reverts these deviations\n\n- [Literal][] token is replaced with [StringLiteral][], [NumericLiteral][], [BooleanLiteral][], [NullLiteral][], [RegExpLiteral][]\n- [Property][] token is replaced with [ObjectProperty][] and [ObjectMethod][]\n- [MethodDefinition][] is replaced with [ClassMethod][]\n- [Program][] and [BlockStatement][] contain additional `directives` field with [Directive][] and [DirectiveLiteral][]\n- [ClassMethod][], [ObjectProperty][], and [ObjectMethod][] value property's properties in [FunctionExpression][] is coerced/brought into the main method node.\n\nAST for JSX code is based on [Facebook JSX AST][] with the addition of one node type:\n\n- `JSXText`\n\n[Babel AST format]: https://github.com/babel/babylon/blob/master/ast/spec.md\n[ESTree spec]: https://github.com/estree/estree\n\n[Literal]: https://github.com/estree/estree/blob/master/es5.md#literal\n[Property]: https://github.com/estree/estree/blob/master/es5.md#property\n[MethodDefinition]: https://github.com/estree/estree/blob/master/es2015.md#methoddefinition\n\n[StringLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#stringliteral\n[NumericLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#numericliteral\n[BooleanLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#booleanliteral\n[NullLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#nullliteral\n[RegExpLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#regexpliteral\n[ObjectProperty]: https://github.com/babel/babylon/blob/master/ast/spec.md#objectproperty\n[ObjectMethod]: https://github.com/babel/babylon/blob/master/ast/spec.md#objectmethod\n[ClassMethod]: https://github.com/babel/babylon/blob/master/ast/spec.md#classmethod\n[Program]: https://github.com/babel/babylon/blob/master/ast/spec.md#programs\n[BlockStatement]: https://github.com/babel/babylon/blob/master/ast/spec.md#blockstatement\n[Directive]: https://github.com/babel/babylon/blob/master/ast/spec.md#directive\n[DirectiveLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#directiveliteral\n[FunctionExpression]: https://github.com/babel/babylon/blob/master/ast/spec.md#functionexpression\n\n[Facebook JSX AST]: https://github.com/facebook/jsx/blob/master/AST.md\n\n### Semver\n\nBabylon follows semver in most situations. The only thing to note is that some spec-compliancy bug fixes may be released under patch versions.\n\nFor example: We push a fix to early error on something like [#107](https://github.com/babel/babylon/pull/107) - multiple default exports per file. That would be considered a bug fix even though it would cause a build to fail.\n\n### Example\n\n```javascript\nrequire(\"babylon\").parse(\"code\", {\n // parse in strict mode and allow module declarations\n sourceType: \"module\",\n\n plugins: [\n // enable jsx and flow syntax\n \"jsx\",\n \"flow\"\n ]\n});\n```\n\n### Plugins\n\n - `estree`\n - `jsx`\n - `flow`\n - `doExpressions`\n - `objectRestSpread`\n - `decorators` (Based on an outdated version of the Decorators proposal. Will be removed in a future version of `Babylon`)\n - `classProperties`\n - `exportExtensions`\n - `asyncGenerators`\n - `functionBind`\n - `functionSent`\n - `dynamicImport`\n - `templateInvalidEscapes`\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/babel/babylon.git" diff --git a/node_modules/nyc/node_modules/balanced-match/package.json b/node_modules/nyc/node_modules/balanced-match/package.json index ceea4be5f..d019b4657 100644 --- a/node_modules/nyc/node_modules/balanced-match/package.json +++ b/node_modules/nyc/node_modules/balanced-match/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "balanced-match@^1.0.0", - "scope": null, - "escapedName": "balanced-match", - "name": "balanced-match", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/brace-expansion" - ] - ], - "_from": "balanced-match@>=1.0.0 <2.0.0", + "_from": "balanced-match@^1.0.0", "_id": "balanced-match@1.0.0", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "_location": "/balanced-match", - "_nodeVersion": "7.8.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/balanced-match-1.0.0.tgz_1497251909645_0.8755026108119637" - }, - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "4.2.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "balanced-match@^1.0.0", - "scope": null, - "escapedName": "balanced-match", "name": "balanced-match", + "escapedName": "balanced-match", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/brace-expansion" ], "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "_shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767", - "_shrinkwrap": null, "_spec": "balanced-match@^1.0.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/brace-expansion", "author": { @@ -53,18 +30,14 @@ "bugs": { "url": "https://github.com/juliangruber/balanced-match/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Match balanced character pairs, like \"{\" and \"}\"", "devDependencies": { "matcha": "^0.7.0", "tape": "^4.6.0" }, - "directories": {}, - "dist": { - "shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767", - "tarball": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" - }, - "gitHead": "d701a549a7653a874eebce7eca25d3577dc868ac", "homepage": "https://github.com/juliangruber/balanced-match", "keywords": [ "match", @@ -75,16 +48,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], "name": "balanced-match", - "optionalDependencies": {}, - "readme": "# balanced-match\n\nMatch balanced string pairs, like `{` and `}` or `` and ``. Supports regular expressions as well!\n\n[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)\n[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)\n\n[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)\n\n## Example\n\nGet the first matching pair of braces:\n\n```js\nvar balanced = require('balanced-match');\n\nconsole.log(balanced('{', '}', 'pre{in{nested}}post'));\nconsole.log(balanced('{', '}', 'pre{first}between{second}post'));\nconsole.log(balanced(/\\s+\\{\\s+/, /\\s+\\}\\s+/, 'pre { in{nest} } post'));\n```\n\nThe matches are:\n\n```bash\n$ node example.js\n{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }\n{ start: 3,\n end: 9,\n pre: 'pre',\n body: 'first',\n post: 'between{second}post' }\n{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }\n```\n\n## API\n\n### var m = balanced(a, b, str)\n\nFor the first non-nested matching pair of `a` and `b` in `str`, return an\nobject with those keys:\n\n* **start** the index of the first match of `a`\n* **end** the index of the matching `b`\n* **pre** the preamble, `a` and `b` not included\n* **body** the match, `a` and `b` not included\n* **post** the postscript, `a` and `b` not included\n\nIf there's no match, `undefined` will be returned.\n\nIf the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.\n\n### var r = balanced.range(a, b, str)\n\nFor the first non-nested matching pair of `a` and `b` in `str`, return an\narray with indexes: `[ , ]`.\n\nIf there's no match, `undefined` will be returned.\n\nIf the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.\n\n## Installation\n\nWith [npm](https://npmjs.org) do:\n\n```bash\nnpm install balanced-match\n```\n\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber <julian@juliangruber.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/juliangruber/balanced-match.git" diff --git a/node_modules/nyc/node_modules/brace-expansion/package.json b/node_modules/nyc/node_modules/brace-expansion/package.json index 34f34edf3..22000e4a6 100644 --- a/node_modules/nyc/node_modules/brace-expansion/package.json +++ b/node_modules/nyc/node_modules/brace-expansion/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "brace-expansion@^1.1.7", - "scope": null, - "escapedName": "brace-expansion", - "name": "brace-expansion", - "rawSpec": "^1.1.7", - "spec": ">=1.1.7 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/minimatch" - ] - ], - "_from": "brace-expansion@>=1.1.7 <2.0.0", + "_from": "brace-expansion@^1.1.7", "_id": "brace-expansion@1.1.8", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "_location": "/brace-expansion", - "_nodeVersion": "7.8.0", - "_npmOperationalInternal": { - "host": "s3://npm-registry-packages", - "tmp": "tmp/brace-expansion-1.1.8.tgz_1497251980593_0.6575565172825009" - }, - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "4.2.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "brace-expansion@^1.1.7", - "scope": null, - "escapedName": "brace-expansion", "name": "brace-expansion", + "escapedName": "brace-expansion", "rawSpec": "^1.1.7", - "spec": ">=1.1.7 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.1.7" }, "_requiredBy": [ "/minimatch" ], "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "_shasum": "c07b211c7c952ec1f8efd51a77ef0d1d3990a292", - "_shrinkwrap": null, "_spec": "brace-expansion@^1.1.7", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/minimatch", "author": { @@ -53,39 +30,22 @@ "bugs": { "url": "https://github.com/juliangruber/brace-expansion/issues" }, + "bundleDependencies": false, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" }, + "deprecated": false, "description": "Brace expansion as known from sh/bash", "devDependencies": { "matcha": "^0.7.0", "tape": "^4.6.0" }, - "directories": {}, - "dist": { - "shasum": "c07b211c7c952ec1f8efd51a77ef0d1d3990a292", - "tarball": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz" - }, - "gitHead": "8f59e68bd5c915a0d624e8e39354e1ccf672edf6", "homepage": "https://github.com/juliangruber/brace-expansion", "keywords": [], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - } - ], "name": "brace-expansion", - "optionalDependencies": {}, - "readme": "# brace-expansion\n\n[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), \nas known from sh/bash, in JavaScript.\n\n[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)\n[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)\n[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/)\n\n[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)\n\n## Example\n\n```js\nvar expand = require('brace-expansion');\n\nexpand('file-{a,b,c}.jpg')\n// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']\n\nexpand('-v{,,}')\n// => ['-v', '-v', '-v']\n\nexpand('file{0..2}.jpg')\n// => ['file0.jpg', 'file1.jpg', 'file2.jpg']\n\nexpand('file-{a..c}.jpg')\n// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']\n\nexpand('file{2..0}.jpg')\n// => ['file2.jpg', 'file1.jpg', 'file0.jpg']\n\nexpand('file{0..4..2}.jpg')\n// => ['file0.jpg', 'file2.jpg', 'file4.jpg']\n\nexpand('file-{a..e..2}.jpg')\n// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']\n\nexpand('file{00..10..5}.jpg')\n// => ['file00.jpg', 'file05.jpg', 'file10.jpg']\n\nexpand('{{A..C},{a..c}}')\n// => ['A', 'B', 'C', 'a', 'b', 'c']\n\nexpand('ppp{,config,oe{,conf}}')\n// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']\n```\n\n## API\n\n```js\nvar expand = require('brace-expansion');\n```\n\n### var expanded = expand(str)\n\nReturn an array of all possible and valid expansions of `str`. If none are\nfound, `[str]` is returned.\n\nValid expansions are:\n\n```js\n/^(.*,)+(.+)?$/\n// {a,b,...}\n```\n\nA comma seperated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.\n\n```js\n/^-?\\d+\\.\\.-?\\d+(\\.\\.-?\\d+)?$/\n// {x..y[..incr]}\n```\n\nA numeric sequence from `x` to `y` inclusive, with optional increment.\nIf `x` or `y` start with a leading `0`, all the numbers will be padded\nto have equal length. Negative numbers and backwards iteration work too.\n\n```js\n/^-?\\d+\\.\\.-?\\d+(\\.\\.-?\\d+)?$/\n// {x..y[..incr]}\n```\n\nAn alphabetic sequence from `x` to `y` inclusive, with optional increment.\n`x` and `y` must be exactly one character, and if given, `incr` must be a\nnumber.\n\nFor compatibility reasons, the string `${` is not eligible for brace expansion.\n\n## Installation\n\nWith [npm](https://npmjs.org) do:\n\n```bash\nnpm install brace-expansion\n```\n\n## Contributors\n\n- [Julian Gruber](https://github.com/juliangruber)\n- [Isaac Z. Schlueter](https://github.com/isaacs)\n\n## License\n\n(MIT)\n\nCopyright (c) 2013 Julian Gruber <julian@juliangruber.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/juliangruber/brace-expansion.git" diff --git a/node_modules/nyc/node_modules/braces/package.json b/node_modules/nyc/node_modules/braces/package.json index fb2224c57..c19900278 100644 --- a/node_modules/nyc/node_modules/braces/package.json +++ b/node_modules/nyc/node_modules/braces/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "braces@^1.8.2", - "scope": null, - "escapedName": "braces", - "name": "braces", - "rawSpec": "^1.8.2", - "spec": ">=1.8.2 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch" - ] - ], - "_from": "braces@>=1.8.2 <2.0.0", + "_from": "braces@^1.8.2", "_id": "braces@1.8.5", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "_location": "/braces", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/braces-1.8.5.tgz_1463843581552_0.5618140168953687" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "braces@^1.8.2", - "scope": null, - "escapedName": "braces", "name": "braces", + "escapedName": "braces", "rawSpec": "^1.8.2", - "spec": ">=1.8.2 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.8.2" }, "_requiredBy": [ "/micromatch" ], "_resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", "_shasum": "ba77962e12dff969d6b76711e914b737857bf6a7", - "_shrinkwrap": null, "_spec": "braces@^1.8.2", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/micromatch", "author": { @@ -52,11 +29,13 @@ "bugs": { "url": "https://github.com/jonschlinkert/braces/issues" }, + "bundleDependencies": false, "dependencies": { "expand-range": "^1.8.1", "preserve": "^0.2.0", "repeat-element": "^1.1.2" }, + "deprecated": false, "description": "Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.", "devDependencies": { "benchmarked": "^0.1.5", @@ -68,18 +47,12 @@ "mocha": "^2.4.5", "should": "^8.3.1" }, - "directories": {}, - "dist": { - "shasum": "ba77962e12dff969d6b76711e914b737857bf6a7", - "tarball": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "24874614ebeda1c5405180f1f6c9f374bcf384ce", "homepage": "https://github.com/jonschlinkert/braces", "keywords": [ "alpha", @@ -106,24 +79,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "es128", - "email": "elan.shanker+npm@gmail.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], "name": "braces", - "optionalDependencies": {}, - "readme": "# braces [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Build Status](https://img.shields.io/travis/jonschlinkert/braces.svg?style=flat)](https://travis-ci.org/jonschlinkert/braces)\n\nFastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install braces --save\n```\n\n## Features\n\n* Complete support for the braces part of the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/). Braces passes [all of the relevant unit tests](#bash-4-3-support) from the spec.\n* Expands comma-separated values: `a/{b,c}/d` => `['a/b/d', 'a/c/d']`\n* Expands alphabetical or numerical ranges: `{1..3}` => `['1', '2', '3']`\n* [Very fast](#benchmarks)\n* [Special characters](./patterns.md) can be used to generate interesting patterns.\n\n## Example usage\n\n```js\nvar braces = require('braces');\n\nbraces('a/{x,y}/c{d}e')\n//=> ['a/x/cde', 'a/y/cde']\n\nbraces('a/b/c/{x,y}')\n//=> ['a/b/c/x', 'a/b/c/y']\n\nbraces('a/{x,{1..5},y}/c{d}e')\n//=> ['a/x/cde', 'a/1/cde', 'a/y/cde', 'a/2/cde', 'a/3/cde', 'a/4/cde', 'a/5/cde']\n```\n\n### Use case: fixtures\n\n> Use braces to generate test fixtures!\n\n**Example**\n\n```js\nvar braces = require('./');\nvar path = require('path');\nvar fs = require('fs');\n\nbraces('blah/{a..z}.js').forEach(function(fp) {\n if (!fs.existsSync(path.dirname(fp))) {\n fs.mkdirSync(path.dirname(fp));\n }\n fs.writeFileSync(fp, '');\n});\n```\n\nSee the [tests](./test/test.js) for more examples and use cases (also see the [bash spec tests](./test/bash-mm-adjusted.js));\n\n### Range expansion\n\nUses [expand-range](https://github.com/jonschlinkert/expand-range) for range expansion.\n\n```js\nbraces('a{1..3}b')\n//=> ['a1b', 'a2b', 'a3b']\n\nbraces('a{5..8}b')\n//=> ['a5b', 'a6b', 'a7b', 'a8b']\n\nbraces('a{00..05}b')\n//=> ['a00b', 'a01b', 'a02b', 'a03b', 'a04b', 'a05b']\n\nbraces('a{01..03}b')\n//=> ['a01b', 'a02b', 'a03b']\n\nbraces('a{000..005}b')\n//=> ['a000b', 'a001b', 'a002b', 'a003b', 'a004b', 'a005b']\n\nbraces('a{a..e}b')\n//=> ['aab', 'abb', 'acb', 'adb', 'aeb']\n\nbraces('a{A..E}b')\n//=> ['aAb', 'aBb', 'aCb', 'aDb', 'aEb']\n```\n\nPass a function as the last argument to customize range expansions:\n\n```js\nvar range = braces('x{a..e}y', function (str, i) {\n return String.fromCharCode(str) + i;\n});\n\nconsole.log(range);\n//=> ['xa0y', 'xb1y', 'xc2y', 'xd3y', 'xe4y']\n```\n\nSee [expand-range](https://github.com/jonschlinkert/expand-range) for benchmarks, tests and the full list of range expansion features.\n\n## Options\n\n### options.makeRe\n\nType: `Boolean`\n\nDeafault: `false`\n\nReturn a regex-optimal string. If you're using braces to generate regex, this will result in dramatically faster performance.\n\n**Examples**\n\nWith the default settings (`{makeRe: false}`):\n\n```js\nbraces('{1..5}');\n//=> ['1', '2', '3', '4', '5']\n```\n\nWith `{makeRe: true}`:\n\n```js\nbraces('{1..5}', {makeRe: true});\n//=> ['[1-5]']\n\nbraces('{3..9..3}', {makeRe: true});\n//=> ['(3|6|9)']\n```\n\n### options.bash\n\nType: `Boolean`\n\nDefault: `false`\n\nEnables complete support for the Bash specification. The downside is a 20-25% speed decrease.\n\n**Example**\n\nUsing the default setting (`{bash: false}`):\n\n```js\nbraces('a{b}c');\n//=> ['abc']\n```\n\nIn bash (and minimatch), braces with one item are not expanded. To get the same result with braces, set `{bash: true}`:\n\n```js\nbraces('a{b}c', {bash: true});\n//=> ['a{b}c']\n```\n\n### options.nodupes\n\nType: `Boolean`\n\nDeafault: `true`\n\nDuplicates are removed by default. To keep duplicates, pass `{nodupes: false}` on the options\n\n## Bash 4.3 Support\n\n> Better support for Bash 4.3 than minimatch\n\nThis project has comprehensive unit tests, including tests coverted from [Bash 4.3](www.gnu.org/software/bash/). Currently only 8 of 102 unit tests fail, and\n\n## Run benchmarks\n\nInstall dev dependencies:\n\n```bash\nnpm i -d && npm benchmark\n```\n\n### Latest results\n\n```bash\n#1: escape.js\n brace-expansion.js x 114,934 ops/sec ±1.24% (93 runs sampled)\n braces.js x 342,254 ops/sec ±0.84% (90 runs sampled)\n\n#2: exponent.js\n brace-expansion.js x 12,359 ops/sec ±0.86% (96 runs sampled)\n braces.js x 20,389 ops/sec ±0.71% (97 runs sampled)\n\n#3: multiple.js\n brace-expansion.js x 114,469 ops/sec ±1.44% (94 runs sampled)\n braces.js x 401,621 ops/sec ±0.87% (91 runs sampled)\n\n#4: nested.js\n brace-expansion.js x 102,769 ops/sec ±1.55% (92 runs sampled)\n braces.js x 314,088 ops/sec ±0.71% (98 runs sampled)\n\n#5: normal.js\n brace-expansion.js x 157,577 ops/sec ±1.65% (91 runs sampled)\n braces.js x 1,115,950 ops/sec ±0.74% (94 runs sampled)\n\n#6: range.js\n brace-expansion.js x 138,822 ops/sec ±1.71% (91 runs sampled)\n braces.js x 1,108,353 ops/sec ±0.85% (94 runs sampled)\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [expand-range](https://www.npmjs.com/package/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See… [more](https://www.npmjs.com/package/expand-range) | [homepage](https://github.com/jonschlinkert/expand-range)\n* [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or multiplier to… [more](https://www.npmjs.com/package/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range)\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/jonschlinkert/micromatch)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/braces/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/braces/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 21, 2016._", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/braces.git" diff --git a/node_modules/nyc/node_modules/builtin-modules/package.json b/node_modules/nyc/node_modules/builtin-modules/package.json index 46b07eff9..1482752b5 100644 --- a/node_modules/nyc/node_modules/builtin-modules/package.json +++ b/node_modules/nyc/node_modules/builtin-modules/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "builtin-modules@^1.0.0", - "scope": null, - "escapedName": "builtin-modules", - "name": "builtin-modules", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/is-builtin-module" - ] - ], - "_from": "builtin-modules@>=1.0.0 <2.0.0", + "_from": "builtin-modules@^1.0.0", "_id": "builtin-modules@1.1.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", "_location": "/builtin-modules", - "_nodeVersion": "5.3.0", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.3.12", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "builtin-modules@^1.0.0", - "scope": null, - "escapedName": "builtin-modules", "name": "builtin-modules", + "escapedName": "builtin-modules", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/is-builtin-module" ], "_resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", "_shasum": "270f076c5a72c02f5b65a47df94c5fe3a278892f", - "_shrinkwrap": null, "_spec": "builtin-modules@^1.0.0", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/is-builtin-module", "author": { @@ -49,17 +30,13 @@ "bugs": { "url": "https://github.com/sindresorhus/builtin-modules/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "List of the Node.js builtin modules", "devDependencies": { "ava": "*", "xo": "*" }, - "directories": {}, - "dist": { - "shasum": "270f076c5a72c02f5b65a47df94c5fe3a278892f", - "tarball": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz" - }, "engines": { "node": ">=0.10.0" }, @@ -68,7 +45,6 @@ "static.js", "builtin-modules.json" ], - "gitHead": "0ea253452b1d8cb3a70d16464f909dbc0bc370fe", "homepage": "https://github.com/sindresorhus/builtin-modules#readme", "keywords": [ "builtin", @@ -83,16 +59,7 @@ "names" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "builtin-modules", - "optionalDependencies": {}, - "readme": "# builtin-modules [![Build Status](https://travis-ci.org/sindresorhus/builtin-modules.svg?branch=master)](https://travis-ci.org/sindresorhus/builtin-modules)\n\n> List of the Node.js builtin modules\n\nThe list is just a [JSON file](builtin-modules.json) and can be used wherever.\n\n\n## Install\n\n```\n$ npm install --save builtin-modules\n```\n\n\n## Usage\n\n```js\nvar builtinModules = require('builtin-modules');\n\nconsole.log(builinModules);\n//=> ['assert', 'buffer', ...]\n```\n\n\n## API\n\nReturns an array of builtin modules fetched from the running Node.js version.\n\n### Static list\n\nThis module also comes bundled with a static array of builtin modules generated from the latest Node.js version. You can get it with `require('builtin-modules/static');`\n\n\n## Related\n\n- [is-builtin-module](https://github.com/sindresorhus/is-builtin-module) - Check if a string matches the name of a Node.js builtin module\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/builtin-modules.git" diff --git a/node_modules/nyc/node_modules/caching-transform/package.json b/node_modules/nyc/node_modules/caching-transform/package.json index ed54e3526..14e49886f 100644 --- a/node_modules/nyc/node_modules/caching-transform/package.json +++ b/node_modules/nyc/node_modules/caching-transform/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "caching-transform@^1.0.0", - "scope": null, - "escapedName": "caching-transform", - "name": "caching-transform", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc" - ] - ], - "_from": "caching-transform@>=1.0.0 <2.0.0", + "_from": "caching-transform@^1.0.0", "_id": "caching-transform@1.0.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", "_location": "/caching-transform", - "_nodeVersion": "5.3.0", - "_npmUser": { - "name": "jamestalmage", - "email": "james@talmage.io" - }, - "_npmVersion": "3.3.12", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "caching-transform@^1.0.0", - "scope": null, - "escapedName": "caching-transform", "name": "caching-transform", + "escapedName": "caching-transform", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-1.0.1.tgz", "_shasum": "6dbdb2f20f8d8fbce79f3e94e9d1742dcdf5c0a1", - "_shrinkwrap": null, "_spec": "caching-transform@^1.0.0", "_where": "/Users/benjamincoe/bcoe/nyc", "author": { @@ -49,11 +30,13 @@ "bugs": { "url": "https://github.com/jamestalmage/caching-transform/issues" }, + "bundleDependencies": false, "dependencies": { "md5-hex": "^1.2.0", "mkdirp": "^0.5.1", "write-file-atomic": "^1.1.4" }, + "deprecated": false, "description": "Wraps a transform and provides caching", "devDependencies": { "ava": "^0.8.0", @@ -64,18 +47,12 @@ "sinon": "^1.17.2", "xo": "^0.12.1" }, - "directories": {}, - "dist": { - "shasum": "6dbdb2f20f8d8fbce79f3e94e9d1742dcdf5c0a1", - "tarball": "https://registry.npmjs.org/caching-transform/-/caching-transform-1.0.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "508395eb3e785c5010d091fc05d93b7024201414", "homepage": "https://github.com/jamestalmage/caching-transform#readme", "keywords": [ "transform", @@ -87,16 +64,7 @@ "hash" ], "license": "MIT", - "maintainers": [ - { - "name": "jamestalmage", - "email": "james@talmage.io" - } - ], "name": "caching-transform", - "optionalDependencies": {}, - "readme": "# caching-transform [![Build Status](https://travis-ci.org/jamestalmage/caching-transform.svg?branch=master)](https://travis-ci.org/jamestalmage/caching-transform) [![Coverage Status](https://coveralls.io/repos/jamestalmage/caching-transform/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/caching-transform?branch=master)\n\n> Wraps a transform and provides caching.\n\nCaching transform results can greatly improve performance. `nyc` saw [dramatic performance increases](https://github.com/bcoe/nyc/pull/101#issuecomment-165716069) when we implemented caching. \n\n\n## Install\n\n```\n$ npm install --save caching-transform\n```\n\n\n## Usage\n\n```js\nconst cachingTransform = require('caching-transform');\n\nconst transform = cachingTransform({\n cacheDir: '/path/to/cache/directory',\n salt: 'hash-salt',\n transform: (input, metadata, hash) => {\n // ... expensive operations ...\n return transformedResult;\n }\n});\n\ntransform('some input for transpilation')\n// => fetch from the cache,\n// or run the transform and save to the cache if not found there\n```\n\n\n## API\n\n### cachingTransform(options)\n\nReturns a transform callback that takes two arguments:\n\n - `input` a string to be transformed\n - `metadata` an arbitrary data object.\n\nBoth arguments are passed to the wrapped transform. Results are cached in the cache directory using an `md5` hash of `input` and an optional `salt` value. If a cache entry already exist for `input`, the wrapped transform function will never be called.\n\n#### options\n \n##### salt\n\nType: `string`, or `buffer`\nDefault: `empty string`\n\nA value that uniquely identifies your transform:\n\n```js\n const pkg = require('my-transform/package.json');\n const salt = pkg.name + ':' + pkg.version;\n```\n\nIncluding the version in the salt ensures existing cache entries will be automatically invalidated when you bump the version of your transform. If your transform relies on additional dependencies, and the transform output might change as those dependencies update, then your salt should incorporate the versions of those dependencies as well.\n\n##### transform\n\nType: `Function(input: string|buffer, metadata: *, hash: string): string|buffer` \n\n - `input`: The value to be transformed. It is passed through from the wrapper.\n - `metadata`: An arbitrary data object passed through from the wrapper. A typical value might be a string filename.\n - `hash`: The salted hash of `input`. Useful if you intend to create additional cache entries beyond the transform result (i.e. `nyc` also creates cache entries for source-map data). This value is not available if the cache is disabled, if you still need it, the default can be computed via [`md5Hex([input, salt])`](https://www.npmjs.com/package/md5-hex).\n\nThe transform function will return a `string` (or Buffer if `encoding === 'buffer'`) containing the result of transforming `input`.\n\n##### factory\n\nType: `Function(cacheDir: string): transformFunction`\n\nIf the `transform` function is expensive to create, and it is reasonable to expect that it may never be called during the life of the process, you may supply a `factory` function that will be used to create the `transform` function the first time it is needed.\n\nA typical usage would be to prevent eagerly `require`ing expensive dependencies like Babel:\n\n```js\nfunction factory() {\n // Using the factory function, you can avoid loading Babel until you are sure it is needed. \n var babel = require('babel-core');\n \n return function (code, metadata) {\n return babel.transform(code, {filename: metadata.filename, plugins: [/* ... */]});\n };\n}\n```\n\n##### cacheDir\n\nType: `string` \n*Required unless caching is disabled*\n\nThe directory where cached transform results will be stored. The directory is automatically created with [`mkdirp`](https://www.npmjs.com/package/mkdirp). You can set `options.createCacheDir = false` if you are certain the directory already exists. \n\n##### ext\n\nType: `string`\nDefault: `empty string`\n\nAn extension that will be appended to the salted hash to create the filename inside your cache directory. It is not required, but recommended if you know the file type. Appending the extension allows you to easily inspect the contents of the cache directory with your file browser.\n\n##### shouldTransform\n\nType: `Function(input: string|buffer, additonalData: *)`\nDefault: `always transform`\n\nA function that examines `input` and `metadata` to determine whether the transform should be applied. Returning `false` means the transform will not be applied and `input` will be returned unmodified.\n \n##### disableCache\n\nType: `boolean`\nDefault: `false`\n\nIf `true`, the cache is ignored and the transform is used every time regardless of cache contents.\n \n##### hash\n\nType: `Function(input: string|buffer, metadata: *, salt: string): string`\n\nProvide a custom hashing function for the given input. The default hashing function does not take the `metadata` into account:\n\n> [`md5Hex([input, salt])`](https://www.npmjs.com/package/md5-hex)\n\n##### encoding\n\nType: `string`\nDefault: `utf8`\n\nThe encoding to use when writing to / reading from the filesystem. If set to `\"buffer\"`, then buffers will be returned from the cache instead of strings.\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/jamestalmage/caching-transform.git" diff --git a/node_modules/nyc/node_modules/camelcase/package.json b/node_modules/nyc/node_modules/camelcase/package.json index 57c43196b..214611c97 100644 --- a/node_modules/nyc/node_modules/camelcase/package.json +++ b/node_modules/nyc/node_modules/camelcase/package.json @@ -1,44 +1,25 @@ { - "_args": [ - [ - { - "raw": "camelcase@^1.0.2", - "scope": null, - "escapedName": "camelcase", - "name": "camelcase", - "rawSpec": "^1.0.2", - "spec": ">=1.0.2 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/uglify-js/node_modules/yargs" - ] - ], - "_from": "camelcase@>=1.0.2 <2.0.0", + "_from": "camelcase@^1.0.2", "_id": "camelcase@1.2.1", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "_location": "/camelcase", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.11.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "camelcase@^1.0.2", - "scope": null, - "escapedName": "camelcase", "name": "camelcase", + "escapedName": "camelcase", "rawSpec": "^1.0.2", - "spec": ">=1.0.2 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.2" }, "_requiredBy": [ "/uglify-js/yargs" ], "_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", "_shasum": "9bb5304d2e0b56698b2c758b08a3eaa9daa58a39", - "_shrinkwrap": null, "_spec": "camelcase@^1.0.2", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/uglify-js/node_modules/yargs", "author": { @@ -49,23 +30,18 @@ "bugs": { "url": "https://github.com/sindresorhus/camelcase/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "deprecated": false, "description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar", "devDependencies": { "ava": "0.0.4" }, - "directories": {}, - "dist": { - "shasum": "9bb5304d2e0b56698b2c758b08a3eaa9daa58a39", - "tarball": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "185ba12da723be9c1ee986cc2956bdc4c517a141", "homepage": "https://github.com/sindresorhus/camelcase#readme", "keywords": [ "camelcase", @@ -82,16 +58,7 @@ "convert" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "camelcase", - "optionalDependencies": {}, - "readme": "# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)\n\n> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar`\n\n\n## Install\n\n```sh\n$ npm install --save camelcase\n```\n\n\n## Usage\n\n```js\nvar camelCase = require('camelcase');\n\ncamelCase('foo-bar');\n//=> fooBar\n\ncamelCase('foo_bar');\n//=> fooBar\n\ncamelCase('Foo-Bar');\n//=> fooBar\n\ncamelCase('--foo.bar');\n//=> fooBar\n\ncamelCase('__foo__bar__');\n//=> fooBar\n\ncamelCase('foo bar');\n//=> fooBar\n\nconsole.log(process.argv[3]);\n//=> --foo-bar\ncamelCase(process.argv[3]);\n//=> fooBar\n\ncamelCase('foo', 'bar');\n//=> fooBar\n\ncamelCase('__foo__', '--bar');\n//=> fooBar\n```\n\n\n## Related\n\nSee [`decamelize`](https://github.com/sindresorhus/decamelize) for the inverse.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", - "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/camelcase.git" diff --git a/node_modules/nyc/node_modules/center-align/package.json b/node_modules/nyc/node_modules/center-align/package.json index 458f8487f..38a995435 100644 --- a/node_modules/nyc/node_modules/center-align/package.json +++ b/node_modules/nyc/node_modules/center-align/package.json @@ -1,48 +1,25 @@ { - "_args": [ - [ - { - "raw": "center-align@^0.1.1", - "scope": null, - "escapedName": "center-align", - "name": "center-align", - "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/cliui" - ] - ], - "_from": "center-align@>=0.1.1 <0.2.0", + "_from": "center-align@^0.1.1", "_id": "center-align@0.1.3", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", "_location": "/center-align", - "_nodeVersion": "5.3.0", - "_npmOperationalInternal": { - "host": "packages-9-west.internal.npmjs.com", - "tmp": "tmp/center-align-0.1.3.tgz_1454366538829_0.9471865000668913" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.3.12", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "center-align@^0.1.1", - "scope": null, - "escapedName": "center-align", "name": "center-align", + "escapedName": "center-align", "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^0.1.1" }, "_requiredBy": [ "/cliui" ], "_resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", "_shasum": "aa0d32629b6ee972200411cbd4461c907bc2b7ad", - "_shrinkwrap": null, "_spec": "center-align@^0.1.1", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/cliui", "author": { @@ -52,19 +29,16 @@ "bugs": { "url": "https://github.com/jonschlinkert/center-align/issues" }, + "bundleDependencies": false, "dependencies": { "align-text": "^0.1.3", "lazy-cache": "^1.0.3" }, + "deprecated": false, "description": "Center-align the text in a string.", "devDependencies": { "mocha": "^2.2.0" }, - "directories": {}, - "dist": { - "shasum": "aa0d32629b6ee972200411cbd4461c907bc2b7ad", - "tarball": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz" - }, "engines": { "node": ">=0.10.0" }, @@ -72,7 +46,6 @@ "index.js", "utils.js" ], - "gitHead": "5c5fab5012fceaa3e21a00162958c0ed11109419", "homepage": "https://github.com/jonschlinkert/center-align", "keywords": [ "align", @@ -86,20 +59,7 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], "name": "center-align", - "optionalDependencies": {}, - "readme": "# center-align [![NPM version](https://badge.fury.io/js/center-align.svg)](http://badge.fury.io/js/center-align)\n\n> Center-align the text in a string.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i center-align --save\n```\n\n## Usage\n\n```js\nvar centerAlign = require('center-align');\n```\n\n**Example**\n\nIf used on the following:\n\n```\nLorem ipsum dolor sit amet,\nconsectetur adipiscing\nelit, sed do eiusmod tempor incididunt\nut labore et dolore\nmagna aliqua. Ut enim ad minim\nveniam, quis\n```\n\nThe result would be:\n\n```\n Lorem ipsum dolor sit amet,\n consectetur adipiscing\nelit, sed do eiusmod tempor incididunt\n ut labore et dolore\n magna aliqua. Ut enim ad minim\n veniam, quis\n```\n\n## Related projects\n\n* [align-text](https://www.npmjs.com/package/align-text): Align the text in a string. | [homepage](https://github.com/jonschlinkert/align-text)\n* [justified](https://www.npmjs.com/package/justified): Wrap words to a specified length and justified the text. | [homepage](https://github.com/jonschlinkert/justified)\n* [right-align](https://www.npmjs.com/package/right-align): Right-align the text in a string. | [homepage](https://github.com/jonschlinkert/right-align)\n* [word-wrap](https://www.npmjs.com/package/word-wrap): Wrap words to a specified length. | [homepage](https://github.com/jonschlinkert/word-wrap)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/center-align/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 27, 2015._", - "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/center-align.git" diff --git a/node_modules/nyc/node_modules/chalk/package.json b/node_modules/nyc/node_modules/chalk/package.json index b3d20bbb1..8913fbf86 100644 --- a/node_modules/nyc/node_modules/chalk/package.json +++ b/node_modules/nyc/node_modules/chalk/package.json @@ -1,53 +1,31 @@ { - "_args": [ - [ - { - "raw": "chalk@^1.1.3", - "scope": null, - "escapedName": "chalk", - "name": "chalk", - "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" - }, - "/Users/benjamincoe/bcoe/nyc/node_modules/babel-code-frame" - ] - ], - "_from": "chalk@>=1.1.3 <2.0.0", + "_from": "chalk@^1.1.3", "_id": "chalk@1.1.3", - "_inCache": true, + "_inBundle": false, + "_integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "_location": "/chalk", - "_nodeVersion": "0.10.32", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/chalk-1.1.3.tgz_1459210604109_0.3892582862172276" - }, - "_npmUser": { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - "_npmVersion": "2.14.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "chalk@^1.1.3", - "scope": null, - "escapedName": "chalk", "name": "chalk", + "escapedName": "chalk", "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.1.3" }, "_requiredBy": [ "/babel-code-frame" ], "_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "_shasum": "a8115c55e4a702fe4d150abd3872822a7e09fc98", - "_shrinkwrap": null, "_spec": "chalk@^1.1.3", "_where": "/Users/benjamincoe/bcoe/nyc/node_modules/babel-code-frame", "bugs": { "url": "https://github.com/chalk/chalk/issues" }, + "bundleDependencies": false, "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", @@ -55,6 +33,7 @@ "strip-ansi": "^3.0.0", "supports-color": "^2.0.0" }, + "deprecated": false, "description": "Terminal string styling done right. Much color.", "devDependencies": { "coveralls": "^2.11.2", @@ -66,18 +45,12 @@ "semver": "^4.3.3", "xo": "*" }, - "directories": {}, - "dist": { - "shasum": "a8115c55e4a702fe4d150abd3872822a7e09fc98", - "tarball": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "0d8d8c204eb87a4038219131ad4d8369c9f59d24", "homepage": "https://github.com/chalk/chalk#readme", "keywords": [ "color", @@ -121,9 +94,6 @@ } ], "name": "chalk", - "optionalDependencies": {}, - "readme": "

\n\t
\n\t
\n\t\"chalk\"\n\t
\n\t
\n\t
\n

\n\n> Terminal string styling done right\n\n[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk)\n[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master)\n[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4)\n\n\n[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough.\n\n**Chalk is a clean and focused alternative.**\n\n![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png)\n\n\n## Why\n\n- Highly performant\n- Doesn't extend `String.prototype`\n- Expressive API\n- Ability to nest styles\n- Clean and focused\n- Auto-detects color support\n- Actively maintained\n- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015\n\n\n## Install\n\n```\n$ npm install --save chalk\n```\n\n\n## Usage\n\nChalk comes with an easy to use composable API where you just chain and nest the styles you want.\n\n```js\nvar chalk = require('chalk');\n\n// style a string\nchalk.blue('Hello world!');\n\n// combine styled and normal strings\nchalk.blue('Hello') + 'World' + chalk.red('!');\n\n// compose multiple styles using the chainable API\nchalk.blue.bgRed.bold('Hello world!');\n\n// pass in multiple arguments\nchalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz');\n\n// nest styles\nchalk.red('Hello', chalk.underline.bgBlue('world') + '!');\n\n// nest styles of the same type even (color, underline, background)\nchalk.green(\n\t'I am a green line ' +\n\tchalk.blue.underline.bold('with a blue substring') +\n\t' that becomes green again!'\n);\n```\n\nEasily define your own themes.\n\n```js\nvar chalk = require('chalk');\nvar error = chalk.bold.red;\nconsole.log(error('Error!'));\n```\n\nTake advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data).\n\n```js\nvar name = 'Sindre';\nconsole.log(chalk.green('Hello %s'), name);\n//=> Hello Sindre\n```\n\n\n## API\n\n### chalk.`