node-red-contrib-tak-registration 0.11.1 → 0.11.5

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 (249) hide show
  1. package/node_modules/@types/node/LICENSE +0 -0
  2. package/node_modules/@types/node/README.md +4 -5
  3. package/node_modules/@types/node/assert/strict.d.ts +4 -4
  4. package/node_modules/@types/node/assert.d.ts +50 -26
  5. package/node_modules/@types/node/async_hooks.d.ts +13 -6
  6. package/node_modules/@types/node/buffer.d.ts +46 -38
  7. package/node_modules/@types/node/child_process.d.ts +278 -138
  8. package/node_modules/@types/node/cluster.d.ts +107 -89
  9. package/node_modules/@types/node/console.d.ts +18 -15
  10. package/node_modules/@types/node/constants.d.ts +12 -11
  11. package/node_modules/@types/node/crypto.d.ts +746 -268
  12. package/node_modules/@types/node/dgram.d.ts +82 -46
  13. package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  14. package/node_modules/@types/node/dns/promises.d.ts +37 -26
  15. package/node_modules/@types/node/dns.d.ts +204 -63
  16. package/node_modules/@types/node/dom-events.d.ts +67 -71
  17. package/node_modules/@types/node/domain.d.ts +4 -4
  18. package/node_modules/@types/node/events.d.ts +99 -8
  19. package/node_modules/@types/node/fs/promises.d.ts +122 -85
  20. package/node_modules/@types/node/fs.d.ts +520 -316
  21. package/node_modules/@types/node/globals.d.ts +346 -286
  22. package/node_modules/@types/node/globals.global.d.ts +0 -0
  23. package/node_modules/@types/node/http.d.ts +321 -189
  24. package/node_modules/@types/node/http2.d.ts +630 -377
  25. package/node_modules/@types/node/https.d.ts +221 -112
  26. package/node_modules/@types/node/index.d.ts +0 -45
  27. package/node_modules/@types/node/inspector.d.ts +0 -1
  28. package/node_modules/@types/node/module.d.ts +75 -31
  29. package/node_modules/@types/node/net.d.ts +149 -93
  30. package/node_modules/@types/node/os.d.ts +10 -9
  31. package/node_modules/@types/node/package.json +88 -90
  32. package/node_modules/@types/node/path.d.ts +13 -13
  33. package/node_modules/@types/node/perf_hooks.d.ts +19 -18
  34. package/node_modules/@types/node/process.d.ts +170 -126
  35. package/node_modules/@types/node/punycode.d.ts +4 -4
  36. package/node_modules/@types/node/querystring.d.ts +14 -4
  37. package/node_modules/@types/node/readline/promises.d.ts +12 -7
  38. package/node_modules/@types/node/readline.d.ts +69 -56
  39. package/node_modules/@types/node/repl.d.ts +67 -61
  40. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  41. package/node_modules/@types/node/stream/promises.d.ts +56 -15
  42. package/node_modules/@types/node/stream/web.d.ts +40 -20
  43. package/node_modules/@types/node/stream.d.ts +365 -232
  44. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  45. package/node_modules/@types/node/test.d.ts +133 -212
  46. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  47. package/node_modules/@types/node/timers.d.ts +26 -11
  48. package/node_modules/@types/node/tls.d.ts +152 -72
  49. package/node_modules/@types/node/trace_events.d.ts +3 -3
  50. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  51. package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
  52. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
  53. package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
  54. package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
  55. package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  56. package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
  57. package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  58. package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
  59. package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
  60. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  61. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
  62. package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
  63. package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  64. package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  65. package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
  66. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
  67. package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
  68. package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
  69. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  70. package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
  71. package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
  72. package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  73. package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  74. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
  75. package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
  76. package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
  77. package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
  78. package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  79. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  80. package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
  81. package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
  82. package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  83. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  84. package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  85. package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  86. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  87. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  88. package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  89. package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
  90. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  91. package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
  92. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  93. package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
  94. package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
  95. package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  96. package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  97. package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
  98. package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
  99. package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  100. package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
  101. package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
  102. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
  103. package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  104. package/node_modules/@types/node/tty.d.ts +10 -10
  105. package/node_modules/@types/node/url.d.ts +26 -14
  106. package/node_modules/@types/node/util.d.ts +187 -120
  107. package/node_modules/@types/node/v8.d.ts +4 -4
  108. package/node_modules/@types/node/vm.d.ts +58 -50
  109. package/node_modules/@types/node/wasi.d.ts +10 -4
  110. package/node_modules/@types/node/worker_threads.d.ts +83 -86
  111. package/node_modules/@types/node/zlib.d.ts +9 -9
  112. package/node_modules/axios/CHANGELOG.md +225 -0
  113. package/node_modules/axios/README.md +273 -9
  114. package/node_modules/axios/dist/axios.js +249 -178
  115. package/node_modules/axios/dist/axios.js.map +1 -1
  116. package/node_modules/axios/dist/axios.min.js +1 -1
  117. package/node_modules/axios/dist/axios.min.js.map +1 -1
  118. package/node_modules/axios/dist/browser/axios.cjs +213 -193
  119. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  120. package/node_modules/axios/dist/esm/axios.js +213 -193
  121. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  122. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  123. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  124. package/node_modules/axios/dist/node/axios.cjs +297 -213
  125. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  126. package/node_modules/axios/index.d.cts +20 -11
  127. package/node_modules/axios/index.d.ts +21 -12
  128. package/node_modules/axios/lib/adapters/adapters.js +33 -15
  129. package/node_modules/axios/lib/adapters/http.js +25 -12
  130. package/node_modules/axios/lib/adapters/xhr.js +17 -10
  131. package/node_modules/axios/lib/core/mergeConfig.js +1 -0
  132. package/node_modules/axios/lib/defaults/index.js +1 -1
  133. package/node_modules/axios/lib/env/data.js +1 -1
  134. package/node_modules/axios/lib/helpers/cookies.js +39 -49
  135. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
  136. package/node_modules/axios/lib/platform/browser/index.js +0 -51
  137. package/node_modules/axios/lib/platform/common/utils.js +47 -0
  138. package/node_modules/axios/lib/platform/index.js +5 -1
  139. package/node_modules/axios/package.json +2 -1
  140. package/node_modules/call-bind/.eslintrc +0 -1
  141. package/node_modules/call-bind/.nycrc +0 -4
  142. package/node_modules/call-bind/CHANGELOG.md +35 -0
  143. package/node_modules/call-bind/README.md +63 -1
  144. package/node_modules/call-bind/index.js +10 -13
  145. package/node_modules/call-bind/package.json +33 -23
  146. package/node_modules/call-bind/test/callBound.js +0 -1
  147. package/node_modules/call-bind/test/index.js +18 -4
  148. package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
  149. package/node_modules/deep-equal/.eslintrc +6 -0
  150. package/node_modules/deep-equal/.nycrc +17 -0
  151. package/node_modules/deep-equal/CHANGELOG.md +204 -4
  152. package/node_modules/deep-equal/assert.js +3 -0
  153. package/node_modules/deep-equal/package.json +39 -17
  154. package/node_modules/deep-equal/readme.markdown +28 -12
  155. package/node_modules/deep-equal/test/_tape.js +24 -3
  156. package/node_modules/deep-equal/test/cmp.js +1047 -48
  157. package/node_modules/define-data-property/CHANGELOG.md +10 -0
  158. package/node_modules/define-data-property/index.d.ts.map +1 -1
  159. package/node_modules/define-data-property/index.js +8 -0
  160. package/node_modules/define-data-property/package.json +11 -9
  161. package/node_modules/define-data-property/test/index.js +6 -11
  162. package/node_modules/define-data-property/tsconfig.json +1 -0
  163. package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
  164. package/node_modules/fast-xml-parser/package.json +5 -5
  165. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
  166. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
  167. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
  168. package/node_modules/follow-redirects/index.js +16 -4
  169. package/node_modules/follow-redirects/package.json +2 -3
  170. package/node_modules/function-bind/.eslintrc +11 -5
  171. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  172. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  173. package/node_modules/function-bind/.nycrc +13 -0
  174. package/node_modules/function-bind/CHANGELOG.md +136 -0
  175. package/node_modules/function-bind/README.md +25 -27
  176. package/node_modules/function-bind/implementation.js +44 -12
  177. package/node_modules/function-bind/package.json +38 -14
  178. package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
  179. package/node_modules/get-intrinsic/index.js +1 -1
  180. package/node_modules/get-intrinsic/package.json +11 -11
  181. package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
  182. package/node_modules/has-property-descriptors/package.json +13 -6
  183. package/node_modules/hasown/.eslintrc +5 -0
  184. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  185. package/node_modules/hasown/.nycrc +13 -0
  186. package/node_modules/hasown/CHANGELOG.md +20 -0
  187. package/node_modules/hasown/LICENSE +21 -0
  188. package/node_modules/hasown/README.md +40 -0
  189. package/node_modules/hasown/index.d.ts +3 -0
  190. package/node_modules/hasown/index.d.ts.map +1 -0
  191. package/node_modules/hasown/index.js +8 -0
  192. package/node_modules/hasown/package.json +91 -0
  193. package/node_modules/hasown/tsconfig.json +49 -0
  194. package/node_modules/set-function-length/.eslintrc +27 -0
  195. package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  196. package/node_modules/set-function-length/.nycrc +13 -0
  197. package/node_modules/set-function-length/CHANGELOG.md +41 -0
  198. package/node_modules/set-function-length/LICENSE +21 -0
  199. package/node_modules/set-function-length/README.md +56 -0
  200. package/node_modules/set-function-length/env.js +19 -0
  201. package/node_modules/set-function-length/index.js +41 -0
  202. package/node_modules/set-function-length/package.json +84 -0
  203. package/node_modules/undici-types/README.md +6 -0
  204. package/node_modules/undici-types/agent.d.ts +31 -0
  205. package/node_modules/undici-types/api.d.ts +43 -0
  206. package/node_modules/undici-types/balanced-pool.d.ts +18 -0
  207. package/node_modules/undici-types/cache.d.ts +36 -0
  208. package/node_modules/undici-types/client.d.ts +97 -0
  209. package/node_modules/undici-types/connector.d.ts +34 -0
  210. package/node_modules/undici-types/content-type.d.ts +21 -0
  211. package/node_modules/undici-types/cookies.d.ts +28 -0
  212. package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  213. package/node_modules/undici-types/dispatcher.d.ts +241 -0
  214. package/node_modules/undici-types/errors.d.ts +128 -0
  215. package/node_modules/undici-types/fetch.d.ts +209 -0
  216. package/node_modules/undici-types/file.d.ts +39 -0
  217. package/node_modules/undici-types/filereader.d.ts +54 -0
  218. package/node_modules/undici-types/formdata.d.ts +108 -0
  219. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  220. package/node_modules/undici-types/global-origin.d.ts +7 -0
  221. package/node_modules/undici-types/handlers.d.ts +9 -0
  222. package/node_modules/undici-types/header.d.ts +4 -0
  223. package/node_modules/undici-types/index.d.ts +63 -0
  224. package/node_modules/undici-types/interceptors.d.ts +5 -0
  225. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  226. package/node_modules/undici-types/mock-client.d.ts +25 -0
  227. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  228. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  229. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  230. package/node_modules/undici-types/package.json +55 -0
  231. package/node_modules/undici-types/patch.d.ts +71 -0
  232. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  233. package/node_modules/undici-types/pool.d.ts +28 -0
  234. package/node_modules/undici-types/proxy-agent.d.ts +30 -0
  235. package/node_modules/undici-types/readable.d.ts +61 -0
  236. package/node_modules/undici-types/webidl.d.ts +220 -0
  237. package/node_modules/undici-types/websocket.d.ts +131 -0
  238. package/package.json +3 -3
  239. package/tak-ingest.js +42 -23
  240. package/tak-registration.html +4 -4
  241. package/node_modules/define-data-property/tsinit +0 -109
  242. package/node_modules/function-bind/.jscs.json +0 -176
  243. package/node_modules/function-bind/.npmignore +0 -22
  244. package/node_modules/function-bind/.travis.yml +0 -168
  245. package/node_modules/has/LICENSE-MIT +0 -22
  246. package/node_modules/has/README.md +0 -18
  247. package/node_modules/has/package.json +0 -48
  248. package/node_modules/has/src/index.js +0 -5
  249. package/node_modules/has/test/index.js +0 -10
