node-red-contrib-tak-registration 0.15.0 → 0.16.1

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 (374) hide show
  1. package/node_modules/@types/node/README.md +2 -2
  2. package/node_modules/@types/node/assert.d.ts +8 -6
  3. package/node_modules/@types/node/async_hooks.d.ts +26 -6
  4. package/node_modules/@types/node/buffer.d.ts +7 -3
  5. package/node_modules/@types/node/child_process.d.ts +28 -124
  6. package/node_modules/@types/node/cluster.d.ts +15 -15
  7. package/node_modules/@types/node/console.d.ts +17 -17
  8. package/node_modules/@types/node/crypto.d.ts +95 -38
  9. package/node_modules/@types/node/dgram.d.ts +1 -1
  10. package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
  11. package/node_modules/@types/node/dns/promises.d.ts +36 -9
  12. package/node_modules/@types/node/dns.d.ts +89 -36
  13. package/node_modules/@types/node/domain.d.ts +1 -1
  14. package/node_modules/@types/node/events.d.ts +1 -2
  15. package/node_modules/@types/node/fs/promises.d.ts +67 -40
  16. package/node_modules/@types/node/fs.d.ts +88 -52
  17. package/node_modules/@types/node/globals.d.ts +148 -351
  18. package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  19. package/node_modules/@types/node/http.d.ts +73 -7
  20. package/node_modules/@types/node/http2.d.ts +88 -15
  21. package/node_modules/@types/node/https.d.ts +1 -1
  22. package/node_modules/@types/node/index.d.ts +13 -6
  23. package/node_modules/@types/node/inspector.d.ts +222 -13
  24. package/node_modules/@types/node/module.d.ts +153 -31
  25. package/node_modules/@types/node/net.d.ts +3 -6
  26. package/node_modules/@types/node/os.d.ts +8 -7
  27. package/node_modules/@types/node/package.json +14 -84
  28. package/node_modules/@types/node/path.d.ts +1 -1
  29. package/node_modules/@types/node/perf_hooks.d.ts +24 -10
  30. package/node_modules/@types/node/process.d.ts +21 -11
  31. package/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/node_modules/@types/node/readline/promises.d.ts +0 -1
  34. package/node_modules/@types/node/readline.d.ts +13 -13
  35. package/node_modules/@types/node/repl.d.ts +25 -17
  36. package/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@types/node/sqlite.d.ts +209 -3
  38. package/node_modules/@types/node/stream/web.d.ts +8 -0
  39. package/node_modules/@types/node/stream.d.ts +30 -24
  40. package/node_modules/@types/node/string_decoder.d.ts +1 -1
  41. package/node_modules/@types/node/test.d.ts +2029 -1975
  42. package/node_modules/@types/node/timers/promises.d.ts +1 -1
  43. package/node_modules/@types/node/timers.d.ts +1 -3
  44. package/node_modules/@types/node/tls.d.ts +2 -48
  45. package/node_modules/@types/node/trace_events.d.ts +6 -6
  46. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  47. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  48. package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
  49. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  50. package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
  51. package/node_modules/@types/node/tty.d.ts +1 -1
  52. package/node_modules/@types/node/url.d.ts +73 -20
  53. package/node_modules/@types/node/util.d.ts +23 -298
  54. package/node_modules/@types/node/v8.d.ts +62 -32
  55. package/node_modules/@types/node/vm.d.ts +132 -24
  56. package/node_modules/@types/node/wasi.d.ts +22 -1
  57. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  58. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  59. package/node_modules/@types/node/web-globals/events.d.ts +94 -0
  60. package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  61. package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  62. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  63. package/node_modules/@types/node/worker_threads.d.ts +85 -26
  64. package/node_modules/@types/node/zlib.d.ts +13 -9
  65. package/node_modules/axios/CHANGELOG.md +99 -0
  66. package/node_modules/axios/README.md +105 -28
  67. package/node_modules/axios/dist/axios.js +395 -292
  68. package/node_modules/axios/dist/axios.js.map +1 -1
  69. package/node_modules/axios/dist/axios.min.js +2 -2
  70. package/node_modules/axios/dist/axios.min.js.map +1 -1
  71. package/node_modules/axios/dist/browser/axios.cjs +333 -219
  72. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  73. package/node_modules/axios/dist/esm/axios.js +333 -219
  74. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  75. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  76. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  77. package/node_modules/axios/dist/node/axios.cjs +424 -219
  78. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  79. package/node_modules/axios/index.d.cts +26 -8
  80. package/node_modules/axios/index.d.ts +14 -5
  81. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  82. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  83. package/node_modules/axios/lib/adapters/http.js +18 -0
  84. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  85. package/node_modules/axios/lib/core/Axios.js +2 -4
  86. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  87. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  88. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  89. package/node_modules/axios/lib/defaults/index.js +1 -1
  90. package/node_modules/axios/lib/env/data.js +1 -1
  91. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  92. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  93. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  94. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  95. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  96. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  97. package/node_modules/axios/lib/utils.js +40 -2
  98. package/node_modules/axios/package.json +30 -15
  99. package/node_modules/bignumber.js/CHANGELOG.md +6 -1
  100. package/node_modules/bignumber.js/README.md +5 -4
  101. package/node_modules/bignumber.js/bignumber.js +2 -2
  102. package/node_modules/bignumber.js/bignumber.mjs +2 -2
  103. package/node_modules/bignumber.js/package.json +1 -1
  104. package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
  105. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  106. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  107. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  108. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  109. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  110. package/node_modules/fast-xml-parser/package.json +1 -2
  111. package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
  112. package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
  113. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
  114. package/node_modules/follow-redirects/package.json +1 -1
  115. package/node_modules/form-data/CHANGELOG.md +601 -0
  116. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  117. package/node_modules/form-data/lib/browser.js +3 -1
  118. package/node_modules/form-data/lib/form_data.js +126 -135
  119. package/node_modules/form-data/lib/populate.js +5 -5
  120. package/node_modules/form-data/package.json +24 -16
  121. package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
  122. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  123. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  124. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  125. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  126. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  127. package/node_modules/protobufjs/dist/protobuf.js +8 -7
  128. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  129. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  130. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  131. package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
  132. package/node_modules/protobufjs/google/protobuf/descriptor.json +660 -17
  133. package/node_modules/protobufjs/google/protobuf/descriptor.proto +255 -6
  134. package/node_modules/protobufjs/package.json +1 -1
  135. package/node_modules/protobufjs/src/namespace.js +3 -1
  136. package/node_modules/protobufjs/src/root.js +3 -4
  137. package/node_modules/undici-types/agent.d.ts +11 -7
  138. package/node_modules/undici-types/api.d.ts +24 -24
  139. package/node_modules/undici-types/balanced-pool.d.ts +11 -11
  140. package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  141. package/node_modules/undici-types/client-stats.d.ts +15 -0
  142. package/node_modules/undici-types/client.d.ts +18 -16
  143. package/node_modules/undici-types/cookies.d.ts +2 -0
  144. package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
  145. package/node_modules/undici-types/dispatcher.d.ts +119 -93
  146. package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
  147. package/node_modules/undici-types/errors.d.ts +69 -47
  148. package/node_modules/undici-types/eventsource.d.ts +3 -3
  149. package/node_modules/undici-types/fetch.d.ts +18 -16
  150. package/node_modules/undici-types/formdata.d.ts +7 -7
  151. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  152. package/node_modules/undici-types/global-origin.d.ts +5 -5
  153. package/node_modules/undici-types/h2c-client.d.ts +75 -0
  154. package/node_modules/undici-types/handlers.d.ts +8 -8
  155. package/node_modules/undici-types/header.d.ts +157 -1
  156. package/node_modules/undici-types/index.d.ts +51 -47
  157. package/node_modules/undici-types/interceptors.d.ts +25 -8
  158. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  159. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  160. package/node_modules/undici-types/mock-client.d.ts +6 -4
  161. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  162. package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
  163. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  164. package/node_modules/undici-types/package.json +1 -1
  165. package/node_modules/undici-types/patch.d.ts +0 -4
  166. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  167. package/node_modules/undici-types/pool.d.ts +14 -12
  168. package/node_modules/undici-types/proxy-agent.d.ts +5 -4
  169. package/node_modules/undici-types/readable.d.ts +18 -15
  170. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  171. package/node_modules/undici-types/retry-handler.d.ts +19 -10
  172. package/node_modules/undici-types/util.d.ts +3 -3
  173. package/node_modules/undici-types/utility.d.ts +7 -0
  174. package/node_modules/undici-types/webidl.d.ts +50 -8
  175. package/node_modules/undici-types/websocket.d.ts +36 -2
  176. package/node_modules/uuid/README.md +8 -19
  177. package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
  178. package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
  179. package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
  180. package/node_modules/uuid/dist-node/native.js +2 -0
  181. package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
  182. package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
  183. package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
  184. package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
  185. package/node_modules/uuid/package.json +28 -41
  186. package/package.json +6 -6
  187. package/tak-registration.bak +557 -0
  188. package/tak-registration.js +14 -12
  189. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  190. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  191. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  192. package/node_modules/@types/node/dom-events.d.ts +0 -124
  193. package/node_modules/undici-types/file.d.ts +0 -39
  194. package/node_modules/undici-types/filereader.d.ts +0 -54
  195. package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
  196. package/node_modules/uuid/dist/cjs/index.js +0 -31
  197. package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
  198. package/node_modules/uuid/dist/cjs/max.js +0 -3
  199. package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
  200. package/node_modules/uuid/dist/cjs/md5.js +0 -13
  201. package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
  202. package/node_modules/uuid/dist/cjs/native.js +0 -4
  203. package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
  204. package/node_modules/uuid/dist/cjs/nil.js +0 -3
  205. package/node_modules/uuid/dist/cjs/package.json +0 -1
  206. package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
  207. package/node_modules/uuid/dist/cjs/parse.js +0 -11
  208. package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
  209. package/node_modules/uuid/dist/cjs/regex.js +0 -3
  210. package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
  211. package/node_modules/uuid/dist/cjs/rng.js +0 -13
  212. package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
  213. package/node_modules/uuid/dist/cjs/sha1.js +0 -13
  214. package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
  215. package/node_modules/uuid/dist/cjs/stringify.js +0 -39
  216. package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
  217. package/node_modules/uuid/dist/cjs/types.js +0 -2
  218. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
  219. package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  220. package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
  221. package/node_modules/uuid/dist/cjs/v1.js +0 -87
  222. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
  223. package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  224. package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
  225. package/node_modules/uuid/dist/cjs/v3.js +0 -14
  226. package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
  227. package/node_modules/uuid/dist/cjs/v35.js +0 -41
  228. package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
  229. package/node_modules/uuid/dist/cjs/v4.js +0 -29
  230. package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
  231. package/node_modules/uuid/dist/cjs/v5.js +0 -14
  232. package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
  233. package/node_modules/uuid/dist/cjs/v6.js +0 -19
  234. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
  235. package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  236. package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
  237. package/node_modules/uuid/dist/cjs/v7.js +0 -69
  238. package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
  239. package/node_modules/uuid/dist/cjs/validate.js +0 -7
  240. package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
  241. package/node_modules/uuid/dist/cjs/version.js +0 -10
  242. package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  243. package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  244. package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  245. package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  246. package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  247. package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  248. package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  249. package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  250. package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  251. package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  252. package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  253. package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  254. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  255. package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  256. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  257. package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  258. package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
  259. package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  260. package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  261. package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
  262. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  263. package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  264. package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  265. package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  266. package/node_modules/uuid/dist/esm/index.d.ts +0 -15
  267. package/node_modules/uuid/dist/esm/max.d.ts +0 -2
  268. package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
  269. package/node_modules/uuid/dist/esm/native.d.ts +0 -6
  270. package/node_modules/uuid/dist/esm/native.js +0 -2
  271. package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
  272. package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
  273. package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
  274. package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
  275. package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
  276. package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
  277. package/node_modules/uuid/dist/esm/types.d.ts +0 -21
  278. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
  279. package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
  280. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
  281. package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
  282. package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
  283. package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
  284. package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
  285. package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
  286. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
  287. package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
  288. package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
  289. package/node_modules/uuid/dist/esm/version.d.ts +0 -2
  290. package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
  291. package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
  292. package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
  293. package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
  294. package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
  295. package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
  296. package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
  297. package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
  298. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
  299. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
  300. package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
  301. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
  302. package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
  303. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
  304. package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
  305. package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
  306. package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
  307. package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
  308. package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
  309. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
  310. package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
  311. package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
  312. package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
  313. /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
  314. /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
  315. /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
  316. /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
  317. /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
  318. /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
  319. /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
  320. /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
  321. /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
  322. /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
  323. /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
  324. /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
  325. /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
  326. /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
  327. /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
  328. /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
  329. /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
  330. /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
  331. /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
  332. /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
  333. /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
  334. /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
  335. /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
  336. /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
  337. /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
  338. /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
  339. /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
  340. /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
  341. /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
  342. /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
  343. /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
  344. /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
  345. /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
  346. /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
  347. /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
  348. /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
  349. /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
  350. /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
  351. /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
  352. /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
  353. /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
  354. /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
  355. /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
  356. /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
  357. /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
  358. /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
  359. /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
  360. /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
  361. /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
  362. /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
  363. /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
  364. /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
  365. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
  366. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
  367. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
  368. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
  369. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
  370. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
  371. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
  372. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
  373. /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
  374. /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
