node-red-contrib-tak-registration 0.7.2 → 0.8.3

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 (102) hide show
  1. package/README.md +3 -1
  2. package/node_modules/@types/node/README.md +1 -1
  3. package/node_modules/@types/node/child_process.d.ts +5 -0
  4. package/node_modules/@types/node/dgram.d.ts +5 -0
  5. package/node_modules/@types/node/events.d.ts +35 -0
  6. package/node_modules/@types/node/fs/promises.d.ts +5 -0
  7. package/node_modules/@types/node/fs.d.ts +43 -5
  8. package/node_modules/@types/node/globals.d.ts +22 -0
  9. package/node_modules/@types/node/index.d.ts +1 -1
  10. package/node_modules/@types/node/inspector.d.ts +1 -1
  11. package/node_modules/@types/node/module.d.ts +103 -0
  12. package/node_modules/@types/node/net.d.ts +5 -0
  13. package/node_modules/@types/node/package.json +2 -2
  14. package/node_modules/@types/node/stream.d.ts +143 -0
  15. package/node_modules/@types/node/test.d.ts +33 -4
  16. package/node_modules/@types/node/timers.d.ts +12 -2
  17. package/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  18. package/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  19. package/node_modules/@types/node/ts4.8/events.d.ts +35 -0
  20. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +5 -0
  21. package/node_modules/@types/node/ts4.8/fs.d.ts +43 -5
  22. package/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  23. package/node_modules/@types/node/ts4.8/inspector.d.ts +1 -1
  24. package/node_modules/@types/node/ts4.8/module.d.ts +103 -0
  25. package/node_modules/@types/node/ts4.8/net.d.ts +5 -0
  26. package/node_modules/@types/node/ts4.8/stream.d.ts +762 -728
  27. package/node_modules/@types/node/ts4.8/test.d.ts +97 -50
  28. package/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  29. package/node_modules/@types/node/ts4.8/vm.d.ts +2 -1
  30. package/node_modules/@types/node/vm.d.ts +2 -1
  31. package/node_modules/axios/CHANGELOG.md +23 -0
  32. package/node_modules/axios/README.md +33 -5
  33. package/node_modules/axios/dist/axios.js +26 -18
  34. package/node_modules/axios/dist/axios.js.map +1 -1
  35. package/node_modules/axios/dist/axios.min.js +1 -1
  36. package/node_modules/axios/dist/axios.min.js.map +1 -1
  37. package/node_modules/axios/dist/browser/axios.cjs +24 -20
  38. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  39. package/node_modules/axios/dist/esm/axios.js +26 -21
  40. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  41. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  42. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  43. package/node_modules/axios/dist/node/axios.cjs +27 -21
  44. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  45. package/node_modules/axios/index.d.cts +1 -0
  46. package/node_modules/axios/index.d.ts +3 -0
  47. package/node_modules/axios/index.js +2 -0
  48. package/node_modules/axios/lib/adapters/http.js +3 -1
  49. package/node_modules/axios/lib/axios.js +3 -0
  50. package/node_modules/axios/lib/core/Axios.js +2 -4
  51. package/node_modules/axios/lib/core/AxiosHeaders.js +11 -1
  52. package/node_modules/axios/lib/defaults/index.js +4 -11
  53. package/node_modules/axios/lib/env/data.js +1 -1
  54. package/node_modules/axios/lib/utils.js +3 -2
  55. package/node_modules/axios/package.json +3 -1
  56. package/node_modules/fast-xml-parser/CHANGELOG.md +561 -0
  57. package/node_modules/fast-xml-parser/README.md +134 -287
  58. package/node_modules/fast-xml-parser/package.json +17 -40
  59. package/node_modules/fast-xml-parser/{cli.js → src/cli/cli.js} +16 -24
  60. package/node_modules/fast-xml-parser/src/cli/man.js +12 -0
  61. package/node_modules/fast-xml-parser/src/fxp.d.ts +108 -0
  62. package/node_modules/fast-xml-parser/src/fxp.js +11 -0
  63. package/node_modules/fast-xml-parser/src/util.js +0 -36
  64. package/node_modules/fast-xml-parser/src/validator.js +15 -5
  65. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +269 -0
  66. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +131 -0
  67. package/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js +0 -0
  68. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +152 -0
  69. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +48 -0
  70. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +589 -0
  71. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +58 -0
  72. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +113 -0
  73. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +25 -0
  74. package/node_modules/protobufjs/dist/light/protobuf.js +24 -13
  75. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  76. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  77. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  78. package/node_modules/protobufjs/dist/minimal/protobuf.js +12 -7
  79. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  80. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  81. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  82. package/node_modules/protobufjs/dist/protobuf.js +40 -18
  83. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  84. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  85. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  86. package/node_modules/protobufjs/package.json +1 -1
  87. package/node_modules/protobufjs/src/converter.js +2 -2
  88. package/node_modules/protobufjs/src/parse.js +4 -1
  89. package/node_modules/protobufjs/src/reader.js +8 -3
  90. package/node_modules/protobufjs/src/tokenize.js +2 -4
  91. package/package.json +4 -4
  92. package/tak-ingest.js +4 -3
  93. package/tak-registration.js +14 -5
  94. package/node_modules/fast-xml-parser/src/json2xml.js +0 -280
  95. package/node_modules/fast-xml-parser/src/nimndata.js +0 -144
  96. package/node_modules/fast-xml-parser/src/node2json.js +0 -42
  97. package/node_modules/fast-xml-parser/src/node2json_str.js +0 -63
  98. package/node_modules/fast-xml-parser/src/parser.d.ts +0 -79
  99. package/node_modules/fast-xml-parser/src/parser.js +0 -76
  100. package/node_modules/fast-xml-parser/src/xmlNode.js +0 -17
  101. package/node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +0 -339
  102. /package/node_modules/fast-xml-parser/src/{read.js → cli/read.js} +0 -0
