waves_lib 0.1.0

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 (1222) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/LICENSE.txt +19 -0
  7. data/README.md +39 -0
  8. data/Rakefile +12 -0
  9. data/js/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  10. data/js/node_modules/@protobufjs/aspromise/README.md +13 -0
  11. data/js/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  12. data/js/node_modules/@protobufjs/aspromise/index.js +52 -0
  13. data/js/node_modules/@protobufjs/aspromise/package.json +21 -0
  14. data/js/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  15. data/js/node_modules/@protobufjs/base64/LICENSE +26 -0
  16. data/js/node_modules/@protobufjs/base64/README.md +19 -0
  17. data/js/node_modules/@protobufjs/base64/index.d.ts +32 -0
  18. data/js/node_modules/@protobufjs/base64/index.js +139 -0
  19. data/js/node_modules/@protobufjs/base64/package.json +21 -0
  20. data/js/node_modules/@protobufjs/base64/tests/index.js +46 -0
  21. data/js/node_modules/@protobufjs/codegen/LICENSE +26 -0
  22. data/js/node_modules/@protobufjs/codegen/README.md +49 -0
  23. data/js/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  24. data/js/node_modules/@protobufjs/codegen/index.js +99 -0
  25. data/js/node_modules/@protobufjs/codegen/package.json +13 -0
  26. data/js/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  27. data/js/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  28. data/js/node_modules/@protobufjs/eventemitter/README.md +22 -0
  29. data/js/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
  30. data/js/node_modules/@protobufjs/eventemitter/index.js +76 -0
  31. data/js/node_modules/@protobufjs/eventemitter/package.json +21 -0
  32. data/js/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
  33. data/js/node_modules/@protobufjs/fetch/LICENSE +26 -0
  34. data/js/node_modules/@protobufjs/fetch/README.md +13 -0
  35. data/js/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  36. data/js/node_modules/@protobufjs/fetch/index.js +115 -0
  37. data/js/node_modules/@protobufjs/fetch/package.json +25 -0
  38. data/js/node_modules/@protobufjs/fetch/tests/index.js +16 -0
  39. data/js/node_modules/@protobufjs/float/LICENSE +26 -0
  40. data/js/node_modules/@protobufjs/float/README.md +102 -0
  41. data/js/node_modules/@protobufjs/float/bench/index.js +87 -0
  42. data/js/node_modules/@protobufjs/float/bench/suite.js +46 -0
  43. data/js/node_modules/@protobufjs/float/index.d.ts +83 -0
  44. data/js/node_modules/@protobufjs/float/index.js +335 -0
  45. data/js/node_modules/@protobufjs/float/package.json +26 -0
  46. data/js/node_modules/@protobufjs/float/tests/index.js +100 -0
  47. data/js/node_modules/@protobufjs/inquire/LICENSE +26 -0
  48. data/js/node_modules/@protobufjs/inquire/README.md +13 -0
  49. data/js/node_modules/@protobufjs/inquire/index.d.ts +9 -0
  50. data/js/node_modules/@protobufjs/inquire/index.js +17 -0
  51. data/js/node_modules/@protobufjs/inquire/package.json +21 -0
  52. data/js/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
  53. data/js/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
  54. data/js/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
  55. data/js/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
  56. data/js/node_modules/@protobufjs/inquire/tests/index.js +20 -0
  57. data/js/node_modules/@protobufjs/path/LICENSE +26 -0
  58. data/js/node_modules/@protobufjs/path/README.md +19 -0
  59. data/js/node_modules/@protobufjs/path/index.d.ts +22 -0
  60. data/js/node_modules/@protobufjs/path/index.js +65 -0
  61. data/js/node_modules/@protobufjs/path/package.json +21 -0
  62. data/js/node_modules/@protobufjs/path/tests/index.js +60 -0
  63. data/js/node_modules/@protobufjs/pool/LICENSE +26 -0
  64. data/js/node_modules/@protobufjs/pool/README.md +13 -0
  65. data/js/node_modules/@protobufjs/pool/index.d.ts +32 -0
  66. data/js/node_modules/@protobufjs/pool/index.js +48 -0
  67. data/js/node_modules/@protobufjs/pool/package.json +21 -0
  68. data/js/node_modules/@protobufjs/pool/tests/index.js +33 -0
  69. data/js/node_modules/@protobufjs/utf8/LICENSE +26 -0
  70. data/js/node_modules/@protobufjs/utf8/README.md +20 -0
  71. data/js/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  72. data/js/node_modules/@protobufjs/utf8/index.js +105 -0
  73. data/js/node_modules/@protobufjs/utf8/package.json +21 -0
  74. data/js/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  75. data/js/node_modules/@protobufjs/utf8/tests/index.js +57 -0
  76. data/js/node_modules/@types/base64-js/LICENSE +21 -0
  77. data/js/node_modules/@types/base64-js/README.md +16 -0
  78. data/js/node_modules/@types/base64-js/index.d.ts +23 -0
  79. data/js/node_modules/@types/base64-js/package.json +29 -0
  80. data/js/node_modules/@types/long/LICENSE +21 -0
  81. data/js/node_modules/@types/long/README.md +16 -0
  82. data/js/node_modules/@types/long/index.d.ts +389 -0
  83. data/js/node_modules/@types/long/package.json +25 -0
  84. data/js/node_modules/@types/node/LICENSE +21 -0
  85. data/js/node_modules/@types/node/README.md +16 -0
  86. data/js/node_modules/@types/node/assert/strict.d.ts +8 -0
  87. data/js/node_modules/@types/node/assert.d.ts +972 -0
  88. data/js/node_modules/@types/node/async_hooks.d.ts +530 -0
  89. data/js/node_modules/@types/node/buffer.d.ts +2354 -0
  90. data/js/node_modules/@types/node/child_process.d.ts +1395 -0
  91. data/js/node_modules/@types/node/cluster.d.ts +414 -0
  92. data/js/node_modules/@types/node/console.d.ts +412 -0
  93. data/js/node_modules/@types/node/constants.d.ts +18 -0
  94. data/js/node_modules/@types/node/crypto.d.ts +3978 -0
  95. data/js/node_modules/@types/node/dgram.d.ts +545 -0
  96. data/js/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
  97. data/js/node_modules/@types/node/dns/promises.d.ts +414 -0
  98. data/js/node_modules/@types/node/dns.d.ts +668 -0
  99. data/js/node_modules/@types/node/dom-events.d.ts +126 -0
  100. data/js/node_modules/@types/node/domain.d.ts +170 -0
  101. data/js/node_modules/@types/node/events.d.ts +724 -0
  102. data/js/node_modules/@types/node/fs/promises.d.ts +1190 -0
  103. data/js/node_modules/@types/node/fs.d.ts +4044 -0
  104. data/js/node_modules/@types/node/globals.d.ts +303 -0
  105. data/js/node_modules/@types/node/globals.global.d.ts +1 -0
  106. data/js/node_modules/@types/node/http.d.ts +1724 -0
  107. data/js/node_modules/@types/node/http2.d.ts +2129 -0
  108. data/js/node_modules/@types/node/https.d.ts +441 -0
  109. data/js/node_modules/@types/node/index.d.ts +134 -0
  110. data/js/node_modules/@types/node/inspector.d.ts +2748 -0
  111. data/js/node_modules/@types/node/module.d.ts +129 -0
  112. data/js/node_modules/@types/node/net.d.ts +888 -0
  113. data/js/node_modules/@types/node/os.d.ts +477 -0
  114. data/js/node_modules/@types/node/package.json +237 -0
  115. data/js/node_modules/@types/node/path.d.ts +191 -0
  116. data/js/node_modules/@types/node/perf_hooks.d.ts +638 -0
  117. data/js/node_modules/@types/node/process.d.ts +1494 -0
  118. data/js/node_modules/@types/node/punycode.d.ts +117 -0
  119. data/js/node_modules/@types/node/querystring.d.ts +131 -0
  120. data/js/node_modules/@types/node/readline/promises.d.ts +145 -0
  121. data/js/node_modules/@types/node/readline.d.ts +526 -0
  122. data/js/node_modules/@types/node/repl.d.ts +424 -0
  123. data/js/node_modules/@types/node/stream/consumers.d.ts +12 -0
  124. data/js/node_modules/@types/node/stream/promises.d.ts +42 -0
  125. data/js/node_modules/@types/node/stream/web.d.ts +330 -0
  126. data/js/node_modules/@types/node/stream.d.ts +1421 -0
  127. data/js/node_modules/@types/node/string_decoder.d.ts +67 -0
  128. data/js/node_modules/@types/node/test.d.ts +1383 -0
  129. data/js/node_modules/@types/node/timers/promises.d.ts +93 -0
  130. data/js/node_modules/@types/node/timers.d.ts +215 -0
  131. data/js/node_modules/@types/node/tls.d.ts +1130 -0
  132. data/js/node_modules/@types/node/trace_events.d.ts +182 -0
  133. data/js/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  134. data/js/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  135. data/js/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  136. data/js/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  137. data/js/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  138. data/js/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  139. data/js/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  140. data/js/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  141. data/js/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
  142. data/js/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  143. data/js/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  144. data/js/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  145. data/js/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  146. data/js/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  147. data/js/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  148. data/js/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  149. data/js/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  150. data/js/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  151. data/js/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  152. data/js/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  153. data/js/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  154. data/js/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  155. data/js/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  156. data/js/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  157. data/js/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  158. data/js/node_modules/@types/node/ts4.8/module.d.ts +129 -0
  159. data/js/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  160. data/js/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  161. data/js/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  162. data/js/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  163. data/js/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  164. data/js/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  165. data/js/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  166. data/js/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  167. data/js/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  168. data/js/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  169. data/js/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  170. data/js/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  171. data/js/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  172. data/js/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  173. data/js/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  174. data/js/node_modules/@types/node/ts4.8/test.d.ts +1365 -0
  175. data/js/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  176. data/js/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  177. data/js/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
  178. data/js/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  179. data/js/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  180. data/js/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  181. data/js/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
  182. data/js/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  183. data/js/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  184. data/js/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  185. data/js/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  186. data/js/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  187. data/js/node_modules/@types/node/tty.d.ts +208 -0
  188. data/js/node_modules/@types/node/url.d.ts +901 -0
  189. data/js/node_modules/@types/node/util.d.ts +2116 -0
  190. data/js/node_modules/@types/node/v8.d.ts +635 -0
  191. data/js/node_modules/@types/node/vm.d.ts +894 -0
  192. data/js/node_modules/@types/node/wasi.d.ts +152 -0
  193. data/js/node_modules/@types/node/worker_threads.d.ts +693 -0
  194. data/js/node_modules/@types/node/zlib.d.ts +517 -0
  195. data/js/node_modules/@types/node-fetch/LICENSE +21 -0
  196. data/js/node_modules/@types/node-fetch/README.md +16 -0
  197. data/js/node_modules/@types/node-fetch/externals.d.ts +24 -0
  198. data/js/node_modules/@types/node-fetch/index.d.ts +224 -0
  199. data/js/node_modules/@types/node-fetch/package.json +83 -0
  200. data/js/node_modules/@waves/bignumber/dist/BigNumber.d.ts +74 -0
  201. data/js/node_modules/@waves/bignumber/dist/BigNumber.js +252 -0
  202. data/js/node_modules/@waves/bignumber/dist/BigNumber.js.map +1 -0
  203. data/js/node_modules/@waves/bignumber/dist/Config.d.ts +22 -0
  204. data/js/node_modules/@waves/bignumber/dist/Config.js +43 -0
  205. data/js/node_modules/@waves/bignumber/dist/Config.js.map +1 -0
  206. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.js +3194 -0
  207. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.min.js +1 -0
  208. data/js/node_modules/@waves/bignumber/dist/index.d.ts +3 -0
  209. data/js/node_modules/@waves/bignumber/dist/index.js +9 -0
  210. data/js/node_modules/@waves/bignumber/dist/index.js.map +1 -0
  211. data/js/node_modules/@waves/bignumber/package.json +64 -0
  212. data/js/node_modules/@waves/bignumber/readme.md +285 -0
  213. data/js/node_modules/@waves/marshall/LICENSE +9 -0
  214. data/js/node_modules/@waves/marshall/README.md +39 -0
  215. data/js/node_modules/@waves/marshall/dist/index.d.ts +26 -0
  216. data/js/node_modules/@waves/marshall/dist/index.js +45 -0
  217. data/js/node_modules/@waves/marshall/dist/index.js.map +1 -0
  218. data/js/node_modules/@waves/marshall/dist/jsonMethods.d.ts +36 -0
  219. data/js/node_modules/@waves/marshall/dist/jsonMethods.js +194 -0
  220. data/js/node_modules/@waves/marshall/dist/jsonMethods.js.map +1 -0
  221. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.d.ts +1 -0
  222. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js +35 -0
  223. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js.map +1 -0
  224. data/js/node_modules/@waves/marshall/dist/libs/base58.d.ts +5 -0
  225. data/js/node_modules/@waves/marshall/dist/libs/base58.js +66 -0
  226. data/js/node_modules/@waves/marshall/dist/libs/base58.js.map +1 -0
  227. data/js/node_modules/@waves/marshall/dist/libs/utils.d.ts +2 -0
  228. data/js/node_modules/@waves/marshall/dist/libs/utils.js +6 -0
  229. data/js/node_modules/@waves/marshall/dist/libs/utils.js.map +1 -0
  230. data/js/node_modules/@waves/marshall/dist/min/waves-marshall.min.js +1 -0
  231. data/js/node_modules/@waves/marshall/dist/parse.d.ts +21 -0
  232. data/js/node_modules/@waves/marshall/dist/parse.js +142 -0
  233. data/js/node_modules/@waves/marshall/dist/parse.js.map +1 -0
  234. data/js/node_modules/@waves/marshall/dist/parsePrimitives.d.ts +57 -0
  235. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js +96 -0
  236. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js.map +1 -0
  237. data/js/node_modules/@waves/marshall/dist/schemaTypes.d.ts +62 -0
  238. data/js/node_modules/@waves/marshall/dist/schemaTypes.js +41 -0
  239. data/js/node_modules/@waves/marshall/dist/schemaTypes.js.map +1 -0
  240. data/js/node_modules/@waves/marshall/dist/schemas.d.ts +128 -0
  241. data/js/node_modules/@waves/marshall/dist/schemas.js +542 -0
  242. data/js/node_modules/@waves/marshall/dist/schemas.js.map +1 -0
  243. data/js/node_modules/@waves/marshall/dist/serialize.d.ts +11 -0
  244. data/js/node_modules/@waves/marshall/dist/serialize.js +102 -0
  245. data/js/node_modules/@waves/marshall/dist/serialize.js.map +1 -0
  246. data/js/node_modules/@waves/marshall/dist/serializePrimitives.d.ts +21 -0
  247. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js +63 -0
  248. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js.map +1 -0
  249. data/js/node_modules/@waves/marshall/package.json +45 -0
  250. data/js/node_modules/@waves/marshall/src/index.ts +51 -0
  251. data/js/node_modules/@waves/marshall/src/jsonMethods.ts +231 -0
  252. data/js/node_modules/@waves/marshall/src/libs/Utf8ArrayToStr.ts +35 -0
  253. data/js/node_modules/@waves/marshall/src/libs/base58.ts +88 -0
  254. data/js/node_modules/@waves/marshall/src/libs/utils.ts +6 -0
  255. data/js/node_modules/@waves/marshall/src/parse.ts +157 -0
  256. data/js/node_modules/@waves/marshall/src/parsePrimitives.ts +118 -0
  257. data/js/node_modules/@waves/marshall/src/schemaTypes.ts +91 -0
  258. data/js/node_modules/@waves/marshall/src/schemas.ts +630 -0
  259. data/js/node_modules/@waves/marshall/src/serialize.ts +110 -0
  260. data/js/node_modules/@waves/marshall/src/serializePrimitives.ts +80 -0
  261. data/js/node_modules/@waves/node-api-js/README.md +2 -0
  262. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.d.ts +21 -0
  263. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js +20 -0
  264. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js.map +1 -0
  265. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.d.ts +81 -0
  266. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js +174 -0
  267. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js.map +1 -0
  268. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.d.ts +6 -0
  269. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js +22 -0
  270. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js.map +1 -0
  271. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.d.ts +79 -0
  272. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js +172 -0
  273. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js.map +1 -0
  274. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.d.ts +131 -0
  275. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js +210 -0
  276. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js.map +1 -0
  277. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.d.ts +39 -0
  278. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js +37 -0
  279. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js.map +1 -0
  280. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.d.ts +189 -0
  281. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js +245 -0
  282. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js.map +1 -0
  283. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.d.ts +3 -0
  284. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js +15 -0
  285. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js.map +1 -0
  286. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.d.ts +22 -0
  287. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js +42 -0
  288. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js.map +1 -0
  289. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.d.ts +11 -0
  290. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js +20 -0
  291. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js.map +1 -0
  292. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts +46 -0
  293. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js +60 -0
  294. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js.map +1 -0
  295. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.d.ts +21 -0
  296. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js +21 -0
  297. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js.map +1 -0
  298. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.d.ts +73 -0
  299. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js +193 -0
  300. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js.map +1 -0
  301. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.d.ts +110 -0
  302. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js +211 -0
  303. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js.map +1 -0
  304. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.d.ts +5 -0
  305. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js +7 -0
  306. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js.map +1 -0
  307. data/js/node_modules/@waves/node-api-js/cjs/constants.d.ts +40 -0
  308. data/js/node_modules/@waves/node-api-js/cjs/constants.js +43 -0
  309. data/js/node_modules/@waves/node-api-js/cjs/constants.js.map +1 -0
  310. data/js/node_modules/@waves/node-api-js/cjs/create.d.ts +1240 -0
  311. data/js/node_modules/@waves/node-api-js/cjs/create.js +119 -0
  312. data/js/node_modules/@waves/node-api-js/cjs/create.js.map +1 -0
  313. data/js/node_modules/@waves/node-api-js/cjs/index.d.ts +9 -0
  314. data/js/node_modules/@waves/node-api-js/cjs/index.js +18 -0
  315. data/js/node_modules/@waves/node-api-js/cjs/index.js.map +1 -0
  316. data/js/node_modules/@waves/node-api-js/cjs/interface.d.ts +44 -0
  317. data/js/node_modules/@waves/node-api-js/cjs/interface.js +10 -0
  318. data/js/node_modules/@waves/node-api-js/cjs/interface.js.map +1 -0
  319. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  320. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js +30 -0
  321. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -0
  322. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.d.ts +1 -0
  323. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js +47 -0
  324. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js.map +1 -0
  325. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  326. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js +48 -0
  327. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -0
  328. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  329. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js +14 -0
  330. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -0
  331. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  332. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js +13 -0
  333. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  334. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts +24 -0
  335. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js +168 -0
  336. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js.map +1 -0
  337. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -0
  338. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js +10 -0
  339. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js.map +1 -0
  340. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.d.ts +1 -0
  341. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js +10 -0
  342. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js.map +1 -0
  343. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.d.ts +1 -0
  344. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js +12 -0
  345. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js.map +1 -0
  346. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.d.ts +1 -0
  347. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js +54 -0
  348. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js.map +1 -0
  349. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.d.ts +1 -0
  350. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js +11 -0
  351. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js.map +1 -0
  352. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.d.ts +3 -0
  353. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js +65 -0
  354. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js.map +1 -0
  355. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.d.ts +1 -0
  356. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js +8 -0
  357. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js.map +1 -0
  358. data/js/node_modules/@waves/node-api-js/cjs/tools/query.d.ts +4 -0
  359. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js +41 -0
  360. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js.map +1 -0
  361. data/js/node_modules/@waves/node-api-js/cjs/tools/request.d.ts +64 -0
  362. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js +42 -0
  363. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js.map +1 -0
  364. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.d.ts +1 -0
  365. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js +7 -0
  366. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js.map +1 -0
  367. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.d.ts +1 -0
  368. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js +21 -0
  369. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js.map +1 -0
  370. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.d.ts +14 -0
  371. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js +60 -0
  372. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js.map +1 -0
  373. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
  374. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js +11 -0
  375. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
  376. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.d.ts +0 -0
  377. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js +2 -0
  378. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js.map +1 -0
  379. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.d.ts +10 -0
  380. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js +42 -0
  381. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js.map +1 -0
  382. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.d.ts +32 -0
  383. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js +118 -0
  384. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js.map +1 -0
  385. data/js/node_modules/@waves/node-api-js/dist/0.node-api.js +467 -0
  386. data/js/node_modules/@waves/node-api-js/dist/node-api.js +30544 -0
  387. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js +26 -0
  388. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js.LICENSE.txt +17 -0
  389. data/js/node_modules/@waves/node-api-js/dist/node_fs-node_path.node-api.js +23 -0
  390. data/js/node_modules/@waves/node-api-js/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
  391. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.d.ts +21 -0
  392. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js +13 -0
  393. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js.map +1 -0
  394. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.d.ts +81 -0
  395. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js +111 -0
  396. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js.map +1 -0
  397. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.d.ts +6 -0
  398. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js +14 -0
  399. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js.map +1 -0
  400. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.d.ts +79 -0
  401. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js +103 -0
  402. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js.map +1 -0
  403. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.d.ts +131 -0
  404. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js +179 -0
  405. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js.map +1 -0
  406. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.d.ts +39 -0
  407. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js +27 -0
  408. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js.map +1 -0
  409. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.d.ts +189 -0
  410. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js +201 -0
  411. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js.map +1 -0
  412. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.d.ts +3 -0
  413. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js +8 -0
  414. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js.map +1 -0
  415. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.d.ts +22 -0
  416. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js +22 -0
  417. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js.map +1 -0
  418. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.d.ts +11 -0
  419. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js +10 -0
  420. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js.map +1 -0
  421. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts +46 -0
  422. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js +46 -0
  423. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js.map +1 -0
  424. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.d.ts +21 -0
  425. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js +13 -0
  426. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js.map +1 -0
  427. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.d.ts +73 -0
  428. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js +137 -0
  429. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js.map +1 -0
  430. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.d.ts +110 -0
  431. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js +193 -0
  432. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js.map +1 -0
  433. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.d.ts +5 -0
  434. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js +7 -0
  435. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js.map +1 -0
  436. data/js/node_modules/@waves/node-api-js/es/constants.d.ts +40 -0
  437. data/js/node_modules/@waves/node-api-js/es/constants.js +40 -0
  438. data/js/node_modules/@waves/node-api-js/es/constants.js.map +1 -0
  439. data/js/node_modules/@waves/node-api-js/es/create.d.ts +1240 -0
  440. data/js/node_modules/@waves/node-api-js/es/create.js +93 -0
  441. data/js/node_modules/@waves/node-api-js/es/create.js.map +1 -0
  442. data/js/node_modules/@waves/node-api-js/es/index.d.ts +9 -0
  443. data/js/node_modules/@waves/node-api-js/es/index.js +9 -0
  444. data/js/node_modules/@waves/node-api-js/es/index.js.map +1 -0
  445. data/js/node_modules/@waves/node-api-js/es/interface.d.ts +44 -0
  446. data/js/node_modules/@waves/node-api-js/es/interface.js +3 -0
  447. data/js/node_modules/@waves/node-api-js/es/interface.js.map +1 -0
  448. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  449. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js +27 -0
  450. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js.map +1 -0
  451. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.d.ts +1 -0
  452. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js +31 -0
  453. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js.map +1 -0
  454. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  455. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js +24 -0
  456. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js.map +1 -0
  457. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  458. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js +8 -0
  459. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js.map +1 -0
  460. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  461. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js +7 -0
  462. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  463. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts +24 -0
  464. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js +134 -0
  465. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js.map +1 -0
  466. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.d.ts +1 -0
  467. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js +7 -0
  468. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js.map +1 -0
  469. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.d.ts +1 -0
  470. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js +7 -0
  471. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js.map +1 -0
  472. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.d.ts +1 -0
  473. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js +9 -0
  474. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js.map +1 -0
  475. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.d.ts +1 -0
  476. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js +51 -0
  477. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js.map +1 -0
  478. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.d.ts +1 -0
  479. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js +5 -0
  480. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js.map +1 -0
  481. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.d.ts +3 -0
  482. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js +36 -0
  483. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js.map +1 -0
  484. data/js/node_modules/@waves/node-api-js/es/tools/parse.d.ts +1 -0
  485. data/js/node_modules/@waves/node-api-js/es/tools/parse.js +5 -0
  486. data/js/node_modules/@waves/node-api-js/es/tools/parse.js.map +1 -0
  487. data/js/node_modules/@waves/node-api-js/es/tools/query.d.ts +4 -0
  488. data/js/node_modules/@waves/node-api-js/es/tools/query.js +12 -0
  489. data/js/node_modules/@waves/node-api-js/es/tools/query.js.map +1 -0
  490. data/js/node_modules/@waves/node-api-js/es/tools/request.d.ts +64 -0
  491. data/js/node_modules/@waves/node-api-js/es/tools/request.js +22 -0
  492. data/js/node_modules/@waves/node-api-js/es/tools/request.js.map +1 -0
  493. data/js/node_modules/@waves/node-api-js/es/tools/resolve.d.ts +1 -0
  494. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js +4 -0
  495. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js.map +1 -0
  496. data/js/node_modules/@waves/node-api-js/es/tools/stringify.d.ts +1 -0
  497. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js +18 -0
  498. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js.map +1 -0
  499. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.d.ts +14 -0
  500. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js +43 -0
  501. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js.map +1 -0
  502. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.d.ts +1 -0
  503. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js +8 -0
  504. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js.map +1 -0
  505. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.d.ts +0 -0
  506. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js +2 -0
  507. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js.map +1 -0
  508. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.d.ts +10 -0
  509. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js +39 -0
  510. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js.map +1 -0
  511. data/js/node_modules/@waves/node-api-js/es/tools/utils.d.ts +32 -0
  512. data/js/node_modules/@waves/node-api-js/es/tools/utils.js +73 -0
  513. data/js/node_modules/@waves/node-api-js/es/tools/utils.js.map +1 -0
  514. data/js/node_modules/@waves/node-api-js/package.json +66 -0
  515. data/js/node_modules/@waves/parse-json-bignumber/coverage/clover.xml +225 -0
  516. data/js/node_modules/@waves/parse-json-bignumber/coverage/coverage-final.json +2 -0
  517. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/base.css +212 -0
  518. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/index.html +93 -0
  519. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/parse-json-bignumber.ts.html +1598 -0
  520. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.css +1 -0
  521. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.js +1 -0
  522. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  523. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sorter.js +158 -0
  524. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov.info +415 -0
  525. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.d.ts +11 -0
  526. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.js +412 -0
  527. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.min.js +1 -0
  528. data/js/node_modules/@waves/parse-json-bignumber/package.json +40 -0
  529. data/js/node_modules/@waves/parse-json-bignumber/src/parse-json-bignumber.ts +511 -0
  530. data/js/node_modules/@waves/parse-json-bignumber/test/index.ts +130 -0
  531. data/js/node_modules/@waves/parse-json-bignumber/test/tsconfig.json +14 -0
  532. data/js/node_modules/@waves/parse-json-bignumber/tsconfig.json +15 -0
  533. data/js/node_modules/@waves/protobuf-serialization/README.MD +116 -0
  534. data/js/node_modules/@waves/protobuf-serialization/dist/index.d.ts +2005 -0
  535. data/js/node_modules/@waves/protobuf-serialization/dist/index.js +6636 -0
  536. data/js/node_modules/@waves/protobuf-serialization/package.json +30 -0
  537. data/js/node_modules/@waves/protobuf-serialization/proto/waves/amount.proto +10 -0
  538. data/js/node_modules/@waves/protobuf-serialization/proto/waves/block.proto +40 -0
  539. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/events.proto +213 -0
  540. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/grpc/blockchain_updates.proto +42 -0
  541. data/js/node_modules/@waves/protobuf-serialization/proto/waves/invoke_script_result.proto +98 -0
  542. data/js/node_modules/@waves/protobuf-serialization/proto/waves/lang/dapp_meta.proto +21 -0
  543. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/accounts_api.proto +68 -0
  544. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/assets_api.proto +41 -0
  545. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto +54 -0
  546. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blocks_api.proto +41 -0
  547. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/transactions_api.proto +73 -0
  548. data/js/node_modules/@waves/protobuf-serialization/proto/waves/order.proto +43 -0
  549. data/js/node_modules/@waves/protobuf-serialization/proto/waves/recipient.proto +13 -0
  550. data/js/node_modules/@waves/protobuf-serialization/proto/waves/transaction.proto +156 -0
  551. data/js/node_modules/@waves/ts-lib-crypto/README.md +492 -0
  552. data/js/node_modules/@waves/ts-lib-crypto/bytes.d.ts +10 -0
  553. data/js/node_modules/@waves/ts-lib-crypto/bytes.js +21 -0
  554. data/js/node_modules/@waves/ts-lib-crypto/bytes.js.map +1 -0
  555. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.d.ts +7 -0
  556. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js +27 -0
  557. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js.map +1 -0
  558. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.d.ts +3 -0
  559. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js +24 -0
  560. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js.map +1 -0
  561. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.d.ts +11 -0
  562. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js +65 -0
  563. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js.map +1 -0
  564. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.d.ts +7 -0
  565. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js +58 -0
  566. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js.map +1 -0
  567. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.d.ts +3 -0
  568. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js +39 -0
  569. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js.map +1 -0
  570. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.d.ts +13 -0
  571. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js +117 -0
  572. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js.map +1 -0
  573. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.d.ts +6 -0
  574. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js +89 -0
  575. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js.map +1 -0
  576. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.d.ts +7 -0
  577. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js +39 -0
  578. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js.map +1 -0
  579. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.d.ts +98 -0
  580. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js +9 -0
  581. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js.map +1 -0
  582. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.d.ts +7 -0
  583. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js +51 -0
  584. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js.map +1 -0
  585. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.d.ts +4 -0
  586. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js +51 -0
  587. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js.map +1 -0
  588. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.d.ts +7 -0
  589. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js +159 -0
  590. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js.map +1 -0
  591. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.d.ts +9 -0
  592. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js +62 -0
  593. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js.map +1 -0
  594. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.d.ts +1 -0
  595. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js +189 -0
  596. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js.map +1 -0
  597. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.d.ts +2 -0
  598. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js +16 -0
  599. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js.map +1 -0
  600. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.d.ts +3 -0
  601. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js +9 -0
  602. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js.map +1 -0
  603. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.d.ts +7 -0
  604. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js +49 -0
  605. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js.map +1 -0
  606. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.d.ts +5 -0
  607. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js +16 -0
  608. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js.map +1 -0
  609. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.d.ts +6 -0
  610. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js +18 -0
  611. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js.map +1 -0
  612. data/js/node_modules/@waves/ts-lib-crypto/index.d.ts +10 -0
  613. data/js/node_modules/@waves/ts-lib-crypto/index.js +21 -0
  614. data/js/node_modules/@waves/ts-lib-crypto/index.js.map +1 -0
  615. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.d.ts +2 -0
  616. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js +61 -0
  617. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js.map +1 -0
  618. data/js/node_modules/@waves/ts-lib-crypto/libs/axlsign.js +1374 -0
  619. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.d.ts +5 -0
  620. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js +66 -0
  621. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js.map +1 -0
  622. data/js/node_modules/@waves/ts-lib-crypto/libs/blake2b.js +308 -0
  623. data/js/node_modules/@waves/ts-lib-crypto/libs/sha3.js +441 -0
  624. data/js/node_modules/@waves/ts-lib-crypto/min/waves-lib-crypto.js +33 -0
  625. data/js/node_modules/@waves/ts-lib-crypto/package.json +31 -0
  626. data/js/node_modules/@waves/ts-types/dist/src/common.d.ts +59 -0
  627. data/js/node_modules/@waves/ts-types/dist/src/common.js +53 -0
  628. data/js/node_modules/@waves/ts-types/dist/src/exchange.d.ts +47 -0
  629. data/js/node_modules/@waves/ts-types/dist/src/exchange.js +2 -0
  630. data/js/node_modules/@waves/ts-types/dist/src/index.d.ts +52 -0
  631. data/js/node_modules/@waves/ts-types/dist/src/index.js +63 -0
  632. data/js/node_modules/@waves/ts-types/dist/src/invoke.d.ts +22 -0
  633. data/js/node_modules/@waves/ts-types/dist/src/invoke.js +2 -0
  634. data/js/node_modules/@waves/ts-types/dist/src/network.d.ts +6 -0
  635. data/js/node_modules/@waves/ts-types/dist/src/network.js +10 -0
  636. data/js/node_modules/@waves/ts-types/dist/src/parts.d.ts +159 -0
  637. data/js/node_modules/@waves/ts-types/dist/src/parts.js +2 -0
  638. data/js/node_modules/@waves/ts-types/dist/transactions/index.d.ts +363 -0
  639. data/js/node_modules/@waves/ts-types/dist/transactions/index.js +3 -0
  640. data/js/node_modules/@waves/ts-types/index.ts +1 -0
  641. data/js/node_modules/@waves/ts-types/package.json +41 -0
  642. data/js/node_modules/@waves/ts-types/src/index.ts +57 -0
  643. data/js/node_modules/@waves/ts-types/src/parts.ts +247 -0
  644. data/js/node_modules/@waves/ts-types/transactions/index.ts +789 -0
  645. data/js/node_modules/@waves/ts-types/tsconfig.json +16 -0
  646. data/js/node_modules/@waves/waves-transactions/README.md +432 -0
  647. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.d.ts +18 -0
  648. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js +22 -0
  649. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js.map +1 -0
  650. data/js/node_modules/@waves/waves-transactions/dist/general.d.ts +68 -0
  651. data/js/node_modules/@waves/waves-transactions/dist/general.js +135 -0
  652. data/js/node_modules/@waves/waves-transactions/dist/general.js.map +1 -0
  653. data/js/node_modules/@waves/waves-transactions/dist/generic.d.ts +28 -0
  654. data/js/node_modules/@waves/waves-transactions/dist/generic.js +88 -0
  655. data/js/node_modules/@waves/waves-transactions/dist/generic.js.map +1 -0
  656. data/js/node_modules/@waves/waves-transactions/dist/index.d.ts +37 -0
  657. data/js/node_modules/@waves/waves-transactions/dist/index.js +98 -0
  658. data/js/node_modules/@waves/waves-transactions/dist/index.js.map +1 -0
  659. data/js/node_modules/@waves/waves-transactions/dist/make-tx.d.ts +50 -0
  660. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js +106 -0
  661. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js.map +1 -0
  662. data/js/node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js +26 -0
  663. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.d.ts +116 -0
  664. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js +277 -0
  665. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js.map +1 -0
  666. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.d.ts +62 -0
  667. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js +514 -0
  668. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js.map +1 -0
  669. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.d.ts +7 -0
  670. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js +31 -0
  671. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js.map +1 -0
  672. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.d.ts +7 -0
  673. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js +29 -0
  674. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js.map +1 -0
  675. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts +40 -0
  676. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js +37 -0
  677. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js.map +1 -0
  678. data/js/node_modules/@waves/waves-transactions/dist/requests/order.d.ts +50 -0
  679. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js +62 -0
  680. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js.map +1 -0
  681. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.d.ts +7 -0
  682. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js +31 -0
  683. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js.map +1 -0
  684. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.d.ts +21 -0
  685. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js +85 -0
  686. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js.map +1 -0
  687. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.d.ts +8 -0
  688. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js +35 -0
  689. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js.map +1 -0
  690. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.d.ts +8 -0
  691. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js +35 -0
  692. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js.map +1 -0
  693. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.d.ts +8 -0
  694. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js +34 -0
  695. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js.map +1 -0
  696. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.d.ts +5 -0
  697. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js +112 -0
  698. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js.map +1 -0
  699. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.d.ts +7 -0
  700. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js +39 -0
  701. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js.map +1 -0
  702. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.d.ts +0 -0
  703. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js +52 -0
  704. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js.map +1 -0
  705. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.d.ts +8 -0
  706. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js +43 -0
  707. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js.map +1 -0
  708. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.d.ts +8 -0
  709. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js +42 -0
  710. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js.map +1 -0
  711. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.d.ts +8 -0
  712. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js +35 -0
  713. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js.map +1 -0
  714. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.d.ts +8 -0
  715. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js +39 -0
  716. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js.map +1 -0
  717. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.d.ts +8 -0
  718. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js +36 -0
  719. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js.map +1 -0
  720. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.d.ts +8 -0
  721. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js +37 -0
  722. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js.map +1 -0
  723. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.d.ts +8 -0
  724. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js +38 -0
  725. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js.map +1 -0
  726. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.d.ts +8 -0
  727. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js +35 -0
  728. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js.map +1 -0
  729. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.d.ts +8 -0
  730. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js +38 -0
  731. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js.map +1 -0
  732. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.d.ts +8 -0
  733. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js +35 -0
  734. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js.map +1 -0
  735. data/js/node_modules/@waves/waves-transactions/dist/transactions.d.ts +277 -0
  736. data/js/node_modules/@waves/waves-transactions/dist/transactions.js +3 -0
  737. data/js/node_modules/@waves/waves-transactions/dist/transactions.js.map +1 -0
  738. data/js/node_modules/@waves/waves-transactions/dist/types.d.ts +11 -0
  739. data/js/node_modules/@waves/waves-transactions/dist/types.js +6 -0
  740. data/js/node_modules/@waves/waves-transactions/dist/types.js.map +1 -0
  741. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.d.ts +1 -0
  742. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js +17 -0
  743. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js.map +1 -0
  744. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.d.ts +1 -0
  745. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js +10 -0
  746. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js.map +1 -0
  747. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.d.ts +1 -0
  748. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js +18 -0
  749. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js.map +1 -0
  750. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.d.ts +1 -0
  751. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js +17 -0
  752. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js.map +1 -0
  753. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.d.ts +1 -0
  754. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js +12 -0
  755. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js.map +1 -0
  756. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.d.ts +1 -0
  757. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js +16 -0
  758. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js.map +1 -0
  759. data/js/node_modules/@waves/waves-transactions/dist/validators/data.d.ts +2 -0
  760. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js +18 -0
  761. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js.map +1 -0
  762. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.d.ts +1 -0
  763. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js +22 -0
  764. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js.map +1 -0
  765. data/js/node_modules/@waves/waves-transactions/dist/validators/index.d.ts +24 -0
  766. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js +60 -0
  767. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js.map +1 -0
  768. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.d.ts +0 -0
  769. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js +33 -0
  770. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js.map +1 -0
  771. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.d.ts +1 -0
  772. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js +20 -0
  773. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js.map +1 -0
  774. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.d.ts +1 -0
  775. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js +22 -0
  776. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js.map +1 -0
  777. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.d.ts +1 -0
  778. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js +17 -0
  779. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js.map +1 -0
  780. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.d.ts +1 -0
  781. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js +18 -0
  782. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js.map +1 -0
  783. data/js/node_modules/@waves/waves-transactions/dist/validators/order.d.ts +1 -0
  784. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js +34 -0
  785. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js.map +1 -0
  786. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.d.ts +1 -0
  787. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js +19 -0
  788. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js.map +1 -0
  789. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.d.ts +1 -0
  790. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js +18 -0
  791. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js.map +1 -0
  792. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.d.ts +1 -0
  793. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js +17 -0
  794. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js.map +1 -0
  795. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.d.ts +1 -0
  796. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js +17 -0
  797. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js.map +1 -0
  798. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.d.ts +1 -0
  799. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js +20 -0
  800. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js.map +1 -0
  801. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.d.ts +1 -0
  802. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js +18 -0
  803. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js.map +1 -0
  804. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.d.ts +52 -0
  805. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js +160 -0
  806. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js.map +1 -0
  807. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.d.ts +1 -0
  808. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js +10 -0
  809. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js.map +1 -0
  810. data/js/node_modules/@waves/waves-transactions/package.json +83 -0
  811. data/js/node_modules/@waves/waves-transactions/src/defaultVersions.ts +18 -0
  812. data/js/node_modules/@waves/waves-transactions/src/general.ts +165 -0
  813. data/js/node_modules/@waves/waves-transactions/src/generic.ts +88 -0
  814. data/js/node_modules/@waves/waves-transactions/src/index.ts +87 -0
  815. data/js/node_modules/@waves/waves-transactions/src/make-tx.ts +179 -0
  816. data/js/node_modules/@waves/waves-transactions/src/nodeInteraction.ts +297 -0
  817. data/js/node_modules/@waves/waves-transactions/src/proto-serialize.ts +571 -0
  818. data/js/node_modules/@waves/waves-transactions/src/requests/auth.ts +42 -0
  819. data/js/node_modules/@waves/waves-transactions/src/requests/cancel-order.ts +37 -0
  820. data/js/node_modules/@waves/waves-transactions/src/requests/custom-data.ts +73 -0
  821. data/js/node_modules/@waves/waves-transactions/src/requests/order.ts +121 -0
  822. data/js/node_modules/@waves/waves-transactions/src/requests/wavesAuth.ts +40 -0
  823. data/js/node_modules/@waves/waves-transactions/src/seedUtils/index.ts +124 -0
  824. data/js/node_modules/@waves/waves-transactions/src/transactions/alias.ts +46 -0
  825. data/js/node_modules/@waves/waves-transactions/src/transactions/burn.ts +45 -0
  826. data/js/node_modules/@waves/waves-transactions/src/transactions/cancel-lease.ts +44 -0
  827. data/js/node_modules/@waves/waves-transactions/src/transactions/data.ts +122 -0
  828. data/js/node_modules/@waves/waves-transactions/src/transactions/exchange.ts +47 -0
  829. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-expression.ts +50 -0
  830. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-script.ts +54 -0
  831. data/js/node_modules/@waves/waves-transactions/src/transactions/issue.ts +52 -0
  832. data/js/node_modules/@waves/waves-transactions/src/transactions/lease.ts +45 -0
  833. data/js/node_modules/@waves/waves-transactions/src/transactions/mass-transfer.ts +55 -0
  834. data/js/node_modules/@waves/waves-transactions/src/transactions/reissue.ts +46 -0
  835. data/js/node_modules/@waves/waves-transactions/src/transactions/set-asset-script.ts +57 -0
  836. data/js/node_modules/@waves/waves-transactions/src/transactions/set-script.ts +54 -0
  837. data/js/node_modules/@waves/waves-transactions/src/transactions/sponsorship.ts +45 -0
  838. data/js/node_modules/@waves/waves-transactions/src/transactions/transfer.ts +55 -0
  839. data/js/node_modules/@waves/waves-transactions/src/transactions/update-asset-info.ts +44 -0
  840. data/js/node_modules/@waves/waves-transactions/src/transactions.ts +352 -0
  841. data/js/node_modules/@waves/waves-transactions/src/types.ts +12 -0
  842. data/js/node_modules/@waves/waves-transactions/src/validators/alias.ts +28 -0
  843. data/js/node_modules/@waves/waves-transactions/src/validators/auth.ts +14 -0
  844. data/js/node_modules/@waves/waves-transactions/src/validators/burn.ts +29 -0
  845. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-lease.ts +27 -0
  846. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-order.ts +17 -0
  847. data/js/node_modules/@waves/waves-transactions/src/validators/custom-data.ts +40 -0
  848. data/js/node_modules/@waves/waves-transactions/src/validators/data.ts +33 -0
  849. data/js/node_modules/@waves/waves-transactions/src/validators/exchange.ts +36 -0
  850. data/js/node_modules/@waves/waves-transactions/src/validators/index.ts +50 -0
  851. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-expression.ts +31 -0
  852. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-script.ts +64 -0
  853. data/js/node_modules/@waves/waves-transactions/src/validators/issue.ts +41 -0
  854. data/js/node_modules/@waves/waves-transactions/src/validators/lease.ts +29 -0
  855. data/js/node_modules/@waves/waves-transactions/src/validators/mass-transfer.ts +47 -0
  856. data/js/node_modules/@waves/waves-transactions/src/validators/order.ts +68 -0
  857. data/js/node_modules/@waves/waves-transactions/src/validators/reissue.ts +31 -0
  858. data/js/node_modules/@waves/waves-transactions/src/validators/set-asset-script.ts +28 -0
  859. data/js/node_modules/@waves/waves-transactions/src/validators/set-script.ts +28 -0
  860. data/js/node_modules/@waves/waves-transactions/src/validators/sponsorship.ts +28 -0
  861. data/js/node_modules/@waves/waves-transactions/src/validators/transfer.ts +32 -0
  862. data/js/node_modules/@waves/waves-transactions/src/validators/update-asset-info.ts +32 -0
  863. data/js/node_modules/@waves/waves-transactions/src/validators/validators.ts +306 -0
  864. data/js/node_modules/@waves/waves-transactions/src/validators/wavesAuth.ts +15 -0
  865. data/js/node_modules/asynckit/LICENSE +21 -0
  866. data/js/node_modules/asynckit/README.md +233 -0
  867. data/js/node_modules/asynckit/bench.js +76 -0
  868. data/js/node_modules/asynckit/index.js +6 -0
  869. data/js/node_modules/asynckit/lib/abort.js +29 -0
  870. data/js/node_modules/asynckit/lib/async.js +34 -0
  871. data/js/node_modules/asynckit/lib/defer.js +26 -0
  872. data/js/node_modules/asynckit/lib/iterate.js +75 -0
  873. data/js/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  874. data/js/node_modules/asynckit/lib/readable_parallel.js +25 -0
  875. data/js/node_modules/asynckit/lib/readable_serial.js +25 -0
  876. data/js/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  877. data/js/node_modules/asynckit/lib/state.js +37 -0
  878. data/js/node_modules/asynckit/lib/streamify.js +141 -0
  879. data/js/node_modules/asynckit/lib/terminator.js +29 -0
  880. data/js/node_modules/asynckit/package.json +63 -0
  881. data/js/node_modules/asynckit/parallel.js +43 -0
  882. data/js/node_modules/asynckit/serial.js +17 -0
  883. data/js/node_modules/asynckit/serialOrdered.js +75 -0
  884. data/js/node_modules/asynckit/stream.js +21 -0
  885. data/js/node_modules/axios/CHANGELOG.md +413 -0
  886. data/js/node_modules/axios/LICENSE +19 -0
  887. data/js/node_modules/axios/README.md +709 -0
  888. data/js/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  889. data/js/node_modules/axios/dist/axios.js +1715 -0
  890. data/js/node_modules/axios/dist/axios.map +1 -0
  891. data/js/node_modules/axios/dist/axios.min.js +3 -0
  892. data/js/node_modules/axios/dist/axios.min.map +1 -0
  893. data/js/node_modules/axios/index.d.ts +157 -0
  894. data/js/node_modules/axios/index.js +1 -0
  895. data/js/node_modules/axios/lib/adapters/README.md +37 -0
  896. data/js/node_modules/axios/lib/adapters/http.js +279 -0
  897. data/js/node_modules/axios/lib/adapters/xhr.js +180 -0
  898. data/js/node_modules/axios/lib/axios.js +53 -0
  899. data/js/node_modules/axios/lib/cancel/Cancel.js +19 -0
  900. data/js/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  901. data/js/node_modules/axios/lib/cancel/isCancel.js +5 -0
  902. data/js/node_modules/axios/lib/core/Axios.js +94 -0
  903. data/js/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  904. data/js/node_modules/axios/lib/core/README.md +7 -0
  905. data/js/node_modules/axios/lib/core/buildFullPath.js +20 -0
  906. data/js/node_modules/axios/lib/core/createError.js +18 -0
  907. data/js/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  908. data/js/node_modules/axios/lib/core/enhanceError.js +42 -0
  909. data/js/node_modules/axios/lib/core/mergeConfig.js +73 -0
  910. data/js/node_modules/axios/lib/core/settle.js +25 -0
  911. data/js/node_modules/axios/lib/core/transformData.js +20 -0
  912. data/js/node_modules/axios/lib/defaults.js +97 -0
  913. data/js/node_modules/axios/lib/helpers/README.md +7 -0
  914. data/js/node_modules/axios/lib/helpers/bind.js +11 -0
  915. data/js/node_modules/axios/lib/helpers/buildURL.js +71 -0
  916. data/js/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  917. data/js/node_modules/axios/lib/helpers/cookies.js +53 -0
  918. data/js/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  919. data/js/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  920. data/js/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  921. data/js/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  922. data/js/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  923. data/js/node_modules/axios/lib/helpers/spread.js +27 -0
  924. data/js/node_modules/axios/lib/utils.js +344 -0
  925. data/js/node_modules/axios/package.json +84 -0
  926. data/js/node_modules/base64-js/LICENSE +21 -0
  927. data/js/node_modules/base64-js/README.md +34 -0
  928. data/js/node_modules/base64-js/base64js.min.js +1 -0
  929. data/js/node_modules/base64-js/index.d.ts +3 -0
  930. data/js/node_modules/base64-js/index.js +150 -0
  931. data/js/node_modules/base64-js/package.json +47 -0
  932. data/js/node_modules/bignumber.js/CHANGELOG.md +290 -0
  933. data/js/node_modules/bignumber.js/LICENCE.md +26 -0
  934. data/js/node_modules/bignumber.js/README.md +286 -0
  935. data/js/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  936. data/js/node_modules/bignumber.js/bignumber.js +2926 -0
  937. data/js/node_modules/bignumber.js/bignumber.mjs +2889 -0
  938. data/js/node_modules/bignumber.js/doc/API.html +2249 -0
  939. data/js/node_modules/bignumber.js/package.json +50 -0
  940. data/js/node_modules/combined-stream/License +19 -0
  941. data/js/node_modules/combined-stream/Readme.md +138 -0
  942. data/js/node_modules/combined-stream/lib/combined_stream.js +208 -0
  943. data/js/node_modules/combined-stream/package.json +25 -0
  944. data/js/node_modules/combined-stream/yarn.lock +17 -0
  945. data/js/node_modules/debug/CHANGELOG.md +395 -0
  946. data/js/node_modules/debug/LICENSE +19 -0
  947. data/js/node_modules/debug/Makefile +58 -0
  948. data/js/node_modules/debug/README.md +368 -0
  949. data/js/node_modules/debug/karma.conf.js +70 -0
  950. data/js/node_modules/debug/node.js +1 -0
  951. data/js/node_modules/debug/package.json +43 -0
  952. data/js/node_modules/debug/src/browser.js +195 -0
  953. data/js/node_modules/debug/src/debug.js +225 -0
  954. data/js/node_modules/debug/src/index.js +10 -0
  955. data/js/node_modules/debug/src/node.js +186 -0
  956. data/js/node_modules/delayed-stream/License +19 -0
  957. data/js/node_modules/delayed-stream/Makefile +7 -0
  958. data/js/node_modules/delayed-stream/Readme.md +141 -0
  959. data/js/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  960. data/js/node_modules/delayed-stream/package.json +27 -0
  961. data/js/node_modules/follow-redirects/LICENSE +18 -0
  962. data/js/node_modules/follow-redirects/README.md +155 -0
  963. data/js/node_modules/follow-redirects/http.js +1 -0
  964. data/js/node_modules/follow-redirects/https.js +1 -0
  965. data/js/node_modules/follow-redirects/index.js +322 -0
  966. data/js/node_modules/follow-redirects/package.json +60 -0
  967. data/js/node_modules/form-data/License +19 -0
  968. data/js/node_modules/form-data/README.md.bak +356 -0
  969. data/js/node_modules/form-data/Readme.md +356 -0
  970. data/js/node_modules/form-data/index.d.ts +62 -0
  971. data/js/node_modules/form-data/lib/browser.js +2 -0
  972. data/js/node_modules/form-data/lib/form_data.js +498 -0
  973. data/js/node_modules/form-data/lib/populate.js +10 -0
  974. data/js/node_modules/form-data/package.json +68 -0
  975. data/js/node_modules/js-sha3/CHANGELOG.md +106 -0
  976. data/js/node_modules/js-sha3/LICENSE.txt +20 -0
  977. data/js/node_modules/js-sha3/README.md +241 -0
  978. data/js/node_modules/js-sha3/build/sha3.min.js +9 -0
  979. data/js/node_modules/js-sha3/index.d.ts +317 -0
  980. data/js/node_modules/js-sha3/package.json +45 -0
  981. data/js/node_modules/js-sha3/src/sha3.js +656 -0
  982. data/js/node_modules/long/LICENSE +202 -0
  983. data/js/node_modules/long/README.md +246 -0
  984. data/js/node_modules/long/dist/long.js +2 -0
  985. data/js/node_modules/long/dist/long.js.map +1 -0
  986. data/js/node_modules/long/index.js +1 -0
  987. data/js/node_modules/long/package.json +34 -0
  988. data/js/node_modules/long/src/long.js +1323 -0
  989. data/js/node_modules/mime-db/HISTORY.md +507 -0
  990. data/js/node_modules/mime-db/LICENSE +23 -0
  991. data/js/node_modules/mime-db/README.md +100 -0
  992. data/js/node_modules/mime-db/db.json +8519 -0
  993. data/js/node_modules/mime-db/index.js +12 -0
  994. data/js/node_modules/mime-db/package.json +60 -0
  995. data/js/node_modules/mime-types/HISTORY.md +397 -0
  996. data/js/node_modules/mime-types/LICENSE +23 -0
  997. data/js/node_modules/mime-types/README.md +113 -0
  998. data/js/node_modules/mime-types/index.js +188 -0
  999. data/js/node_modules/mime-types/package.json +44 -0
  1000. data/js/node_modules/ms/index.js +152 -0
  1001. data/js/node_modules/ms/license.md +21 -0
  1002. data/js/node_modules/ms/package.json +37 -0
  1003. data/js/node_modules/ms/readme.md +51 -0
  1004. data/js/node_modules/node-fetch/LICENSE.md +22 -0
  1005. data/js/node_modules/node-fetch/README.md +633 -0
  1006. data/js/node_modules/node-fetch/browser.js +25 -0
  1007. data/js/node_modules/node-fetch/lib/index.es.js +1781 -0
  1008. data/js/node_modules/node-fetch/lib/index.js +1790 -0
  1009. data/js/node_modules/node-fetch/lib/index.mjs +1779 -0
  1010. data/js/node_modules/node-fetch/package.json +89 -0
  1011. data/js/node_modules/node-forge/CHANGELOG.md +211 -0
  1012. data/js/node_modules/node-forge/LICENSE +331 -0
  1013. data/js/node_modules/node-forge/README.md +2097 -0
  1014. data/js/node_modules/node-forge/dist/forge.all.min.js +2 -0
  1015. data/js/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  1016. data/js/node_modules/node-forge/dist/forge.min.js +2 -0
  1017. data/js/node_modules/node-forge/dist/forge.min.js.map +1 -0
  1018. data/js/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  1019. data/js/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  1020. data/js/node_modules/node-forge/flash/README.md +48 -0
  1021. data/js/node_modules/node-forge/flash/package.json +28 -0
  1022. data/js/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  1023. data/js/node_modules/node-forge/lib/aes.js +1091 -0
  1024. data/js/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  1025. data/js/node_modules/node-forge/lib/asn1.js +1408 -0
  1026. data/js/node_modules/node-forge/lib/baseN.js +186 -0
  1027. data/js/node_modules/node-forge/lib/cipher.js +230 -0
  1028. data/js/node_modules/node-forge/lib/cipherModes.js +987 -0
  1029. data/js/node_modules/node-forge/lib/debug.js +78 -0
  1030. data/js/node_modules/node-forge/lib/des.js +496 -0
  1031. data/js/node_modules/node-forge/lib/ed25519.js +996 -0
  1032. data/js/node_modules/node-forge/lib/forge.js +13 -0
  1033. data/js/node_modules/node-forge/lib/form.js +149 -0
  1034. data/js/node_modules/node-forge/lib/hmac.js +146 -0
  1035. data/js/node_modules/node-forge/lib/http.js +1364 -0
  1036. data/js/node_modules/node-forge/lib/index.all.js +16 -0
  1037. data/js/node_modules/node-forge/lib/index.js +35 -0
  1038. data/js/node_modules/node-forge/lib/jsbn.js +1264 -0
  1039. data/js/node_modules/node-forge/lib/kem.js +168 -0
  1040. data/js/node_modules/node-forge/lib/log.js +317 -0
  1041. data/js/node_modules/node-forge/lib/md.all.js +13 -0
  1042. data/js/node_modules/node-forge/lib/md.js +11 -0
  1043. data/js/node_modules/node-forge/lib/md5.js +289 -0
  1044. data/js/node_modules/node-forge/lib/mgf.js +12 -0
  1045. data/js/node_modules/node-forge/lib/mgf1.js +57 -0
  1046. data/js/node_modules/node-forge/lib/oids.js +163 -0
  1047. data/js/node_modules/node-forge/lib/pbe.js +1023 -0
  1048. data/js/node_modules/node-forge/lib/pbkdf2.js +211 -0
  1049. data/js/node_modules/node-forge/lib/pem.js +230 -0
  1050. data/js/node_modules/node-forge/lib/pkcs1.js +276 -0
  1051. data/js/node_modules/node-forge/lib/pkcs12.js +1074 -0
  1052. data/js/node_modules/node-forge/lib/pkcs7.js +1257 -0
  1053. data/js/node_modules/node-forge/lib/pkcs7asn1.js +409 -0
  1054. data/js/node_modules/node-forge/lib/pki.js +102 -0
  1055. data/js/node_modules/node-forge/lib/prime.js +297 -0
  1056. data/js/node_modules/node-forge/lib/prime.worker.js +168 -0
  1057. data/js/node_modules/node-forge/lib/prng.js +419 -0
  1058. data/js/node_modules/node-forge/lib/pss.js +241 -0
  1059. data/js/node_modules/node-forge/lib/random.js +191 -0
  1060. data/js/node_modules/node-forge/lib/rc2.js +410 -0
  1061. data/js/node_modules/node-forge/lib/rsa.js +1858 -0
  1062. data/js/node_modules/node-forge/lib/sha1.js +319 -0
  1063. data/js/node_modules/node-forge/lib/sha256.js +327 -0
  1064. data/js/node_modules/node-forge/lib/sha512.js +561 -0
  1065. data/js/node_modules/node-forge/lib/socket.js +287 -0
  1066. data/js/node_modules/node-forge/lib/ssh.js +236 -0
  1067. data/js/node_modules/node-forge/lib/task.js +725 -0
  1068. data/js/node_modules/node-forge/lib/tls.js +4282 -0
  1069. data/js/node_modules/node-forge/lib/tlssocket.js +249 -0
  1070. data/js/node_modules/node-forge/lib/util.js +2993 -0
  1071. data/js/node_modules/node-forge/lib/x509.js +3333 -0
  1072. data/js/node_modules/node-forge/lib/xhr.js +736 -0
  1073. data/js/node_modules/node-forge/package.json +120 -0
  1074. data/js/node_modules/protobufjs/CHANGELOG.md +1027 -0
  1075. data/js/node_modules/protobufjs/LICENSE +39 -0
  1076. data/js/node_modules/protobufjs/README.md +905 -0
  1077. data/js/node_modules/protobufjs/bin/pbjs +6 -0
  1078. data/js/node_modules/protobufjs/bin/pbts +6 -0
  1079. data/js/node_modules/protobufjs/cli/LICENSE +33 -0
  1080. data/js/node_modules/protobufjs/cli/README.md +174 -0
  1081. data/js/node_modules/protobufjs/cli/bin/pbjs +6 -0
  1082. data/js/node_modules/protobufjs/cli/bin/pbts +6 -0
  1083. data/js/node_modules/protobufjs/cli/index.d.ts +3 -0
  1084. data/js/node_modules/protobufjs/cli/index.js +3 -0
  1085. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +21 -0
  1086. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +23 -0
  1087. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +21 -0
  1088. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +705 -0
  1089. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +18 -0
  1090. data/js/node_modules/protobufjs/cli/package.json +8 -0
  1091. data/js/node_modules/protobufjs/cli/package.standalone.json +32 -0
  1092. data/js/node_modules/protobufjs/cli/pbjs.d.ts +9 -0
  1093. data/js/node_modules/protobufjs/cli/pbjs.js +330 -0
  1094. data/js/node_modules/protobufjs/cli/pbts.d.ts +9 -0
  1095. data/js/node_modules/protobufjs/cli/pbts.js +197 -0
  1096. data/js/node_modules/protobufjs/cli/targets/json-module.js +38 -0
  1097. data/js/node_modules/protobufjs/cli/targets/json.js +8 -0
  1098. data/js/node_modules/protobufjs/cli/targets/proto.js +326 -0
  1099. data/js/node_modules/protobufjs/cli/targets/proto2.js +10 -0
  1100. data/js/node_modules/protobufjs/cli/targets/proto3.js +10 -0
  1101. data/js/node_modules/protobufjs/cli/targets/static-module.js +29 -0
  1102. data/js/node_modules/protobufjs/cli/targets/static.js +711 -0
  1103. data/js/node_modules/protobufjs/cli/util.js +183 -0
  1104. data/js/node_modules/protobufjs/cli/wrappers/amd.js +7 -0
  1105. data/js/node_modules/protobufjs/cli/wrappers/closure.js +7 -0
  1106. data/js/node_modules/protobufjs/cli/wrappers/commonjs.js +7 -0
  1107. data/js/node_modules/protobufjs/cli/wrappers/default.js +15 -0
  1108. data/js/node_modules/protobufjs/cli/wrappers/es6.js +5 -0
  1109. data/js/node_modules/protobufjs/dist/README.md +31 -0
  1110. data/js/node_modules/protobufjs/dist/light/README.md +31 -0
  1111. data/js/node_modules/protobufjs/dist/light/protobuf.js +7322 -0
  1112. data/js/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  1113. data/js/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  1114. data/js/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  1115. data/js/node_modules/protobufjs/dist/minimal/README.md +31 -0
  1116. data/js/node_modules/protobufjs/dist/minimal/protobuf.js +2714 -0
  1117. data/js/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  1118. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  1119. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  1120. data/js/node_modules/protobufjs/dist/protobuf.js +8964 -0
  1121. data/js/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  1122. data/js/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  1123. data/js/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  1124. data/js/node_modules/protobufjs/ext/debug/README.md +4 -0
  1125. data/js/node_modules/protobufjs/ext/debug/index.js +71 -0
  1126. data/js/node_modules/protobufjs/ext/descriptor/README.md +72 -0
  1127. data/js/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
  1128. data/js/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
  1129. data/js/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  1130. data/js/node_modules/protobufjs/google/LICENSE +27 -0
  1131. data/js/node_modules/protobufjs/google/README.md +1 -0
  1132. data/js/node_modules/protobufjs/google/api/annotations.json +83 -0
  1133. data/js/node_modules/protobufjs/google/api/annotations.proto +11 -0
  1134. data/js/node_modules/protobufjs/google/api/http.json +86 -0
  1135. data/js/node_modules/protobufjs/google/api/http.proto +31 -0
  1136. data/js/node_modules/protobufjs/google/protobuf/api.json +118 -0
  1137. data/js/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  1138. data/js/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
  1139. data/js/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
  1140. data/js/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
  1141. data/js/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  1142. data/js/node_modules/protobufjs/google/protobuf/type.json +202 -0
  1143. data/js/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  1144. data/js/node_modules/protobufjs/index.d.ts +2739 -0
  1145. data/js/node_modules/protobufjs/index.js +4 -0
  1146. data/js/node_modules/protobufjs/light.d.ts +2 -0
  1147. data/js/node_modules/protobufjs/light.js +4 -0
  1148. data/js/node_modules/protobufjs/minimal.d.ts +2 -0
  1149. data/js/node_modules/protobufjs/minimal.js +4 -0
  1150. data/js/node_modules/protobufjs/package-lock.json +7870 -0
  1151. data/js/node_modules/protobufjs/package.json +122 -0
  1152. data/js/node_modules/protobufjs/scripts/changelog.js +150 -0
  1153. data/js/node_modules/protobufjs/scripts/postinstall.js +35 -0
  1154. data/js/node_modules/protobufjs/src/common.js +399 -0
  1155. data/js/node_modules/protobufjs/src/converter.js +293 -0
  1156. data/js/node_modules/protobufjs/src/decoder.js +128 -0
  1157. data/js/node_modules/protobufjs/src/encoder.js +100 -0
  1158. data/js/node_modules/protobufjs/src/enum.js +181 -0
  1159. data/js/node_modules/protobufjs/src/field.js +374 -0
  1160. data/js/node_modules/protobufjs/src/index-light.js +104 -0
  1161. data/js/node_modules/protobufjs/src/index-minimal.js +36 -0
  1162. data/js/node_modules/protobufjs/src/index.js +12 -0
  1163. data/js/node_modules/protobufjs/src/mapfield.js +126 -0
  1164. data/js/node_modules/protobufjs/src/message.js +139 -0
  1165. data/js/node_modules/protobufjs/src/method.js +160 -0
  1166. data/js/node_modules/protobufjs/src/namespace.js +434 -0
  1167. data/js/node_modules/protobufjs/src/object.js +243 -0
  1168. data/js/node_modules/protobufjs/src/oneof.js +203 -0
  1169. data/js/node_modules/protobufjs/src/parse.js +820 -0
  1170. data/js/node_modules/protobufjs/src/reader.js +411 -0
  1171. data/js/node_modules/protobufjs/src/reader_buffer.js +51 -0
  1172. data/js/node_modules/protobufjs/src/root.js +363 -0
  1173. data/js/node_modules/protobufjs/src/roots.js +18 -0
  1174. data/js/node_modules/protobufjs/src/rpc/service.js +142 -0
  1175. data/js/node_modules/protobufjs/src/rpc.js +36 -0
  1176. data/js/node_modules/protobufjs/src/service.js +167 -0
  1177. data/js/node_modules/protobufjs/src/tokenize.js +403 -0
  1178. data/js/node_modules/protobufjs/src/type.js +589 -0
  1179. data/js/node_modules/protobufjs/src/types.js +196 -0
  1180. data/js/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  1181. data/js/node_modules/protobufjs/src/util/longbits.js +200 -0
  1182. data/js/node_modules/protobufjs/src/util/minimal.js +421 -0
  1183. data/js/node_modules/protobufjs/src/util.js +212 -0
  1184. data/js/node_modules/protobufjs/src/verifier.js +177 -0
  1185. data/js/node_modules/protobufjs/src/wrappers.js +102 -0
  1186. data/js/node_modules/protobufjs/src/writer.js +465 -0
  1187. data/js/node_modules/protobufjs/src/writer_buffer.js +85 -0
  1188. data/js/node_modules/protobufjs/tsconfig.json +7 -0
  1189. data/js/node_modules/tr46/index.js +193 -0
  1190. data/js/node_modules/tr46/lib/mappingTable.json +1 -0
  1191. data/js/node_modules/tr46/package.json +31 -0
  1192. data/js/node_modules/typed-ts-events/dist/EventEmitter.d.ts +23 -0
  1193. data/js/node_modules/typed-ts-events/dist/events.js +145 -0
  1194. data/js/node_modules/typed-ts-events/dist/events.js.map +1 -0
  1195. data/js/node_modules/typed-ts-events/dist/events.min.js +2 -0
  1196. data/js/node_modules/typed-ts-events/dist/events.min.js.map +1 -0
  1197. data/js/node_modules/typed-ts-events/dist/index.d.ts +3 -0
  1198. data/js/node_modules/typed-ts-events/package.json +64 -0
  1199. data/js/node_modules/typed-ts-events/readme.md +77 -0
  1200. data/js/node_modules/webidl-conversions/LICENSE.md +12 -0
  1201. data/js/node_modules/webidl-conversions/README.md +53 -0
  1202. data/js/node_modules/webidl-conversions/lib/index.js +189 -0
  1203. data/js/node_modules/webidl-conversions/package.json +23 -0
  1204. data/js/node_modules/whatwg-url/LICENSE.txt +21 -0
  1205. data/js/node_modules/whatwg-url/README.md +67 -0
  1206. data/js/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  1207. data/js/node_modules/whatwg-url/lib/URL.js +196 -0
  1208. data/js/node_modules/whatwg-url/lib/public-api.js +11 -0
  1209. data/js/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  1210. data/js/node_modules/whatwg-url/lib/utils.js +20 -0
  1211. data/js/node_modules/whatwg-url/package.json +32 -0
  1212. data/js/package-lock.json +706 -0
  1213. data/js/package.json +15 -0
  1214. data/js/worker.js +109 -0
  1215. data/js/yarn.lock +285 -0
  1216. data/lib/waves_lib/map.rb +211 -0
  1217. data/lib/waves_lib/root_wrapper.rb +85 -0
  1218. data/lib/waves_lib/version.rb +6 -0
  1219. data/lib/waves_lib/wrapped_buffer.rb +26 -0
  1220. data/lib/waves_lib/wrapper.rb +82 -0
  1221. data/lib/waves_lib.rb +10 -0
  1222. metadata +1264 -0