@@ -0,0 +1,172 @@
1
+ import { Readable, Writable } from 'node:stream'
2
+
3
+ export default CacheHandler
4
+
5
+ declare namespace CacheHandler {
6
+ export type CacheMethods = 'GET' | 'HEAD' | 'OPTIONS' | 'TRACE'
7
+
8
+ export interface CacheHandlerOptions {
9
+ store: CacheStore
10
+
11
+ cacheByDefault?: number
12
+
13
+ type?: CacheOptions['type']
14
+ }
15
+
16
+ export interface CacheOptions {
17
+ store?: CacheStore
18
+
19
+ /**
20
+ * The methods to cache
21
+ * Note we can only cache safe methods. Unsafe methods (i.e. PUT, POST)
22
+ * invalidate the cache for a origin.
23
+ * @see https://www.rfc-editor.org/rfc/rfc9111.html#name-invalidating-stored-respons
24
+ * @see https://www.rfc-editor.org/rfc/rfc9110#section-9.2.1
25
+ */
26
+ methods?: CacheMethods[]
27
+
28
+ /**
29
+ * RFC9111 allows for caching responses that we aren't explicitly told to
30
+ * cache or to not cache.
31
+ * @see https://www.rfc-editor.org/rfc/rfc9111.html#section-3-5
32
+ * @default undefined
33
+ */
34
+ cacheByDefault?: number
35
+
36
+ /**
37
+ * TODO docs
38
+ * @default 'shared'
39
+ */
40
+ type?: 'shared' | 'private'
41
+ }
42
+
43
+ export interface CacheControlDirectives {
44
+ 'max-stale'?: number;
45
+ 'min-fresh'?: number;
46
+ 'max-age'?: number;
47
+ 's-maxage'?: number;
48
+ 'stale-while-revalidate'?: number;
49
+ 'stale-if-error'?: number;
50
+ public?: true;
51
+ private?: true | string[];
52
+ 'no-store'?: true;
53
+ 'no-cache'?: true | string[];
54
+ 'must-revalidate'?: true;
55
+ 'proxy-revalidate'?: true;
56
+ immutable?: true;
57
+ 'no-transform'?: true;
58
+ 'must-understand'?: true;
59
+ 'only-if-cached'?: true;
60
+ }
61
+
62
+ export interface CacheKey {
63
+ origin: string
64
+ method: string
65
+ path: string
66
+ headers?: Record<string, string | string[]>
67
+ }
68
+
69
+ export interface CacheValue {
70
+ statusCode: number
71
+ statusMessage: string
72
+ headers: Record<string, string | string[]>
73
+ vary?: Record<string, string | string[] | null>
74
+ etag?: string
75
+ cacheControlDirectives?: CacheControlDirectives
76
+ cachedAt: number
77
+ staleAt: number
78
+ deleteAt: number
79
+ }
80
+
81
+ export interface DeleteByUri {
82
+ origin: string
83
+ method: string
84
+ path: string
85
+ }
86
+
87
+ type GetResult = {
88
+ statusCode: number
89
+ statusMessage: string
90
+ headers: Record<string, string | string[]>
91
+ vary?: Record<string, string | string[] | null>
92
+ etag?: string
93
+ body?: Readable | Iterable<Buffer> | AsyncIterable<Buffer> | Buffer | Iterable<string> | AsyncIterable<string> | string
94
+ cacheControlDirectives: CacheControlDirectives,
95
+ cachedAt: number
96
+ staleAt: number
97
+ deleteAt: number
98
+ }
99
+
100
+ /**
101
+ * Underlying storage provider for cached responses
102
+ */
103
+ export interface CacheStore {
104
+ get(key: CacheKey): GetResult | Promise<GetResult | undefined> | undefined
105
+
106
+ createWriteStream(key: CacheKey, val: CacheValue): Writable | undefined
107
+
108
+ delete(key: CacheKey): void | Promise<void>
109
+ }
110
+
111
+ export interface MemoryCacheStoreOpts {
112
+ /**
113
+ * @default Infinity
114
+ */
115
+ maxCount?: number
116
+
117
+ /**
118
+ * @default Infinity
119
+ */
120
+ maxSize?: number
121
+
122
+ /**
123
+ * @default Infinity
124
+ */
125
+ maxEntrySize?: number
126
+
127
+ errorCallback?: (err: Error) => void
128
+ }
129
+
130
+ export class MemoryCacheStore implements CacheStore {
131
+ constructor (opts?: MemoryCacheStoreOpts)
132
+
133
+ get (key: CacheKey): GetResult | Promise<GetResult | undefined> | undefined
134
+
135
+ createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined
136
+
137
+ delete (key: CacheKey): void | Promise<void>
138
+ }
139
+
140
+ export interface SqliteCacheStoreOpts {
141
+ /**
142
+ * Location of the database
143
+ * @default ':memory:'
144
+ */
145
+ location?: string
146
+
147
+ /**
148
+ * @default Infinity
149
+ */
150
+ maxCount?: number
151
+
152
+ /**
153
+ * @default Infinity
154
+ */
155
+ maxEntrySize?: number
156
+ }
157
+
158
+ export class SqliteCacheStore implements CacheStore {
159
+ constructor (opts?: SqliteCacheStoreOpts)
160
+
161
+ /**
162
+ * Closes the connection to the database
163
+ */
164
+ close (): void
165
+
166
+ get (key: CacheKey): GetResult | Promise<GetResult | undefined> | undefined
167
+
168
+ createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined
169
+
170
+ delete (key: CacheKey): void | Promise<void>
171
+ }
172
+ }
@@ -0,0 +1,15 @@
1
+ import Client from './client'
2
+
3
+ export default ClientStats
4
+
5
+ declare class ClientStats {
6
+ constructor (pool: Client)
7
+ /** If socket has open connection. */
8
+ connected: boolean
9
+ /** Number of open socket connections in this client that do not have an active request. */
10
+ pending: number
11
+ /** Number of currently active requests of this client. */
12
+ running: number
13
+ /** Number of active, pending, or queued requests of this client. */
14
+ size: number
15
+ }
@@ -1,30 +1,32 @@
1
1
  import { URL } from 'url'