@@ -538,6 +538,11 @@ declare module 'dgram' {
538
538
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
539
539
  prependOnceListener(event: 'listening', listener: () => void): this;
540
540
  prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
541
+ /**
542
+ * Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
543
+ * @since v20.5.0
544
+ */
545
+ [Symbol.asyncDispose](): Promise<void>;
541
546
  }
542
547
  }
543
548
  declare module 'node:dgram' {
@@ -338,6 +338,41 @@ declare module 'events' {
338
338
  * objects.
339
339
  */
340
340
  static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
341
+ /**
342
+ * Listens once to the `abort` event on the provided `signal`.
343
+ *
344
+ * Listening to the `abort` event on abort signals is unsafe and may
345
+ * lead to resource leaks since another third party with the signal can
346
+ * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
347
+ * this since it would violate the web standard. Additionally, the original
348
+ * API makes it easy to forget to remove listeners.
349
+ *
350
+ * This API allows safely using `AbortSignal`s in Node.js APIs by solving these
351
+ * two issues by listening to the event such that `stopImmediatePropagation` does
352
+ * not prevent the listener from running.
353
+ *
354
+ * Returns a disposable so that it may be unsubscribed from more easily.
355
+ *
356
+ * ```js
357
+ * import { addAbortListener } from 'node:events';
358
+ *
359
+ * function example(signal) {
360
+ * let disposable;
361
+ * try {
362
+ * signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
363
+ * disposable = addAbortListener(signal, (e) => {
364
+ * // Do something when signal is aborted.
365
+ * });
366
+ * } finally {
367
+ * disposable?.[Symbol.dispose]();
368
+ * }
369
+ * }
370
+ * ```
371
+ * @since v20.5.0
372
+ * @experimental
373
+ * @return that removes the `abort` listener.
374
+ */
375
+ static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
341
376
  /**
342
377
  * This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called.
343
378
  *
@@ -456,6 +456,11 @@ declare module 'fs/promises' {
456
456
  * @return Fulfills with `undefined` upon success.
457
457
  */
458
458
  close(): Promise<void>;
459
+ /**
460
+ * An alias for {@link FileHandle.close()}.
461
+ * @since v20.4.0
462
+ */
463
+ [Symbol.asyncDispose](): Promise<void>;
459
464
  }
460
465
  const constants: typeof fsConstants;
461
466
  /**
@@ -3618,15 +3618,28 @@ declare module 'fs' {
3618
3618
  fd?: number | promises.FileHandle | undefined;
3619
3619
  mode?: number | undefined;
3620
3620
  autoClose?: boolean | undefined;
3621
- /**
3622
- * @default false
3623
- */
3624
3621
  emitClose?: boolean | undefined;
3625
3622
  start?: number | undefined;
3626
- highWaterMark?: number | undefined;
3623
+ signal?: AbortSignal | null | undefined;
3624
+ }
3625
+ interface FSImplementation {
3626
+ open?: (...args: any[]) => any;
3627
+ close?: (...args: any[]) => any;
3628
+ }
3629
+ interface CreateReadStreamFSImplementation extends FSImplementation {
3630
+ read: (...args: any[]) => any;
3631
+ }
3632
+ interface CreateWriteStreamFSImplementation extends FSImplementation {
3633
+ write: (...args: any[]) => any;
3634
+ writev?: (...args: any[]) => any;
3627
3635
  }
