node-datachannel 0.4.3 → 0.5.0-dev

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.
Files changed (408) hide show
  1. package/.github/workflows/build-linux.yml +10 -10
  2. package/.github/workflows/build-mac-m1.yml +5 -5
  3. package/.github/workflows/build-mac-x64.yml +5 -5
  4. package/.github/workflows/build-win.yml +11 -8
  5. package/.github/workflows/lint.yml +1 -1
  6. package/.github/workflows/npm-publish-manual.yml +1 -1
  7. package/{.prettierrc.js → .prettierrc.cjs} +1 -0
  8. package/BULDING.md +7 -3
  9. package/CMakeLists.txt +12 -22
  10. package/README.md +37 -33
  11. package/cmake/toolchain/arm64.cmake +1 -1
  12. package/examples/build/Dockerfile +30 -0
  13. package/examples/build/README.md +24 -0
  14. package/examples/client-server/README.md +22 -0
  15. package/examples/client-server/client-benchmark.js +11 -6
  16. package/examples/client-server/client-periodic.js +5 -6
  17. package/examples/client-server/client.js +4 -5
  18. package/examples/client-server/package-lock.json +311 -260
  19. package/examples/client-server/package.json +15 -14
  20. package/examples/client-server/signaling-server.js +1 -2
  21. package/examples/electron-demo/README.md +58 -0
  22. package/examples/electron-demo/forge.config.js +49 -0
  23. package/examples/electron-demo/package-lock.json +16287 -0
  24. package/examples/electron-demo/package.json +43 -0
  25. package/examples/electron-demo/src/index.css +7 -0
  26. package/examples/electron-demo/src/index.html +29 -0
  27. package/examples/electron-demo/src/main.js +53 -0
  28. package/examples/electron-demo/src/node-datachannel.js +123 -0
  29. package/examples/electron-demo/src/preload.js +28 -0
  30. package/examples/electron-demo/src/renderer.js +58 -0
  31. package/examples/electron-demo/webpack.main.config.js +11 -0
  32. package/examples/electron-demo/webpack.renderer.config.js +13 -0
  33. package/examples/electron-demo/webpack.rules.js +35 -0
  34. package/examples/media/README.md +3 -3
  35. package/examples/media/media.js +3 -4
  36. package/examples/simple-peer-usage/main.js +28 -0
  37. package/examples/simple-peer-usage/package-lock.json +317 -0
  38. package/examples/simple-peer-usage/package.json +16 -0
  39. package/lib/datachannel-stream.js +3 -4
  40. package/lib/index.d.ts +7 -4
  41. package/lib/index.js +6 -3
  42. package/node_modules/base64-js/package.json +19 -50
  43. package/node_modules/buffer/package.json +20 -54
  44. package/node_modules/chownr/package.json +16 -53
  45. package/node_modules/decompress-response/package.json +54 -89
  46. package/node_modules/deep-extend/package.json +32 -65
  47. package/node_modules/detect-libc/README.md +4 -1
  48. package/node_modules/detect-libc/index.d.ts +3 -0
  49. package/node_modules/detect-libc/lib/detect-libc.js +105 -4
  50. package/node_modules/detect-libc/lib/filesystem.js +41 -0
  51. package/node_modules/detect-libc/lib/process.js +3 -0
  52. package/node_modules/detect-libc/package.json +25 -60
  53. package/node_modules/end-of-stream/package.json +17 -49
  54. package/node_modules/expand-template/package.json +17 -51
  55. package/node_modules/fs-constants/package.json +11 -42
  56. package/node_modules/github-from-package/package.json +28 -60
  57. package/node_modules/ieee754/package.json +19 -54
  58. package/node_modules/inherits/package.json +12 -61
  59. package/node_modules/ini/package.json +19 -55
  60. package/node_modules/mimic-response/package.json +40 -75
  61. package/node_modules/minimist/.eslintrc +29 -0
  62. package/node_modules/minimist/.github/FUNDING.yml +12 -0
  63. package/node_modules/minimist/.nycrc +14 -0
  64. package/node_modules/minimist/CHANGELOG.md +298 -0
  65. package/node_modules/minimist/{readme.markdown → README.md} +34 -11
  66. package/node_modules/minimist/example/parse.js +2 -0
  67. package/node_modules/minimist/index.js +256 -242
  68. package/node_modules/minimist/package.json +73 -77
  69. package/node_modules/minimist/test/all_bool.js +26 -24
  70. package/node_modules/minimist/test/bool.js +146 -147
  71. package/node_modules/minimist/test/dash.js +33 -21
  72. package/node_modules/minimist/test/default_bool.js +26 -24
  73. package/node_modules/minimist/test/dotted.js +13 -11
  74. package/node_modules/minimist/test/kv_short.js +26 -10
  75. package/node_modules/minimist/test/long.js +28 -26
  76. package/node_modules/minimist/test/num.js +30 -28
  77. package/node_modules/minimist/test/parse.js +169 -157
  78. package/node_modules/minimist/test/parse_modified.js +7 -5
  79. package/node_modules/minimist/test/proto.js +41 -37
  80. package/node_modules/minimist/test/short.js +57 -55
  81. package/node_modules/minimist/test/stop_early.js +10 -8
  82. package/node_modules/minimist/test/unknown.js +83 -81
  83. package/node_modules/minimist/test/whitespace.js +6 -4
  84. package/node_modules/mkdirp-classic/package.json +11 -43
  85. package/node_modules/napi-build-utils/package.json +26 -57
  86. package/node_modules/node-abi/README.md +5 -3
  87. package/node_modules/node-abi/abi_registry.json +98 -8
  88. package/node_modules/node-abi/package.json +26 -57
  89. package/node_modules/once/package.json +14 -55
  90. package/node_modules/prebuild-install/CHANGELOG.md +18 -0
  91. package/node_modules/prebuild-install/README.md +6 -2
  92. package/node_modules/prebuild-install/log.js +26 -18
  93. package/node_modules/prebuild-install/package.json +36 -98
  94. package/node_modules/prebuild-install/rc.js +5 -1
  95. package/node_modules/prebuild-install/util.js +1 -1
  96. package/node_modules/pump/package.json +10 -49
  97. package/node_modules/rc/node_modules/strip-json-comments/package.json +42 -0
  98. package/node_modules/rc/package.json +18 -59
  99. package/node_modules/safe-buffer/index.js +3 -0
  100. package/node_modules/safe-buffer/package.json +20 -39
  101. package/node_modules/{node-abi/node_modules/semver → semver}/README.md +70 -1
  102. package/node_modules/{node-abi/node_modules/semver → semver}/bin/semver.js +16 -2
  103. package/node_modules/{node-abi/node_modules/semver → semver}/classes/comparator.js +39 -34
  104. package/node_modules/{node-abi/node_modules/semver → semver}/classes/range.js +48 -28
  105. package/node_modules/{node-abi/node_modules/semver → semver}/classes/semver.js +32 -17
  106. package/node_modules/{node-abi/node_modules/semver → semver}/functions/coerce.js +1 -1
  107. package/node_modules/semver/functions/diff.js +65 -0
  108. package/node_modules/{node-abi/node_modules/semver → semver}/functions/inc.js +3 -2
  109. package/node_modules/semver/functions/parse.js +16 -0
  110. package/node_modules/semver/index.js +89 -0
  111. package/node_modules/{node-abi/node_modules/semver → semver}/internal/constants.js +20 -2
  112. package/node_modules/semver/internal/parse-options.js +15 -0
  113. package/node_modules/{node-abi/node_modules/semver → semver}/internal/re.js +34 -4
  114. package/node_modules/semver/node_modules/lru-cache/package.json +34 -0
  115. package/node_modules/semver/node_modules/yallist/package.json +29 -0
  116. package/node_modules/semver/package.json +87 -0
  117. package/node_modules/{node-abi/node_modules/semver → semver}/ranges/intersects.js +1 -1
  118. package/node_modules/{node-abi/node_modules/semver → semver}/ranges/subset.js +6 -3
  119. package/node_modules/simple-concat/package.json +17 -45
  120. package/node_modules/simple-get/package.json +17 -45
  121. package/node_modules/{tar-stream → tar-fs}/node_modules/bl/package.json +20 -51
  122. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/README.md +1 -1
  123. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/_stream_duplex.js +12 -25
  124. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/_stream_passthrough.js +2 -4
  125. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/_stream_readable.js +176 -273
  126. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/_stream_transform.js +26 -37
  127. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/_stream_writable.js +118 -174
  128. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/async_iterator.js +10 -37
  129. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/buffer_list.js +20 -47
  130. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/destroy.js +8 -17
  131. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -19
  132. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/from.js +12 -24
  133. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/pipeline.js +5 -16
  134. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/state.js +2 -7
  135. package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/package.json +27 -60
  136. package/node_modules/tar-fs/node_modules/string_decoder/package.json +34 -0
  137. package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/extract.js +1 -1
  138. package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/headers.js +4 -2
  139. package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/package.json +22 -59
  140. package/node_modules/tar-fs/package.json +21 -51
  141. package/node_modules/tunnel-agent/package.json +12 -49
  142. package/node_modules/util-deprecate/package.json +14 -49
  143. package/node_modules/wrappy/package.json +16 -49
  144. package/package.json +85 -68
  145. package/polyfill/Events.d.ts +9 -0
  146. package/polyfill/Events.js +27 -0
  147. package/polyfill/README.md +41 -0
  148. package/polyfill/RTCCertificate.d.ts +7 -0
  149. package/polyfill/RTCCertificate.js +17 -0
  150. package/polyfill/RTCDataChannel.d.ts +35 -0
  151. package/polyfill/RTCDataChannel.js +175 -0
  152. package/polyfill/RTCDtlsTransport.d.ts +10 -0
  153. package/polyfill/RTCDtlsTransport.js +29 -0
  154. package/polyfill/RTCIceCandidate.d.ts +20 -0
  155. package/polyfill/RTCIceCandidate.js +126 -0
  156. package/polyfill/RTCIceTransport.d.ts +18 -0
  157. package/polyfill/RTCIceTransport.js +55 -0
  158. package/polyfill/RTCPeerConnection.d.ts +50 -0
  159. package/polyfill/RTCPeerConnection.js +348 -0
  160. package/polyfill/RTCSctpTransport.d.ts +10 -0
  161. package/polyfill/RTCSctpTransport.js +34 -0
  162. package/polyfill/RTCSessionDescription.d.ts +7 -0
  163. package/polyfill/RTCSessionDescription.js +37 -0
  164. package/polyfill/index.d.ts +14 -0
  165. package/polyfill/index.js +14 -0
  166. package/src/data-channel-wrapper.cpp +47 -6
  167. package/src/main.cpp +5 -5
  168. package/src/peer-connection-wrapper.cpp +141 -9
  169. package/src/peer-connection-wrapper.h +4 -0
  170. package/src/rtc-wrapper.cpp +14 -9
  171. package/src/thread-safe-callback.cpp +4 -10
  172. package/src/thread-safe-callback.h +3 -12
  173. package/test/connectivity.js +9 -4
  174. package/test/polyfill-connectivity.js +89 -0
  175. package/test/test.js +3 -3
  176. package/test/wpt.js +50 -0
  177. package/examples/README.md +0 -21
  178. package/node_modules/ansi-regex/index.js +0 -4
  179. package/node_modules/ansi-regex/package.json +0 -111
  180. package/node_modules/ansi-regex/readme.md +0 -39
  181. package/node_modules/aproba/LICENSE +0 -14
  182. package/node_modules/aproba/README.md +0 -94
  183. package/node_modules/aproba/index.js +0 -105
  184. package/node_modules/aproba/package.json +0 -65
  185. package/node_modules/code-point-at/index.js +0 -32
  186. package/node_modules/code-point-at/license +0 -21
  187. package/node_modules/code-point-at/package.json +0 -73
  188. package/node_modules/code-point-at/readme.md +0 -32
  189. package/node_modules/console-control-strings/LICENSE +0 -13
  190. package/node_modules/console-control-strings/README.md +0 -145
  191. package/node_modules/console-control-strings/README.md~ +0 -140
  192. package/node_modules/console-control-strings/index.js +0 -125
  193. package/node_modules/console-control-strings/package.json +0 -64
  194. package/node_modules/core-util-is/LICENSE +0 -19
  195. package/node_modules/core-util-is/README.md +0 -3
  196. package/node_modules/core-util-is/float.patch +0 -604
  197. package/node_modules/core-util-is/lib/util.js +0 -107
  198. package/node_modules/core-util-is/package.json +0 -70
  199. package/node_modules/core-util-is/test.js +0 -68
  200. package/node_modules/delegates/.npmignore +0 -1
  201. package/node_modules/delegates/History.md +0 -22
  202. package/node_modules/delegates/License +0 -20
  203. package/node_modules/delegates/Makefile +0 -8
  204. package/node_modules/delegates/Readme.md +0 -94
  205. package/node_modules/delegates/index.js +0 -121
  206. package/node_modules/delegates/package.json +0 -53
  207. package/node_modules/delegates/test/index.js +0 -94
  208. package/node_modules/has-unicode/LICENSE +0 -14
  209. package/node_modules/has-unicode/README.md +0 -43
  210. package/node_modules/has-unicode/index.js +0 -16
  211. package/node_modules/has-unicode/package.json +0 -62
  212. package/node_modules/is-fullwidth-code-point/index.js +0 -46
  213. package/node_modules/is-fullwidth-code-point/license +0 -21
  214. package/node_modules/is-fullwidth-code-point/package.json +0 -80
  215. package/node_modules/is-fullwidth-code-point/readme.md +0 -39
  216. package/node_modules/isarray/.npmignore +0 -1
  217. package/node_modules/isarray/.travis.yml +0 -4
  218. package/node_modules/isarray/Makefile +0 -6
  219. package/node_modules/isarray/README.md +0 -60
  220. package/node_modules/isarray/component.json +0 -19
  221. package/node_modules/isarray/index.js +0 -5
  222. package/node_modules/isarray/package.json +0 -77
  223. package/node_modules/isarray/test.js +0 -20
  224. package/node_modules/lru-cache/node_modules/yallist/package.json +0 -65
  225. package/node_modules/lru-cache/package.json +0 -73
  226. package/node_modules/minimist/.travis.yml +0 -8
  227. package/node_modules/node-abi/.circleci/config.yml +0 -63
  228. package/node_modules/node-abi/.github/workflows/update-abi.yml +0 -41
  229. package/node_modules/node-abi/.releaserc.json +0 -9
  230. package/node_modules/node-abi/CODE_OF_CONDUCT.md +0 -73
  231. package/node_modules/node-abi/CONTRIBUTING.md +0 -53
  232. package/node_modules/node-abi/node_modules/semver/functions/diff.js +0 -23
  233. package/node_modules/node-abi/node_modules/semver/functions/parse.js +0 -33
  234. package/node_modules/node-abi/node_modules/semver/index.js +0 -48
  235. package/node_modules/node-abi/node_modules/semver/internal/parse-options.js +0 -11
  236. package/node_modules/node-abi/node_modules/semver/package.json +0 -109
  237. package/node_modules/node-abi/scripts/update-abi-registry.js +0 -119
  238. package/node_modules/node-abi/test/index.js +0 -166
  239. package/node_modules/npmlog/CHANGELOG.md +0 -49
  240. package/node_modules/npmlog/LICENSE +0 -15
  241. package/node_modules/npmlog/README.md +0 -216
  242. package/node_modules/npmlog/log.js +0 -309
  243. package/node_modules/npmlog/node_modules/are-we-there-yet/CHANGES.md +0 -37
  244. package/node_modules/npmlog/node_modules/are-we-there-yet/LICENSE +0 -5
  245. package/node_modules/npmlog/node_modules/are-we-there-yet/README.md +0 -195
  246. package/node_modules/npmlog/node_modules/are-we-there-yet/index.js +0 -4
  247. package/node_modules/npmlog/node_modules/are-we-there-yet/package.json +0 -66
  248. package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-base.js +0 -11
  249. package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-group.js +0 -107
  250. package/node_modules/npmlog/node_modules/are-we-there-yet/tracker-stream.js +0 -36
  251. package/node_modules/npmlog/node_modules/are-we-there-yet/tracker.js +0 -30
  252. package/node_modules/npmlog/node_modules/gauge/CHANGELOG.md +0 -160
  253. package/node_modules/npmlog/node_modules/gauge/LICENSE +0 -13
  254. package/node_modules/npmlog/node_modules/gauge/README.md +0 -399
  255. package/node_modules/npmlog/node_modules/gauge/base-theme.js +0 -14
  256. package/node_modules/npmlog/node_modules/gauge/error.js +0 -24
  257. package/node_modules/npmlog/node_modules/gauge/has-color.js +0 -12
  258. package/node_modules/npmlog/node_modules/gauge/index.js +0 -233
  259. package/node_modules/npmlog/node_modules/gauge/package.json +0 -94
  260. package/node_modules/npmlog/node_modules/gauge/plumbing.js +0 -48
  261. package/node_modules/npmlog/node_modules/gauge/process.js +0 -3
  262. package/node_modules/npmlog/node_modules/gauge/progress-bar.js +0 -35
  263. package/node_modules/npmlog/node_modules/gauge/render-template.js +0 -181
  264. package/node_modules/npmlog/node_modules/gauge/set-immediate.js +0 -7
  265. package/node_modules/npmlog/node_modules/gauge/set-interval.js +0 -3
  266. package/node_modules/npmlog/node_modules/gauge/spin.js +0 -5
  267. package/node_modules/npmlog/node_modules/gauge/template-item.js +0 -73
  268. package/node_modules/npmlog/node_modules/gauge/theme-set.js +0 -115
  269. package/node_modules/npmlog/node_modules/gauge/themes.js +0 -54
  270. package/node_modules/npmlog/node_modules/gauge/wide-truncate.js +0 -25
  271. package/node_modules/npmlog/package.json +0 -78
  272. package/node_modules/number-is-nan/index.js +0 -4
  273. package/node_modules/number-is-nan/license +0 -21
  274. package/node_modules/number-is-nan/package.json +0 -70
  275. package/node_modules/number-is-nan/readme.md +0 -28
  276. package/node_modules/object-assign/index.js +0 -90
  277. package/node_modules/object-assign/license +0 -21
  278. package/node_modules/object-assign/package.json +0 -77
  279. package/node_modules/object-assign/readme.md +0 -61
  280. package/node_modules/process-nextick-args/index.js +0 -45
  281. package/node_modules/process-nextick-args/license.md +0 -19
  282. package/node_modules/process-nextick-args/package.json +0 -53
  283. package/node_modules/process-nextick-args/readme.md +0 -18
  284. package/node_modules/readable-stream/.travis.yml +0 -34
  285. package/node_modules/readable-stream/README.md +0 -58
  286. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  287. package/node_modules/readable-stream/duplex-browser.js +0 -1
  288. package/node_modules/readable-stream/duplex.js +0 -1
  289. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
  290. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
  291. package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
  292. package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
  293. package/node_modules/readable-stream/lib/_stream_writable.js +0 -687
  294. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  295. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
  296. package/node_modules/readable-stream/package.json +0 -87
  297. package/node_modules/readable-stream/passthrough.js +0 -1
  298. package/node_modules/readable-stream/readable-browser.js +0 -7
  299. package/node_modules/readable-stream/readable.js +0 -19
  300. package/node_modules/readable-stream/transform.js +0 -1
  301. package/node_modules/readable-stream/writable-browser.js +0 -1
  302. package/node_modules/readable-stream/writable.js +0 -8
  303. package/node_modules/set-blocking/CHANGELOG.md +0 -26
  304. package/node_modules/set-blocking/LICENSE.txt +0 -14
  305. package/node_modules/set-blocking/README.md +0 -31
  306. package/node_modules/set-blocking/index.js +0 -7
  307. package/node_modules/set-blocking/package.json +0 -73
  308. package/node_modules/signal-exit/CHANGELOG.md +0 -35
  309. package/node_modules/signal-exit/LICENSE.txt +0 -16
  310. package/node_modules/signal-exit/README.md +0 -39
  311. package/node_modules/signal-exit/index.js +0 -163
  312. package/node_modules/signal-exit/package.json +0 -71
  313. package/node_modules/signal-exit/signals.js +0 -53
  314. package/node_modules/string-width/index.js +0 -37
  315. package/node_modules/string-width/license +0 -21
  316. package/node_modules/string-width/package.json +0 -95
  317. package/node_modules/string-width/readme.md +0 -42
  318. package/node_modules/string_decoder/.travis.yml +0 -50
  319. package/node_modules/string_decoder/package.json +0 -64
  320. package/node_modules/strip-ansi/index.js +0 -6
  321. package/node_modules/strip-ansi/license +0 -21
  322. package/node_modules/strip-ansi/package.json +0 -107
  323. package/node_modules/strip-ansi/readme.md +0 -33
  324. package/node_modules/strip-json-comments/license +0 -21
  325. package/node_modules/strip-json-comments/package.json +0 -77
  326. package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  327. package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
  328. package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
  329. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  330. package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  331. package/node_modules/wide-align/LICENSE +0 -14
  332. package/node_modules/wide-align/README.md +0 -47
  333. package/node_modules/wide-align/align.js +0 -65
  334. package/node_modules/wide-align/package.json +0 -69
  335. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
  336. /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/index.js +0 -0
  337. /package/node_modules/{ansi-regex → rc/node_modules/strip-json-comments}/license +0 -0
  338. /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/readme.md +0 -0
  339. /package/node_modules/{lru-cache → semver}/LICENSE +0 -0
  340. /package/node_modules/{node-abi/node_modules/semver → semver}/classes/index.js +0 -0
  341. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/clean.js +0 -0
  342. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/cmp.js +0 -0
  343. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/compare-build.js +0 -0
  344. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/compare-loose.js +0 -0
  345. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/compare.js +0 -0
  346. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/eq.js +0 -0
  347. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/gt.js +0 -0
  348. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/gte.js +0 -0
  349. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/lt.js +0 -0
  350. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/lte.js +0 -0
  351. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/major.js +0 -0
  352. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/minor.js +0 -0
  353. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/neq.js +0 -0
  354. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/patch.js +0 -0
  355. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/prerelease.js +0 -0
  356. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/rcompare.js +0 -0
  357. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/rsort.js +0 -0
  358. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/satisfies.js +0 -0
  359. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/sort.js +0 -0
  360. /package/node_modules/{node-abi/node_modules/semver → semver}/functions/valid.js +0 -0
  361. /package/node_modules/{node-abi/node_modules/semver → semver}/internal/debug.js +0 -0
  362. /package/node_modules/{node-abi/node_modules/semver → semver}/internal/identifiers.js +0 -0
  363. /package/node_modules/{lru-cache/node_modules/yallist → semver/node_modules/lru-cache}/LICENSE +0 -0
  364. /package/node_modules/{lru-cache → semver/node_modules/lru-cache}/README.md +0 -0
  365. /package/node_modules/{lru-cache → semver/node_modules/lru-cache}/index.js +0 -0
  366. /package/node_modules/{node-abi/node_modules/semver → semver/node_modules/yallist}/LICENSE +0 -0
  367. /package/node_modules/{lru-cache → semver}/node_modules/yallist/README.md +0 -0
  368. /package/node_modules/{lru-cache → semver}/node_modules/yallist/iterator.js +0 -0
  369. /package/node_modules/{lru-cache → semver}/node_modules/yallist/yallist.js +0 -0
  370. /package/node_modules/{node-abi/node_modules/semver → semver}/preload.js +0 -0
  371. /package/node_modules/{node-abi/node_modules/semver → semver}/range.bnf +0 -0
  372. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/gtr.js +0 -0
  373. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/ltr.js +0 -0
  374. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/max-satisfying.js +0 -0
  375. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/min-satisfying.js +0 -0
  376. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/min-version.js +0 -0
  377. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/outside.js +0 -0
  378. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/simplify.js +0 -0
  379. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/to-comparators.js +0 -0
  380. /package/node_modules/{node-abi/node_modules/semver → semver}/ranges/valid.js +0 -0
  381. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/.travis.yml +0 -0
  382. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/BufferList.js +0 -0
  383. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/LICENSE.md +0 -0
  384. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/README.md +0 -0
  385. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/bl.js +0 -0
  386. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/test/convert.js +0 -0
  387. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/test/indexOf.js +0 -0
  388. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/test/isBufferList.js +0 -0
  389. /package/node_modules/{tar-stream → tar-fs}/node_modules/bl/test/test.js +0 -0
  390. /package/node_modules/{readable-stream → tar-fs/node_modules/readable-stream}/CONTRIBUTING.md +0 -0
  391. /package/node_modules/{readable-stream → tar-fs/node_modules/readable-stream}/GOVERNANCE.md +0 -0
  392. /package/node_modules/{readable-stream → tar-fs/node_modules/readable-stream}/LICENSE +0 -0
  393. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/errors-browser.js +0 -0
  394. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/errors.js +0 -0
  395. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/experimentalWarning.js +0 -0
  396. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -0
  397. /package/node_modules/{readable-stream → tar-fs/node_modules/readable-stream}/lib/internal/streams/stream-browser.js +0 -0
  398. /package/node_modules/{readable-stream → tar-fs/node_modules/readable-stream}/lib/internal/streams/stream.js +0 -0
  399. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/readable-browser.js +0 -0
  400. /package/node_modules/{tar-stream → tar-fs}/node_modules/readable-stream/readable.js +0 -0
  401. /package/node_modules/{string_decoder → tar-fs/node_modules/string_decoder}/LICENSE +0 -0
  402. /package/node_modules/{string_decoder → tar-fs/node_modules/string_decoder}/README.md +0 -0
  403. /package/node_modules/{string_decoder → tar-fs/node_modules/string_decoder}/lib/string_decoder.js +0 -0
  404. /package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/LICENSE +0 -0
  405. /package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/README.md +0 -0
  406. /package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/index.js +0 -0
  407. /package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/pack.js +0 -0
  408. /package/node_modules/{tar-stream → tar-fs/node_modules/tar-stream}/sandbox.js +0 -0