2
- import { TlsOptions } from 'tls'
3
2
  import Dispatcher from './dispatcher'
4
- import buildConnector from "./connector";
3
+ import buildConnector from './connector'
4
+ import TClientStats from './client-stats'
5
5
 
6
- type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
6
+ type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
7
7
 
8
8
  /**
9
9
  * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
10
10
  */
11
11
  export class Client extends Dispatcher {
12
- constructor(url: string | URL, options?: Client.Options);
12
+ constructor (url: string | URL, options?: Client.Options)
13
13
  /** Property to get and set the pipelining factor. */
14
- pipelining: number;
14
+ pipelining: number
15
15
  /** `true` after `client.close()` has been called. */
16
- closed: boolean;
16
+ closed: boolean
17
17
  /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
18
- destroyed: boolean;
18
+ destroyed: boolean
19
+ /** Aggregate stats for a Client. */
20
+ readonly stats: TClientStats
19
21
 
20
22
  // Override dispatcher APIs.
21
- override connect(
23
+ override connect (
22
24
  options: ClientConnectOptions
23
- ): Promise<Dispatcher.ConnectData>;
24
- override connect(
25
+ ): Promise<Dispatcher.ConnectData>
26
+ override connect (
25
27
  options: ClientConnectOptions,
26
28
  callback: (err: Error | null, data: Dispatcher.ConnectData) => void
27
- ): void;
29
+ ): void
28
30
  }