3628
3636
  interface ReadStreamOptions extends StreamOptions {
3637
+ fs?: CreateReadStreamFSImplementation | null | undefined;
3629
3638
  end?: number | undefined;
3639
+ highWaterMark?: number | undefined;
3640
+ }
3641
+ interface WriteStreamOptions extends StreamOptions {
3642
+ fs?: CreateWriteStreamFSImplementation | null | undefined;
3630
3643
  }
3631
3644
  /**
3632
3645
  * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
@@ -3720,7 +3733,7 @@ declare module 'fs' {
3720
3733
  * If `options` is a string, then it specifies the encoding.
3721
3734
  * @since v0.1.31
3722
3735
  */
3723
- export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream;
3736
+ export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
3724
3737
  /**
3725
3738
  * Forces all currently queued I/O operations associated with the file to the
3726
3739
  * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
@@ -3900,6 +3913,31 @@ declare module 'fs' {
3900
3913
  * @return The number of bytes read.
3901
3914
  */
3902
3915
  export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
3916
+
3917
+ export interface OpenAsBlobOptions {
3918
+ /**
3919
+ * An optional mime type for the blob.
3920
+ *
3921
+ * @default 'undefined'
3922
+ */
3923
+ type?: string | undefined;
3924
+ }
3925
+
3926
+ /**
3927
+ * Returns a Blob whose data is backed by the given file.
3928
+ *
3929
+ * The file must not be modified after the `Blob` is created.
3930
+ * Any modifications will cause reading the `Blob` data to fail with a `DOMException` error.
3931
+ * Synchronous stat operations on the file when the `Blob` is created, and before each read in order to detect whether the file data has been modified on disk.
3932
+ *
3933
+ * @param path
3934
+ * @param [options]
3935
+ *
3936
+ * @experimental
3937
+ * @since v19.8.0
3938
+ */
3939
+ export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise<Blob>;
3940
+
3903
3941
  export interface OpenDirOptions {
3904
3942
  /**
3905
3943
  * @default 'utf8'
@@ -84,6 +84,28 @@ declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal:
84
84
  };
85
85
  //#endregion borrowed
86
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;
93
+
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
+ }
99
+
100
+ interface Disposable {
101
+ [Symbol.dispose](): void;
102
+ }
103
+
104
+ interface AsyncDisposable {
105
+ [Symbol.asyncDispose](): PromiseLike<void>;
106
+ }
107
+ //#endregion Disposable
108
+
87
109
  //#region ArrayLike.at()
88
110
  interface RelativeIndexable<T> {
89
111
  /**
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line dt-header
1
+ // eslint-disable-next-line @definitelytyped/dt-header
2
2
  // Type definitions for inspector
3
3
 
4
4
  // These definitions are auto-generated.
@@ -3,6 +3,7 @@
3
3
  */
4
4
  declare module 'module' {
5
5
  import { URL } from 'node:url';
6
+ import { MessagePort } from 'node:worker_threads';
6
7
  namespace Module {
7
8
  /**
8
9
  * The `module.syncBuiltinESMExports()` method updates all the live bindings for
@@ -92,6 +93,108 @@ declare module 'module' {
92
93
  */
93
94
  findEntry(lineOffset: number, columnOffset: number): SourceMapping;
94
95
  }
96
+ interface ImportAssertions extends NodeJS.Dict<string> {
97
+ type?: string | undefined;
98
+ }
99
+ type ModuleFormat = 'builtin' | 'commonjs' | 'json' | 'module' | 'wasm';
100
+ type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
101
+ interface GlobalPreloadContext {
102
+ port: MessagePort;
103
+ }
104
+ /**
105
+ * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in.
106
+ * This hook allows the return of a string that is run as a sloppy-mode script on startup.
107
+ *
108
+ * @param context Information to assist the preload code
109
+ * @return Code to run before application startup
110
+ */
111
+ type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
112
+ interface ResolveHookContext {
113
+ /**
114
+ * Export conditions of the relevant `package.json`
115
+ */
116
+ conditions: string[];
117
+ /**
118
+ * An object whose key-value pairs represent the assertions for the module to import
119
+ */
120
+ importAssertions: ImportAssertions;
121
+ /**
122
+ * The module importing this one, or undefined if this is the Node.js entry point
123
+ */
124
+ parentURL: string | undefined;
125
+ }
126
+ interface ResolveFnOutput {
127
+ /**
128
+ * A hint to the load hook (it might be ignored)
129
+ */
130
+ format?: ModuleFormat | null | undefined;
131
+ /**
132
+ * The import assertions to use when caching the module (optional; if excluded the input will be used)
133
+ */
134
+ importAssertions?: ImportAssertions | undefined;
135
+ /**
136
+ * A signal that this hook intends to terminate the chain of `resolve` hooks.
137
+ * @default false
138
+ */
139
+ shortCircuit?: boolean | undefined;
140
+ /**
141
+ * The absolute URL to which this input resolves
142
+ */
143
+ url: string;
144
+ }
145
+ /**
146
+ * The `resolve` hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as `'module'`) as a hint to the `load` hook.
147
+ * If a format is specified, the load hook is ultimately responsible for providing the final `format` value (and it is free to ignore the hint provided by `resolve`);
148
+ * if `resolve` provides a format, a custom `load` hook is required even if only to pass the value to the Node.js default `load` hook.
149
+ *
150
+ * @param specifier The specified URL path of the module to be resolved
151
+ * @param context
152
+ * @param nextResolve The subsequent `resolve` hook in the chain, or the Node.js default `resolve` hook after the last user-supplied resolve hook
153
+ */
154
+ type ResolveHook = (
155
+ specifier: string,
156
+ context: ResolveHookContext,
157
+ nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput | Promise<ResolveFnOutput>
158
+ ) => ResolveFnOutput | Promise<ResolveFnOutput>;
159
+ interface LoadHookContext {
160
+ /**
161
+ * Export conditions of the relevant `package.json`
162
+ */
163
+ conditions: string[];
164
+ /**
165
+ * The format optionally supplied by the `resolve` hook chain
166
+ */
167
+ format: ModuleFormat;
168
+ /**
169
+ * An object whose key-value pairs represent the assertions for the module to import
170
+ */
171
+ importAssertions: ImportAssertions;
172
+ }
173
+ interface LoadFnOutput {
174
+ format: ModuleFormat;
175
+ /**
176
+ * A signal that this hook intends to terminate the chain of `resolve` hooks.
177
+ * @default false
178
+ */
179
+ shortCircuit?: boolean | undefined;
180
+ /**
181
+ * The source for Node.js to evaluate
182
+ */
183
+ source?: ModuleSource;
184
+ }
185
+ /**
186
+ * The `load` hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed.
187
+ * It is also in charge of validating the import assertion.
188
+ *
189
+ * @param url The URL/path of the module to be loaded
190
+ * @param context Metadata about the module
191
+ * @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
192
+ */
193
+ type LoadHook = (
194
+ url: string,
195
+ context: LoadHookContext,
196
+ nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>
197
+ ) => LoadFnOutput | Promise<LoadFnOutput>;
95
198
  }
96
199
  interface Module extends NodeModule {}
97
200
  class Module {
@@ -639,6 +639,11 @@ declare module 'net' {
639
639
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
640
640
  prependOnceListener(event: 'listening', listener: () => void): this;
641
641
  prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
642
+ /**
643
+ * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
644
+ * @since v20.5.0
645
+ */
646
+ [Symbol.asyncDispose](): Promise<void>;
642
647
  }
643
648
  type IPVersion = 'ipv4' | 'ipv6';
644
649
  /**