@@ -1,325 +1,385 @@
1
- // Declare "static" methods in Error
2
- interface ErrorConstructor {
3
- /** Create .stack property on a target object */
4
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1
+ export {}; // Make this a module
2
+
3
+ // #region Fetch and friends
4
+ // Conditional type aliases, used at the end of this file.
5
+ // Will either be empty if lib-dom is included, or the undici version otherwise.
6
+ type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
7
+ type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
8
+ type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
9
+ type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
10
+ type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
11
+ : import("undici-types").RequestInit;
12
+ type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
13
+ : import("undici-types").ResponseInit;
14
+ type _File = typeof globalThis extends { onmessage: any } ? {} : import("node:buffer").File;
15
+ // #endregion Fetch and friends
16
+
17
+ declare global {
18
+ // Declare "static" methods in Error
19
+ interface ErrorConstructor {
20
+ /** Create .stack property on a target object */
21
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
5
22
 
6
- /**
7
- * Optional override for formatting stack traces
8
- *
9
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
- */
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
-
13
- stackTraceLimit: number;
14
- }
15
-
16
- /*-----------------------------------------------*
17
- * *
18
- * GLOBAL *
19
- * *
20
- ------------------------------------------------*/
21
-
22
- // For backwards compability
23
- interface NodeRequire extends NodeJS.Require { }
24
- interface RequireResolve extends NodeJS.RequireResolve { }
25
- interface NodeModule extends NodeJS.Module { }
26
-
27
- declare var process: NodeJS.Process;
28
- declare var console: Console;
29
-
30
- declare var __filename: string;
31
- declare var __dirname: string;
32
-
33
- declare var require: NodeRequire;
34
- declare var module: NodeModule;
35
-
36
- // Same as module.exports
37
- declare var exports: any;
38
-
39
- /**
40
- * Only available if `--expose-gc` is passed to the process.
41
- */
42
- declare var gc: undefined | (() => void);
23
+ /**
24
+ * Optional override for formatting stack traces
25
+ *
26
+ * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
27
+ */
28
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
43
29
 
44
- //#region borrowed
45
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
- interface AbortController {
48
- /**
49
- * Returns the AbortSignal object associated with this object.
50
- */
30
+ stackTraceLimit: number;
31
+ }
51
32
 
52
- readonly signal: AbortSignal;
53
- /**
54
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
- */
56
- abort(reason?: any): void;
57
- }
33
+ /*-----------------------------------------------*
34
+ * *
35
+ * GLOBAL *
36
+ * *
37
+ ------------------------------------------------*/
58
38
 
59
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
- interface AbortSignal extends EventTarget {
61
- /**
62
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
- */
64
- readonly aborted: boolean;
65
- readonly reason: any;
66
- onabort: null | ((this: AbortSignal, event: Event) => any);
67
- throwIfAborted(): void;
68
- }
39
+ // For backwards compability
40
+ interface NodeRequire extends NodeJS.Require {}
41
+ interface RequireResolve extends NodeJS.RequireResolve {}
42
+ interface NodeModule extends NodeJS.Module {}
69
43
 
70
- declare var AbortController: typeof globalThis extends {onmessage: any; AbortController: infer T}
71
- ? T
72
- : {
73
- prototype: AbortController;
74
- new(): AbortController;
75
- };
76
-
77
- declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal: infer T}
78
- ? T
79
- : {
80
- prototype: AbortSignal;
81
- new(): AbortSignal;
82
- abort(reason?: any): AbortSignal;
83
- timeout(milliseconds: number): AbortSignal;
84
- };
85
- //#endregion borrowed
86
-
87
- //#region Disposable
88
- interface SymbolConstructor {
89
- /**
90
- * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
91
- */
92
- readonly dispose: unique symbol;
44
+ var process: NodeJS.Process;
45
+ var console: Console;
93
46
 
94
- /**
95
- * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
96
- */
97
- readonly asyncDispose: unique symbol;
98
- }
47
+ var __filename: string;
48
+ var __dirname: string;
99
49
 
