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,26 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
<a name="2.0.0"></a>
|
|
6
|
+
# [2.0.0](https://github.com/yargs/set-blocking/compare/v1.0.0...v2.0.0) (2016-05-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add an isTTY check ([#3](https://github.com/yargs/set-blocking/issues/3)) ([66ce277](https://github.com/yargs/set-blocking/commit/66ce277))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* stdio/stderr will not be set to blocking if isTTY === false
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<a name="1.0.0"></a>
|
|
21
|
+
# 1.0.0 (2016-05-14)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* implemented shim for stream._handle.setBlocking ([6bde0c0](https://github.com/yargs/set-blocking/commit/6bde0c0))
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Copyright (c) 2016, Contributors
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software
|
|
4
|
+
for any purpose with or without fee is hereby granted, provided
|
|
5
|
+
that the above copyright notice and this permission notice
|
|
6
|
+
appear in all copies.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
9
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
10
|
+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
|
11
|
+
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
12
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
13
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
14
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# set-blocking
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/yargs/set-blocking)
|
|
4
|
+
[](https://www.npmjs.com/package/set-blocking)
|
|
5
|
+
[](https://coveralls.io/r/yargs/set-blocking?branch=master)
|
|
6
|
+
[](https://github.com/conventional-changelog/standard-version)
|
|
7
|
+
|
|
8
|
+
set blocking `stdio` and `stderr` ensuring that terminal output does not truncate.
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
const setBlocking = require('set-blocking')
|
|
12
|
+
setBlocking(true)
|
|
13
|
+
console.log(someLargeStringToOutput)
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Historical Context/Word of Warning
|
|
17
|
+
|
|
18
|
+
This was created as a shim to address the bug discussed in [node #6456](https://github.com/nodejs/node/issues/6456). This bug crops up on
|
|
19
|
+
newer versions of Node.js (`0.12+`), truncating terminal output.
|
|
20
|
+
|
|
21
|
+
You should be mindful of the side-effects caused by using `set-blocking`:
|
|
22
|
+
|
|
23
|
+
* if your module sets blocking to `true`, it will effect other modules
|
|
24
|
+
consuming your library. In [yargs](https://github.com/yargs/yargs/blob/master/yargs.js#L653) we only call
|
|
25
|
+
`setBlocking(true)` once we already know we are about to call `process.exit(code)`.
|
|
26
|
+
* this patch will not apply to subprocesses spawned with `isTTY = true`, this is
|
|
27
|
+
the [default `spawn()` behavior](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
ISC
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"set-blocking@2.0.0",
|
|
5
|
+
"/home/runner/work/node-datachannel/node-datachannel"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_from": "set-blocking@2.0.0",
|
|
9
|
+
"_id": "set-blocking@2.0.0",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
|
|
12
|
+
"_location": "/set-blocking",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "set-blocking@2.0.0",
|
|
18
|
+
"name": "set-blocking",
|
|
19
|
+
"escapedName": "set-blocking",
|
|
20
|
+
"rawSpec": "2.0.0",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "2.0.0"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/npmlog"
|
|
26
|
+
],
|
|
27
|
+
"_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
|
|
28
|
+
"_spec": "2.0.0",
|
|
29
|
+
"_where": "/home/runner/work/node-datachannel/node-datachannel",
|
|
30
|
+
"author": {
|
|
31
|
+
"name": "Ben Coe",
|
|
32
|
+
"email": "ben@npmjs.com"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/yargs/set-blocking/issues"
|
|
36
|
+
},
|
|
37
|
+
"description": "set blocking stdio and stderr ensuring that terminal output does not truncate",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"chai": "^3.5.0",
|
|
40
|
+
"coveralls": "^2.11.9",
|
|
41
|
+
"mocha": "^2.4.5",
|
|
42
|
+
"nyc": "^6.4.4",
|
|
43
|
+
"standard": "^7.0.1",
|
|
44
|
+
"standard-version": "^2.2.1"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"index.js",
|
|
48
|
+
"LICENSE.txt"
|
|
49
|
+
],
|
|
50
|
+
"homepage": "https://github.com/yargs/set-blocking#readme",
|
|
51
|
+
"keywords": [
|
|
52
|
+
"flush",
|
|
53
|
+
"terminal",
|
|
54
|
+
"blocking",
|
|
55
|
+
"shim",
|
|
56
|
+
"stdio",
|
|
57
|
+
"stderr"
|
|
58
|
+
],
|
|
59
|
+
"license": "ISC",
|
|
60
|
+
"main": "index.js",
|
|
61
|
+
"name": "set-blocking",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/yargs/set-blocking.git"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
68
|
+
"pretest": "standard",
|
|
69
|
+
"test": "nyc mocha ./test/*.js",
|
|
70
|
+
"version": "standard-version"
|
|
71
|
+
},
|
|
72
|
+
"version": "2.0.0"
|
|
73
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### [3.0.3](https://github.com/tapjs/signal-exit/compare/v3.0.2...v3.0.3) (2020-03-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* patch `SIGHUP` to `SIGINT` when on Windows ([cfd1046](https://github.com/tapjs/signal-exit/commit/cfd1046079af4f0e44f93c69c237a09de8c23ef2))
|
|
11
|
+
* **ci:** use Travis for Windows builds ([007add7](https://github.com/tapjs/signal-exit/commit/007add793d2b5ae3c382512103adbf321768a0b8))
|
|
12
|
+
|
|
13
|
+
<a name="3.0.1"></a>
|
|
14
|
+
## [3.0.1](https://github.com/tapjs/signal-exit/compare/v3.0.0...v3.0.1) (2016-09-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* do not listen on SIGBUS, SIGFPE, SIGSEGV and SIGILL ([#40](https://github.com/tapjs/signal-exit/issues/40)) ([5b105fb](https://github.com/tapjs/signal-exit/commit/5b105fb))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<a name="3.0.0"></a>
|
|
24
|
+
# [3.0.0](https://github.com/tapjs/signal-exit/compare/v2.1.2...v3.0.0) (2016-06-13)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* get our test suite running on Windows ([#23](https://github.com/tapjs/signal-exit/issues/23)) ([6f3eda8](https://github.com/tapjs/signal-exit/commit/6f3eda8))
|
|
30
|
+
* hooking SIGPROF was interfering with profilers see [#21](https://github.com/tapjs/signal-exit/issues/21) ([#24](https://github.com/tapjs/signal-exit/issues/24)) ([1248a4c](https://github.com/tapjs/signal-exit/commit/1248a4c))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### BREAKING CHANGES
|
|
34
|
+
|
|
35
|
+
* signal-exit no longer wires into SIGPROF
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015, Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software
|
|
6
|
+
for any purpose with or without fee is hereby granted, provided
|
|
7
|
+
that the above copyright notice and this permission notice
|
|
8
|
+
appear in all copies.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
12
|
+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
|
13
|
+
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
14
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
15
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
16
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# signal-exit
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/tapjs/signal-exit)
|
|
4
|
+
[](https://coveralls.io/r/tapjs/signal-exit?branch=master)
|
|
5
|
+
[](https://www.npmjs.com/package/signal-exit)
|
|
6
|
+
[](https://github.com/conventional-changelog/standard-version)
|
|
7
|
+
|
|
8
|
+
When you want to fire an event no matter how a process exits:
|
|
9
|
+
|
|
10
|
+
* reaching the end of execution.
|
|
11
|
+
* explicitly having `process.exit(code)` called.
|
|
12
|
+
* having `process.kill(pid, sig)` called.
|
|
13
|
+
* receiving a fatal signal from outside the process
|
|
14
|
+
|
|
15
|
+
Use `signal-exit`.
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
var onExit = require('signal-exit')
|
|
19
|
+
|
|
20
|
+
onExit(function (code, signal) {
|
|
21
|
+
console.log('process exited!')
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## API
|
|
26
|
+
|
|
27
|
+
`var remove = onExit(function (code, signal) {}, options)`
|
|
28
|
+
|
|
29
|
+
The return value of the function is a function that will remove the
|
|
30
|
+
handler.
|
|
31
|
+
|
|
32
|
+
Note that the function *only* fires for signals if the signal would
|
|
33
|
+
cause the proces to exit. That is, there are no other listeners, and
|
|
34
|
+
it is a fatal signal.
|
|
35
|
+
|
|
36
|
+
## Options
|
|
37
|
+
|
|
38
|
+
* `alwaysLast`: Run this handler after any other signal or exit
|
|
39
|
+
handlers. This causes `process.emit` to be monkeypatched.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// Note: since nyc uses this module to output coverage, any lines
|
|
2
|
+
// that are in the direct sync flow of nyc's outputCoverage are
|
|
3
|
+
// ignored, since we can never get coverage for them.
|
|
4
|
+
var assert = require('assert')
|
|
5
|
+
var signals = require('./signals.js')
|
|
6
|
+
var isWin = /^win/i.test(process.platform)
|
|
7
|
+
|
|
8
|
+
var EE = require('events')
|
|
9
|
+
/* istanbul ignore if */
|
|
10
|
+
if (typeof EE !== 'function') {
|
|
11
|
+
EE = EE.EventEmitter
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var emitter
|
|
15
|
+
if (process.__signal_exit_emitter__) {
|
|
16
|
+
emitter = process.__signal_exit_emitter__
|
|
17
|
+
} else {
|
|
18
|
+
emitter = process.__signal_exit_emitter__ = new EE()
|
|
19
|
+
emitter.count = 0
|
|
20
|
+
emitter.emitted = {}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Because this emitter is a global, we have to check to see if a
|
|
24
|
+
// previous version of this library failed to enable infinite listeners.
|
|
25
|
+
// I know what you're about to say. But literally everything about
|
|
26
|
+
// signal-exit is a compromise with evil. Get used to it.
|
|
27
|
+
if (!emitter.infinite) {
|
|
28
|
+
emitter.setMaxListeners(Infinity)
|
|
29
|
+
emitter.infinite = true
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = function (cb, opts) {
|
|
33
|
+
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
|
34
|
+
|
|
35
|
+
if (loaded === false) {
|
|
36
|
+
load()
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var ev = 'exit'
|
|
40
|
+
if (opts && opts.alwaysLast) {
|
|
41
|
+
ev = 'afterexit'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var remove = function () {
|
|
45
|
+
emitter.removeListener(ev, cb)
|
|
46
|
+
if (emitter.listeners('exit').length === 0 &&
|
|
47
|
+
emitter.listeners('afterexit').length === 0) {
|
|
48
|
+
unload()
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
emitter.on(ev, cb)
|
|
52
|
+
|
|
53
|
+
return remove
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
module.exports.unload = unload
|
|
57
|
+
function unload () {
|
|
58
|
+
if (!loaded) {
|
|
59
|
+
return
|
|
60
|
+
}
|
|
61
|
+
loaded = false
|
|
62
|
+
|
|
63
|
+
signals.forEach(function (sig) {
|
|
64
|
+
try {
|
|
65
|
+
process.removeListener(sig, sigListeners[sig])
|
|
66
|
+
} catch (er) {}
|
|
67
|
+
})
|
|
68
|
+
process.emit = originalProcessEmit
|
|
69
|
+
process.reallyExit = originalProcessReallyExit
|
|
70
|
+
emitter.count -= 1
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function emit (event, code, signal) {
|
|
74
|
+
if (emitter.emitted[event]) {
|
|
75
|
+
return
|
|
76
|
+
}
|
|
77
|
+
emitter.emitted[event] = true
|
|
78
|
+
emitter.emit(event, code, signal)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// { <signal>: <listener fn>, ... }
|
|
82
|
+
var sigListeners = {}
|
|
83
|
+
signals.forEach(function (sig) {
|
|
84
|
+
sigListeners[sig] = function listener () {
|
|
85
|
+
// If there are no other listeners, an exit is coming!
|
|
86
|
+
// Simplest way: remove us and then re-send the signal.
|
|
87
|
+
// We know that this will kill the process, so we can
|
|
88
|
+
// safely emit now.
|
|
89
|
+
var listeners = process.listeners(sig)
|
|
90
|
+
if (listeners.length === emitter.count) {
|
|
91
|
+
unload()
|
|
92
|
+
emit('exit', null, sig)
|
|
93
|
+
/* istanbul ignore next */
|
|
94
|
+
emit('afterexit', null, sig)
|
|
95
|
+
/* istanbul ignore next */
|
|
96
|
+
if (isWin && sig === 'SIGHUP') {
|
|
97
|
+
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
98
|
+
// so use a supported signal instead
|
|
99
|
+
sig = 'SIGINT'
|
|
100
|
+
}
|
|
101
|
+
process.kill(process.pid, sig)
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
module.exports.signals = function () {
|
|
107
|
+
return signals
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
module.exports.load = load
|
|
111
|
+
|
|
112
|
+
var loaded = false
|
|
113
|
+
|
|
114
|
+
function load () {
|
|
115
|
+
if (loaded) {
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
loaded = true
|
|
119
|
+
|
|
120
|
+
// This is the number of onSignalExit's that are in play.
|
|
121
|
+
// It's important so that we can count the correct number of
|
|
122
|
+
// listeners on signals, and don't wait for the other one to
|
|
123
|
+
// handle it instead of us.
|
|
124
|
+
emitter.count += 1
|
|
125
|
+
|
|
126
|
+
signals = signals.filter(function (sig) {
|
|
127
|
+
try {
|
|
128
|
+
process.on(sig, sigListeners[sig])
|
|
129
|
+
return true
|
|
130
|
+
} catch (er) {
|
|
131
|
+
return false
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
process.emit = processEmit
|
|
136
|
+
process.reallyExit = processReallyExit
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
var originalProcessReallyExit = process.reallyExit
|
|
140
|
+
function processReallyExit (code) {
|
|
141
|
+
process.exitCode = code || 0
|
|
142
|
+
emit('exit', process.exitCode, null)
|
|
143
|
+
/* istanbul ignore next */
|
|
144
|
+
emit('afterexit', process.exitCode, null)
|
|
145
|
+
/* istanbul ignore next */
|
|
146
|
+
originalProcessReallyExit.call(process, process.exitCode)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
var originalProcessEmit = process.emit
|
|
150
|
+
function processEmit (ev, arg) {
|
|
151
|
+
if (ev === 'exit') {
|
|
152
|
+
if (arg !== undefined) {
|
|
153
|
+
process.exitCode = arg
|
|
154
|
+
}
|
|
155
|
+
var ret = originalProcessEmit.apply(this, arguments)
|
|
156
|
+
emit('exit', process.exitCode, null)
|
|
157
|
+
/* istanbul ignore next */
|
|
158
|
+
emit('afterexit', process.exitCode, null)
|
|
159
|
+
return ret
|
|
160
|
+
} else {
|
|
161
|
+
return originalProcessEmit.apply(this, arguments)
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_args": [
|
|
3
|
+
[
|
|
4
|
+
"signal-exit@3.0.3",
|
|
5
|
+
"/home/runner/work/node-datachannel/node-datachannel"
|
|
6
|
+
]
|
|
7
|
+
],
|
|
8
|
+
"_from": "signal-exit@3.0.3",
|
|
9
|
+
"_id": "signal-exit@3.0.3",
|
|
10
|
+
"_inBundle": false,
|
|
11
|
+
"_integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
|
|
12
|
+
"_location": "/signal-exit",
|
|
13
|
+
"_phantomChildren": {},
|
|
14
|
+
"_requested": {
|
|
15
|
+
"type": "version",
|
|
16
|
+
"registry": true,
|
|
17
|
+
"raw": "signal-exit@3.0.3",
|
|
18
|
+
"name": "signal-exit",
|
|
19
|
+
"escapedName": "signal-exit",
|
|
20
|
+
"rawSpec": "3.0.3",
|
|
21
|
+
"saveSpec": null,
|
|
22
|
+
"fetchSpec": "3.0.3"
|
|
23
|
+
},
|
|
24
|
+
"_requiredBy": [
|
|
25
|
+
"/execa",
|
|
26
|
+
"/npmlog/gauge",
|
|
27
|
+
"/write-file-atomic"
|
|
28
|
+
],
|
|
29
|
+
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
|
|
30
|
+
"_spec": "3.0.3",
|
|
31
|
+
"_where": "/home/runner/work/node-datachannel/node-datachannel",
|
|
32
|
+
"author": {
|
|
33
|
+
"name": "Ben Coe",
|
|
34
|
+
"email": "ben@npmjs.com"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/tapjs/signal-exit/issues"
|
|
38
|
+
},
|
|
39
|
+
"description": "when you want to fire an event no matter how a process exits.",
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"chai": "^3.5.0",
|
|
42
|
+
"coveralls": "^2.11.10",
|
|
43
|
+
"nyc": "^8.1.0",
|
|
44
|
+
"standard": "^8.1.0",
|
|
45
|
+
"standard-version": "^2.3.0",
|
|
46
|
+
"tap": "^8.0.1"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"index.js",
|
|
50
|
+
"signals.js"
|
|
51
|
+
],
|
|
52
|
+
"homepage": "https://github.com/tapjs/signal-exit",
|
|
53
|
+
"keywords": [
|
|
54
|
+
"signal",
|
|
55
|
+
"exit"
|
|
56
|
+
],
|
|
57
|
+
"license": "ISC",
|
|
58
|
+
"main": "index.js",
|
|
59
|
+
"name": "signal-exit",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/tapjs/signal-exit.git"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
66
|
+
"pretest": "standard",
|
|
67
|
+
"release": "standard-version",
|
|
68
|
+
"test": "tap --timeout=240 ./test/*.js --cov"
|
|
69
|
+
},
|
|
70
|
+
"version": "3.0.3"
|
|
71
|
+
}
|