@@ -1,107 +0,0 @@
1
- {
2
- "_args": [
3
- [
4
- "strip-ansi@3.0.1",
5
- "/home/runner/work/node-datachannel/node-datachannel"
6
- ]
7
- ],
8
- "_from": "strip-ansi@3.0.1",
9
- "_id": "strip-ansi@3.0.1",
10
- "_inBundle": false,
11
- "_integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
12
- "_location": "/strip-ansi",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "strip-ansi@3.0.1",
18
- "name": "strip-ansi",
19
- "escapedName": "strip-ansi",
20
- "rawSpec": "3.0.1",
21
- "saveSpec": null,
22
- "fetchSpec": "3.0.1"
23
- },
24
- "_requiredBy": [
25
- "/cliui",
26
- "/npmlog/gauge",
27
- "/string-width",
28
- "/wrap-ansi"
29
- ],
30
- "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
31
- "_spec": "3.0.1",
32
- "_where": "/home/runner/work/node-datachannel/node-datachannel",
33
- "author": {
34
- "name": "Sindre Sorhus",
35
- "email": "sindresorhus@gmail.com",
36
- "url": "sindresorhus.com"
37
- },
38
- "bugs": {
39
- "url": "https://github.com/chalk/strip-ansi/issues"
40
- },
41
- "dependencies": {
42
- "ansi-regex": "^2.0.0"
43
- },
44
- "description": "Strip ANSI escape codes",
45
- "devDependencies": {
46
- "ava": "*",
47
- "xo": "*"
48
- },
49
- "engines": {
50
- "node": ">=0.10.0"
51
- },
52
- "files": [
53
- "index.js"
54
- ],
55
- "homepage": "https://github.com/chalk/strip-ansi#readme",
56
- "keywords": [
57
- "strip",
58
- "trim",
59
- "remove",
60
- "ansi",
61
- "styles",
62
- "color",
63
- "colour",
64
- "colors",
65
- "terminal",
66
- "console",
67
- "string",
68
- "tty",
69
- "escape",
70
- "formatting",
71
- "rgb",
72
- "256",
73
- "shell",
74
- "xterm",
75
- "log",
76
- "logging",
77
- "command-line",
78
- "text"
79
- ],
80
- "license": "MIT",
81
- "maintainers": [
82
- {
83
- "name": "Sindre Sorhus",
84
- "email": "sindresorhus@gmail.com",
85
- "url": "sindresorhus.com"
86
- },
87
- {
88
- "name": "Joshua Boy Nicolai Appelman",
89
- "email": "joshua@jbna.nl",
90
- "url": "jbna.nl"
91
- },
92
- {
93
- "name": "JD Ballard",
94
- "email": "i.am.qix@gmail.com",
95
- "url": "github.com/qix-"
96
- }
97
- ],
98
- "name": "strip-ansi",
99
- "repository": {
100
- "type": "git",
101
- "url": "git+https://github.com/chalk/strip-ansi.git"
102
- },
103
- "scripts": {
104
- "test": "xo && ava"
105
- },
106
- "version": "3.0.1"
107
- }
@@ -1,33 +0,0 @@
1
- # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
2
-
3
- > Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
4
-
5
-
6
- ## Install
7
-
8
- ```
9
- $ npm install --save strip-ansi
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```js
16
- var stripAnsi = require('strip-ansi');
17
-
18
- stripAnsi('\u001b[4mcake\u001b[0m');
19
- //=> 'cake'
20
- ```
21
-
22
-
23
- ## Related
24
-
25
- - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
26
- - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
27
- - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
28
- - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
29
-
30
-
31
- ## License
32
-
33
- MIT © [Sindre Sorhus](http://sindresorhus.com)
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,77 +0,0 @@
1
- {
2
- "_args": [
3
- [
4
- "strip-json-comments@2.0.1",
5
- "/home/runner/work/node-datachannel/node-datachannel"
6
- ]
7
- ],
8
- "_from": "strip-json-comments@2.0.1",
9
- "_id": "strip-json-comments@2.0.1",
10
- "_inBundle": false,
11
- "_integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
12
- "_location": "/strip-json-comments",
13
- "_phantomChildren": {},
14
- "_requested": {
15
- "type": "version",
16
- "registry": true,
17
- "raw": "strip-json-comments@2.0.1",
18
- "name": "strip-json-comments",
19
- "escapedName": "strip-json-comments",
20
- "rawSpec": "2.0.1",
21
- "saveSpec": null,
22
- "fetchSpec": "2.0.1"
23
- },
24
- "_requiredBy": [
25
- "/rc"
26
- ],
27
- "_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
28
- "_spec": "2.0.1",
29
- "_where": "/home/runner/work/node-datachannel/node-datachannel",
30
- "author": {
31
- "name": "Sindre Sorhus",
32
- "email": "sindresorhus@gmail.com",
33
- "url": "sindresorhus.com"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/sindresorhus/strip-json-comments/issues"
37
- },
38
- "description": "Strip comments from JSON. Lets you use comments in your JSON files!",
39
- "devDependencies": {
40
- "ava": "*",
41
- "xo": "*"
42
- },
43
- "engines": {
44
- "node": ">=0.10.0"
45
- },
46
- "files": [
47
- "index.js"
48
- ],
49
- "homepage": "https://github.com/sindresorhus/strip-json-comments#readme",
50
- "keywords": [
51
- "json",
52
- "strip",
53
- "remove",
54
- "delete",
55
- "trim",
56
- "comments",
57
- "multiline",
58
- "parse",
59
- "config",
60
- "configuration",
61
- "conf",
62
- "settings",
63
- "util",
64
- "env",
65
- "environment"
66
- ],
67
- "license": "MIT",
68
- "name": "strip-json-comments",
69
- "repository": {
70
- "type": "git",
71
- "url": "git+https://github.com/sindresorhus/strip-json-comments.git"
72
- },
73
- "scripts": {
74
- "test": "xo && ava"
75
- },
76
- "version": "2.0.1"
77
- }
@@ -1,38 +0,0 @@
1
- # Developer's Certificate of Origin 1.1
2
-
3
- By making a contribution to this project, I certify that:
4
-
5
- * (a) The contribution was created in whole or in part by me and I
6
- have the right to submit it under the open source license
7
- indicated in the file; or
8
-
9
- * (b) The contribution is based upon previous work that, to the best
10
- of my knowledge, is covered under an appropriate open source
11
- license and I have the right under that license to submit that
12
- work with modifications, whether created in whole or in part
13
- by me, under the same open source license (unless I am
14
- permitted to submit under a different license), as indicated
15
- in the file; or
16
-
17
- * (c) The contribution was provided directly to me by some other
18
- person who certified (a), (b) or (c) and I have not modified
19
- it.
20
-
21
- * (d) I understand and agree that this project and the contribution
22
- are public and that a record of the contribution (including all
23
- personal information I submit with it, including my sign-off) is
24
- maintained indefinitely and may be redistributed consistent with
25
- this project or the open source license(s) involved.
26
-
27
- ## Moderation Policy
28
-
29
- The [Node.js Moderation Policy] applies to this WG.
30
-
31
- ## Code of Conduct
32
-
33
- The [Node.js Code of Conduct][] applies to this WG.
34
-
35
- [Node.js Code of Conduct]:
36
- https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md
37
- [Node.js Moderation Policy]:
38
- https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md
@@ -1,136 +0,0 @@
1
- ### Streams Working Group
2
-
3
- The Node.js Streams is jointly governed by a Working Group
4
- (WG)
5
- that is responsible for high-level guidance of the project.
6
-
7
- The WG has final authority over this project including:
8
-
9
- * Technical direction
10
- * Project governance and process (including this policy)
11
- * Contribution policy
12
- * GitHub repository hosting
13
- * Conduct guidelines
14
- * Maintaining the list of additional Collaborators
15
-
16
- For the current list of WG members, see the project
17
- [README.md](./README.md#current-project-team-members).
18
-
19
- ### Collaborators
20
-
21
- The readable-stream GitHub repository is
22
- maintained by the WG and additional Collaborators who are added by the
23
- WG on an ongoing basis.
24
-
25
- Individuals making significant and valuable contributions are made
26
- Collaborators and given commit-access to the project. These
27
- individuals are identified by the WG and their addition as
28
- Collaborators is discussed during the WG meeting.
29
-
30
- _Note:_ If you make a significant contribution and are not considered
31
- for commit-access log an issue or contact a WG member directly and it
32
- will be brought up in the next WG meeting.
33
-
34
- Modifications of the contents of the readable-stream repository are
35
- made on
36
- a collaborative basis. Anybody with a GitHub account may propose a
37
- modification via pull request and it will be considered by the project
38
- Collaborators. All pull requests must be reviewed and accepted by a
39
- Collaborator with sufficient expertise who is able to take full
40
- responsibility for the change. In the case of pull requests proposed
41
- by an existing Collaborator, an additional Collaborator is required
42
- for sign-off. Consensus should be sought if additional Collaborators
43
- participate and there is disagreement around a particular
44
- modification. See _Consensus Seeking Process_ below for further detail
45
- on the consensus model used for governance.
46
-
47
- Collaborators may opt to elevate significant or controversial
48
- modifications, or modifications that have not found consensus to the
49
- WG for discussion by assigning the ***WG-agenda*** tag to a pull
50
- request or issue. The WG should serve as the final arbiter where
51
- required.
52
-
53
- For the current list of Collaborators, see the project
54
- [README.md](./README.md#members).
55
-
56
- ### WG Membership
57
-
58
- WG seats are not time-limited. There is no fixed size of the WG.
59
- However, the expected target is between 6 and 12, to ensure adequate
60
- coverage of important areas of expertise, balanced with the ability to
61
- make decisions efficiently.
62
-
63
- There is no specific set of requirements or qualifications for WG
64
- membership beyond these rules.
65
-
66
- The WG may add additional members to the WG by unanimous consensus.
67
-
68
- A WG member may be removed from the WG by voluntary resignation, or by
69
- unanimous consensus of all other WG members.
70
-
71
- Changes to WG membership should be posted in the agenda, and may be
72
- suggested as any other agenda item (see "WG Meetings" below).
73
-
74
- If an addition or removal is proposed during a meeting, and the full
75
- WG is not in attendance to participate, then the addition or removal
76
- is added to the agenda for the subsequent meeting. This is to ensure
77
- that all members are given the opportunity to participate in all
78
- membership decisions. If a WG member is unable to attend a meeting
79
- where a planned membership decision is being made, then their consent
80
- is assumed.
81
-
82
- No more than 1/3 of the WG members may be affiliated with the same
83
- employer. If removal or resignation of a WG member, or a change of
84
- employment by a WG member, creates a situation where more than 1/3 of
85
- the WG membership shares an employer, then the situation must be
86
- immediately remedied by the resignation or removal of one or more WG
87
- members affiliated with the over-represented employer(s).
88
-
89
- ### WG Meetings
90
-
91
- The WG meets occasionally on a Google Hangout On Air. A designated moderator
92
- approved by the WG runs the meeting. Each meeting should be
93
- published to YouTube.
94
-
95
- Items are added to the WG agenda that are considered contentious or
96
- are modifications of governance, contribution policy, WG membership,
97
- or release process.
98
-
99
- The intention of the agenda is not to approve or review all patches;
100
- that should happen continuously on GitHub and be handled by the larger
101
- group of Collaborators.
102
-
103
- Any community member or contributor can ask that something be added to
104
- the next meeting's agenda by logging a GitHub Issue. Any Collaborator,
105
- WG member or the moderator can add the item to the agenda by adding
106
- the ***WG-agenda*** tag to the issue.
107
-
108
- Prior to each WG meeting the moderator will share the Agenda with
109
- members of the WG. WG members can add any items they like to the
110
- agenda at the beginning of each meeting. The moderator and the WG
111
- cannot veto or remove items.
112
-
113
- The WG may invite persons or representatives from certain projects to
114
- participate in a non-voting capacity.
115
-
116
- The moderator is responsible for summarizing the discussion of each
117
- agenda item and sends it as a pull request after the meeting.
118
-
119
- ### Consensus Seeking Process
120
-
121
- The WG follows a
122
- [Consensus
123
- Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making)
124
- decision-making model.
125
-
126
- When an agenda item has appeared to reach a consensus the moderator
127
- will ask "Does anyone object?" as a final call for dissent from the
128
- consensus.
129
-
130
- If an agenda item cannot reach a consensus a WG member can call for
131
- either a closing vote or a vote to table the issue to the next
132
- meeting. The call for a vote must be seconded by a majority of the WG
133
- or else the discussion will continue. Simple majority wins.
134
-
135
- Note that changes to WG membership require a majority consensus. See
136
- "WG Membership" above.
@@ -1,47 +0,0 @@
1
- Node.js is licensed for use as follows:
2
-
3
- """
4
- Copyright Node.js contributors. All rights reserved.
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to
8
- deal in the Software without restriction, including without limitation the
9
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
- sell copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
- IN THE SOFTWARE.
23
- """
24
-
25
- This license applies to parts of Node.js originating from the
26
- https://github.com/joyent/node repository:
27
-
28
- """
29
- Copyright Joyent, Inc. and other Node contributors. All rights reserved.
30
- Permission is hereby granted, free of charge, to any person obtaining a copy
31
- of this software and associated documentation files (the "Software"), to
32
- deal in the Software without restriction, including without limitation the
33
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
34
- sell copies of the Software, and to permit persons to whom the Software is
35
- furnished to do so, subject to the following conditions:
36
-
37
- The above copyright notice and this permission notice shall be included in
38
- all copies or substantial portions of the Software.
39
-
40
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
46
- IN THE SOFTWARE.
47
- """
@@ -1 +0,0 @@
1
- module.exports = require('events').EventEmitter;
@@ -1 +0,0 @@
1
- module.exports = require('stream');
@@ -1,14 +0,0 @@
1
- Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any
4
- purpose with or without fee is hereby granted, provided that the above
5
- copyright notice and this permission notice appear in all copies.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
-
@@ -1,47 +0,0 @@
1
- wide-align
2
- ----------
3
-
4
- A wide-character aware text alignment function for use in terminals / on the
5
- console.
6
-
7
- ### Usage
8
-
9
- ```
10
- var align = require('wide-align')
11
-
12
- // Note that if you view this on a unicode console, all of the slashes are
13
- // aligned. This is because on a console, all narrow characters are
14
- // an en wide and all wide characters are an em. In browsers, this isn't
15
- // held to and wide characters like "古" can be less than two narrow
16
- // characters even with a fixed width font.
17
-
18
- console.log(align.center('abc', 10)) // ' abc '
19
- console.log(align.center('古古古', 10)) // ' 古古古 '
20
- console.log(align.left('abc', 10)) // 'abc '
21
- console.log(align.left('古古古', 10)) // '古古古 '
22
- console.log(align.right('abc', 10)) // ' abc'
23
- console.log(align.right('古古古', 10)) // ' 古古古'
24
- ```
25
-
26
- ### Functions
27
-
28
- #### `align.center(str, length)` → `str`
29
-
30
- Returns *str* with spaces added to both sides such that that it is *length*
31
- chars long and centered in the spaces.
32
-
33
- #### `align.left(str, length)` → `str`
34
-
35
- Returns *str* with spaces to the right such that it is *length* chars long.
36
-
37
- ### `align.right(str, length)` → `str`
38
-
39
- Returns *str* with spaces to the left such that it is *length* chars long.
40
-
41
- ### Origins
42
-
43
- These functions were originally taken from
44
- [cliui](https://npmjs.com/package/cliui). Changes include switching to the
45
- MUCH faster pad generation function from
46
- [lodash](https://npmjs.com/package/lodash), making center alignment pad
47
- both sides and adding left alignment.
@@ -1,65 +0,0 @@
1
- 'use strict'
2
- var stringWidth = require('string-width')
3
-
4
- exports.center = alignCenter
5
- exports.left = alignLeft
6
- exports.right = alignRight
7
-
8
- // lodash's way of generating pad characters.
9
-
10
- function createPadding (width) {
11
- var result = ''
12
- var string = ' '
13
- var n = width
14
- do {
15
- if (n % 2) {
16
- result += string;
17
- }
18
- n = Math.floor(n / 2);
19
- string += string;
20
- } while (n);
21
-
22
- return result;
23
- }
24
-
25
- function alignLeft (str, width) {
26
- var trimmed = str.trimRight()
27
- if (trimmed.length === 0 && str.length >= width) return str
28
- var padding = ''
29
- var strWidth = stringWidth(trimmed)
30
-
31
- if (strWidth < width) {
32
- padding = createPadding(width - strWidth)
33
- }
34
-
35
- return trimmed + padding
36
- }
37
-
38
- function alignRight (str, width) {
39
- var trimmed = str.trimLeft()
40
- if (trimmed.length === 0 && str.length >= width) return str
41
- var padding = ''
42
- var strWidth = stringWidth(trimmed)
43
-
44
- if (strWidth < width) {
45
- padding = createPadding(width - strWidth)
46
- }
47
-
48
- return padding + trimmed
49
- }
50
-
51
- function alignCenter (str, width) {
52
- var trimmed = str.trim()
53
- if (trimmed.length === 0 && str.length >= width) return str
54
- var padLeft = ''
55
- var padRight = ''
56
- var strWidth = stringWidth(trimmed)
57
-
58
- if (strWidth < width) {
59
- var padLeftBy = parseInt((width - strWidth) / 2, 10)
60
- padLeft = createPadding(padLeftBy)
61
- padRight = createPadding(width - (strWidth + padLeftBy))
62
- }
63
-
64
- return padLeft + trimmed + padRight
65
- }
@@ -1,69 +0,0 @@
1
- {
2
- "//": "But not version 5 of string-width, as that's ESM only",
3
- "_args": [
4
- [
5
- "wide-align@1.1.5",
6
- "/home/runner/work/node-datachannel/node-datachannel"
7
- ]
8
- ],
9
- "_from": "wide-align@1.1.5",
10
- "_id": "wide-align@1.1.5",
11
- "_inBundle": false,
12
- "_integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
13
- "_location": "/wide-align",
14
- "_phantomChildren": {},
15
- "_requested": {
16
- "type": "version",
17
- "registry": true,
18
- "raw": "wide-align@1.1.5",
19
- "name": "wide-align",
20
- "escapedName": "wide-align",
21
- "rawSpec": "1.1.5",
22
- "saveSpec": null,
23
- "fetchSpec": "1.1.5"
24
- },
25
- "_requiredBy": [
26
- "/npmlog/gauge"
27
- ],
28
- "_resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
29
- "_spec": "1.1.5",
30
- "_where": "/home/runner/work/node-datachannel/node-datachannel",
31
- "author": {
32
- "name": "Rebecca Turner",
33
- "email": "me@re-becca.org",
34
- "url": "http://re-becca.org/"
35
- },
36
- "bugs": {
37
- "url": "https://github.com/iarna/wide-align/issues"
38
- },
39
- "dependencies": {
40
- "string-width": "^1.0.2 || 2 || 3 || 4"
41
- },
42
- "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
43
- "devDependencies": {
44
- "tap": "*"
45
- },
46
- "files": [
47
- "align.js"
48
- ],
49
- "homepage": "https://github.com/iarna/wide-align#readme",
50
- "keywords": [
51
- "wide",
52
- "double",
53
- "unicode",
54
- "cjkv",
55
- "pad",
56
- "align"
57
- ],
58
- "license": "ISC",
59
- "main": "align.js",
60
- "name": "wide-align",
61
- "repository": {
62
- "type": "git",
63
- "url": "git+https://github.com/iarna/wide-align.git"
64
- },
65
- "scripts": {
66
- "test": "tap --coverage test/*.js"
67
- },
68
- "version": "1.1.5"
69
- }
File without changes
File without changes