100
- interface Disposable {
101
- [Symbol.dispose](): void;
102
- }
50
+ var require: NodeRequire;
51
+ var module: NodeModule;
103
52
 
104
- interface AsyncDisposable {
105
- [Symbol.asyncDispose](): PromiseLike<void>;
106
- }
107
- //#endregion Disposable
53
+ // Same as module.exports
54
+ var exports: any;
108
55
 
109
- //#region ArrayLike.at()
110
- interface RelativeIndexable<T> {
111
56
  /**
112
- * Takes an integer value and returns the item at that index,
113
- * allowing for positive and negative integers.
114
- * Negative integers count back from the last item in the array.
57
+ * Only available if `--expose-gc` is passed to the process.
115
58
  */
116
- at(index: number): T | undefined;
117
- }
118
- interface String extends RelativeIndexable<string> {}
119
- interface Array<T> extends RelativeIndexable<T> {}
120
- interface ReadonlyArray<T> extends RelativeIndexable<T> {}
121
- interface Int8Array extends RelativeIndexable<number> {}
122
- interface Uint8Array extends RelativeIndexable<number> {}
123
- interface Uint8ClampedArray extends RelativeIndexable<number> {}
124
- interface Int16Array extends RelativeIndexable<number> {}
125
- interface Uint16Array extends RelativeIndexable<number> {}
126
- interface Int32Array extends RelativeIndexable<number> {}
127
- interface Uint32Array extends RelativeIndexable<number> {}
128
- interface Float32Array extends RelativeIndexable<number> {}
129
- interface Float64Array extends RelativeIndexable<number> {}
130
- interface BigInt64Array extends RelativeIndexable<bigint> {}
131
- interface BigUint64Array extends RelativeIndexable<bigint> {}
132
- //#endregion ArrayLike.at() end
133
-
134
- /**
135
- * @since v17.0.0
136
- *
137
- * Creates a deep clone of an object.
138
- */
139
- declare function structuredClone<T>(
140
- value: T,
141
- transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
142
- ): T;
143
-
144
- /*----------------------------------------------*
145
- * *
146
- * GLOBAL INTERFACES *
147
- * *
148
- *-----------------------------------------------*/
149
- declare namespace NodeJS {
150
- interface CallSite {
151
- /**
152
- * Value of "this"
153
- */
154
- getThis(): unknown;
155
-
156
- /**
157
- * Type of "this" as a string.
158
- * This is the name of the function stored in the constructor field of
159
- * "this", if available. Otherwise the object's [[Class]] internal
160
- * property.
161
- */
162
- getTypeName(): string | null;
163
-
164
- /**
165
- * Current function
166
- */
167
- getFunction(): Function | undefined;
168
-
169
- /**
170
- * Name of the current function, typically its name property.
171
- * If a name property is not available an attempt will be made to try
172
- * to infer a name from the function's context.
173
- */
174
- getFunctionName(): string | null;
59
+ var gc: undefined | (() => void);
175
60
 
61
+ // #region borrowed
62
+ // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
63
+ /** A controller object that allows you to abort one or more DOM requests as and when desired. */
64
+ interface AbortController {
176
65
  /**
177
- * Name of the property [of "this" or one of its prototypes] that holds
178
- * the current function
66
+ * Returns the AbortSignal object associated with this object.
179
67
  */
180
- getMethodName(): string | null;
181
68
 
69
+ readonly signal: AbortSignal;
182
70
  /**
183
- * Name of the script [if this function was defined in a script]
71
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
184
72
  */
185
- getFileName(): string | undefined;
186
-
187
- /**
188
- * Current line number [if this function was defined in a script]
189
- */
190
- getLineNumber(): number | null;
191
-
192
- /**
193
- * Current column number [if this function was defined in a script]
194
- */
195
- getColumnNumber(): number | null;
196
-
197
- /**
198
- * A call site object representing the location where eval was called
199
- * [if this function was created using a call to eval]
200
- */
201
- getEvalOrigin(): string | undefined;
202
-
203
- /**
204
- * Is this a toplevel invocation, that is, is "this" the global object?
205
- */
206
- isToplevel(): boolean;
73
+ abort(reason?: any): void;
74
+ }
207
75
 
76
+ /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
77
+ interface AbortSignal extends EventTarget {
208
78
  /**
209
- * Does this call take place in code defined by a call to eval?
79
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
210
80
  */
211
- isEval(): boolean;
81
+ readonly aborted: boolean;
82
+ readonly reason: any;
83
+ onabort: null | ((this: AbortSignal, event: Event) => any);
84
+ throwIfAborted(): void;
85
+ }
212
86
 
87
+ var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
88
+ : {
89
+ prototype: AbortController;
90
+ new(): AbortController;
91
+ };
92
+
93
+ var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
94
+ : {
95
+ prototype: AbortSignal;
96
+ new(): AbortSignal;
97
+ abort(reason?: any): AbortSignal;
98
+ timeout(milliseconds: number): AbortSignal;
99
+ };
100
+ // #endregion borrowed
101
+
102
+ // #region Disposable
103
+ interface SymbolConstructor {
213
104
  /**
214
- * Is this call in native V8 code?
105
+ * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
215
106
  */
216
- isNative(): boolean;
107
+ readonly dispose: unique symbol;
217
108
 
218
109
  /**
219
- * Is this a constructor call?
110
+ * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
220
111
  */
221
- isConstructor(): boolean;
112
+ readonly asyncDispose: unique symbol;
222
113
  }
223
114
 
224
- interface ErrnoException extends Error {
225
- errno?: number | undefined;
226
- code?: string | undefined;
227
- path?: string | undefined;
228
- syscall?: string | undefined;
115
+ interface Disposable {
116
+ [Symbol.dispose](): void;
229
117
  }
230
118
 
231
- interface ReadableStream extends EventEmitter {
232
- readable: boolean;
233
- read(size?: number): string | Buffer;
234
- setEncoding(encoding: BufferEncoding): this;
235
- pause(): this;
236
- resume(): this;
237
- isPaused(): boolean;
238
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
239
- unpipe(destination?: WritableStream): this;
240
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
241
- wrap(oldStream: ReadableStream): this;
242
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
119
+ interface AsyncDisposable {
120
+ [Symbol.asyncDispose](): PromiseLike<void>;
243
121
  }
122
+ // #endregion Disposable
244
123
 
245
- interface WritableStream extends EventEmitter {
246
- writable: boolean;
247
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
248
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
249
- end(cb?: () => void): this;
250
- end(data: string | Uint8Array, cb?: () => void): this;
251
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
252
- }
253
-
254
- interface ReadWriteStream extends ReadableStream, WritableStream { }
255
-
256
- interface RefCounted {
257
- ref(): this;
258
- unref(): this;
259
- }
260
-
261
- type TypedArray =
262
- | Uint8Array
263
- | Uint8ClampedArray
264
- | Uint16Array
265
- | Uint32Array
266
- | Int8Array
267
- | Int16Array
268
- | Int32Array
269
- | BigUint64Array
270
- | BigInt64Array
271
- | Float32Array
272
- | Float64Array;
273
- type ArrayBufferView = TypedArray | DataView;
274
-
275
- interface Require {
276
- (id: string): any;
277
- resolve: RequireResolve;
278
- cache: Dict<NodeModule>;
124
+ // #region ArrayLike.at()
125
+ interface RelativeIndexable<T> {
279
126
  /**
280
- * @deprecated
127
+ * Takes an integer value and returns the item at that index,
128
+ * allowing for positive and negative integers.
129
+ * Negative integers count back from the last item in the array.
281
130
  */
282
- extensions: RequireExtensions;
283
- main: Module | undefined;
131
+ at(index: number): T | undefined;
284
132
  }
133
+ interface String extends RelativeIndexable<string> {}
134
+ interface Array<T> extends RelativeIndexable<T> {}
135
+ interface ReadonlyArray<T> extends RelativeIndexable<T> {}
136
+ interface Int8Array extends RelativeIndexable<number> {}
137
+ interface Uint8Array extends RelativeIndexable<number> {}
138
+ interface Uint8ClampedArray extends RelativeIndexable<number> {}
139
+ interface Int16Array extends RelativeIndexable<number> {}
140
+ interface Uint16Array extends RelativeIndexable<number> {}
141
+ interface Int32Array extends RelativeIndexable<number> {}
142
+ interface Uint32Array extends RelativeIndexable<number> {}
143
+ interface Float32Array extends RelativeIndexable<number> {}
144
+ interface Float64Array extends RelativeIndexable<number> {}
145
+ interface BigInt64Array extends RelativeIndexable<bigint> {}
146
+ interface BigUint64Array extends RelativeIndexable<bigint> {}
147
+ // #endregion ArrayLike.at() end
285
148
 
286
- interface RequireResolve {
287
- (id: string, options?: { paths?: string[] | undefined; }): string;
288
- paths(request: string): string[] | null;
289
- }
290
-
291
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
292
- '.js': (m: Module, filename: string) => any;
293
- '.json': (m: Module, filename: string) => any;
294
- '.node': (m: Module, filename: string) => any;
295
- }
296
- interface Module {
297
- /**
298
- * `true` if the module is running during the Node.js preload
299
- */
300
- isPreloading: boolean;
301
- exports: any;
302
- require: Require;
303
- id: string;
304
- filename: string;
305
- loaded: boolean;
306
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
307
- parent: Module | null | undefined;
308
- children: Module[];
309
- /**
310
- * @since v11.14.0
311
- *
312
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
313
- */
314
- path: string;
315
- paths: string[];
316
- }
317
-
318
- interface Dict<T> {
319
- [key: string]: T | undefined;
149
+ /**
150
+ * @since v17.0.0
151
+ *
152
+ * Creates a deep clone of an object.
153
+ */
154
+ function structuredClone<T>(
155
+ value: T,
156
+ transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
157
+ ): T;
158
+
159
+ /*----------------------------------------------*
160
+ * *
161
+ * GLOBAL INTERFACES *
162
+ * *
163
+ *-----------------------------------------------*/
164
+ namespace NodeJS {
165
+ interface CallSite {
166
+ /**
167
+ * Value of "this"
168
+ */
169
+ getThis(): unknown;
170
+
171
+ /**
172
+ * Type of "this" as a string.
173
+ * This is the name of the function stored in the constructor field of
174
+ * "this", if available. Otherwise the object's [[Class]] internal
175
+ * property.
176
+ */
177
+ getTypeName(): string | null;
178
+
179
+ /**
180
+ * Current function
181
+ */
182
+ getFunction(): Function | undefined;
183
+
184
+ /**
185
+ * Name of the current function, typically its name property.
186
+ * If a name property is not available an attempt will be made to try
187
+ * to infer a name from the function's context.
188
+ */
189
+ getFunctionName(): string | null;
190
+
191
+ /**
192
+ * Name of the property [of "this" or one of its prototypes] that holds
193
+ * the current function
194
+ */
195
+ getMethodName(): string | null;
196
+
197
+ /**
198
+ * Name of the script [if this function was defined in a script]
199
+ */
200
+ getFileName(): string | undefined;
201
+
202
+ /**
203
+ * Current line number [if this function was defined in a script]
204
+ */
205
+ getLineNumber(): number | null;
206
+
207
+ /**
208
+ * Current column number [if this function was defined in a script]
209
+ */
210
+ getColumnNumber(): number | null;
211
+
212
+ /**
213
+ * A call site object representing the location where eval was called
214
+ * [if this function was created using a call to eval]
215
+ */
216
+ getEvalOrigin(): string | undefined;
217
+
218
+ /**
219
+ * Is this a toplevel invocation, that is, is "this" the global object?
220
+ */
221
+ isToplevel(): boolean;
222
+
223
+ /**
224
+ * Does this call take place in code defined by a call to eval?
225
+ */
226
+ isEval(): boolean;
227
+
228
+ /**
229
+ * Is this call in native V8 code?
230
+ */
231
+ isNative(): boolean;
232
+
233
+ /**
234
+ * Is this a constructor call?
235
+ */
236
+ isConstructor(): boolean;
237
+ }
238
+
239
+ interface ErrnoException extends Error {
240
+ errno?: number | undefined;
241
+ code?: string | undefined;
242
+ path?: string | undefined;
243
+ syscall?: string | undefined;
244
+ }
245
+
246
+ interface ReadableStream extends EventEmitter {
247
+ readable: boolean;
248
+ read(size?: number): string | Buffer;
249
+ setEncoding(encoding: BufferEncoding): this;
250
+ pause(): this;
251
+ resume(): this;
252
+ isPaused(): boolean;
253
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
254
+ unpipe(destination?: WritableStream): this;
255
+ unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
256
+ wrap(oldStream: ReadableStream): this;
257
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
258
+ }
259
+
260
+ interface WritableStream extends EventEmitter {
261
+ writable: boolean;
262
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
263
+ write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
264
+ end(cb?: () => void): this;
265
+ end(data: string | Uint8Array, cb?: () => void): this;
266
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
267
+ }
268
+
269
+ interface ReadWriteStream extends ReadableStream, WritableStream {}
270
+
271
+ interface RefCounted {
272
+ ref(): this;
273
+ unref(): this;
274
+ }
275
+
276
+ type TypedArray =
277
+ | Uint8Array
278
+ | Uint8ClampedArray
279
+ | Uint16Array
280
+ | Uint32Array
281
+ | Int8Array
282
+ | Int16Array
283
+ | Int32Array
284
+ | BigUint64Array
285
+ | BigInt64Array
286
+ | Float32Array
287
+ | Float64Array;
288
+ type ArrayBufferView = TypedArray | DataView;
289
+
290
+ interface Require {
291
+ (id: string): any;
292
+ resolve: RequireResolve;
293
+ cache: Dict<NodeModule>;
294
+ /**
295
+ * @deprecated
296
+ */
297
+ extensions: RequireExtensions;
298
+ main: Module | undefined;
299
+ }
300
+
301
+ interface RequireResolve {
302
+ (id: string, options?: { paths?: string[] | undefined }): string;
303
+ paths(request: string): string[] | null;
304
+ }
305
+
306
+ interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
307
+ ".js": (m: Module, filename: string) => any;
308
+ ".json": (m: Module, filename: string) => any;
309
+ ".node": (m: Module, filename: string) => any;
310
+ }
311
+ interface Module {
312
+ /**
313
+ * `true` if the module is running during the Node.js preload
314
+ */
315
+ isPreloading: boolean;
316
+ exports: any;
317
+ require: Require;
318
+ id: string;
319
+ filename: string;
320
+ loaded: boolean;
321
+ /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
322
+ parent: Module | null | undefined;
323
+ children: Module[];
324
+ /**
325
+ * @since v11.14.0
326
+ *
327
+ * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
328
+ */
329
+ path: string;
330
+ paths: string[];
331
+ }
332
+
333
+ interface Dict<T> {
334
+ [key: string]: T | undefined;
335
+ }
336
+
337
+ interface ReadOnlyDict<T> {
338
+ readonly [key: string]: T | undefined;
339
+ }
320
340
  }
321
341
 
322
- interface ReadOnlyDict<T> {
323
- readonly [key: string]: T | undefined;
324
- }
342
+ interface RequestInit extends _RequestInit {}
343
+
344
+ function fetch(
345
+ input: string | URL | globalThis.Request,
346
+ init?: RequestInit,
347
+ ): Promise<Response>;
348
+
349
+ interface Request extends _Request {}
350
+ var Request: typeof globalThis extends {
351
+ onmessage: any;
352
+ Request: infer T;
353
+ } ? T
354
+ : typeof import("undici-types").Request;
355
+
356
+ interface ResponseInit extends _ResponseInit {}
357
+
358
+ interface Response extends _Response {}
359
+ var Response: typeof globalThis extends {
360
+ onmessage: any;
361
+ Response: infer T;
362
+ } ? T
363
+ : typeof import("undici-types").Response;
364
+
365
+ interface FormData extends _FormData {}
366
+ var FormData: typeof globalThis extends {
367
+ onmessage: any;
368
+ FormData: infer T;
369
+ } ? T
370
+ : typeof import("undici-types").FormData;
371
+
372
+ interface Headers extends _Headers {}
373
+ var Headers: typeof globalThis extends {
374
+ onmessage: any;
375
+ Headers: infer T;
376
+ } ? T
377
+ : typeof import("undici-types").Headers;
378
+
379
+ interface File extends _File {}
380
+ var File: typeof globalThis extends {
381
+ onmessage: any;
382
+ File: infer T;
383
+ } ? T
384
+ : typeof import("node:buffer").File;
325
385
  }
File without changes