29
31
 
30
32
  export declare namespace Client {
@@ -71,7 +73,7 @@ export declare namespace Client {
71
73
  /** TODO */
72
74
  maxRedirections?: number;
73
75
  /** TODO */
74
- connect?: buildConnector.BuildOptions | buildConnector.connector;
76
+ connect?: Partial<buildConnector.BuildOptions> | buildConnector.connector;
75
77
  /** TODO */
76
78
  maxRequestsPerClient?: number;
77
79
  /** TODO */
@@ -85,13 +87,13 @@ export declare namespace Client {
85
87
  /**
86
88
  * @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
87
89
  * @default false
88
- */
90
+ */
89
91
  allowH2?: boolean;
90
92
  /**
91
93
  * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
92
94
  * @default 100
93
- */
94
- maxConcurrentStreams?: number
95
+ */
96
+ maxConcurrentStreams?: number;
95
97
  }
96
98
  export interface SocketInfo {
97
99
  localAddress?: string
@@ -105,4 +107,4 @@ export declare namespace Client {
105
107
  }
106
108
  }
107
109
 
108
- export default Client;
110
+ export default Client
@@ -26,3 +26,5 @@ export function getCookies (headers: Headers): Record<string, string>
26
26
  export function getSetCookies (headers: Headers): Cookie[]
27
27
 
28
28
  export function setCookie (headers: Headers, cookie: Cookie): void
29
+
30
+ export function parseCookie (cookie: string): Cookie | null
@@ -1,7 +1,7 @@
1
- import { Socket } from "net";
2
- import { URL } from "url";
3
- import Connector from "./connector";
4
- import Dispatcher from "./dispatcher";
1
+ import { Socket } from 'net'
2
+ import { URL } from 'url'
3
+ import buildConnector from './connector'
4
+ import Dispatcher from './dispatcher'
5
5
 
6
6
  declare namespace DiagnosticsChannel {
7
7
  interface Request {
@@ -16,21 +16,30 @@ declare namespace DiagnosticsChannel {
16
16
  statusText: string;
17
17
  headers: Array<Buffer>;
18
18
  }
19
- type Error = unknown;
19
+ type Error = unknown
20
20
  interface ConnectParams {
21
- host: URL["host"];
22
- hostname: URL["hostname"];
23
- protocol: URL["protocol"];
24
- port: URL["port"];
21
+ host: URL['host'];
22
+ hostname: URL['hostname'];
23
+ protocol: URL['protocol'];
24
+ port: URL['port'];
25
25
  servername: string | null;
26
26
  }
27
- type Connector = Connector.connector;
27
+ type Connector = buildConnector.connector
28
28
  export interface RequestCreateMessage {
29
29
  request: Request;
30
30
  }
31
31
  export interface RequestBodySentMessage {
32
32
  request: Request;
33
33
  }
34
+
35
+ export interface RequestBodyChunkSentMessage {
36
+ request: Request;
37
+ chunk: Uint8Array | string;
38
+ }
39
+ export interface RequestBodyChunkReceivedMessage {
40
+ request: Request;
41
+ chunk: Buffer;
42
+ }
34
43
  export interface RequestHeadersMessage {
35
44
  request: Request;
36
45
  response: Response;