☕️ Classic, reliable, trusted test framework for Node.js and the browser
add script to automatically dump CLI usage into documentation
Christopher Hiller955a71e971d7
diff --git a/docs/index.md b/docs/index.mdindex fd4ac9aa..b50cd419 100644--- a/docs/index.md+++ b/docs/index.md@@ -779,73 +779,77 @@ Mocha supports the `err.expected` and `err.actual` properties of any thrown `Ass## Usage-```console+<!-- usage -->++```plainUsage: mocha [debug] [options] [files]Options:- -V, --version output the version number- -A, --async-only force all tests to take a callback (async) or return a promise- -c, --colors force enabling of colors- -C, --no-colors force disabling of colors- -G, --growl enable growl notification support- -O, --reporter-options <k=v,k2=v2,...> reporter-specific options- -R, --reporter <name> specify the reporter to use (default: "spec")- -S, --sort sort test files- -b, --bail bail after first test failure- -d, --debug enable node's debugger, synonym for node --debug- -g, --grep <pattern> only run tests matching <pattern>- -f, --fgrep <string> only run tests containing <string>- -gc, --expose-gc expose gc extension- -i, --invert inverts --grep and --fgrep matches- -r, --require <name> require the given module (default: [])- -s, --slow <ms> specify "slow" test threshold in milliseconds (default: 75)- -t, --timeout <ms> specify test timeout threshold in milliseconds (default: 2000)- -u, --ui <name> specify user-interface (bdd|tdd|qunit|exports) (default: "bdd")- -w, --watch watch files in the current working directory for changes- --check-leaks check for global variable leaks- --full-trace display the full stack trace- --compilers <ext>:<module>,... use the given module(s) to compile files (default: [])- --debug-brk enable node's debugger breaking on the first line- --globals <names> allow the given comma-delimited global [names] (default: [])- --es_staging enable all staged features- --harmony<_classes,_generators,...> all node --harmony* flags are available- --preserve-symlinks Instructs the module loader to preserve symbolic links when resolving and caching modules- --icu-data-dir include ICU data- --inline-diffs display actual/expected differences inline within each string- --no-diff do not show a diff on failure- --inspect activate devtools in chrome- --inspect-brk activate devtools in chrome and break on the first line- --interfaces output provided interfaces and exit- --no-deprecation silence deprecation warnings- --exit force shutdown of the event loop after test run: mocha will call process.exit- --no-timeouts disables timeouts, given implicitly with --debug/--inspect- --no-warnings silence all node process warnings- --opts <path> specify opts path (default: "test/mocha.opts")- --perf-basic-prof enable perf linux profiler (basic support)- --napi-modules enable experimental NAPI modules- --prof log statistical profiling information- --log-timer-events Time events including external callbacks- --recursive include sub directories- --reporters output provided reporters and exit- --retries <times> specify number of times to retry a failed test case (default: 0)- --throw-deprecation throw an exception anytime a deprecated function is used- --trace trace function calls- --trace-deprecation show stack traces on deprecations- --trace-warnings show stack traces on node process warnings- --use_strict enforce strict mode- --watch-extensions <ext>,... specify extensions to monitor with --watch (default: ["js"])- --delay wait for async suite definition- --allow-uncaught enable uncaught errors to propagate- --forbid-only causes test marked with only to fail the suite- --forbid-pending causes pending tests and test marked with skip to fail the suite- --file <file> adds file be loaded prior to suite execution (default: [])- --exclude <file> adds file or glob pattern to ignore (default: [])- -h, --help output usage information+-V, --version output the version number+-A, --async-only force all tests to take a callback (async) or return a promise+-c, --colors force enabling of colors+-C, --no-colors force disabling of colors+-G, --growl enable growl notification support+-O, --reporter-options <k=v,k2=v2,...> reporter-specific options+-R, --reporter <name> specify the reporter to use (default: "spec")+-S, --sort sort test files+-b, --bail bail after first test failure+-d, --debug enable node's debugger, synonym for node --debug+-g, --grep <pattern> only run tests matching <pattern>+-f, --fgrep <string> only run tests containing <string>+-gc, --expose-gc expose gc extension+-i, --invert inverts --grep and --fgrep matches+-r, --require <name> require the given module (default: [])+-s, --slow <ms> specify "slow" test threshold in milliseconds (default: 75)+-t, --timeout <ms> specify test timeout threshold in milliseconds (default: 2000)+-u, --ui <name> specify user-interface (bdd|tdd|qunit|exports) (default: "bdd")+-w, --watch watch files in the current working directory for changes+--check-leaks check for global variable leaks+--full-trace display the full stack trace+--compilers <ext>:<module>,... use the given module(s) to compile files (default: [])+--debug-brk enable node's debugger breaking on the first line+--globals <names> allow the given comma-delimited global [names] (default: [])+--es_staging enable all staged features+--harmony<_classes,_generators,...> all node --harmony* flags are available+--preserve-symlinks Instructs the module loader to preserve symbolic links when resolving and caching modules+--icu-data-dir include ICU data+--inline-diffs display actual/expected differences inline within each string+--no-diff do not show a diff on failure+--inspect activate devtools in chrome+--inspect-brk activate devtools in chrome and break on the first line+--interfaces output provided interfaces and exit+--no-deprecation silence deprecation warnings+--exit force shutdown of the event loop after test run: mocha will call process.exit+--no-timeouts disables timeouts, given implicitly with --debug/--inspect+--no-warnings silence all node process warnings+--opts <path> specify opts path (default: "test/mocha.opts")+--perf-basic-prof enable perf linux profiler (basic support)+--napi-modules enable experimental NAPI modules+--prof log statistical profiling information+--log-timer-events Time events including external callbacks+--recursive include sub directories+--reporters output provided reporters and exit+--retries <times> specify number of times to retry a failed test case (default: 0)+--throw-deprecation throw an exception anytime a deprecated function is used+--trace trace function calls+--trace-deprecation show stack traces on deprecations+--trace-warnings show stack traces on node process warnings+--use_strict enforce strict mode+--watch-extensions <ext>,... specify extensions to monitor with --watch (default: ["js"])+--delay wait for async suite definition+--allow-uncaught enable uncaught errors to propagate+--forbid-only causes test marked with only to fail the suite+--forbid-pending causes pending tests and test marked with skip to fail the suite+--file <file> adds file be loaded prior to suite execution (default: [])+--exclude <file> adds file or glob pattern to ignore (default: [])+-h, --help output usage informationCommands:- init <path> initialize a client-side mocha setup at <path>+init <path> initialize a client-side mocha setup at <path>```+<!-- usagestop -->+### `-w, --watch`Executes tests on changes to JavaScript in the CWD, and once initially.diff --git a/package-lock.json b/package-lock.jsonindex ef9d31f8..8b4ea67f 100644--- a/package-lock.json+++ b/package-lock.json@@ -116,7 +116,7 @@},"acorn-jsx": {"version": "3.0.1",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz",+ "resolved": "http://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz","integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=","dev": true,"requires": {@@ -125,7 +125,7 @@"dependencies": {"acorn": {"version": "3.3.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz",+ "resolved": "http://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz","integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=","dev": true}@@ -255,7 +255,7 @@},"ansi-escapes": {"version": "3.1.0",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz",+ "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz","integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==","dev": true},@@ -441,7 +441,7 @@},"array-equal": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz","integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=","dev": true},@@ -572,7 +572,7 @@},"assetgraph": {"version": "3.14.2",- "resolved": "https://registry.npmjs.org/assetgraph/-/assetgraph-3.14.2.tgz",+ "resolved": "http://registry.npmjs.org/assetgraph/-/assetgraph-3.14.2.tgz","integrity": "sha512-NFwhjL60LYypYQ/k3aZ/wxlmLL+Hs1mjPUsL0H4bpXnQ3JqUgOqKUGdKXkiz72OhVQPoLtczDZgSe1F8NrYEpg==","dev": true,"requires": {@@ -636,7 +636,7 @@},"assetgraph-builder": {"version": "5.9.1",- "resolved": "https://registry.npmjs.org/assetgraph-builder/-/assetgraph-builder-5.9.1.tgz",+ "resolved": "http://registry.npmjs.org/assetgraph-builder/-/assetgraph-builder-5.9.1.tgz","integrity": "sha512-bbOEkIvqDzzxC4nBMKYp/3OOQPXPOxcjWSWpOwTGlPYwg7tEmYB/jPM5RoJGdgBxpAJw5JGDXn6oOO3EtYFDXg==","dev": true,"requires": {@@ -701,7 +701,7 @@},"async": {"version": "0.2.9",- "resolved": "https://registry.npmjs.org/async/-/async-0.2.9.tgz",+ "resolved": "http://registry.npmjs.org/async/-/async-0.2.9.tgz","integrity": "sha1-32MGD789Myhqdqr21Vophtn/hhk=","dev": true},@@ -737,7 +737,7 @@},"autolinker": {"version": "0.15.3",- "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.15.3.tgz",+ "resolved": "http://registry.npmjs.org/autolinker/-/autolinker-0.15.3.tgz","integrity": "sha1-NCQX2PLzRhsUzwkIjV7fh5HcmDI=","dev": true},@@ -997,7 +997,7 @@},"bin-build": {"version": "2.2.0",- "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-2.2.0.tgz",+ "resolved": "http://registry.npmjs.org/bin-build/-/bin-build-2.2.0.tgz","integrity": "sha1-EfjdYfcP/Por3KpbRvXo/t1CIcw=","dev": true,"requires": {@@ -1021,7 +1021,7 @@},"bin-version": {"version": "1.0.4",- "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz",+ "resolved": "http://registry.npmjs.org/bin-version/-/bin-version-1.0.4.tgz","integrity": "sha1-nrSY7m/Xb3q5p8FgQ2+JV5Q1144=","dev": true,"requires": {@@ -1030,7 +1030,7 @@},"bin-version-check": {"version": "2.1.0",- "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-2.1.0.tgz",+ "resolved": "http://registry.npmjs.org/bin-version-check/-/bin-version-check-2.1.0.tgz","integrity": "sha1-5OXfKQuQaffRETJAMe/BP90RpbA=","dev": true,"requires": {@@ -1042,13 +1042,13 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true},"semver": {"version": "4.3.6",- "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz",+ "resolved": "http://registry.npmjs.org/semver/-/semver-4.3.6.tgz","integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto=","dev": true}@@ -1056,7 +1056,7 @@},"bin-wrapper": {"version": "3.0.2",- "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-3.0.2.tgz",+ "resolved": "http://registry.npmjs.org/bin-wrapper/-/bin-wrapper-3.0.2.tgz","integrity": "sha1-Z9MwYmLksaXy+I7iNGT2plVneus=","dev": true,"requires": {@@ -1086,7 +1086,7 @@},"bl": {"version": "1.2.2",- "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz",+ "resolved": "http://registry.npmjs.org/bl/-/bl-1.2.2.tgz","integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==","dev": true,"requires": {@@ -1299,7 +1299,7 @@},"browserify-aes": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz","integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==","dev": true,"requires": {@@ -1341,7 +1341,7 @@},"browserify-rsa": {"version": "4.0.1",- "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz",+ "resolved": "http://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz","integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=","dev": true,"requires": {@@ -1447,7 +1447,7 @@"dependencies": {"uuid": {"version": "2.0.3",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz",+ "resolved": "http://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz","integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=","dev": true}@@ -1541,7 +1541,7 @@},"callsites": {"version": "0.2.0",- "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz",+ "resolved": "http://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz","integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=","dev": true},@@ -1563,7 +1563,7 @@},"camelcase-keys": {"version": "2.1.0",- "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",+ "resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz","integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=","dev": true,"requires": {@@ -1621,7 +1621,7 @@},"capitalize": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/capitalize/-/capitalize-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/capitalize/-/capitalize-1.0.0.tgz","integrity": "sha1-3IAsWAruEBkpAg0soUtMqKCuRL4=","dev": true},@@ -1868,7 +1868,7 @@"dependencies": {"slice-ansi": {"version": "0.0.4",- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz",+ "resolved": "http://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz","integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=","dev": true}@@ -1942,7 +1942,7 @@},"color": {"version": "0.11.4",- "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz",+ "resolved": "http://registry.npmjs.org/color/-/color-0.11.4.tgz","integrity": "sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q=","dev": true,"requires": {@@ -1974,7 +1974,7 @@},"color-string": {"version": "0.3.0",- "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz",+ "resolved": "http://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz","integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=","dev": true,"requires": {@@ -2000,7 +2000,7 @@},"colors": {"version": "1.1.2",- "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",+ "resolved": "http://registry.npmjs.org/colors/-/colors-1.1.2.tgz","integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=","dev": true},@@ -2027,7 +2027,7 @@"dependencies": {"convert-source-map": {"version": "1.1.3",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz",+ "resolved": "http://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz","integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=","dev": true},@@ -2060,13 +2060,10 @@"dev": true},"common-tags": {- "version": "1.7.2",- "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.7.2.tgz",- "integrity": "sha512-joj9ZlUOjCrwdbmiLqafeUSgkUM74NqhLsZtSqDmhKudaIY197zTrb8JMl31fMnCUuxwFT23eC/oWvrZzDLRJQ==",- "dev": true,- "requires": {- "babel-runtime": "^6.26.0"- }+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz",+ "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==",+ "dev": true},"component-bind": {"version": "1.0.0",@@ -2329,7 +2326,7 @@},"create-hash": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz","integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==","dev": true,"requires": {@@ -2342,7 +2339,7 @@},"create-hmac": {"version": "1.1.7",- "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",+ "resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz","integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==","dev": true,"requires": {@@ -2414,7 +2411,7 @@},"css-color-names": {"version": "0.0.4",- "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",+ "resolved": "http://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz","integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=","dev": true},@@ -2486,7 +2483,7 @@},"cssnano": {"version": "3.10.0",- "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz",+ "resolved": "http://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz","integrity": "sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg=","dev": true,"requires": {@@ -2593,6 +2590,12 @@"integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=","dev": true},+ "cyclist": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz",+ "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=",+ "dev": true+ },"dashdash": {"version": "1.14.1","resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",@@ -2750,7 +2753,7 @@},"readable-stream": {"version": "1.0.34",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz","integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=","dev": true,"requires": {@@ -2768,7 +2771,7 @@},"through2": {"version": "0.6.5",- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",+ "resolved": "http://registry.npmjs.org/through2/-/through2-0.6.5.tgz","integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=","dev": true,"requires": {@@ -2823,7 +2826,7 @@},"readable-stream": {"version": "1.0.34",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz","integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=","dev": true,"requires": {@@ -2841,7 +2844,7 @@},"through2": {"version": "0.6.5",- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",+ "resolved": "http://registry.npmjs.org/through2/-/through2-0.6.5.tgz","integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=","dev": true,"requires": {@@ -2895,7 +2898,7 @@},"readable-stream": {"version": "1.0.34",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz","integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=","dev": true,"requires": {@@ -2913,7 +2916,7 @@},"through2": {"version": "0.6.5",- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",+ "resolved": "http://registry.npmjs.org/through2/-/through2-0.6.5.tgz","integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=","dev": true,"requires": {@@ -3125,7 +3128,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true},@@ -3160,7 +3163,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -3185,7 +3188,7 @@},"diffie-hellman": {"version": "5.0.3",- "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",+ "resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz","integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==","dev": true,"requires": {@@ -3280,7 +3283,7 @@},"duplexer": {"version": "0.1.1",- "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",+ "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz","integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=","dev": true},@@ -3455,7 +3458,7 @@},"es6-promisify": {"version": "5.0.0",- "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",+ "resolved": "http://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz","integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=","dev": true,"requires": {@@ -3515,7 +3518,7 @@},"eslint": {"version": "4.19.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz",+ "resolved": "http://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz","integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==","dev": true,"requires": {@@ -3667,13 +3670,13 @@},"eslint-config-semistandard": {"version": "12.0.1",- "resolved": "https://registry.npmjs.org/eslint-config-semistandard/-/eslint-config-semistandard-12.0.1.tgz",+ "resolved": "http://registry.npmjs.org/eslint-config-semistandard/-/eslint-config-semistandard-12.0.1.tgz","integrity": "sha512-4zaPW5uRFasf2uRZkE19Y+W84KBV3q+oyWYOsgUN+5DQXE5HCsh7ZxeWDXxozk7NPycGm0kXcsJzLe5GZ1jCeg==","dev": true},"eslint-config-standard": {"version": "11.0.0",- "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-11.0.0.tgz",+ "resolved": "http://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-11.0.0.tgz","integrity": "sha512-oDdENzpViEe5fwuRCWla7AXQd++/oyIp8zP+iP9jiUPG6NBj3SHgdgtl/kTn00AjeN+1HNvavTKmYbMo+xMOlw==","dev": true},@@ -3784,7 +3787,7 @@},"eslint-plugin-node": {"version": "6.0.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz",+ "resolved": "http://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz","integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==","dev": true,"requires": {@@ -3834,7 +3837,7 @@},"espree": {"version": "3.5.4",- "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz",+ "resolved": "http://registry.npmjs.org/espree/-/espree-3.5.4.tgz","integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==","dev": true,"requires": {@@ -4117,7 +4120,7 @@"dependencies": {"bluebird": {"version": "3.3.4",- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.3.4.tgz",+ "resolved": "http://registry.npmjs.org/bluebird/-/bluebird-3.3.4.tgz","integrity": "sha1-94D+Q+GnplEPZ6vX0NeVM6QN3eY=","dev": true},@@ -4144,7 +4147,7 @@},"lru-cache": {"version": "2.5.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz",+ "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz","integrity": "sha1-2COIrpyWC+y+oMc7uet5tsbOmus=","dev": true},@@ -4162,7 +4165,7 @@},"optipng": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/optipng/-/optipng-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/optipng/-/optipng-1.0.0.tgz","integrity": "sha1-fL6tpQmqQa9slekDe8Ry4hIjEME=","dev": true,"requires": {@@ -4241,7 +4244,7 @@},"external-editor": {"version": "2.2.0",- "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",+ "resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz","integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==","dev": true,"requires": {@@ -4339,7 +4342,7 @@},"file-type": {"version": "3.9.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",+ "resolved": "http://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz","integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=","dev": true},@@ -4443,7 +4446,7 @@},"find-versions": {"version": "1.2.1",- "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-1.2.1.tgz",+ "resolved": "http://registry.npmjs.org/find-versions/-/find-versions-1.2.1.tgz","integrity": "sha1-y96fEuOFdaCvG+G5osXV/Y8Ya2I=","dev": true,"requires": {@@ -4477,6 +4480,16 @@"integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=","dev": true},+ "flush-write-stream": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz",+ "integrity": "sha512-calZMC10u0FMUqoiunI2AiGIIUtUIvifNwkHhNupZH4cbNnW1Itkoh/Nf5HFYmDrwWPjrUxpkZT0KhuCq0jmGw==",+ "dev": true,+ "requires": {+ "inherits": "^2.0.1",+ "readable-stream": "^2.0.4"+ }+ },"follow-redirects": {"version": "1.4.1","resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz",@@ -4533,9 +4546,19 @@"integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=","dev": true},+ "from2": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz",+ "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=",+ "dev": true,+ "requires": {+ "inherits": "^2.0.1",+ "readable-stream": "^2.0.0"+ }+ },"fs-access": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz",+ "resolved": "http://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz","integrity": "sha1-1qh/JiJxzv6+wwxVNAf7mV2od3o=","dev": true,"requires": {@@ -4575,7 +4598,8 @@"version": "2.1.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz","integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",- "dev": true+ "dev": true,+ "optional": true},"aproba": {"version": "1.2.0",@@ -4599,13 +4623,15 @@"version": "1.0.0","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz","integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",- "dev": true+ "dev": true,+ "optional": true},"brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==","dev": true,+ "optional": true,"requires": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -4622,19 +4648,22 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz","integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",- "dev": true+ "dev": true,+ "optional": true},"concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz","integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",- "dev": true+ "dev": true,+ "optional": true},"console-control-strings": {"version": "1.1.0","resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz","integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",- "dev": true+ "dev": true,+ "optional": true},"core-util-is": {"version": "1.0.2",@@ -4758,13 +4787,15 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz","integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",- "dev": true+ "dev": true,+ "optional": true},"is-fullwidth-code-point": {"version": "1.0.0","resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz","integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=","dev": true,+ "optional": true,"requires": {"number-is-nan": "^1.0.0"}@@ -4781,6 +4812,7 @@"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz","integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==","dev": true,+ "optional": true,"requires": {"brace-expansion": "^1.1.7"}@@ -4796,6 +4828,7 @@"resolved": "https://registry.npmjs.org/minipass/-/minipass-2.2.4.tgz","integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==","dev": true,+ "optional": true,"requires": {"safe-buffer": "^5.1.1","yallist": "^3.0.0"@@ -4904,7 +4937,8 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz","integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",- "dev": true+ "dev": true,+ "optional": true},"object-assign": {"version": "4.1.1",@@ -4918,6 +4952,7 @@"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz","integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=","dev": true,+ "optional": true,"requires": {"wrappy": "1"}@@ -5013,7 +5048,8 @@"version": "5.1.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz","integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",- "dev": true+ "dev": true,+ "optional": true},"safer-buffer": {"version": "2.1.2",@@ -5055,6 +5091,7 @@"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz","integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=","dev": true,+ "optional": true,"requires": {"code-point-at": "^1.0.0","is-fullwidth-code-point": "^1.0.0",@@ -5076,6 +5113,7 @@"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz","integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=","dev": true,+ "optional": true,"requires": {"ansi-regex": "^2.0.0"}@@ -5117,13 +5155,15 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz","integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",- "dev": true+ "dev": true,+ "optional": true},"yallist": {"version": "3.0.2","resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.2.tgz","integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=",- "dev": true+ "dev": true,+ "optional": true}}},@@ -5278,7 +5318,7 @@},"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=","dev": true},@@ -5435,7 +5475,7 @@},"readable-stream": {"version": "1.0.34",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz","integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=","dev": true,"requires": {@@ -5453,7 +5493,7 @@},"through2": {"version": "0.6.5",- "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",+ "resolved": "http://registry.npmjs.org/through2/-/through2-0.6.5.tgz","integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=","dev": true,"requires": {@@ -5516,7 +5556,7 @@},"debug": {"version": "2.2.0",- "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",+ "resolved": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz","integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=","dev": true,"requires": {@@ -5535,7 +5575,7 @@},"ms": {"version": "0.7.1",- "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",+ "resolved": "http://registry.npmjs.org/ms/-/ms-0.7.1.tgz","integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=","dev": true}@@ -5543,7 +5583,7 @@},"got": {"version": "5.7.1",- "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz",+ "resolved": "http://registry.npmjs.org/got/-/got-5.7.1.tgz","integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=","dev": true,"requires": {@@ -5688,7 +5728,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true},@@ -6044,13 +6084,13 @@},"htmlescape": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz",+ "resolved": "http://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz","integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=","dev": true},"http-errors": {"version": "1.6.3",- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",+ "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz","integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=","dev": true,"requires": {@@ -6458,7 +6498,7 @@},"is-builtin-module": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz","integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=","dev": true,"requires": {@@ -6618,7 +6658,7 @@},"is-obj": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",+ "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz","integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=","dev": true},@@ -7096,7 +7136,7 @@},"jest-get-type": {"version": "22.4.3",- "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz",+ "resolved": "http://registry.npmjs.org/jest-get-type/-/jest-get-type-22.4.3.tgz","integrity": "sha512-/jsz0Y+V29w1chdXVygEKSz2nBoHoYqNShPe+QgxSNjAuP1i8+k4LbQNrfoliKej0P45sivkSCh7yiD6ubHS3w==","dev": true},@@ -7502,7 +7542,7 @@},"jpegtran-bin": {"version": "3.0.4",- "resolved": "https://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-3.0.4.tgz",+ "resolved": "http://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-3.0.4.tgz","integrity": "sha1-sXicfxAOEWoGWaAIqR/KyTibqZc=","dev": true,"requires": {@@ -7774,7 +7814,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -7903,7 +7943,7 @@},"lazy-req": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/lazy-req/-/lazy-req-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/lazy-req/-/lazy-req-1.1.0.tgz","integrity": "sha1-va6+rTD42CQDnODOFJ1Nqge6H6w=","dev": true},@@ -9253,7 +9293,7 @@},"map-stream": {"version": "0.1.0",- "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz",+ "resolved": "http://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz","integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=","dev": true},@@ -9307,7 +9347,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -9340,7 +9380,7 @@"dependencies": {"commander": {"version": "2.9.0",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz",+ "resolved": "http://registry.npmjs.org/commander/-/commander-2.9.0.tgz","integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=","dev": true,"requires": {@@ -9377,7 +9417,7 @@},"marked": {"version": "0.3.19",- "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz",+ "resolved": "http://registry.npmjs.org/marked/-/marked-0.3.19.tgz","integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==","dev": true},@@ -9411,7 +9451,7 @@},"media-typer": {"version": "0.3.0",- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",+ "resolved": "http://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz","integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=","dev": true},@@ -9436,7 +9476,7 @@"dependencies": {"lru-cache": {"version": "2.5.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz",+ "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz","integrity": "sha1-2COIrpyWC+y+oMc7uet5tsbOmus=","dev": true}@@ -9453,7 +9493,7 @@},"meow": {"version": "3.7.0",- "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",+ "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz","integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=","dev": true,"requires": {@@ -9481,7 +9521,7 @@},"load-json-file": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz","integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=","dev": true,"requires": {@@ -9494,7 +9534,7 @@},"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true},@@ -9700,9 +9740,27 @@},"minimist": {"version": "0.0.8",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz","integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="},+ "mississippi": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz",+ "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==",+ "dev": true,+ "requires": {+ "concat-stream": "^1.5.0",+ "duplexify": "^3.4.2",+ "end-of-stream": "^1.1.0",+ "flush-write-stream": "^1.0.0",+ "from2": "^2.1.0",+ "parallel-transform": "^1.1.0",+ "pump": "^3.0.0",+ "pumpify": "^1.3.3",+ "stream-each": "^1.1.0",+ "through2": "^2.0.0"+ }+ },"mixin-deep": {"version": "1.3.1","resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz",@@ -9726,7 +9784,7 @@},"mkdirp": {"version": "0.5.1",- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",+ "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz","integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=","requires": {"minimist": "0.0.8"@@ -9786,7 +9844,7 @@},"readable-stream": {"version": "1.1.14",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz","integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=","dev": true,"requires": {@@ -10090,7 +10148,7 @@},"node-status-codes": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz","integrity": "sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=","dev": true},@@ -10445,6 +10503,7 @@"resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz","integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=","dev": true,+ "optional": true,"requires": {"kind-of": "^3.0.2","longest": "^1.0.1",@@ -11778,7 +11837,8 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz","integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=",- "dev": true+ "dev": true,+ "optional": true},"loose-envify": {"version": "1.3.1",@@ -13514,7 +13574,7 @@"dependencies": {"lru-cache": {"version": "2.5.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz",+ "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz","integrity": "sha1-2COIrpyWC+y+oMc7uet5tsbOmus=","dev": true},@@ -13552,7 +13612,7 @@},"optipng-bin": {"version": "3.0.2",- "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-3.0.2.tgz",+ "resolved": "http://registry.npmjs.org/optipng-bin/-/optipng-bin-3.0.2.tgz","integrity": "sha1-Mj2U7KSMV4j1HJ5RV321k7sAfBI=","dev": true,"requires": {@@ -13618,7 +13678,7 @@},"os-homedir": {"version": "1.0.2",- "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",+ "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz","integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=","dev": true,"optional": true@@ -13682,7 +13742,7 @@},"os-tmpdir": {"version": "1.0.2",- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",+ "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz","integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=","dev": true},@@ -13788,6 +13848,17 @@"integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==","dev": true},+ "parallel-transform": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz",+ "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=",+ "dev": true,+ "requires": {+ "cyclist": "~0.2.2",+ "inherits": "^2.0.3",+ "readable-stream": "^2.1.5"+ }+ },"param-case": {"version": "2.1.1","resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz",@@ -13808,7 +13879,7 @@},"parse-asn1": {"version": "5.1.1",- "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz",+ "resolved": "http://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.1.tgz","integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==","dev": true,"requires": {@@ -13937,7 +14008,7 @@},"path-is-absolute": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz","integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="},"path-is-inside": {@@ -14000,7 +14071,7 @@},"pause-stream": {"version": "0.0.11",- "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz",+ "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz","integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=","dev": true,"requires": {@@ -14052,7 +14123,7 @@},"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true},@@ -14087,7 +14158,7 @@},"pify": {"version": "2.3.0",- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz","integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=","dev": true},@@ -14201,7 +14272,7 @@"dependencies": {"lru-cache": {"version": "2.5.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz",+ "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.5.0.tgz","integrity": "sha1-2COIrpyWC+y+oMc7uet5tsbOmus=","dev": true},@@ -14228,7 +14299,7 @@},"pngquant-bin": {"version": "3.1.1",- "resolved": "https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-3.1.1.tgz",+ "resolved": "http://registry.npmjs.org/pngquant-bin/-/pngquant-bin-3.1.1.tgz","integrity": "sha1-0STZinWpSH9AwWQLTb/Lsr1aH9E=","dev": true,"optional": true,@@ -14285,7 +14356,7 @@},"postcss-calc": {"version": "5.3.1",- "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz",+ "resolved": "http://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz","integrity": "sha1-d7rnypKK2FcW4v2kLyYb98HWW14=","dev": true,"requires": {@@ -14404,7 +14475,7 @@},"postcss-discard-comments": {"version": "2.0.4",- "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz",+ "resolved": "http://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz","integrity": "sha1-vv6J+v1bPazlzM5Rt2uBUUvgDj0=","dev": true,"requires": {@@ -14480,7 +14551,7 @@},"postcss-discard-empty": {"version": "2.1.0",- "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz",+ "resolved": "http://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz","integrity": "sha1-0rS9nVztXr2Nyt52QMfXzX9PkrU=","dev": true,"requires": {@@ -14518,7 +14589,7 @@},"postcss-discard-overridden": {"version": "0.1.1",- "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz",+ "resolved": "http://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz","integrity": "sha1-ix6vVU9ob7KIzYdMVWZ7CqNmjVg=","dev": true,"requires": {@@ -14556,7 +14627,7 @@},"postcss-discard-unused": {"version": "2.2.3",- "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz",+ "resolved": "http://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz","integrity": "sha1-vOMLLMWR/8Y0Mitfs0ZLbZNPRDM=","dev": true,"requires": {@@ -14633,7 +14704,7 @@},"postcss-merge-idents": {"version": "2.1.7",- "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz",+ "resolved": "http://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz","integrity": "sha1-TFUwMTwI4dWzu/PSu8dH4njuonA=","dev": true,"requires": {@@ -14769,7 +14840,7 @@},"postcss-minify-font-values": {"version": "1.0.5",- "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz",+ "resolved": "http://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz","integrity": "sha1-S1jttWZB66fIR0qzUmyv17vey2k=","dev": true,"requires": {@@ -14809,7 +14880,7 @@},"postcss-minify-gradients": {"version": "1.0.5",- "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz",+ "resolved": "http://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz","integrity": "sha1-Xb2hE3NwP4PPtKPqOIHY11/15uE=","dev": true,"requires": {@@ -14848,7 +14919,7 @@},"postcss-minify-params": {"version": "1.2.2",- "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz",+ "resolved": "http://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz","integrity": "sha1-rSzgcTc7lDs9kwo/pZo1jCjW8fM=","dev": true,"requires": {@@ -14889,7 +14960,7 @@},"postcss-minify-selectors": {"version": "2.1.1",- "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz",+ "resolved": "http://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz","integrity": "sha1-ssapjAByz5G5MtGkllCBFDEXNb8=","dev": true,"requires": {@@ -14930,7 +15001,7 @@},"postcss-normalize-charset": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz",+ "resolved": "http://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz","integrity": "sha1-757nEhLX/nWceO0WL2HtYrXLk/E=","dev": true,"requires": {@@ -14968,7 +15039,7 @@},"postcss-normalize-url": {"version": "3.0.8",- "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz",+ "resolved": "http://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz","integrity": "sha1-EI90s/L82viRov+j6kWSJ5/HgiI=","dev": true,"requires": {@@ -15048,7 +15119,7 @@},"postcss-reduce-idents": {"version": "2.4.0",- "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz",+ "resolved": "http://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz","integrity": "sha1-wsbSDMlYKE9qv75j92Cb9AkFmtM=","dev": true,"requires": {@@ -15087,7 +15158,7 @@},"postcss-reduce-initial": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz",+ "resolved": "http://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz","integrity": "sha1-aPgGlfBF0IJjqHmtJA343WT2ROo=","dev": true,"requires": {@@ -15125,7 +15196,7 @@},"postcss-reduce-transforms": {"version": "1.0.4",- "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz",+ "resolved": "http://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz","integrity": "sha1-/3b02CEkN7McKYpC0uFEQCV3GuE=","dev": true,"requires": {@@ -15214,7 +15285,7 @@},"postcss-svgo": {"version": "2.1.6",- "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz",+ "resolved": "http://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz","integrity": "sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0=","dev": true,"requires": {@@ -15270,7 +15341,7 @@},"postcss-unique-selectors": {"version": "2.0.2",- "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz",+ "resolved": "http://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz","integrity": "sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0=","dev": true,"requires": {@@ -15316,7 +15387,7 @@},"postcss-zindex": {"version": "2.2.0",- "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz",+ "resolved": "http://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz","integrity": "sha1-0hCd3AVbka9n/EyzsCWUZjnSryI=","dev": true,"requires": {@@ -15702,6 +15773,39 @@"randombytes": "^2.0.1"}},+ "pump": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",+ "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",+ "dev": true,+ "requires": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "pumpify": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz",+ "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==",+ "dev": true,+ "requires": {+ "duplexify": "^3.6.0",+ "inherits": "^2.0.3",+ "pump": "^2.0.0"+ },+ "dependencies": {+ "pump": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz",+ "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==",+ "dev": true,+ "requires": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ }+ }+ },"punycode": {"version": "1.4.1","resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",@@ -15856,7 +15960,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -15913,7 +16017,7 @@},"readable-stream": {"version": "2.3.6",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz","integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==","dev": true,"requires": {@@ -15982,7 +16086,7 @@},"reduce-css-calc": {"version": "1.3.0",- "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz",+ "resolved": "http://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz","integrity": "sha1-dHyRTgSWFKTJz7umKYca0dKSdxY=","dev": true,"requires": {@@ -16064,7 +16168,7 @@},"regexpp": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz","integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==","dev": true},@@ -16230,7 +16334,7 @@},"require-uncached": {"version": "1.0.3",- "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz",+ "resolved": "http://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz","integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=","dev": true,"requires": {@@ -16389,7 +16493,7 @@},"safe-regex": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz","integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=","dev": true,"requires": {@@ -16455,7 +16559,7 @@"dependencies": {"commander": {"version": "2.8.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz",+ "resolved": "http://registry.npmjs.org/commander/-/commander-2.8.1.tgz","integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=","dev": true,"requires": {@@ -16543,7 +16647,7 @@},"sha.js": {"version": "2.4.11",- "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",+ "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz","integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==","dev": true,"requires": {@@ -16579,7 +16683,7 @@},"color": {"version": "1.0.3",- "resolved": "https://registry.npmjs.org/color/-/color-1.0.3.tgz",+ "resolved": "http://registry.npmjs.org/color/-/color-1.0.3.tgz","integrity": "sha1-5I6DLYXxTvaU+0aIEcLVz+cptV0=","dev": true,"requires": {@@ -16608,7 +16712,7 @@},"got": {"version": "6.7.1",- "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz",+ "resolved": "http://registry.npmjs.org/got/-/got-6.7.1.tgz","integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=","dev": true,"requires": {@@ -16641,7 +16745,7 @@},"shasum": {"version": "1.0.2",- "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz",+ "resolved": "http://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz","integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=","dev": true,"requires": {@@ -17134,7 +17238,7 @@},"split": {"version": "0.3.3",- "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz",+ "resolved": "http://registry.npmjs.org/split/-/split-0.3.3.tgz","integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=","dev": true,"requires": {@@ -17212,13 +17316,13 @@},"staged-git-files": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/staged-git-files/-/staged-git-files-1.1.1.tgz",+ "resolved": "http://registry.npmjs.org/staged-git-files/-/staged-git-files-1.1.1.tgz","integrity": "sha512-H89UNKr1rQJvI1c/PIR3kiAMBV23yvR7LItZiV74HWZwzt7f3YHuujJ9nJZlt58WlFox7XQsOahexwk7nTe69A==","dev": true},"starts-with": {"version": "1.0.2",- "resolved": "https://registry.npmjs.org/starts-with/-/starts-with-1.0.2.tgz",+ "resolved": "http://registry.npmjs.org/starts-with/-/starts-with-1.0.2.tgz","integrity": "sha1-Fnk6cp2J1M89T7LtovkIrjV/GW8=","dev": true},@@ -17263,7 +17367,7 @@},"stream-browserify": {"version": "2.0.1",- "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz",+ "resolved": "http://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz","integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=","dev": true,"requires": {@@ -17273,7 +17377,7 @@},"stream-combiner": {"version": "0.0.4",- "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz",+ "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz","integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=","dev": true,"requires": {@@ -17290,6 +17394,16 @@"readable-stream": "^2.0.2"}},+ "stream-each": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz",+ "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==",+ "dev": true,+ "requires": {+ "end-of-stream": "^1.1.0",+ "stream-shift": "^1.0.0"+ }+ },"stream-http": {"version": "2.8.1","resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.1.tgz",@@ -17439,7 +17553,7 @@},"strip-dirs": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz",+ "resolved": "http://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz","integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=","dev": true,"requires": {@@ -17453,7 +17567,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -17461,7 +17575,7 @@},"strip-eof": {"version": "1.0.0",- "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",+ "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz","integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=","dev": true},@@ -17500,7 +17614,7 @@"dependencies": {"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=","dev": true}@@ -17649,7 +17763,7 @@},"tar": {"version": "2.2.1",- "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",+ "resolved": "http://registry.npmjs.org/tar/-/tar-2.2.1.tgz","integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=","dev": true,"requires": {@@ -17713,7 +17827,7 @@},"tcomb": {"version": "2.7.0",- "resolved": "https://registry.npmjs.org/tcomb/-/tcomb-2.7.0.tgz",+ "resolved": "http://registry.npmjs.org/tcomb/-/tcomb-2.7.0.tgz","integrity": "sha1-ENYpWAQWaaXVNWe5pO6M3iKxwrA=","dev": true},@@ -17775,7 +17889,7 @@"dependencies": {"uuid": {"version": "2.0.3",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz",+ "resolved": "http://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz","integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho=","dev": true}@@ -17789,7 +17903,7 @@},"through": {"version": "2.3.8",- "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",+ "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz","integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=","dev": true},@@ -18410,7 +18524,7 @@"dependencies": {"lru-cache": {"version": "2.2.4",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz",+ "resolved": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.2.4.tgz","integrity": "sha1-bGWGGb7PFAMdDQtZSxYELOTcBj0=","dev": true}@@ -18847,7 +18961,7 @@},"wrap-ansi": {"version": "2.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",+ "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz","integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=","dev": true,"requires": {diff --git a/package-scripts.js b/package-scripts.jsindex 8e715aa7..201bd581 100644--- a/package-scripts.js+++ b/package-scripts.js@@ -279,7 +279,7 @@ module.exports = {},prebuild: {script:- 'rimraf docs/_dist docs/api && node scripts/docs-update-toc.js && nps docs.api',+ 'rimraf docs/_dist docs/api && node scripts/preprocess-docs.js && nps docs.api',description: 'Prepare system for doc building',hiddenFromHelp: true},@@ -290,7 +290,7 @@ module.exports = {hiddenFromHelp: true},prewatch: {- script: 'node scripts/docs-update-toc.js',+ script: 'node scripts/preprocess-docs.js',description: 'Prepare system for doc building w/ watch',hiddenFromHelp: true},diff --git a/package.json b/package.jsonindex 640b8de2..d8e62ba6 100644--- a/package.json+++ b/package.json@@ -489,6 +489,7 @@"chai": "^4.1.2","coffee-script": "^1.10.0","coveralls": "^3.0.1",+ "common-tags": "^1.8.0","cross-spawn": "^6.0.5","eslint": "^4.19.1","eslint-config-prettier": "^2.9.0",@@ -512,6 +513,7 @@"markdownlint-cli": "^0.9.0","nps": "^5.7.1","nyc": "^11.7.3",+ "mississippi": "^3.0.0","package-json-versionify": "^1.0.4","prettier-eslint-cli": "^4.7.1","rimraf": "^2.5.2",diff --git a/scripts/dedefine.js b/scripts/dedefine.jsindex e563c629..d8defb2e 100644--- a/scripts/dedefine.js+++ b/scripts/dedefine.js@@ -5,7 +5,7 @@* dependencies in our Browserify bundle.*/-const through = require('through2');+const {through} = require('mississippi');const defineRx = /typeof\s+define\s*===?\s*['"]function['"]\s*&&\s*(?:define\.amd|typeof\s+define\.amd\s*===?\s*['"]object['"]\s*&&\s*define\.amd)/g;function createStream() {return through.obj(function(chunk, enc, next) {diff --git a/scripts/docs-update-toc.js b/scripts/docs-update-toc.jsdeleted file mode 100755index 5deef94c..00000000--- a/scripts/docs-update-toc.js+++ /dev/null@@ -1,38 +0,0 @@-#!/usr/bin/env node--/**- * The CLI included with markdown-toc doesn't support `bullets`- * and `maxdepth` options, so that's why this exists.- */--'use strict';--const toc = require('markdown-toc');-const utils = require('markdown-toc/lib/utils');-const fs = require('fs');-const path = require('path');--const docsFilepath = path.join(__dirname, '..', 'docs', 'index.md');--console.log('Updating TOC...');--fs- .createReadStream(docsFilepath)- .on('error', err => {- console.log(err);- process.exit(1);- })- .on('close', () => {- console.log('Done.');- })- .pipe(- utils.concat(input => {- const output = toc- .insert(String(input), {- bullets: '-',- maxdepth: 2- })- .replace(/\n\n$/, '\n');- return fs.writeFileSync(docsFilepath, output);- })- );diff --git a/scripts/preprocess-docs.js b/scripts/preprocess-docs.jsnew file mode 100755index 00000000..df17b896--- /dev/null+++ b/scripts/preprocess-docs.js@@ -0,0 +1,149 @@+#!/usr/bin/env node++/**+ * Pre-processes Mocha's documentation+ * 1. Update TOC+ * 2. Dump `--help` output into "Command-Line Usage" section+ */++/**+ * The CLI included with markdown-toc doesn't support `bullets`+ * and `maxdepth` options, so that's why this exists.+ */++'use strict';++const toc = require('markdown-toc');+const miss = require('mississippi');+const {exec} = require('child_process');+const fs = require('fs');+const {stripIndents} = require('common-tags');+const path = require('path');++const docsFilepath = path.join(__dirname, '..', 'docs', 'index.md');++/**+ * Inserts/updates a table of contents into the documentation+ * @returns Promise<void>+ */+function updateTOC() {+ return new Promise((resolve, reject) => {+ console.log(`Updating TOC in ${docsFilepath}...`);++ miss.pipe(+ fs.createReadStream(docsFilepath, 'utf8'),+ miss.concat(input =>+ fs.writeFileSync(+ docsFilepath,+ toc+ .insert(String(input), {+ bullets: '-',+ maxdepth: 2+ })+ .replace(/\n\n$/, '\n')+ )+ ),+ err => {+ if (err) {+ return reject(err);+ }+ console.log(`Updated TOC in ${docsFilepath}.`);+ resolve();+ }+ );+ });+}++/**+ * Inserts/updates command-line usage info into the documentation+ * @returns Promise<void>+ */+function updateUsage() {+ return new Promise((resolve, reject) => {+ console.log(`Updating command-line usage in ${docsFilepath}...`);++ const FENCE_HEAD = '```plain';+ const FENCE_FOOT = '```';+ const TOP_COMMENT = '<!-- usage -->';+ const BOTTOM_COMMENT = '<!-- usagestop -->';+ exec(+ `${process.execPath} ${path.join(+ __dirname,+ '..',+ 'bin',+ 'mocha'+ )} '--help'`,+ (err, stdout) => {+ if (err) {+ return reject(err);+ }+ stdout = stdout.trim();++ miss.pipe(+ fs.createReadStream(docsFilepath, 'utf8'),+ miss.concat(input => {+ let trailingNewlines = '';+ var m = /\n+$/.exec(input);+ if (m) {+ trailingNewlines = m[0];+ }+ // we are looking for <!-- usage --> ... <!-- usagestop --> comments here+ const sections = input+ .split(/(?:<!--\s+usage(?:\s*stop)?\s+-->)/g)+ .map(v => v.trim());++ if (sections.length > 3) {+ throw new Error('invalid; multiple "usage" sections found');+ }++ if (sections.length === 3) {+ // this is triggered if we already have stuff in between the comments+ sections.splice(+ 1,+ 1,+ stripIndents`+ ${TOP_COMMENT}++ ${FENCE_HEAD}+ ${stdout}+ ${FENCE_FOOT}`+ );+ sections.splice(2, 0, BOTTOM_COMMENT);+ } else if (sections.length === 2) {+ // this is triggered if we do NOT have non-whitespace characters between the comments+ sections.splice(+ 1,+ 0,+ stripIndents`+ ${TOP_COMMENT}++ ${FENCE_HEAD}+ ${stdout}+ ${FENCE_FOOT}+ ${BOTTOM_COMMENT}`+ );+ } else {+ throw new Error(+ `could not find placeholder to update usage in ${docsFilepath}`+ );+ }++ fs.writeFileSync(+ docsFilepath,+ sections.join('\n\n') + trailingNewlines+ );+ }),+ err => {+ if (err) {+ return reject(err);+ }+ console.log(`Updated command-line usage in ${docsFilepath}`);+ resolve();+ }+ );+ }+ );+ });+}++updateTOC().then(updateUsage());