@@ -0,0 +1,1724 @@
1
+ /**
2
+ * To use the HTTP server and client one must `require('node:http')`.
3
+ *
4
+ * The HTTP interfaces in Node.js are designed to support many features
5
+ * of the protocol which have been traditionally difficult to use.
6
+ * In particular, large, possibly chunk-encoded, messages. The interface is
7
+ * careful to never buffer entire requests or responses, so the
8
+ * user is able to stream data.
9
+ *
10
+ * HTTP message headers are represented by an object like this:
11
+ *
12
+ * ```js
13
+ * { 'content-length': '123',
14
+ * 'content-type': 'text/plain',
15
+ * 'connection': 'keep-alive',
16
+ * 'host': 'example.com',
17
+ * 'accept': '*' }
18
+ * ```
19
+ *
20
+ * Keys are lowercased. Values are not modified.
21
+ *
22
+ * In order to support the full spectrum of possible HTTP applications, the Node.js
23
+ * HTTP API is very low-level. It deals with stream handling and message
24
+ * parsing only. It parses a message into headers and body but it does not
25
+ * parse the actual headers or the body.
26
+ *
27
+ * See `message.headers` for details on how duplicate headers are handled.
28
+ *
29
+ * The raw headers as they were received are retained in the `rawHeaders`property, which is an array of `[key, value, key2, value2, ...]`. For
30
+ * example, the previous message header object might have a `rawHeaders`list like the following:
31
+ *
32
+ * ```js
33
+ * [ 'ConTent-Length', '123456',
34
+ * 'content-LENGTH', '123',
35
+ * 'content-type', 'text/plain',
36
+ * 'CONNECTION', 'keep-alive',
37
+ * 'Host', 'example.com',
38
+ * 'accepT', '*' ]
39
+ * ```
40
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/http.js)
41
+ */
42
+ declare module 'http' {
43
+ import * as stream from 'node:stream';
44
+ import { URL } from 'node:url';
45
+ import { LookupOptions } from 'node:dns';
46
+ import { EventEmitter } from 'node:events';
47
+ import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
48
+ // incoming headers will never contain number
49
+ interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
50
+ accept?: string | undefined;
51
+ 'accept-language'?: string | undefined;
52
+ 'accept-patch'?: string | undefined;
53
+ 'accept-ranges'?: string | undefined;
54
+ 'access-control-allow-credentials'?: string | undefined;
55
+ 'access-control-allow-headers'?: string | undefined;
56
+ 'access-control-allow-methods'?: string | undefined;
57
+ 'access-control-allow-origin'?: string | undefined;
58
+ 'access-control-expose-headers'?: string | undefined;
59
+ 'access-control-max-age'?: string | undefined;
60
+ 'access-control-request-headers'?: string | undefined;
61
+ 'access-control-request-method'?: string | undefined;
62
+ age?: string | undefined;
63
+ allow?: string | undefined;
64
+ 'alt-svc'?: string | undefined;
65
+ authorization?: string | undefined;
66
+ 'cache-control'?: string | undefined;
67
+ connection?: string | undefined;
68
+ 'content-disposition'?: string | undefined;
69
+ 'content-encoding'?: string | undefined;
70
+ 'content-language'?: string | undefined;
71
+ 'content-length'?: string | undefined;
72
+ 'content-location'?: string | undefined;
73
+ 'content-range'?: string | undefined;
74
+ 'content-type'?: string | undefined;
75
+ cookie?: string | undefined;
76
+ date?: string | undefined;
77
+ etag?: string | undefined;
78
+ expect?: string | undefined;
79
+ expires?: string | undefined;
80
+ forwarded?: string | undefined;
81
+ from?: string | undefined;
82
+ host?: string | undefined;
83
+ 'if-match'?: string | undefined;
84
+ 'if-modified-since'?: string | undefined;
85
+ 'if-none-match'?: string | undefined;
86
+ 'if-unmodified-since'?: string | undefined;
87
+ 'last-modified'?: string | undefined;
88
+ location?: string | undefined;
89
+ origin?: string | undefined;
90
+ pragma?: string | undefined;
91
+ 'proxy-authenticate'?: string | undefined;
92
+ 'proxy-authorization'?: string | undefined;
93
+ 'public-key-pins'?: string | undefined;
94
+ range?: string | undefined;
95
+ referer?: string | undefined;
96
+ 'retry-after'?: string | undefined;
97
+ 'sec-websocket-accept'?: string | undefined;
98
+ 'sec-websocket-extensions'?: string | undefined;
99
+ 'sec-websocket-key'?: string | undefined;
100
+ 'sec-websocket-protocol'?: string | undefined;
101
+ 'sec-websocket-version'?: string | undefined;
102
+ 'set-cookie'?: string[] | undefined;
103
+ 'strict-transport-security'?: string | undefined;
104
+ tk?: string | undefined;
105
+ trailer?: string | undefined;
106
+ 'transfer-encoding'?: string | undefined;
107
+ upgrade?: string | undefined;
108
+ 'user-agent'?: string | undefined;
109
+ vary?: string | undefined;
110
+ via?: string | undefined;
111
+ warning?: string | undefined;
112
+ 'www-authenticate'?: string | undefined;
113
+ }
114
+ // outgoing headers allows numbers (as they are converted internally to strings)
115
+ type OutgoingHttpHeader = number | string | string[];
116
+ interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
117
+ interface ClientRequestArgs {
118
+ _defaultAgent?: Agent | undefined;
119
+ agent?: Agent | boolean | undefined;
120
+ auth?: string | null | undefined;
121
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
122
+ createConnection?:
123
+ | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
124
+ | undefined;
125
+ defaultPort?: number | string | undefined;
126
+ family?: number | undefined;
127
+ headers?: OutgoingHttpHeaders | undefined;
128
+ hints?: LookupOptions['hints'];
129
+ host?: string | null | undefined;
130
+ hostname?: string | null | undefined;
131
+ insecureHTTPParser?: boolean | undefined;
132
+ localAddress?: string | undefined;
133
+ localPort?: number | undefined;
134
+ lookup?: LookupFunction | undefined;
135
+ /**
136
+ * @default 16384
137
+ */
138
+ maxHeaderSize?: number | undefined;
139
+ method?: string | undefined;
140
+ path?: string | null | undefined;
141
+ port?: number | string | null | undefined;
142
+ protocol?: string | null | undefined;
143
+ setHost?: boolean | undefined;
144
+ signal?: AbortSignal | undefined;
145
+ socketPath?: string | undefined;
146
+ timeout?: number | undefined;
147
+ uniqueHeaders?: Array<string | string[]> | undefined;
148
+ joinDuplicateHeaders?: boolean;
149
+ }
150
+ interface ServerOptions<
151
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
152
+ Response extends typeof ServerResponse = typeof ServerResponse,
153
+ > {
154
+ /**
155
+ * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
156
+ */
157
+ IncomingMessage?: Request | undefined;
158
+ /**
159
+ * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
160
+ */
161
+ ServerResponse?: Response | undefined;
162
+ /**
163
+ * Sets the timeout value in milliseconds for receiving the entire request from the client.
164
+ * @see Server.requestTimeout for more information.
165
+ * @default 300000
166
+ * @since v18.0.0
167
+ */
168
+ requestTimeout?: number | undefined;
169
+ /**
170
+ * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates.
171
+ * @default false
172
+ * @since v18.14.0
173
+ */
174
+ joinDuplicateHeaders?: boolean;
175
+ /**
176
+ * The number of milliseconds of inactivity a server needs to wait for additional incoming data,
177
+ * after it has finished writing the last response, before a socket will be destroyed.
178
+ * @see Server.keepAliveTimeout for more information.
179
+ * @default 5000
180
+ * @since v18.0.0
181
+ */
182
+ keepAliveTimeout?: number | undefined;
183
+ /**
184
+ * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests.
185
+ * @default 30000
186
+ */
187
+ connectionsCheckingInterval?: number | undefined;
188
+ /**
189
+ * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
190
+ * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
191
+ * Default: @see stream.getDefaultHighWaterMark().
192
+ * @since v20.1.0
193
+ */
194
+ highWaterMark?: number | undefined;
195
+ /**
196
+ * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
197
+ * Using the insecure parser should be avoided.
198
+ * See --insecure-http-parser for more information.
199
+ * @default false
200
+ */
201
+ insecureHTTPParser?: boolean | undefined;
202
+ /**
203
+ * Optionally overrides the value of
204
+ * `--max-http-header-size` for requests received by this server, i.e.
205
+ * the maximum length of request headers in bytes.
206
+ * @default 16384
207
+ * @since v13.3.0
208
+ */
209
+ maxHeaderSize?: number | undefined;
210
+ /**
211
+ * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
212
+ * @default true
213
+ * @since v16.5.0
214
+ */
215
+ noDelay?: boolean | undefined;
216
+ /**
217
+ * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
218
+ * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
219
+ * @default false
220
+ * @since v16.5.0
221
+ */
222
+ keepAlive?: boolean | undefined;
223
+ /**
224
+ * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
225
+ * @default 0
226
+ * @since v16.5.0
227
+ */
228
+ keepAliveInitialDelay?: number | undefined;
229
+ /**
230
+ * A list of response headers that should be sent only once.
231
+ * If the header's value is an array, the items will be joined using `; `.
232
+ */
233
+ uniqueHeaders?: Array<string | string[]> | undefined;
234
+ }
235
+ type RequestListener<
236
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
237
+ Response extends typeof ServerResponse = typeof ServerResponse,
238
+ > = (req: InstanceType<Request>, res: InstanceType<Response> & { req: InstanceType<Request> }) => void;
239
+ /**
240
+ * @since v0.1.17
241
+ */
242
+ class Server<
243
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
244
+ Response extends typeof ServerResponse = typeof ServerResponse,
245
+ > extends NetServer {
246
+ constructor(requestListener?: RequestListener<Request, Response>);
247
+ constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
248
+ /**
249
+ * Sets the timeout value for sockets, and emits a `'timeout'` event on
250
+ * the Server object, passing the socket as an argument, if a timeout
251
+ * occurs.
252
+ *
253
+ * If there is a `'timeout'` event listener on the Server object, then it
254
+ * will be called with the timed-out socket as an argument.
255
+ *
256
+ * By default, the Server does not timeout sockets. However, if a callback
257
+ * is assigned to the Server's `'timeout'` event, timeouts must be handled
258
+ * explicitly.
259
+ * @since v0.9.12
260
+ * @param [msecs=0 (no timeout)]
261
+ */
262
+ setTimeout(msecs?: number, callback?: () => void): this;
263
+ setTimeout(callback: () => void): this;
264
+ /**
265
+ * Limits maximum incoming headers count. If set to 0, no limit will be applied.
266
+ * @since v0.7.0
267
+ */
268
+ maxHeadersCount: number | null;
269
+ /**
270
+ * The maximum number of requests socket can handle
271
+ * before closing keep alive connection.
272
+ *
273
+ * A value of `0` will disable the limit.
274
+ *
275
+ * When the limit is reached it will set the `Connection` header value to `close`,
276
+ * but will not actually close the connection, subsequent requests sent
277
+ * after the limit is reached will get `503 Service Unavailable` as a response.
278
+ * @since v16.10.0
279
+ */
280
+ maxRequestsPerSocket: number | null;
281
+ /**
282
+ * The number of milliseconds of inactivity before a socket is presumed
283
+ * to have timed out.
284
+ *
285
+ * A value of `0` will disable the timeout behavior on incoming connections.
286
+ *
287
+ * The socket timeout logic is set up on connection, so changing this
288
+ * value only affects new connections to the server, not any existing connections.
289
+ * @since v0.9.12
290
+ */
291
+ timeout: number;
292
+ /**
293
+ * Limit the amount of time the parser will wait to receive the complete HTTP
294
+ * headers.
295
+ *
296
+ * If the timeout expires, the server responds with status 408 without
297
+ * forwarding the request to the request listener and then closes the connection.
298
+ *
299
+ * It must be set to a non-zero value (e.g. 120 seconds) to protect against
300
+ * potential Denial-of-Service attacks in case the server is deployed without a
301
+ * reverse proxy in front.
302
+ * @since v11.3.0, v10.14.0
303
+ */
304
+ headersTimeout: number;
305
+ /**
306
+ * The number of milliseconds of inactivity a server needs to wait for additional
307
+ * incoming data, after it has finished writing the last response, before a socket
308
+ * will be destroyed. If the server receives new data before the keep-alive
309
+ * timeout has fired, it will reset the regular inactivity timeout, i.e.,`server.timeout`.
310
+ *
311
+ * A value of `0` will disable the keep-alive timeout behavior on incoming
312
+ * connections.
313
+ * A value of `0` makes the http server behave similarly to Node.js versions prior
314
+ * to 8.0.0, which did not have a keep-alive timeout.
315
+ *
316
+ * The socket timeout logic is set up on connection, so changing this value only
317
+ * affects new connections to the server, not any existing connections.
318
+ * @since v8.0.0
319
+ */
320
+ keepAliveTimeout: number;
321
+ /**
322
+ * Sets the timeout value in milliseconds for receiving the entire request from
323
+ * the client.
324
+ *
325
+ * If the timeout expires, the server responds with status 408 without
326
+ * forwarding the request to the request listener and then closes the connection.
327
+ *
328
+ * It must be set to a non-zero value (e.g. 120 seconds) to protect against
329
+ * potential Denial-of-Service attacks in case the server is deployed without a
330
+ * reverse proxy in front.
331
+ * @since v14.11.0
332
+ */
333
+ requestTimeout: number;
334
+ /**
335
+ * Closes all connections connected to this server.
336
+ * @since v18.2.0
337
+ */
338
+ closeAllConnections(): void;
339
+ /**
340
+ * Closes all connections connected to this server which are not sending a request
341
+ * or waiting for a response.
342
+ * @since v18.2.0
343
+ */
344
+ closeIdleConnections(): void;
345
+ addListener(event: string, listener: (...args: any[]) => void): this;
346
+ addListener(event: 'close', listener: () => void): this;
347
+ addListener(event: 'connection', listener: (socket: Socket) => void): this;
348
+ addListener(event: 'error', listener: (err: Error) => void): this;
349
+ addListener(event: 'listening', listener: () => void): this;
350
+ addListener(event: 'checkContinue', listener: RequestListener<Request, Response>): this;
351
+ addListener(event: 'checkExpectation', listener: RequestListener<Request, Response>): this;
352
+ addListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
353
+ addListener(event: 'connect', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
354
+ addListener(event: 'dropRequest', listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
355
+ addListener(event: 'request', listener: RequestListener<Request, Response>): this;
356
+ addListener(event: 'upgrade', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
357
+ emit(event: string, ...args: any[]): boolean;
358
+ emit(event: 'close'): boolean;
359
+ emit(event: 'connection', socket: Socket): boolean;
360
+ emit(event: 'error', err: Error): boolean;
361
+ emit(event: 'listening'): boolean;
362
+ emit(
363
+ event: 'checkContinue',
364
+ req: InstanceType<Request>,
365
+ res: InstanceType<Response> & { req: InstanceType<Request> },
366
+ ): boolean;
367
+ emit(
368
+ event: 'checkExpectation',
369
+ req: InstanceType<Request>,
370
+ res: InstanceType<Response> & { req: InstanceType<Request> },
371
+ ): boolean;
372
+ emit(event: 'clientError', err: Error, socket: stream.Duplex): boolean;
373
+ emit(event: 'connect', req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
374
+ emit(event: 'dropRequest', req: InstanceType<Request>, socket: stream.Duplex): boolean;
375
+ emit(
376
+ event: 'request',
377
+ req: InstanceType<Request>,
378
+ res: InstanceType<Response> & { req: InstanceType<Request> },
379
+ ): boolean;
380
+ emit(event: 'upgrade', req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
381
+ on(event: string, listener: (...args: any[]) => void): this;
382
+ on(event: 'close', listener: () => void): this;
383
+ on(event: 'connection', listener: (socket: Socket) => void): this;
384
+ on(event: 'error', listener: (err: Error) => void): this;
385
+ on(event: 'listening', listener: () => void): this;
386
+ on(event: 'checkContinue', listener: RequestListener<Request, Response>): this;
387
+ on(event: 'checkExpectation', listener: RequestListener<Request, Response>): this;
388
+ on(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
389
+ on(event: 'connect', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
390
+ on(event: 'dropRequest', listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
391
+ on(event: 'request', listener: RequestListener<Request, Response>): this;
392
+ on(event: 'upgrade', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
393
+ once(event: string, listener: (...args: any[]) => void): this;
394
+ once(event: 'close', listener: () => void): this;
395
+ once(event: 'connection', listener: (socket: Socket) => void): this;
396
+ once(event: 'error', listener: (err: Error) => void): this;
397
+ once(event: 'listening', listener: () => void): this;
398
+ once(event: 'checkContinue', listener: RequestListener<Request, Response>): this;
399
+ once(event: 'checkExpectation', listener: RequestListener<Request, Response>): this;
400
+ once(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
401
+ once(event: 'connect', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
402
+ once(event: 'dropRequest', listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
403
+ once(event: 'request', listener: RequestListener<Request, Response>): this;
404
+ once(event: 'upgrade', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
405
+ prependListener(event: string, listener: (...args: any[]) => void): this;
406
+ prependListener(event: 'close', listener: () => void): this;
407
+ prependListener(event: 'connection', listener: (socket: Socket) => void): this;
408
+ prependListener(event: 'error', listener: (err: Error) => void): this;
409
+ prependListener(event: 'listening', listener: () => void): this;
410
+ prependListener(event: 'checkContinue', listener: RequestListener<Request, Response>): this;
411
+ prependListener(event: 'checkExpectation', listener: RequestListener<Request, Response>): this;
412
+ prependListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
413
+ prependListener(event: 'connect', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
414
+ prependListener(event: 'dropRequest', listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
415
+ prependListener(event: 'request', listener: RequestListener<Request, Response>): this;
416
+ prependListener(event: 'upgrade', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
417
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
418
+ prependOnceListener(event: 'close', listener: () => void): this;
419
+ prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
420
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
421
+ prependOnceListener(event: 'listening', listener: () => void): this;
422
+ prependOnceListener(event: 'checkContinue', listener: RequestListener<Request, Response>): this;
423
+ prependOnceListener(event: 'checkExpectation', listener: RequestListener<Request, Response>): this;
424
+ prependOnceListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
425
+ prependOnceListener(event: 'connect', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
426
+ prependOnceListener(event: 'dropRequest', listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
427
+ prependOnceListener(event: 'request', listener: RequestListener<Request, Response>): this;
428
+ prependOnceListener(event: 'upgrade', listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
429
+ }
430
+ /**
431
+ * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from
432
+ * the perspective of the participants of an HTTP transaction.
433
+ * @since v0.1.17
434
+ */
435
+ class OutgoingMessage<Request extends IncomingMessage = IncomingMessage> extends stream.Writable {
436
+ readonly req: Request;
437
+ chunkedEncoding: boolean;
438
+ shouldKeepAlive: boolean;
439
+ useChunkedEncodingByDefault: boolean;
440
+ sendDate: boolean;
441
+ /**
442
+ * @deprecated Use `writableEnded` instead.
443
+ */
444
+ finished: boolean;
445
+ /**
446
+ * Read-only. `true` if the headers were sent, otherwise `false`.
447
+ * @since v0.9.3
448
+ */
449
+ readonly headersSent: boolean;
450
+ /**
451
+ * Alias of `outgoingMessage.socket`.
452
+ * @since v0.3.0
453
+ * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead.
454
+ */
455
+ readonly connection: Socket | null;
456
+ /**
457
+ * Reference to the underlying socket. Usually, users will not want to access
458
+ * this property.
459
+ *
460
+ * After calling `outgoingMessage.end()`, this property will be nulled.
461
+ * @since v0.3.0
462
+ */
463
+ readonly socket: Socket | null;
464
+ constructor();
465
+ /**
466
+ * Once a socket is associated with the message and is connected,`socket.setTimeout()` will be called with `msecs` as the first parameter.
467
+ * @since v0.9.12
468
+ * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
469
+ */
470
+ setTimeout(msecs: number, callback?: () => void): this;
471
+ /**
472
+ * Sets a single header value. If the header already exists in the to-be-sent
473
+ * headers, its value will be replaced. Use an array of strings to send multiple
474
+ * headers with the same name.
475
+ * @since v0.4.0
476
+ * @param name Header name
477
+ * @param value Header value
478
+ */
479
+ setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
480
+ /**
481
+ * Append a single header value for the header object.
482
+ *
483
+ * If the value is an array, this is equivalent of calling this method multiple
484
+ * times.
485
+ *
486
+ * If there were no previous value for the header, this is equivalent of calling `outgoingMessage.setHeader(name, value)`.
487
+ *
488
+ * Depending of the value of `options.uniqueHeaders` when the client request or the
489
+ * server were created, this will end up in the header being sent multiple times or
490
+ * a single time with values joined using `; `.
491
+ * @since v18.3.0, v16.17.0
492
+ * @param name Header name
493
+ * @param value Header value
494
+ */
495
+ appendHeader(name: string, value: string | ReadonlyArray<string>): this;
496
+ /**
497
+ * Gets the value of the HTTP header with the given name. If that header is not
498
+ * set, the returned value will be `undefined`.
499
+ * @since v0.4.0
500
+ * @param name Name of header
501
+ */
502
+ getHeader(name: string): number | string | string[] | undefined;
503
+ /**
504
+ * Returns a shallow copy of the current outgoing headers. Since a shallow
505
+ * copy is used, array values may be mutated without additional calls to
506
+ * various header-related HTTP module methods. The keys of the returned
507
+ * object are the header names and the values are the respective header
508
+ * values. All header names are lowercase.
509
+ *
510
+ * The object returned by the `outgoingMessage.getHeaders()` method does
511
+ * not prototypically inherit from the JavaScript `Object`. This means that
512
+ * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`,
513
+ * and others are not defined and will not work.
514
+ *
515
+ * ```js
516
+ * outgoingMessage.setHeader('Foo', 'bar');
517
+ * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
518
+ *
519
+ * const headers = outgoingMessage.getHeaders();
520
+ * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
521
+ * ```
522
+ * @since v7.7.0
523
+ */
524
+ getHeaders(): OutgoingHttpHeaders;
525
+ /**
526
+ * Returns an array containing the unique names of the current outgoing headers.
527
+ * All names are lowercase.
528
+ * @since v7.7.0
529
+ */
530
+ getHeaderNames(): string[];
531
+ /**
532
+ * Returns `true` if the header identified by `name` is currently set in the
533
+ * outgoing headers. The header name is case-insensitive.
534
+ *
535
+ * ```js
536
+ * const hasContentType = outgoingMessage.hasHeader('content-type');
537
+ * ```
538
+ * @since v7.7.0
539
+ */
540
+ hasHeader(name: string): boolean;
541
+ /**
542
+ * Removes a header that is queued for implicit sending.
543
+ *
544
+ * ```js
545
+ * outgoingMessage.removeHeader('Content-Encoding');
546
+ * ```
547
+ * @since v0.4.0
548
+ * @param name Header name
549
+ */
550
+ removeHeader(name: string): void;
551
+ /**
552
+ * Adds HTTP trailers (headers but at the end of the message) to the message.
553
+ *
554
+ * Trailers will **only** be emitted if the message is chunked encoded. If not,
555
+ * the trailers will be silently discarded.
556
+ *
557
+ * HTTP requires the `Trailer` header to be sent to emit trailers,
558
+ * with a list of header field names in its value, e.g.
559
+ *
560
+ * ```js
561
+ * message.writeHead(200, { 'Content-Type': 'text/plain',
562
+ * 'Trailer': 'Content-MD5' });
563
+ * message.write(fileData);
564
+ * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' });
565
+ * message.end();
566
+ * ```
567
+ *
568
+ * Attempting to set a header field name or value that contains invalid characters
569
+ * will result in a `TypeError` being thrown.
570
+ * @since v0.3.0
571
+ */
572
+ addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
573
+ /**
574
+ * Flushes the message headers.
575
+ *
576
+ * For efficiency reason, Node.js normally buffers the message headers
577
+ * until `outgoingMessage.end()` is called or the first chunk of message data
578
+ * is written. It then tries to pack the headers and data into a single TCP
579
+ * packet.
580
+ *
581
+ * It is usually desired (it saves a TCP round-trip), but not when the first
582
+ * data is not sent until possibly much later. `outgoingMessage.flushHeaders()`bypasses the optimization and kickstarts the message.
583
+ * @since v1.6.0
584
+ */
585
+ flushHeaders(): void;
586
+ }
587
+ /**
588
+ * This object is created internally by an HTTP server, not by the user. It is
589
+ * passed as the second parameter to the `'request'` event.
590
+ * @since v0.1.17
591
+ */
592
+ class ServerResponse<Request extends IncomingMessage = IncomingMessage> extends OutgoingMessage<Request> {
593
+ /**
594
+ * When using implicit headers (not calling `response.writeHead()` explicitly),
595
+ * this property controls the status code that will be sent to the client when
596
+ * the headers get flushed.
597
+ *
598
+ * ```js
599
+ * response.statusCode = 404;
600
+ * ```
601
+ *
602
+ * After response header was sent to the client, this property indicates the
603
+ * status code which was sent out.
604
+ * @since v0.4.0
605
+ */
606
+ statusCode: number;
607
+ /**
608
+ * When using implicit headers (not calling `response.writeHead()` explicitly),
609
+ * this property controls the status message that will be sent to the client when
610
+ * the headers get flushed. If this is left as `undefined` then the standard
611
+ * message for the status code will be used.
612
+ *
613
+ * ```js
614
+ * response.statusMessage = 'Not found';
615
+ * ```
616
+ *
617
+ * After response header was sent to the client, this property indicates the
618
+ * status message which was sent out.
619
+ * @since v0.11.8
620
+ */
621
+ statusMessage: string;
622
+ /**
623
+ * If set to `true`, Node.js will check whether the `Content-Length`header value and the size of the body, in bytes, are equal.
624
+ * Mismatching the `Content-Length` header value will result
625
+ * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
626
+ * @since v18.10.0, v16.18.0
627
+ */
628
+ strictContentLength: boolean;
629
+ constructor(req: Request);
630
+ assignSocket(socket: Socket): void;
631
+ detachSocket(socket: Socket): void;
632
+ /**
633
+ * Sends an HTTP/1.1 100 Continue message to the client, indicating that
634
+ * the request body should be sent. See the `'checkContinue'` event on`Server`.
635
+ * @since v0.3.0
636
+ */
637
+ writeContinue(callback?: () => void): void;
638
+ /**
639
+ * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header,
640
+ * indicating that the user agent can preload/preconnect the linked resources.
641
+ * The `hints` is an object containing the values of headers to be sent with
642
+ * early hints message. The optional `callback` argument will be called when
643
+ * the response message has been written.
644
+ *
645
+ * **Example**
646
+ *
647
+ * ```js
648
+ * const earlyHintsLink = '</styles.css>; rel=preload; as=style';
649
+ * response.writeEarlyHints({
650
+ * 'link': earlyHintsLink,
651
+ * });
652
+ *
653
+ * const earlyHintsLinks = [
654
+ * '</styles.css>; rel=preload; as=style',
655
+ * '</scripts.js>; rel=preload; as=script',
656
+ * ];
657
+ * response.writeEarlyHints({
658
+ * 'link': earlyHintsLinks,
659
+ * 'x-trace-id': 'id for diagnostics',
660
+ * });
661
+ *
662
+ * const earlyHintsCallback = () => console.log('early hints message sent');
663
+ * response.writeEarlyHints({
664
+ * 'link': earlyHintsLinks,
665
+ * }, earlyHintsCallback);
666
+ * ```
667
+ * @since v18.11.0
668
+ * @param hints An object containing the values of headers
669
+ * @param callback Will be called when the response message has been written
670
+ */
671
+ writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
672
+ /**
673
+ * Sends a response header to the request. The status code is a 3-digit HTTP
674
+ * status code, like `404`. The last argument, `headers`, are the response headers.
675
+ * Optionally one can give a human-readable `statusMessage` as the second
676
+ * argument.
677
+ *
678
+ * `headers` may be an `Array` where the keys and values are in the same list.
679
+ * It is _not_ a list of tuples. So, the even-numbered offsets are key values,
680
+ * and the odd-numbered offsets are the associated values. The array is in the same
681
+ * format as `request.rawHeaders`.
682
+ *
683
+ * Returns a reference to the `ServerResponse`, so that calls can be chained.
684
+ *
685
+ * ```js
686
+ * const body = 'hello world';
687
+ * response
688
+ * .writeHead(200, {
689
+ * 'Content-Length': Buffer.byteLength(body),
690
+ * 'Content-Type': 'text/plain',
691
+ * })
692
+ * .end(body);
693
+ * ```
694
+ *
695
+ * This method must only be called once on a message and it must
696
+ * be called before `response.end()` is called.
697
+ *
698
+ * If `response.write()` or `response.end()` are called before calling
699
+ * this, the implicit/mutable headers will be calculated and call this function.
700
+ *
701
+ * When headers have been set with `response.setHeader()`, they will be merged
702
+ * with any headers passed to `response.writeHead()`, with the headers passed
703
+ * to `response.writeHead()` given precedence.
704
+ *
705
+ * If this method is called and `response.setHeader()` has not been called,
706
+ * it will directly write the supplied header values onto the network channel
707
+ * without caching internally, and the `response.getHeader()` on the header
708
+ * will not yield the expected result. If progressive population of headers is
709
+ * desired with potential future retrieval and modification, use `response.setHeader()` instead.
710
+ *
711
+ * ```js
712
+ * // Returns content-type = text/plain
713
+ * const server = http.createServer((req, res) => {
714
+ * res.setHeader('Content-Type', 'text/html');
715
+ * res.setHeader('X-Foo', 'bar');
716
+ * res.writeHead(200, { 'Content-Type': 'text/plain' });
717
+ * res.end('ok');
718
+ * });
719
+ * ```
720
+ *
721
+ * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js
722
+ * will check whether `Content-Length` and the length of the body which has
723
+ * been transmitted are equal or not.
724
+ *
725
+ * Attempting to set a header field name or value that contains invalid characters
726
+ * will result in a \[`Error`\]\[\] being thrown.
727
+ * @since v0.1.30
728
+ */
729
+ writeHead(
730
+ statusCode: number,
731
+ statusMessage?: string,
732
+ headers?: OutgoingHttpHeaders | OutgoingHttpHeader[],
733
+ ): this;
734
+ writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
735
+ /**
736
+ * Sends a HTTP/1.1 102 Processing message to the client, indicating that
737
+ * the request body should be sent.
738
+ * @since v10.0.0
739
+ */
740
+ writeProcessing(): void;
741
+ }
742
+ interface InformationEvent {
743
+ statusCode: number;
744
+ statusMessage: string;
745
+ httpVersion: string;
746
+ httpVersionMajor: number;
747
+ httpVersionMinor: number;
748
+ headers: IncomingHttpHeaders;
749
+ rawHeaders: string[];
750
+ }
751
+ /**
752
+ * This object is created internally and returned from {@link request}. It
753
+ * represents an _in-progress_ request whose header has already been queued. The
754
+ * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will
755
+ * be sent along with the first data chunk or when calling `request.end()`.
756
+ *
757
+ * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response
758
+ * headers have been received. The `'response'` event is executed with one
759
+ * argument which is an instance of {@link IncomingMessage}.
760
+ *
761
+ * During the `'response'` event, one can add listeners to the
762
+ * response object; particularly to listen for the `'data'` event.
763
+ *
764
+ * If no `'response'` handler is added, then the response will be
765
+ * entirely discarded. However, if a `'response'` event handler is added,
766
+ * then the data from the response object **must** be consumed, either by
767
+ * calling `response.read()` whenever there is a `'readable'` event, or
768
+ * by adding a `'data'` handler, or by calling the `.resume()` method.
769
+ * Until the data is consumed, the `'end'` event will not fire. Also, until
770
+ * the data is read it will consume memory that can eventually lead to a
771
+ * 'process out of memory' error.
772
+ *
773
+ * For backward compatibility, `res` will only emit `'error'` if there is an`'error'` listener registered.
774
+ *
775
+ * Set `Content-Length` header to limit the response body size.
776
+ * If `response.strictContentLength` is set to `true`, mismatching the`Content-Length` header value will result in an `Error` being thrown,
777
+ * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
778
+ *
779
+ * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes.
780
+ * @since v0.1.17
781
+ */
782
+ class ClientRequest extends OutgoingMessage {
783
+ /**
784
+ * The `request.aborted` property will be `true` if the request has
785
+ * been aborted.
786
+ * @since v0.11.14
787
+ * @deprecated Since v17.0.0,v16.12.0 - Check `destroyed` instead.
788
+ */
789
+ aborted: boolean;
790
+ /**
791
+ * The request host.
792
+ * @since v14.5.0, v12.19.0
793
+ */
794
+ host: string;
795
+ /**
796
+ * The request protocol.
797
+ * @since v14.5.0, v12.19.0
798
+ */
799
+ protocol: string;
800
+ /**
801
+ * When sending request through a keep-alive enabled agent, the underlying socket
802
+ * might be reused. But if server closes connection at unfortunate time, client
803
+ * may run into a 'ECONNRESET' error.
804
+ *
805
+ * ```js
806
+ * const http = require('node:http');
807
+ *
808
+ * // Server has a 5 seconds keep-alive timeout by default
809
+ * http
810
+ * .createServer((req, res) => {
811
+ * res.write('hello\n');
812
+ * res.end();
813
+ * })
814
+ * .listen(3000);
815
+ *
816
+ * setInterval(() => {
817
+ * // Adapting a keep-alive agent
818
+ * http.get('http://localhost:3000', { agent }, (res) => {
819
+ * res.on('data', (data) => {
820
+ * // Do nothing
821
+ * });
822
+ * });
823
+ * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout
824
+ * ```
825
+ *
826
+ * By marking a request whether it reused socket or not, we can do
827
+ * automatic error retry base on it.
828
+ *
829
+ * ```js
830
+ * const http = require('node:http');
831
+ * const agent = new http.Agent({ keepAlive: true });
832
+ *
833
+ * function retriableRequest() {
834
+ * const req = http
835
+ * .get('http://localhost:3000', { agent }, (res) => {
836
+ * // ...
837
+ * })
838
+ * .on('error', (err) => {
839
+ * // Check if retry is needed
840
+ * if (req.reusedSocket &#x26;&#x26; err.code === 'ECONNRESET') {
841
+ * retriableRequest();
842
+ * }
843
+ * });
844
+ * }
845
+ *
846
+ * retriableRequest();
847
+ * ```
848
+ * @since v13.0.0, v12.16.0
849
+ */
850
+ reusedSocket: boolean;
851
+ /**
852
+ * Limits maximum response headers count. If set to 0, no limit will be applied.
853
+ */
854
+ maxHeadersCount: number;
855
+ constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
856
+ /**
857
+ * The request method.
858
+ * @since v0.1.97
859
+ */
860
+ method: string;
861
+ /**
862
+ * The request path.
863
+ * @since v0.4.0
864
+ */
865
+ path: string;
866
+ /**
867
+ * Marks the request as aborting. Calling this will cause remaining data
868
+ * in the response to be dropped and the socket to be destroyed.
869
+ * @since v0.3.8
870
+ * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead.
871
+ */
872
+ abort(): void;
873
+ onSocket(socket: Socket): void;
874
+ /**
875
+ * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called.
876
+ * @since v0.5.9
877
+ * @param timeout Milliseconds before a request times out.
878
+ * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event.
879
+ */
880
+ setTimeout(timeout: number, callback?: () => void): this;
881
+ /**
882
+ * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called.
883
+ * @since v0.5.9
884
+ */
885
+ setNoDelay(noDelay?: boolean): void;
886
+ /**
887
+ * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called.
888
+ * @since v0.5.9
889
+ */
890
+ setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
891
+ /**
892
+ * Returns an array containing the unique names of the current outgoing raw
893
+ * headers. Header names are returned with their exact casing being set.
894
+ *
895
+ * ```js
896
+ * request.setHeader('Foo', 'bar');
897
+ * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
898
+ *
899
+ * const headerNames = request.getRawHeaderNames();
900
+ * // headerNames === ['Foo', 'Set-Cookie']
901
+ * ```
902
+ * @since v15.13.0, v14.17.0
903
+ */
904
+ getRawHeaderNames(): string[];
905
+ /**
906
+ * @deprecated
907
+ */
908
+ addListener(event: 'abort', listener: () => void): this;
909
+ addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
910
+ addListener(event: 'continue', listener: () => void): this;
911
+ addListener(event: 'information', listener: (info: InformationEvent) => void): this;
912
+ addListener(event: 'response', listener: (response: IncomingMessage) => void): this;
913
+ addListener(event: 'socket', listener: (socket: Socket) => void): this;
914
+ addListener(event: 'timeout', listener: () => void): this;
915
+ addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
916
+ addListener(event: 'close', listener: () => void): this;
917
+ addListener(event: 'drain', listener: () => void): this;
918
+ addListener(event: 'error', listener: (err: Error) => void): this;
919
+ addListener(event: 'finish', listener: () => void): this;
920
+ addListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
921
+ addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
922
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
923
+ /**
924
+ * @deprecated
925
+ */
926
+ on(event: 'abort', listener: () => void): this;
927
+ on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
928
+ on(event: 'continue', listener: () => void): this;
929
+ on(event: 'information', listener: (info: InformationEvent) => void): this;
930
+ on(event: 'response', listener: (response: IncomingMessage) => void): this;
931
+ on(event: 'socket', listener: (socket: Socket) => void): this;
932
+ on(event: 'timeout', listener: () => void): this;
933
+ on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
934
+ on(event: 'close', listener: () => void): this;
935
+ on(event: 'drain', listener: () => void): this;
936
+ on(event: 'error', listener: (err: Error) => void): this;
937
+ on(event: 'finish', listener: () => void): this;
938
+ on(event: 'pipe', listener: (src: stream.Readable) => void): this;
939
+ on(event: 'unpipe', listener: (src: stream.Readable) => void): this;
940
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
941
+ /**
942
+ * @deprecated
943
+ */
944
+ once(event: 'abort', listener: () => void): this;
945
+ once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
946
+ once(event: 'continue', listener: () => void): this;
947
+ once(event: 'information', listener: (info: InformationEvent) => void): this;
948
+ once(event: 'response', listener: (response: IncomingMessage) => void): this;
949
+ once(event: 'socket', listener: (socket: Socket) => void): this;
950
+ once(event: 'timeout', listener: () => void): this;
951
+ once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
952
+ once(event: 'close', listener: () => void): this;
953
+ once(event: 'drain', listener: () => void): this;
954
+ once(event: 'error', listener: (err: Error) => void): this;
955
+ once(event: 'finish', listener: () => void): this;
956
+ once(event: 'pipe', listener: (src: stream.Readable) => void): this;
957
+ once(event: 'unpipe', listener: (src: stream.Readable) => void): this;
958
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
959
+ /**
960
+ * @deprecated
961
+ */
962
+ prependListener(event: 'abort', listener: () => void): this;
963
+ prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
964
+ prependListener(event: 'continue', listener: () => void): this;
965
+ prependListener(event: 'information', listener: (info: InformationEvent) => void): this;
966
+ prependListener(event: 'response', listener: (response: IncomingMessage) => void): this;
967
+ prependListener(event: 'socket', listener: (socket: Socket) => void): this;
968
+ prependListener(event: 'timeout', listener: () => void): this;
969
+ prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
970
+ prependListener(event: 'close', listener: () => void): this;
971
+ prependListener(event: 'drain', listener: () => void): this;
972
+ prependListener(event: 'error', listener: (err: Error) => void): this;
973
+ prependListener(event: 'finish', listener: () => void): this;
974
+ prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
975
+ prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
976
+ prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
977
+ /**
978
+ * @deprecated
979
+ */
980
+ prependOnceListener(event: 'abort', listener: () => void): this;
981
+ prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
982
+ prependOnceListener(event: 'continue', listener: () => void): this;
983
+ prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this;
984
+ prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this;
985
+ prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this;
986
+ prependOnceListener(event: 'timeout', listener: () => void): this;
987
+ prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
988
+ prependOnceListener(event: 'close', listener: () => void): this;
989
+ prependOnceListener(event: 'drain', listener: () => void): this;
990
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
991
+ prependOnceListener(event: 'finish', listener: () => void): this;
992
+ prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
993
+ prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
994
+ prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
995
+ }
996
+ /**
997
+ * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to
998
+ * access response
999
+ * status, headers, and data.
1000
+ *
1001
+ * Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to
1002
+ * parse and emit the incoming HTTP headers and payload, as the underlying socket
1003
+ * may be reused multiple times in case of keep-alive.
1004
+ * @since v0.1.17
1005
+ */
1006
+ class IncomingMessage extends stream.Readable {
1007
+ constructor(socket: Socket);
1008
+ /**
1009
+ * The `message.aborted` property will be `true` if the request has
1010
+ * been aborted.
1011
+ * @since v10.1.0
1012
+ * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from <a href="stream.html#class-streamreadable" class="type">stream.Readable</a>.
1013
+ */
1014
+ aborted: boolean;
1015
+ /**
1016
+ * In case of server request, the HTTP version sent by the client. In the case of
1017
+ * client response, the HTTP version of the connected-to server.
1018
+ * Probably either `'1.1'` or `'1.0'`.
1019
+ *
1020
+ * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second.
1021
+ * @since v0.1.1
1022
+ */
1023
+ httpVersion: string;
1024
+ httpVersionMajor: number;
1025
+ httpVersionMinor: number;
1026
+ /**
1027
+ * The `message.complete` property will be `true` if a complete HTTP message has
1028
+ * been received and successfully parsed.
1029
+ *
1030
+ * This property is particularly useful as a means of determining if a client or
1031
+ * server fully transmitted a message before a connection was terminated:
1032
+ *
1033
+ * ```js
1034
+ * const req = http.request({
1035
+ * host: '127.0.0.1',
1036
+ * port: 8080,
1037
+ * method: 'POST',
1038
+ * }, (res) => {
1039
+ * res.resume();
1040
+ * res.on('end', () => {
1041
+ * if (!res.complete)
1042
+ * console.error(
1043
+ * 'The connection was terminated while the message was still being sent');
1044
+ * });
1045
+ * });
1046
+ * ```
1047
+ * @since v0.3.0
1048
+ */
1049
+ complete: boolean;
1050
+ /**
1051
+ * Alias for `message.socket`.
1052
+ * @since v0.1.90
1053
+ * @deprecated Since v16.0.0 - Use `socket`.
1054
+ */
1055
+ connection: Socket;
1056
+ /**
1057
+ * The `net.Socket` object associated with the connection.
1058
+ *
1059
+ * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
1060
+ * client's authentication details.
1061
+ *
1062
+ * This property is guaranteed to be an instance of the `net.Socket` class,
1063
+ * a subclass of `stream.Duplex`, unless the user specified a socket
1064
+ * type other than `net.Socket` or internally nulled.
1065
+ * @since v0.3.0
1066
+ */
1067
+ socket: Socket;
1068
+ /**
1069
+ * The request/response headers object.
1070
+ *
1071
+ * Key-value pairs of header names and values. Header names are lower-cased.
1072
+ *
1073
+ * ```js
1074
+ * // Prints something like:
1075
+ * //
1076
+ * // { 'user-agent': 'curl/7.22.0',
1077
+ * // host: '127.0.0.1:8000',
1078
+ * // accept: '*' }
1079
+ * console.log(request.headers);
1080
+ * ```
1081
+ *
1082
+ * Duplicates in raw headers are handled in the following ways, depending on the
1083
+ * header name:
1084
+ *
1085
+ * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`,
1086
+ * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded.
1087
+ * To allow duplicate values of the headers listed above to be joined,
1088
+ * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more
1089
+ * information.
1090
+ * * `set-cookie` is always an array. Duplicates are added to the array.
1091
+ * * For duplicate `cookie` headers, the values are joined together with `; `.
1092
+ * * For all other headers, the values are joined together with `, `.
1093
+ * @since v0.1.5
1094
+ */
1095
+ headers: IncomingHttpHeaders;
1096
+ /**
1097
+ * Similar to `message.headers`, but there is no join logic and the values are
1098
+ * always arrays of strings, even for headers received just once.
1099
+ *
1100
+ * ```js
1101
+ * // Prints something like:
1102
+ * //
1103
+ * // { 'user-agent': ['curl/7.22.0'],
1104
+ * // host: ['127.0.0.1:8000'],
1105
+ * // accept: ['*'] }
1106
+ * console.log(request.headersDistinct);
1107
+ * ```
1108
+ * @since v18.3.0, v16.17.0
1109
+ */
1110
+ headersDistinct: NodeJS.Dict<string[]>;
1111
+ /**
1112
+ * The raw request/response headers list exactly as they were received.
1113
+ *
1114
+ * The keys and values are in the same list. It is _not_ a
1115
+ * list of tuples. So, the even-numbered offsets are key values, and the
1116
+ * odd-numbered offsets are the associated values.
1117
+ *
1118
+ * Header names are not lowercased, and duplicates are not merged.
1119
+ *
1120
+ * ```js
1121
+ * // Prints something like:
1122
+ * //
1123
+ * // [ 'user-agent',
1124
+ * // 'this is invalid because there can be only one',
1125
+ * // 'User-Agent',
1126
+ * // 'curl/7.22.0',
1127
+ * // 'Host',
1128
+ * // '127.0.0.1:8000',
1129
+ * // 'ACCEPT',
1130
+ * // '*' ]
1131
+ * console.log(request.rawHeaders);
1132
+ * ```
1133
+ * @since v0.11.6
1134
+ */
1135
+ rawHeaders: string[];
1136
+ /**
1137
+ * The request/response trailers object. Only populated at the `'end'` event.
1138
+ * @since v0.3.0
1139
+ */
1140
+ trailers: NodeJS.Dict<string>;
1141
+ /**
1142
+ * Similar to `message.trailers`, but there is no join logic and the values are
1143
+ * always arrays of strings, even for headers received just once.
1144
+ * Only populated at the `'end'` event.
1145
+ * @since v18.3.0, v16.17.0
1146
+ */
1147
+ trailersDistinct: NodeJS.Dict<string[]>;
1148
+ /**
1149
+ * The raw request/response trailer keys and values exactly as they were
1150
+ * received. Only populated at the `'end'` event.
1151
+ * @since v0.11.6
1152
+ */
1153
+ rawTrailers: string[];
1154
+ /**
1155
+ * Calls `message.socket.setTimeout(msecs, callback)`.
1156
+ * @since v0.5.9
1157
+ */
1158
+ setTimeout(msecs: number, callback?: () => void): this;
1159
+ /**
1160
+ * **Only valid for request obtained from {@link Server}.**
1161
+ *
1162
+ * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`.
1163
+ * @since v0.1.1
1164
+ */
1165
+ method?: string | undefined;
1166
+ /**
1167
+ * **Only valid for request obtained from {@link Server}.**
1168
+ *
1169
+ * Request URL string. This contains only the URL that is present in the actual
1170
+ * HTTP request. Take the following request:
1171
+ *
1172
+ * ```http
1173
+ * GET /status?name=ryan HTTP/1.1
1174
+ * Accept: text/plain
1175
+ * ```
1176
+ *
1177
+ * To parse the URL into its parts:
1178
+ *
1179
+ * ```js
1180
+ * new URL(request.url, `http://${request.headers.host}`);
1181
+ * ```
1182
+ *
1183
+ * When `request.url` is `'/status?name=ryan'` and `request.headers.host` is`'localhost:3000'`:
1184
+ *
1185
+ * ```console
1186
+ * $ node
1187
+ * > new URL(request.url, `http://${request.headers.host}`)
1188
+ * URL {
1189
+ * href: 'http://localhost:3000/status?name=ryan',
1190
+ * origin: 'http://localhost:3000',
1191
+ * protocol: 'http:',
1192
+ * username: '',
1193
+ * password: '',
1194
+ * host: 'localhost:3000',
1195
+ * hostname: 'localhost',
1196
+ * port: '3000',
1197
+ * pathname: '/status',
1198
+ * search: '?name=ryan',
1199
+ * searchParams: URLSearchParams { 'name' => 'ryan' },
1200
+ * hash: ''
1201
+ * }
1202
+ * ```
1203
+ * @since v0.1.90
1204
+ */
1205
+ url?: string | undefined;
1206
+ /**
1207
+ * **Only valid for response obtained from {@link ClientRequest}.**
1208
+ *
1209
+ * The 3-digit HTTP response status code. E.G. `404`.
1210
+ * @since v0.1.1
1211
+ */
1212
+ statusCode?: number | undefined;
1213
+ /**
1214
+ * **Only valid for response obtained from {@link ClientRequest}.**
1215
+ *
1216
+ * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`.
1217
+ * @since v0.11.10
1218
+ */
1219
+ statusMessage?: string | undefined;
1220
+ /**
1221
+ * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`is provided, an `'error'` event is emitted on the socket and `error` is passed
1222
+ * as an argument to any listeners on the event.
1223
+ * @since v0.3.0
1224
+ */
1225
+ destroy(error?: Error): this;
1226
+ }
1227
+ interface AgentOptions extends Partial<TcpSocketConnectOpts> {
1228
+ /**
1229
+ * Keep sockets around in a pool to be used by other requests in the future. Default = false
1230
+ */
1231
+ keepAlive?: boolean | undefined;
1232
+ /**
1233
+ * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
1234
+ * Only relevant if keepAlive is set to true.
1235
+ */
1236
+ keepAliveMsecs?: number | undefined;
1237
+ /**
1238
+ * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
1239
+ */
1240
+ maxSockets?: number | undefined;
1241
+ /**
1242
+ * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
1243
+ */
1244
+ maxTotalSockets?: number | undefined;
1245
+ /**
1246
+ * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
1247
+ */
1248
+ maxFreeSockets?: number | undefined;
1249
+ /**
1250
+ * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
1251
+ */
1252
+ timeout?: number | undefined;
1253
+ /**
1254
+ * Scheduling strategy to apply when picking the next free socket to use.
1255
+ * @default `lifo`
1256
+ */
1257
+ scheduling?: 'fifo' | 'lifo' | undefined;
1258
+ }
1259
+ /**
1260
+ * An `Agent` is responsible for managing connection persistence
1261
+ * and reuse for HTTP clients. It maintains a queue of pending requests
1262
+ * for a given host and port, reusing a single socket connection for each
1263
+ * until the queue is empty, at which time the socket is either destroyed
1264
+ * or put into a pool where it is kept to be used again for requests to the
1265
+ * same host and port. Whether it is destroyed or pooled depends on the`keepAlive` `option`.
1266
+ *
1267
+ * Pooled connections have TCP Keep-Alive enabled for them, but servers may
1268
+ * still close idle connections, in which case they will be removed from the
1269
+ * pool and a new connection will be made when a new HTTP request is made for
1270
+ * that host and port. Servers may also refuse to allow multiple requests
1271
+ * over the same connection, in which case the connection will have to be
1272
+ * remade for every request and cannot be pooled. The `Agent` will still make
1273
+ * the requests to that server, but each one will occur over a new connection.
1274
+ *
1275
+ * When a connection is closed by the client or the server, it is removed
1276
+ * from the pool. Any unused sockets in the pool will be unrefed so as not
1277
+ * to keep the Node.js process running when there are no outstanding requests.
1278
+ * (see `socket.unref()`).
1279
+ *
1280
+ * It is good practice, to `destroy()` an `Agent` instance when it is no
1281
+ * longer in use, because unused sockets consume OS resources.
1282
+ *
1283
+ * Sockets are removed from an agent when the socket emits either
1284
+ * a `'close'` event or an `'agentRemove'` event. When intending to keep one
1285
+ * HTTP request open for a long time without keeping it in the agent, something
1286
+ * like the following may be done:
1287
+ *
1288
+ * ```js
1289
+ * http.get(options, (res) => {
1290
+ * // Do stuff
1291
+ * }).on('socket', (socket) => {
1292
+ * socket.emit('agentRemove');
1293
+ * });
1294
+ * ```
1295
+ *
1296
+ * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options
1297
+ * will be used
1298
+ * for the client connection.
1299
+ *
1300
+ * `agent:false`:
1301
+ *
1302
+ * ```js
1303
+ * http.get({
1304
+ * hostname: 'localhost',
1305
+ * port: 80,
1306
+ * path: '/',
1307
+ * agent: false, // Create a new agent just for this one request
1308
+ * }, (res) => {
1309
+ * // Do stuff with response
1310
+ * });
1311
+ * ```
1312
+ * @since v0.3.4
1313
+ */
1314
+ class Agent extends EventEmitter {
1315
+ /**
1316
+ * By default set to 256. For agents with `keepAlive` enabled, this
1317
+ * sets the maximum number of sockets that will be left open in the free
1318
+ * state.
1319
+ * @since v0.11.7
1320
+ */
1321
+ maxFreeSockets: number;
1322
+ /**
1323
+ * By default set to `Infinity`. Determines how many concurrent sockets the agent
1324
+ * can have open per origin. Origin is the returned value of `agent.getName()`.
1325
+ * @since v0.3.6
1326
+ */
1327
+ maxSockets: number;
1328
+ /**
1329
+ * By default set to `Infinity`. Determines how many concurrent sockets the agent
1330
+ * can have open. Unlike `maxSockets`, this parameter applies across all origins.
1331
+ * @since v14.5.0, v12.19.0
1332
+ */
1333
+ maxTotalSockets: number;
1334
+ /**
1335
+ * An object which contains arrays of sockets currently awaiting use by
1336
+ * the agent when `keepAlive` is enabled. Do not modify.
1337
+ *
1338
+ * Sockets in the `freeSockets` list will be automatically destroyed and
1339
+ * removed from the array on `'timeout'`.
1340
+ * @since v0.11.4
1341
+ */
1342
+ readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
1343
+ /**
1344
+ * An object which contains arrays of sockets currently in use by the
1345
+ * agent. Do not modify.
1346
+ * @since v0.3.6
1347
+ */
1348
+ readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
1349
+ /**
1350
+ * An object which contains queues of requests that have not yet been assigned to
1351
+ * sockets. Do not modify.
1352
+ * @since v0.5.9
1353
+ */
1354
+ readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1355
+ constructor(opts?: AgentOptions);
1356
+ /**
1357
+ * Destroy any sockets that are currently in use by the agent.
1358
+ *
1359
+ * It is usually not necessary to do this. However, if using an
1360
+ * agent with `keepAlive` enabled, then it is best to explicitly shut down
1361
+ * the agent when it is no longer needed. Otherwise,
1362
+ * sockets might stay open for quite a long time before the server
1363
+ * terminates them.
1364
+ * @since v0.11.4
1365
+ */
1366
+ destroy(): void;
1367
+ }
1368
+ const METHODS: string[];
1369
+ const STATUS_CODES: {
1370
+ [errorCode: number]: string | undefined;
1371
+ [errorCode: string]: string | undefined;
1372
+ };
1373
+ /**
1374
+ * Returns a new instance of {@link Server}.
1375
+ *
1376
+ * The `requestListener` is a function which is automatically
1377
+ * added to the `'request'` event.
1378
+ * @since v0.1.13
1379
+ */
1380
+ function createServer<
1381
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
1382
+ Response extends typeof ServerResponse = typeof ServerResponse,
1383
+ >(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
1384
+ function createServer<
1385
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
1386
+ Response extends typeof ServerResponse = typeof ServerResponse,
1387
+ >(
1388
+ options: ServerOptions<Request, Response>,
1389
+ requestListener?: RequestListener<Request, Response>,
1390
+ ): Server<Request, Response>;
1391
+ // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
1392
+ // create interface RequestOptions would make the naming more clear to developers
1393
+ interface RequestOptions extends ClientRequestArgs {}
1394
+ /**
1395
+ * `options` in `socket.connect()` are also supported.
1396
+ *
1397
+ * Node.js maintains several connections per server to make HTTP requests.
1398
+ * This function allows one to transparently issue requests.
1399
+ *
1400
+ * `url` can be a string or a `URL` object. If `url` is a
1401
+ * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
1402
+ *
1403
+ * If both `url` and `options` are specified, the objects are merged, with the`options` properties taking precedence.
1404
+ *
1405
+ * The optional `callback` parameter will be added as a one-time listener for
1406
+ * the `'response'` event.
1407
+ *
1408
+ * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to
1409
+ * upload a file with a POST request, then write to the `ClientRequest` object.
1410
+ *
1411
+ * ```js
1412
+ * const http = require('node:http');
1413
+ *
1414
+ * const postData = JSON.stringify({
1415
+ * 'msg': 'Hello World!',
1416
+ * });
1417
+ *
1418
+ * const options = {
1419
+ * hostname: 'www.google.com',
1420
+ * port: 80,
1421
+ * path: '/upload',
1422
+ * method: 'POST',
1423
+ * headers: {
1424
+ * 'Content-Type': 'application/json',
1425
+ * 'Content-Length': Buffer.byteLength(postData),
1426
+ * },
1427
+ * };
1428
+ *
1429
+ * const req = http.request(options, (res) => {
1430
+ * console.log(`STATUS: ${res.statusCode}`);
1431
+ * console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
1432
+ * res.setEncoding('utf8');
1433
+ * res.on('data', (chunk) => {
1434
+ * console.log(`BODY: ${chunk}`);
1435
+ * });
1436
+ * res.on('end', () => {
1437
+ * console.log('No more data in response.');
1438
+ * });
1439
+ * });
1440
+ *
1441
+ * req.on('error', (e) => {
1442
+ * console.error(`problem with request: ${e.message}`);
1443
+ * });
1444
+ *
1445
+ * // Write data to request body
1446
+ * req.write(postData);
1447
+ * req.end();
1448
+ * ```
1449
+ *
1450
+ * In the example `req.end()` was called. With `http.request()` one
1451
+ * must always call `req.end()` to signify the end of the request -
1452
+ * even if there is no data being written to the request body.
1453
+ *
1454
+ * If any error is encountered during the request (be that with DNS resolution,
1455
+ * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
1456
+ * on the returned request object. As with all `'error'` events, if no listeners
1457
+ * are registered the error will be thrown.
1458
+ *
1459
+ * There are a few special headers that should be noted.
1460
+ *
1461
+ * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
1462
+ * the server should be persisted until the next request.
1463
+ * * Sending a 'Content-Length' header will disable the default chunked encoding.
1464
+ * * Sending an 'Expect' header will immediately send the request headers.
1465
+ * Usually, when sending 'Expect: 100-continue', both a timeout and a listener
1466
+ * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
1467
+ * information.
1468
+ * * Sending an Authorization header will override using the `auth` option
1469
+ * to compute basic authentication.
1470
+ *
1471
+ * Example using a `URL` as `options`:
1472
+ *
1473
+ * ```js
1474
+ * const options = new URL('http://abc:xyz@example.com');
1475
+ *
1476
+ * const req = http.request(options, (res) => {
1477
+ * // ...
1478
+ * });
1479
+ * ```
1480
+ *
1481
+ * In a successful request, the following events will be emitted in the following
1482
+ * order:
1483
+ *
1484
+ * * `'socket'`
1485
+ * * `'response'`
1486
+ * * `'data'` any number of times, on the `res` object
1487
+ * (`'data'` will not be emitted at all if the response body is empty, for
1488
+ * instance, in most redirects)
1489
+ * * `'end'` on the `res` object
1490
+ * * `'close'`
1491
+ *
1492
+ * In the case of a connection error, the following events will be emitted:
1493
+ *
1494
+ * * `'socket'`
1495
+ * * `'error'`
1496
+ * * `'close'`
1497
+ *
1498
+ * In the case of a premature connection close before the response is received,
1499
+ * the following events will be emitted in the following order:
1500
+ *
1501
+ * * `'socket'`
1502
+ * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1503
+ * * `'close'`
1504
+ *
1505
+ * In the case of a premature connection close after the response is received,
1506
+ * the following events will be emitted in the following order:
1507
+ *
1508
+ * * `'socket'`
1509
+ * * `'response'`
1510
+ * * `'data'` any number of times, on the `res` object
1511
+ * * (connection closed here)
1512
+ * * `'aborted'` on the `res` object
1513
+ * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`
1514
+ * * `'close'`
1515
+ * * `'close'` on the `res` object
1516
+ *
1517
+ * If `req.destroy()` is called before a socket is assigned, the following
1518
+ * events will be emitted in the following order:
1519
+ *
1520
+ * * (`req.destroy()` called here)
1521
+ * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`, or the error with which `req.destroy()` was called
1522
+ * * `'close'`
1523
+ *
1524
+ * If `req.destroy()` is called before the connection succeeds, the following
1525
+ * events will be emitted in the following order:
1526
+ *
1527
+ * * `'socket'`
1528
+ * * (`req.destroy()` called here)
1529
+ * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`, or the error with which `req.destroy()` was called
1530
+ * * `'close'`
1531
+ *
1532
+ * If `req.destroy()` is called after the response is received, the following
1533
+ * events will be emitted in the following order:
1534
+ *
1535
+ * * `'socket'`
1536
+ * * `'response'`
1537
+ * * `'data'` any number of times, on the `res` object
1538
+ * * (`req.destroy()` called here)
1539
+ * * `'aborted'` on the `res` object
1540
+ * * `'error'` on the `res` object with an error with message `'Error: aborted'`and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
1541
+ * * `'close'`
1542
+ * * `'close'` on the `res` object
1543
+ *
1544
+ * If `req.abort()` is called before a socket is assigned, the following
1545
+ * events will be emitted in the following order:
1546
+ *
1547
+ * * (`req.abort()` called here)
1548
+ * * `'abort'`
1549
+ * * `'close'`
1550
+ *
1551
+ * If `req.abort()` is called before the connection succeeds, the following
1552
+ * events will be emitted in the following order:
1553
+ *
1554
+ * * `'socket'`
1555
+ * * (`req.abort()` called here)
1556
+ * * `'abort'`
1557
+ * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1558
+ * * `'close'`
1559
+ *
1560
+ * If `req.abort()` is called after the response is received, the following
1561
+ * events will be emitted in the following order:
1562
+ *
1563
+ * * `'socket'`
1564
+ * * `'response'`
1565
+ * * `'data'` any number of times, on the `res` object
1566
+ * * (`req.abort()` called here)
1567
+ * * `'abort'`
1568
+ * * `'aborted'` on the `res` object
1569
+ * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`.
1570
+ * * `'close'`
1571
+ * * `'close'` on the `res` object
1572
+ *
1573
+ * Setting the `timeout` option or using the `setTimeout()` function will
1574
+ * not abort the request or do anything besides add a `'timeout'` event.
1575
+ *
1576
+ * Passing an `AbortSignal` and then calling `abort()` on the corresponding`AbortController` will behave the same way as calling `.destroy()` on the
1577
+ * request. Specifically, the `'error'` event will be emitted with an error with
1578
+ * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'`and the `cause`, if one was provided.
1579
+ * @since v0.3.6
1580
+ */
1581
+ function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1582
+ function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
1583
+ /**
1584
+ * Since most requests are GET requests without bodies, Node.js provides this
1585
+ * convenience method. The only difference between this method and {@link request} is that it sets the method to GET and calls `req.end()`automatically. The callback must take care to consume the
1586
+ * response
1587
+ * data for reasons stated in {@link ClientRequest} section.
1588
+ *
1589
+ * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
1590
+ *
1591
+ * JSON fetching example:
1592
+ *
1593
+ * ```js
1594
+ * http.get('http://localhost:8000/', (res) => {
1595
+ * const { statusCode } = res;
1596
+ * const contentType = res.headers['content-type'];
1597
+ *
1598
+ * let error;
1599
+ * // Any 2xx status code signals a successful response but
1600
+ * // here we're only checking for 200.
1601
+ * if (statusCode !== 200) {
1602
+ * error = new Error('Request Failed.\n' +
1603
+ * `Status Code: ${statusCode}`);
1604
+ * } else if (!/^application\/json/.test(contentType)) {
1605
+ * error = new Error('Invalid content-type.\n' +
1606
+ * `Expected application/json but received ${contentType}`);
1607
+ * }
1608
+ * if (error) {
1609
+ * console.error(error.message);
1610
+ * // Consume response data to free up memory
1611
+ * res.resume();
1612
+ * return;
1613
+ * }
1614
+ *
1615
+ * res.setEncoding('utf8');
1616
+ * let rawData = '';
1617
+ * res.on('data', (chunk) => { rawData += chunk; });
1618
+ * res.on('end', () => {
1619
+ * try {
1620
+ * const parsedData = JSON.parse(rawData);
1621
+ * console.log(parsedData);
1622
+ * } catch (e) {
1623
+ * console.error(e.message);
1624
+ * }
1625
+ * });
1626
+ * }).on('error', (e) => {
1627
+ * console.error(`Got error: ${e.message}`);
1628
+ * });
1629
+ *
1630
+ * // Create a local server to receive data from
1631
+ * const server = http.createServer((req, res) => {
1632
+ * res.writeHead(200, { 'Content-Type': 'application/json' });
1633
+ * res.end(JSON.stringify({
1634
+ * data: 'Hello World!',
1635
+ * }));
1636
+ * });
1637
+ *
1638
+ * server.listen(8000);
1639
+ * ```
1640
+ * @since v0.3.6
1641
+ * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. Properties that are inherited from the prototype are ignored.
1642
+ */
1643
+ function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1644
+ function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
1645
+ /**
1646
+ * Performs the low-level validations on the provided `name` that are done when`res.setHeader(name, value)` is called.
1647
+ *
1648
+ * Passing illegal value as `name` will result in a `TypeError` being thrown,
1649
+ * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
1650
+ *
1651
+ * It is not necessary to use this method before passing headers to an HTTP request
1652
+ * or response. The HTTP module will automatically validate such headers.
1653
+ * Examples:
1654
+ *
1655
+ * Example:
1656
+ *
1657
+ * ```js
1658
+ * const { validateHeaderName } = require('node:http');
1659
+ *
1660
+ * try {
1661
+ * validateHeaderName('');
1662
+ * } catch (err) {
1663
+ * console.error(err instanceof TypeError); // --> true
1664
+ * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN'
1665
+ * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]'
1666
+ * }
1667
+ * ```
1668
+ * @since v14.3.0
1669
+ * @param [label='Header name'] Label for error message.
1670
+ */
1671
+ function validateHeaderName(name: string): void;
1672
+ /**
1673
+ * Performs the low-level validations on the provided `value` that are done when`res.setHeader(name, value)` is called.
1674
+ *
1675
+ * Passing illegal value as `value` will result in a `TypeError` being thrown.
1676
+ *
1677
+ * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`.
1678
+ * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`.
1679
+ *
1680
+ * It is not necessary to use this method before passing headers to an HTTP request
1681
+ * or response. The HTTP module will automatically validate such headers.
1682
+ *
1683
+ * Examples:
1684
+ *
1685
+ * ```js
1686
+ * const { validateHeaderValue } = require('node:http');
1687
+ *
1688
+ * try {
1689
+ * validateHeaderValue('x-my-header', undefined);
1690
+ * } catch (err) {
1691
+ * console.error(err instanceof TypeError); // --> true
1692
+ * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true
1693
+ * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"'
1694
+ * }
1695
+ *
1696
+ * try {
1697
+ * validateHeaderValue('x-my-header', 'oʊmɪɡə');
1698
+ * } catch (err) {
1699
+ * console.error(err instanceof TypeError); // --> true
1700
+ * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true
1701
+ * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]'
1702
+ * }
1703
+ * ```
1704
+ * @since v14.3.0
1705
+ * @param name Header name
1706
+ * @param value Header value
1707
+ */
1708
+ function validateHeaderValue(name: string, value: string): void;
1709
+ /**
1710
+ * Set the maximum number of idle HTTP parsers.
1711
+ * @since v18.8.0, v16.18.0
1712
+ * @param [max=1000]
1713
+ */
1714
+ function setMaxIdleHTTPParsers(max: number): void;
1715
+ let globalAgent: Agent;
1716
+ /**
1717
+ * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
1718
+ * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option.
1719
+ */
1720
+ const maxHeaderSize: number;
1721
+ }
1722
+ declare module 'node:http' {
1723
+ export * from 'http';
1724
+ }