node-datachannel 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-linux.yml +109 -0
- package/.github/workflows/build-mac.yml +40 -0
- package/.github/workflows/build-win.yml +77 -0
- package/.github/workflows/npm-publish-manual.yml +23 -0
- package/CMakeLists.txt +73 -0
- package/LICENSE +504 -0
- package/README.md +180 -0
- package/cmake/toolchain/arm64.cmake +17 -0
- package/cmake/toolchain/armv7.cmake +17 -0
- package/examples/README.md +21 -0
- package/examples/client-server/client-benchmark.js +216 -0
- package/examples/client-server/client-periodic.js +176 -0
- package/examples/client-server/client.js +113 -0
- package/examples/client-server/package-lock.json +126 -0
- package/examples/client-server/package.json +16 -0
- package/examples/client-server/signaling-server.js +31 -0
- package/lib/index.d.ts +123 -0
- package/lib/index.js +2 -0
- package/node_modules/ansi-regex/index.js +4 -0
- package/node_modules/ansi-regex/license +21 -0
- package/node_modules/ansi-regex/package.json +111 -0
- package/node_modules/ansi-regex/readme.md +39 -0
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +94 -0
- package/node_modules/aproba/index.js +105 -0
- package/node_modules/aproba/package.json +65 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +78 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +130 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +66 -0
- package/node_modules/code-point-at/index.js +32 -0
- package/node_modules/code-point-at/license +21 -0
- package/node_modules/code-point-at/package.json +73 -0
- package/node_modules/code-point-at/readme.md +32 -0
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +64 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/float.patch +604 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +70 -0
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/decompress-response/index.d.ts +29 -0
- package/node_modules/decompress-response/index.js +40 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +85 -0
- package/node_modules/decompress-response/readme.md +52 -0
- package/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +95 -0
- package/node_modules/delegates/.npmignore +1 -0
- package/node_modules/delegates/History.md +22 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/Makefile +8 -0
- package/node_modules/delegates/Readme.md +94 -0
- package/node_modules/delegates/index.js +121 -0
- package/node_modules/delegates/package.json +54 -0
- package/node_modules/delegates/test/index.js +94 -0
- package/node_modules/detect-libc/.npmignore +7 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +78 -0
- package/node_modules/detect-libc/bin/detect-libc.js +18 -0
- package/node_modules/detect-libc/lib/detect-libc.js +92 -0
- package/node_modules/detect-libc/package.json +74 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +69 -0
- package/node_modules/expand-template/.travis.yml +6 -0
- package/node_modules/expand-template/LICENSE +21 -0
- package/node_modules/expand-template/README.md +43 -0
- package/node_modules/expand-template/index.js +26 -0
- package/node_modules/expand-template/package.json +63 -0
- package/node_modules/expand-template/test.js +67 -0
- package/node_modules/fs-constants/LICENSE +21 -0
- package/node_modules/fs-constants/README.md +26 -0
- package/node_modules/fs-constants/browser.js +1 -0
- package/node_modules/fs-constants/index.js +1 -0
- package/node_modules/fs-constants/package.json +50 -0
- package/node_modules/github-from-package/.travis.yml +4 -0
- package/node_modules/github-from-package/LICENSE +18 -0
- package/node_modules/github-from-package/example/package.json +8 -0
- package/node_modules/github-from-package/example/url.js +3 -0
- package/node_modules/github-from-package/index.js +17 -0
- package/node_modules/github-from-package/package.json +62 -0
- package/node_modules/github-from-package/readme.markdown +53 -0
- package/node_modules/github-from-package/test/a.json +8 -0
- package/node_modules/github-from-package/test/b.json +5 -0
- package/node_modules/github-from-package/test/c.json +5 -0
- package/node_modules/github-from-package/test/d.json +7 -0
- package/node_modules/github-from-package/test/e.json +5 -0
- package/node_modules/github-from-package/test/url.js +19 -0
- package/node_modules/has-unicode/LICENSE +14 -0
- package/node_modules/has-unicode/README.md +43 -0
- package/node_modules/has-unicode/index.js +16 -0
- package/node_modules/has-unicode/package.json +63 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +87 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +78 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +194 -0
- package/node_modules/ini/package.json +66 -0
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +80 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +77 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +38 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +77 -0
- package/node_modules/mimic-response/readme.md +57 -0
- package/node_modules/minimist/.travis.yml +8 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/minimist/index.js +245 -0
- package/node_modules/minimist/package.json +80 -0
- package/node_modules/minimist/readme.markdown +95 -0
- package/node_modules/minimist/test/all_bool.js +32 -0
- package/node_modules/minimist/test/bool.js +178 -0
- package/node_modules/minimist/test/dash.js +31 -0
- package/node_modules/minimist/test/default_bool.js +35 -0
- package/node_modules/minimist/test/dotted.js +22 -0
- package/node_modules/minimist/test/kv_short.js +16 -0
- package/node_modules/minimist/test/long.js +31 -0
- package/node_modules/minimist/test/num.js +36 -0
- package/node_modules/minimist/test/parse.js +197 -0
- package/node_modules/minimist/test/parse_modified.js +9 -0
- package/node_modules/minimist/test/proto.js +44 -0
- package/node_modules/minimist/test/short.js +67 -0
- package/node_modules/minimist/test/stop_early.js +15 -0
- package/node_modules/minimist/test/unknown.js +102 -0
- package/node_modules/minimist/test/whitespace.js +8 -0
- package/node_modules/mkdirp-classic/LICENSE +21 -0
- package/node_modules/mkdirp-classic/README.md +18 -0
- package/node_modules/mkdirp-classic/index.js +98 -0
- package/node_modules/mkdirp-classic/package.json +50 -0
- package/node_modules/napi-build-utils/LICENSE +21 -0
- package/node_modules/napi-build-utils/README.md +48 -0
- package/node_modules/napi-build-utils/index.js +213 -0
- package/node_modules/napi-build-utils/index.md +81 -0
- package/node_modules/napi-build-utils/package.json +72 -0
- package/node_modules/node-abi/.github/workflows/update-abi.yml +41 -0
- package/node_modules/node-abi/.travis.yml +19 -0
- package/node_modules/node-abi/CODE_OF_CONDUCT.md +73 -0
- package/node_modules/node-abi/CONTRIBUTING.md +53 -0
- package/node_modules/node-abi/LICENSE +21 -0
- package/node_modules/node-abi/README.md +50 -0
- package/node_modules/node-abi/abi_registry.json +99 -0
- package/node_modules/node-abi/index.js +170 -0
- package/node_modules/node-abi/package.json +69 -0
- package/node_modules/node-abi/scripts/update-abi-registry.js +113 -0
- package/node_modules/node-abi/test/index.js +174 -0
- package/node_modules/noop-logger/.npmignore +1 -0
- package/node_modules/noop-logger/History.md +16 -0
- package/node_modules/noop-logger/Makefile +8 -0
- package/node_modules/noop-logger/Readme.md +27 -0
- package/node_modules/noop-logger/circle.yml +9 -0
- package/node_modules/noop-logger/lib/index.js +25 -0
- package/node_modules/noop-logger/package.json +51 -0
- package/node_modules/noop-logger/test/index.js +18 -0
- package/node_modules/npmlog/CHANGELOG.md +49 -0
- package/node_modules/npmlog/LICENSE +15 -0
- package/node_modules/npmlog/README.md +216 -0
- package/node_modules/npmlog/log.js +309 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/CHANGES.md +37 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/LICENSE +5 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/README.md +195 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/index.js +4 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/package.json +66 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-base.js +11 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-group.js +107 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-stream.js +36 -0
- package/node_modules/npmlog/node_modules/are-we-there-yet/tracker.js +30 -0
- package/node_modules/npmlog/node_modules/gauge/CHANGELOG.md +160 -0
- package/node_modules/npmlog/node_modules/gauge/LICENSE +13 -0
- package/node_modules/npmlog/node_modules/gauge/README.md +399 -0
- package/node_modules/npmlog/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/npmlog/node_modules/gauge/error.js +24 -0
- package/node_modules/npmlog/node_modules/gauge/has-color.js +12 -0
- package/node_modules/npmlog/node_modules/gauge/index.js +233 -0
- package/node_modules/npmlog/node_modules/gauge/package.json +94 -0
- package/node_modules/npmlog/node_modules/gauge/plumbing.js +48 -0
- package/node_modules/npmlog/node_modules/gauge/process.js +3 -0
- package/node_modules/npmlog/node_modules/gauge/progress-bar.js +35 -0
- package/node_modules/npmlog/node_modules/gauge/render-template.js +181 -0
- package/node_modules/npmlog/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/npmlog/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/npmlog/node_modules/gauge/spin.js +5 -0
- package/node_modules/npmlog/node_modules/gauge/template-item.js +73 -0
- package/node_modules/npmlog/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/npmlog/node_modules/gauge/themes.js +54 -0
- package/node_modules/npmlog/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/npmlog/package.json +78 -0
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +70 -0
- package/node_modules/number-is-nan/readme.md +28 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +77 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +74 -0
- package/node_modules/prebuild-install/.travis.yml +12 -0
- package/node_modules/prebuild-install/CHANGELOG.md +7 -0
- package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/node_modules/prebuild-install/LICENSE +21 -0
- package/node_modules/prebuild-install/README.md +108 -0
- package/node_modules/prebuild-install/appveyor.yml +40 -0
- package/node_modules/prebuild-install/asset.js +48 -0
- package/node_modules/prebuild-install/bin.js +85 -0
- package/node_modules/prebuild-install/download.js +130 -0
- package/node_modules/prebuild-install/error.js +14 -0
- package/node_modules/prebuild-install/help.txt +14 -0
- package/node_modules/prebuild-install/index.js +1 -0
- package/node_modules/prebuild-install/log.js +13 -0
- package/node_modules/prebuild-install/package.json +131 -0
- package/node_modules/prebuild-install/proxy.js +38 -0
- package/node_modules/prebuild-install/rc.js +81 -0
- package/node_modules/prebuild-install/util.js +97 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +53 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +65 -0
- package/node_modules/pump/index.js +82 -0
- package/node_modules/pump/package.json +63 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +70 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +687 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +79 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +74 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +88 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +71 -0
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +412 -0
- package/node_modules/semver/bin/semver +160 -0
- package/node_modules/semver/package.json +67 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1483 -0
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +73 -0
- package/node_modules/signal-exit/CHANGELOG.md +35 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +163 -0
- package/node_modules/signal-exit/package.json +71 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +75 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +319 -0
- package/node_modules/simple-get/index.js +99 -0
- package/node_modules/simple-get/package.json +81 -0
- package/node_modules/string-width/index.js +37 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +96 -0
- package/node_modules/string-width/readme.md +42 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +64 -0
- package/node_modules/strip-ansi/index.js +6 -0
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +107 -0
- package/node_modules/strip-ansi/readme.md +33 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +77 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar-fs/.travis.yml +6 -0
- package/node_modules/tar-fs/LICENSE +21 -0
- package/node_modules/tar-fs/README.md +165 -0
- package/node_modules/tar-fs/index.js +351 -0
- package/node_modules/tar-fs/package.json +71 -0
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +346 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +168 -0
- package/node_modules/tar-stream/extract.js +257 -0
- package/node_modules/tar-stream/headers.js +293 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/node_modules/bl/.travis.yml +16 -0
- package/node_modules/tar-stream/node_modules/bl/BufferList.js +396 -0
- package/node_modules/tar-stream/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/tar-stream/node_modules/bl/README.md +247 -0
- package/node_modules/tar-stream/node_modules/bl/bl.js +84 -0
- package/node_modules/tar-stream/node_modules/bl/package.json +68 -0
- package/node_modules/tar-stream/node_modules/bl/test/convert.js +21 -0
- package/node_modules/tar-stream/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/tar-stream/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/tar-stream/node_modules/bl/test/test.js +851 -0
- package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/tar-stream/node_modules/readable-stream/README.md +106 -0
- package/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/tar-stream/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/tar-stream/node_modules/readable-stream/package.json +101 -0
- package/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/tar-stream/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/tar-stream/pack.js +255 -0
- package/node_modules/tar-stream/package.json +95 -0
- package/node_modules/tar-stream/sandbox.js +11 -0
- package/node_modules/tunnel-agent/LICENSE +55 -0
- package/node_modules/tunnel-agent/README.md +4 -0
- package/node_modules/tunnel-agent/index.js +244 -0
- package/node_modules/tunnel-agent/package.json +59 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +62 -0
- package/node_modules/which-pm-runs/LICENSE +21 -0
- package/node_modules/which-pm-runs/README.md +29 -0
- package/node_modules/which-pm-runs/index.js +17 -0
- package/node_modules/which-pm-runs/package.json +64 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +69 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +62 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +48 -0
- package/src/data-channel-wrapper.cpp +401 -0
- package/src/data-channel-wrapper.h +52 -0
- package/src/main.cpp +14 -0
- package/src/peer-connection-wrapper.cpp +720 -0
- package/src/peer-connection-wrapper.h +55 -0
- package/src/rtc-wrapper.cpp +110 -0
- package/src/rtc-wrapper.h +19 -0
- package/test/connectivity.js +100 -0
- package/test/test.js +149 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('dotted alias', function (t) {
|
|
5
|
+
var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
|
|
6
|
+
t.equal(argv.a.b, 22);
|
|
7
|
+
t.equal(argv.aa.bb, 22);
|
|
8
|
+
t.end();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('dotted default', function (t) {
|
|
12
|
+
var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
|
|
13
|
+
t.equal(argv.a.b, 11);
|
|
14
|
+
t.equal(argv.aa.bb, 11);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('dotted default with no alias', function (t) {
|
|
19
|
+
var argv = parse('', {default: {'a.b': 11}});
|
|
20
|
+
t.equal(argv.a.b, 11);
|
|
21
|
+
t.end();
|
|
22
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('short -k=v' , function (t) {
|
|
5
|
+
t.plan(1);
|
|
6
|
+
|
|
7
|
+
var argv = parse([ '-b=123' ]);
|
|
8
|
+
t.deepEqual(argv, { b: 123, _: [] });
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test('multi short -k=v' , function (t) {
|
|
12
|
+
t.plan(1);
|
|
13
|
+
|
|
14
|
+
var argv = parse([ '-a=whatever', '-b=robots' ]);
|
|
15
|
+
t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] });
|
|
16
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var test = require('tape');
|
|
2
|
+
var parse = require('../');
|
|
3
|
+
|
|
4
|
+
test('long opts', function (t) {
|
|
5
|
+
t.deepEqual(
|
|
6
|
+
parse([ '--bool' ]),
|
|
7
|
+
{ bool : true, _ : [] },
|
|
8
|
+
'long boolean'
|
|
9
|
+
);
|
|
10
|
+
t.deepEqual(
|
|
11
|
+
parse([ '--pow', 'xixxle' ]),
|
|
12
|
+
{ pow : 'xixxle', _ : [] },
|
|
13
|
+
'long capture sp'
|
|
14
|
+
);
|
|
15
|
+
t.deepEqual(
|
|
16
|
+
parse([ '--pow=xixxle' ]),
|
|
17
|
+
{ pow : 'xixxle', _ : [] },
|
|
18
|
+
'long capture eq'
|
|
19
|
+
);
|
|
20
|
+
t.deepEqual(
|
|
21
|
+
parse([ '--host', 'localhost', '--port', '555' ]),
|
|
22
|
+
{ host : 'localhost', port : 555, _ : [] },
|
|
23
|
+
'long captures sp'
|
|
24
|
+
);
|
|
25
|
+
t.deepEqual(
|
|
26
|
+
parse([ '--host=localhost', '--port=555' ]),
|
|
27
|
+
{ host : 'localhost', port : 555, _ : [] },
|
|
28
|
+
'long captures eq'
|
|
29
|
+
);
|
|
30
|
+
t.end();
|
|
31
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('nums', function (t) {
|
|
5
|
+
var argv = parse([
|
|
6
|
+
'-x', '1234',
|
|
7
|
+
'-y', '5.67',
|
|
8
|
+
'-z', '1e7',
|
|
9
|
+
'-w', '10f',
|
|
10
|
+
'--hex', '0xdeadbeef',
|
|
11
|
+
'789'
|
|
12
|
+
]);
|
|
13
|
+
t.deepEqual(argv, {
|
|
14
|
+
x : 1234,
|
|
15
|
+
y : 5.67,
|
|
16
|
+
z : 1e7,
|
|
17
|
+
w : '10f',
|
|
18
|
+
hex : 0xdeadbeef,
|
|
19
|
+
_ : [ 789 ]
|
|
20
|
+
});
|
|
21
|
+
t.deepEqual(typeof argv.x, 'number');
|
|
22
|
+
t.deepEqual(typeof argv.y, 'number');
|
|
23
|
+
t.deepEqual(typeof argv.z, 'number');
|
|
24
|
+
t.deepEqual(typeof argv.w, 'string');
|
|
25
|
+
t.deepEqual(typeof argv.hex, 'number');
|
|
26
|
+
t.deepEqual(typeof argv._[0], 'number');
|
|
27
|
+
t.end();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('already a number', function (t) {
|
|
31
|
+
var argv = parse([ '-x', 1234, 789 ]);
|
|
32
|
+
t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
|
|
33
|
+
t.deepEqual(typeof argv.x, 'number');
|
|
34
|
+
t.deepEqual(typeof argv._[0], 'number');
|
|
35
|
+
t.end();
|
|
36
|
+
});
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('parse args', function (t) {
|
|
5
|
+
t.deepEqual(
|
|
6
|
+
parse([ '--no-moo' ]),
|
|
7
|
+
{ moo : false, _ : [] },
|
|
8
|
+
'no'
|
|
9
|
+
);
|
|
10
|
+
t.deepEqual(
|
|
11
|
+
parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]),
|
|
12
|
+
{ v : ['a','b','c'], _ : [] },
|
|
13
|
+
'multi'
|
|
14
|
+
);
|
|
15
|
+
t.end();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('comprehensive', function (t) {
|
|
19
|
+
t.deepEqual(
|
|
20
|
+
parse([
|
|
21
|
+
'--name=meowmers', 'bare', '-cats', 'woo',
|
|
22
|
+
'-h', 'awesome', '--multi=quux',
|
|
23
|
+
'--key', 'value',
|
|
24
|
+
'-b', '--bool', '--no-meep', '--multi=baz',
|
|
25
|
+
'--', '--not-a-flag', 'eek'
|
|
26
|
+
]),
|
|
27
|
+
{
|
|
28
|
+
c : true,
|
|
29
|
+
a : true,
|
|
30
|
+
t : true,
|
|
31
|
+
s : 'woo',
|
|
32
|
+
h : 'awesome',
|
|
33
|
+
b : true,
|
|
34
|
+
bool : true,
|
|
35
|
+
key : 'value',
|
|
36
|
+
multi : [ 'quux', 'baz' ],
|
|
37
|
+
meep : false,
|
|
38
|
+
name : 'meowmers',
|
|
39
|
+
_ : [ 'bare', '--not-a-flag', 'eek' ]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
t.end();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test('flag boolean', function (t) {
|
|
46
|
+
var argv = parse([ '-t', 'moo' ], { boolean: 't' });
|
|
47
|
+
t.deepEqual(argv, { t : true, _ : [ 'moo' ] });
|
|
48
|
+
t.deepEqual(typeof argv.t, 'boolean');
|
|
49
|
+
t.end();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('flag boolean value', function (t) {
|
|
53
|
+
var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], {
|
|
54
|
+
boolean: [ 't', 'verbose' ],
|
|
55
|
+
default: { verbose: true }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
t.deepEqual(argv, {
|
|
59
|
+
verbose: false,
|
|
60
|
+
t: true,
|
|
61
|
+
_: ['moo']
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
t.deepEqual(typeof argv.verbose, 'boolean');
|
|
65
|
+
t.deepEqual(typeof argv.t, 'boolean');
|
|
66
|
+
t.end();
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
test('newlines in params' , function (t) {
|
|
70
|
+
var args = parse([ '-s', "X\nX" ])
|
|
71
|
+
t.deepEqual(args, { _ : [], s : "X\nX" });
|
|
72
|
+
|
|
73
|
+
// reproduce in bash:
|
|
74
|
+
// VALUE="new
|
|
75
|
+
// line"
|
|
76
|
+
// node program.js --s="$VALUE"
|
|
77
|
+
args = parse([ "--s=X\nX" ])
|
|
78
|
+
t.deepEqual(args, { _ : [], s : "X\nX" });
|
|
79
|
+
t.end();
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('strings' , function (t) {
|
|
83
|
+
var s = parse([ '-s', '0001234' ], { string: 's' }).s;
|
|
84
|
+
t.equal(s, '0001234');
|
|
85
|
+
t.equal(typeof s, 'string');
|
|
86
|
+
|
|
87
|
+
var x = parse([ '-x', '56' ], { string: 'x' }).x;
|
|
88
|
+
t.equal(x, '56');
|
|
89
|
+
t.equal(typeof x, 'string');
|
|
90
|
+
t.end();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
test('stringArgs', function (t) {
|
|
94
|
+
var s = parse([ ' ', ' ' ], { string: '_' })._;
|
|
95
|
+
t.same(s.length, 2);
|
|
96
|
+
t.same(typeof s[0], 'string');
|
|
97
|
+
t.same(s[0], ' ');
|
|
98
|
+
t.same(typeof s[1], 'string');
|
|
99
|
+
t.same(s[1], ' ');
|
|
100
|
+
t.end();
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
test('empty strings', function(t) {
|
|
104
|
+
var s = parse([ '-s' ], { string: 's' }).s;
|
|
105
|
+
t.equal(s, '');
|
|
106
|
+
t.equal(typeof s, 'string');
|
|
107
|
+
|
|
108
|
+
var str = parse([ '--str' ], { string: 'str' }).str;
|
|
109
|
+
t.equal(str, '');
|
|
110
|
+
t.equal(typeof str, 'string');
|
|
111
|
+
|
|
112
|
+
var letters = parse([ '-art' ], {
|
|
113
|
+
string: [ 'a', 't' ]
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
t.equal(letters.a, '');
|
|
117
|
+
t.equal(letters.r, true);
|
|
118
|
+
t.equal(letters.t, '');
|
|
119
|
+
|
|
120
|
+
t.end();
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
test('string and alias', function(t) {
|
|
125
|
+
var x = parse([ '--str', '000123' ], {
|
|
126
|
+
string: 's',
|
|
127
|
+
alias: { s: 'str' }
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
t.equal(x.str, '000123');
|
|
131
|
+
t.equal(typeof x.str, 'string');
|
|
132
|
+
t.equal(x.s, '000123');
|
|
133
|
+
t.equal(typeof x.s, 'string');
|
|
134
|
+
|
|
135
|
+
var y = parse([ '-s', '000123' ], {
|
|
136
|
+
string: 'str',
|
|
137
|
+
alias: { str: 's' }
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
t.equal(y.str, '000123');
|
|
141
|
+
t.equal(typeof y.str, 'string');
|
|
142
|
+
t.equal(y.s, '000123');
|
|
143
|
+
t.equal(typeof y.s, 'string');
|
|
144
|
+
t.end();
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
test('slashBreak', function (t) {
|
|
148
|
+
t.same(
|
|
149
|
+
parse([ '-I/foo/bar/baz' ]),
|
|
150
|
+
{ I : '/foo/bar/baz', _ : [] }
|
|
151
|
+
);
|
|
152
|
+
t.same(
|
|
153
|
+
parse([ '-xyz/foo/bar/baz' ]),
|
|
154
|
+
{ x : true, y : true, z : '/foo/bar/baz', _ : [] }
|
|
155
|
+
);
|
|
156
|
+
t.end();
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
test('alias', function (t) {
|
|
160
|
+
var argv = parse([ '-f', '11', '--zoom', '55' ], {
|
|
161
|
+
alias: { z: 'zoom' }
|
|
162
|
+
});
|
|
163
|
+
t.equal(argv.zoom, 55);
|
|
164
|
+
t.equal(argv.z, argv.zoom);
|
|
165
|
+
t.equal(argv.f, 11);
|
|
166
|
+
t.end();
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test('multiAlias', function (t) {
|
|
170
|
+
var argv = parse([ '-f', '11', '--zoom', '55' ], {
|
|
171
|
+
alias: { z: [ 'zm', 'zoom' ] }
|
|
172
|
+
});
|
|
173
|
+
t.equal(argv.zoom, 55);
|
|
174
|
+
t.equal(argv.z, argv.zoom);
|
|
175
|
+
t.equal(argv.z, argv.zm);
|
|
176
|
+
t.equal(argv.f, 11);
|
|
177
|
+
t.end();
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
test('nested dotted objects', function (t) {
|
|
181
|
+
var argv = parse([
|
|
182
|
+
'--foo.bar', '3', '--foo.baz', '4',
|
|
183
|
+
'--foo.quux.quibble', '5', '--foo.quux.o_O',
|
|
184
|
+
'--beep.boop'
|
|
185
|
+
]);
|
|
186
|
+
|
|
187
|
+
t.same(argv.foo, {
|
|
188
|
+
bar : 3,
|
|
189
|
+
baz : 4,
|
|
190
|
+
quux : {
|
|
191
|
+
quibble : 5,
|
|
192
|
+
o_O : true
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
t.same(argv.beep, { boop : true });
|
|
196
|
+
t.end();
|
|
197
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('proto pollution', function (t) {
|
|
5
|
+
var argv = parse(['--__proto__.x','123']);
|
|
6
|
+
t.equal({}.x, undefined);
|
|
7
|
+
t.equal(argv.__proto__.x, undefined);
|
|
8
|
+
t.equal(argv.x, undefined);
|
|
9
|
+
t.end();
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
test('proto pollution (array)', function (t) {
|
|
13
|
+
var argv = parse(['--x','4','--x','5','--x.__proto__.z','789']);
|
|
14
|
+
t.equal({}.z, undefined);
|
|
15
|
+
t.deepEqual(argv.x, [4,5]);
|
|
16
|
+
t.equal(argv.x.z, undefined);
|
|
17
|
+
t.equal(argv.x.__proto__.z, undefined);
|
|
18
|
+
t.end();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test('proto pollution (number)', function (t) {
|
|
22
|
+
var argv = parse(['--x','5','--x.__proto__.z','100']);
|
|
23
|
+
t.equal({}.z, undefined);
|
|
24
|
+
t.equal((4).z, undefined);
|
|
25
|
+
t.equal(argv.x, 5);
|
|
26
|
+
t.equal(argv.x.z, undefined);
|
|
27
|
+
t.end();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('proto pollution (string)', function (t) {
|
|
31
|
+
var argv = parse(['--x','abc','--x.__proto__.z','def']);
|
|
32
|
+
t.equal({}.z, undefined);
|
|
33
|
+
t.equal('...'.z, undefined);
|
|
34
|
+
t.equal(argv.x, 'abc');
|
|
35
|
+
t.equal(argv.x.z, undefined);
|
|
36
|
+
t.end();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
test('proto pollution (constructor)', function (t) {
|
|
40
|
+
var argv = parse(['--constructor.prototype.y','123']);
|
|
41
|
+
t.equal({}.y, undefined);
|
|
42
|
+
t.equal(argv.y, undefined);
|
|
43
|
+
t.end();
|
|
44
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('numeric short args', function (t) {
|
|
5
|
+
t.plan(2);
|
|
6
|
+
t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
|
|
7
|
+
t.deepEqual(
|
|
8
|
+
parse([ '-123', '456' ]),
|
|
9
|
+
{ 1: true, 2: true, 3: 456, _: [] }
|
|
10
|
+
);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
test('short', function (t) {
|
|
14
|
+
t.deepEqual(
|
|
15
|
+
parse([ '-b' ]),
|
|
16
|
+
{ b : true, _ : [] },
|
|
17
|
+
'short boolean'
|
|
18
|
+
);
|
|
19
|
+
t.deepEqual(
|
|
20
|
+
parse([ 'foo', 'bar', 'baz' ]),
|
|
21
|
+
{ _ : [ 'foo', 'bar', 'baz' ] },
|
|
22
|
+
'bare'
|
|
23
|
+
);
|
|
24
|
+
t.deepEqual(
|
|
25
|
+
parse([ '-cats' ]),
|
|
26
|
+
{ c : true, a : true, t : true, s : true, _ : [] },
|
|
27
|
+
'group'
|
|
28
|
+
);
|
|
29
|
+
t.deepEqual(
|
|
30
|
+
parse([ '-cats', 'meow' ]),
|
|
31
|
+
{ c : true, a : true, t : true, s : 'meow', _ : [] },
|
|
32
|
+
'short group next'
|
|
33
|
+
);
|
|
34
|
+
t.deepEqual(
|
|
35
|
+
parse([ '-h', 'localhost' ]),
|
|
36
|
+
{ h : 'localhost', _ : [] },
|
|
37
|
+
'short capture'
|
|
38
|
+
);
|
|
39
|
+
t.deepEqual(
|
|
40
|
+
parse([ '-h', 'localhost', '-p', '555' ]),
|
|
41
|
+
{ h : 'localhost', p : 555, _ : [] },
|
|
42
|
+
'short captures'
|
|
43
|
+
);
|
|
44
|
+
t.end();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
test('mixed short bool and capture', function (t) {
|
|
48
|
+
t.same(
|
|
49
|
+
parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
|
|
50
|
+
{
|
|
51
|
+
f : true, p : 555, h : 'localhost',
|
|
52
|
+
_ : [ 'script.js' ]
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
t.end();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test('short and long', function (t) {
|
|
59
|
+
t.deepEqual(
|
|
60
|
+
parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
|
|
61
|
+
{
|
|
62
|
+
f : true, p : 555, h : 'localhost',
|
|
63
|
+
_ : [ 'script.js' ]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
t.end();
|
|
67
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var parse = require('../');
|
|
2
|
+
var test = require('tape');
|
|
3
|
+
|
|
4
|
+
test('stops parsing on the first non-option when stopEarly is set', function (t) {
|
|
5
|
+
var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
|
|
6
|
+
stopEarly: true
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
t.deepEqual(argv, {
|
|
10
|
+
aaa: 'bbb',
|
|
11
|
+
_: ['ccc', '--ddd']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
t.end();
|
|
15
|
+
});
|