node-red-contrib-tak-registration 0.11.1 → 0.11.4
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.
- package/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/assert.d.ts +50 -26
- package/node_modules/@types/node/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/buffer.d.ts +46 -38
- package/node_modules/@types/node/child_process.d.ts +278 -138
- package/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/node/console.d.ts +18 -15
- package/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/node/crypto.d.ts +746 -268
- package/node_modules/@types/node/dgram.d.ts +82 -46
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/dns.d.ts +204 -63
- package/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +99 -8
- package/node_modules/@types/node/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/fs.d.ts +520 -316
- package/node_modules/@types/node/globals.d.ts +346 -286
- package/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/node/http.d.ts +321 -189
- package/node_modules/@types/node/http2.d.ts +630 -377
- package/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/node/index.d.ts +0 -45
- package/node_modules/@types/node/inspector.d.ts +0 -1
- package/node_modules/@types/node/module.d.ts +75 -31
- package/node_modules/@types/node/net.d.ts +149 -93
- package/node_modules/@types/node/os.d.ts +10 -9
- package/node_modules/@types/node/package.json +88 -90
- package/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/process.d.ts +170 -126
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/node/stream.d.ts +365 -232
- package/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/test.d.ts +133 -212
- package/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/timers.d.ts +26 -11
- package/node_modules/@types/node/tls.d.ts +152 -72
- package/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/assert.d.ts +50 -26
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +13 -6
- package/node_modules/@types/node/ts4.8/buffer.d.ts +47 -39
- package/node_modules/@types/node/ts4.8/child_process.d.ts +278 -138
- package/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/node/ts4.8/console.d.ts +18 -15
- package/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/node/ts4.8/crypto.d.ts +746 -268
- package/node_modules/@types/node/ts4.8/dgram.d.ts +82 -46
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +37 -26
- package/node_modules/@types/node/ts4.8/dns.d.ts +204 -63
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/events.d.ts +99 -8
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +122 -85
- package/node_modules/@types/node/ts4.8/fs.d.ts +520 -316
- package/node_modules/@types/node/ts4.8/globals.d.ts +346 -286
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +321 -189
- package/node_modules/@types/node/ts4.8/http2.d.ts +630 -377
- package/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/module.d.ts +75 -31
- package/node_modules/@types/node/ts4.8/net.d.ts +149 -93
- package/node_modules/@types/node/ts4.8/os.d.ts +10 -9
- package/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/node/ts4.8/process.d.ts +170 -126
- package/node_modules/@types/node/ts4.8/punycode.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/node/ts4.8/stream.d.ts +494 -223
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/node/ts4.8/test.d.ts +135 -214
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/timers.d.ts +26 -11
- package/node_modules/@types/node/ts4.8/tls.d.ts +152 -72
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/node/ts4.8/url.d.ts +26 -14
- package/node_modules/@types/node/ts4.8/util.d.ts +187 -120
- package/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/node/ts4.8/vm.d.ts +58 -50
- package/node_modules/@types/node/ts4.8/wasi.d.ts +10 -4
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/node/url.d.ts +26 -14
- package/node_modules/@types/node/util.d.ts +187 -120
- package/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/node/vm.d.ts +58 -50
- package/node_modules/@types/node/wasi.d.ts +10 -4
- package/node_modules/@types/node/worker_threads.d.ts +83 -86
- package/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +225 -0
- package/node_modules/axios/README.md +273 -9
- package/node_modules/axios/dist/axios.js +249 -178
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +213 -193
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +213 -193
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +297 -213
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +20 -11
- package/node_modules/axios/index.d.ts +21 -12
- package/node_modules/axios/lib/adapters/adapters.js +33 -15
- package/node_modules/axios/lib/adapters/http.js +25 -12
- package/node_modules/axios/lib/adapters/xhr.js +17 -10
- package/node_modules/axios/lib/core/mergeConfig.js +1 -0
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +39 -49
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +0 -51
- package/node_modules/axios/lib/platform/common/utils.js +47 -0
- package/node_modules/axios/lib/platform/index.js +5 -1
- package/node_modules/axios/package.json +2 -1
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/{function-bind → deep-equal}/.editorconfig +1 -1
- package/node_modules/deep-equal/.eslintrc +6 -0
- package/node_modules/deep-equal/.nycrc +17 -0
- package/node_modules/deep-equal/CHANGELOG.md +204 -4
- package/node_modules/deep-equal/assert.js +3 -0
- package/node_modules/deep-equal/package.json +39 -17
- package/node_modules/deep-equal/readme.markdown +28 -12
- package/node_modules/deep-equal/test/_tape.js +24 -3
- package/node_modules/deep-equal/test/cmp.js +1047 -48
- package/node_modules/define-data-property/CHANGELOG.md +10 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -1
- package/node_modules/define-data-property/index.js +8 -0
- package/node_modules/define-data-property/package.json +11 -9
- package/node_modules/define-data-property/test/index.js +6 -11
- package/node_modules/define-data-property/tsconfig.json +1 -0
- package/node_modules/fast-xml-parser/CHANGELOG.md +11 -0
- package/node_modules/fast-xml-parser/package.json +5 -5
- package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +1 -0
- package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +4 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +6 -3
- package/node_modules/follow-redirects/index.js +16 -4
- package/node_modules/follow-redirects/package.json +2 -3
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/has-property-descriptors/CHANGELOG.md +11 -0
- package/node_modules/has-property-descriptors/package.json +13 -6
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +3 -3
- package/tak-ingest.js +39 -24
- package/tak-registration.html +4 -4
- package/node_modules/define-data-property/tsinit +0 -109
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -48
- package/node_modules/has/src/index.js +0 -5
- package/node_modules/has/test/index.js +0 -10
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Readable } from "stream";
|
|
2
|
+
import { Blob } from 'buffer'
|
|
3
|
+
|
|
4
|
+
export default BodyReadable
|
|
5
|
+
|
|
6
|
+
declare class BodyReadable extends Readable {
|
|
7
|
+
constructor(
|
|
8
|
+
resume?: (this: Readable, size: number) => void | null,
|
|
9
|
+
abort?: () => void | null,
|
|
10
|
+
contentType?: string
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
/** Consumes and returns the body as a string
|
|
14
|
+
* https://fetch.spec.whatwg.org/#dom-body-text
|
|
15
|
+
*/
|
|
16
|
+
text(): Promise<string>
|
|
17
|
+
|
|
18
|
+
/** Consumes and returns the body as a JavaScript Object
|
|
19
|
+
* https://fetch.spec.whatwg.org/#dom-body-json
|
|
20
|
+
*/
|
|
21
|
+
json(): Promise<unknown>
|
|
22
|
+
|
|
23
|
+
/** Consumes and returns the body as a Blob
|
|
24
|
+
* https://fetch.spec.whatwg.org/#dom-body-blob
|
|
25
|
+
*/
|
|
26
|
+
blob(): Promise<Blob>
|
|
27
|
+
|
|
28
|
+
/** Consumes and returns the body as an ArrayBuffer
|
|
29
|
+
* https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
|
30
|
+
*/
|
|
31
|
+
arrayBuffer(): Promise<ArrayBuffer>
|
|
32
|
+
|
|
33
|
+
/** Not implemented
|
|
34
|
+
*
|
|
35
|
+
* https://fetch.spec.whatwg.org/#dom-body-formdata
|
|
36
|
+
*/
|
|
37
|
+
formData(): Promise<never>
|
|
38
|
+
|
|
39
|
+
/** Returns true if the body is not null and the body has been consumed
|
|
40
|
+
*
|
|
41
|
+
* Otherwise, returns false
|
|
42
|
+
*
|
|
43
|
+
* https://fetch.spec.whatwg.org/#dom-body-bodyused
|
|
44
|
+
*/
|
|
45
|
+
readonly bodyUsed: boolean
|
|
46
|
+
|
|
47
|
+
/** Throws on node 16.6.0
|
|
48
|
+
*
|
|
49
|
+
* If body is null, it should return null as the body
|
|
50
|
+
*
|
|
51
|
+
* If body is not null, should return the body as a ReadableStream
|
|
52
|
+
*
|
|
53
|
+
* https://fetch.spec.whatwg.org/#dom-body-body
|
|
54
|
+
*/
|
|
55
|
+
readonly body: never | undefined
|
|
56
|
+
|
|
57
|
+
/** Dumps the response body by reading `limit` number of bytes.
|
|
58
|
+
* @param opts.limit Number of bytes to read (optional) - Default: 262144
|
|
59
|
+
*/
|
|
60
|
+
dump(opts?: { limit: number }): Promise<void>
|
|
61
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
// These types are not exported, and are only used internally
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Take in an unknown value and return one that is of type T
|
|
5
|
+
*/
|
|
6
|
+
type Converter<T> = (object: unknown) => T
|
|
7
|
+
|
|
8
|
+
type SequenceConverter<T> = (object: unknown) => T[]
|
|
9
|
+
|
|
10
|
+
type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
|
|
11
|
+
|
|
12
|
+
interface ConvertToIntOpts {
|
|
13
|
+
clamp?: boolean
|
|
14
|
+
enforceRange?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface WebidlErrors {
|
|
18
|
+
exception (opts: { header: string, message: string }): TypeError
|
|
19
|
+
/**
|
|
20
|
+
* @description Throw an error when conversion from one type to another has failed
|
|
21
|
+
*/
|
|
22
|
+
conversionFailed (opts: {
|
|
23
|
+
prefix: string
|
|
24
|
+
argument: string
|
|
25
|
+
types: string[]
|
|
26
|
+
}): TypeError
|
|
27
|
+
/**
|
|
28
|
+
* @description Throw an error when an invalid argument is provided
|
|
29
|
+
*/
|
|
30
|
+
invalidArgument (opts: {
|
|
31
|
+
prefix: string
|
|
32
|
+
value: string
|
|
33
|
+
type: string
|
|
34
|
+
}): TypeError
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface WebidlUtil {
|
|
38
|
+
/**
|
|
39
|
+
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
40
|
+
*/
|
|
41
|
+
Type (object: unknown):
|
|
42
|
+
| 'Undefined'
|
|
43
|
+
| 'Boolean'
|
|
44
|
+
| 'String'
|
|
45
|
+
| 'Symbol'
|
|
46
|
+
| 'Number'
|
|
47
|
+
| 'BigInt'
|
|
48
|
+
| 'Null'
|
|
49
|
+
| 'Object'
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
53
|
+
*/
|
|
54
|
+
ConvertToInt (
|
|
55
|
+
V: unknown,
|
|
56
|
+
bitLength: number,
|
|
57
|
+
signedness: 'signed' | 'unsigned',
|
|
58
|
+
opts?: ConvertToIntOpts
|
|
59
|
+
): number
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
63
|
+
*/
|
|
64
|
+
IntegerPart (N: number): number
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface WebidlConverters {
|
|
68
|
+
/**
|
|
69
|
+
* @see https://webidl.spec.whatwg.org/#es-DOMString
|
|
70
|
+
*/
|
|
71
|
+
DOMString (V: unknown, opts?: {
|
|
72
|
+
legacyNullToEmptyString: boolean
|
|
73
|
+
}): string
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @see https://webidl.spec.whatwg.org/#es-ByteString
|
|
77
|
+
*/
|
|
78
|
+
ByteString (V: unknown): string
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @see https://webidl.spec.whatwg.org/#es-USVString
|
|
82
|
+
*/
|
|
83
|
+
USVString (V: unknown): string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @see https://webidl.spec.whatwg.org/#es-boolean
|
|
87
|
+
*/
|
|
88
|
+
boolean (V: unknown): boolean
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @see https://webidl.spec.whatwg.org/#es-any
|
|
92
|
+
*/
|
|
93
|
+
any <Value>(V: Value): Value
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @see https://webidl.spec.whatwg.org/#es-long-long
|
|
97
|
+
*/
|
|
98
|
+
['long long'] (V: unknown): number
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
|
102
|
+
*/
|
|
103
|
+
['unsigned long long'] (V: unknown): number
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long
|
|
107
|
+
*/
|
|
108
|
+
['unsigned long'] (V: unknown): number
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-short
|
|
112
|
+
*/
|
|
113
|
+
['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
|
117
|
+
*/
|
|
118
|
+
ArrayBuffer (V: unknown): ArrayBufferLike
|
|
119
|
+
ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
123
|
+
*/
|
|
124
|
+
TypedArray (
|
|
125
|
+
V: unknown,
|
|
126
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike
|
|
127
|
+
): NodeJS.TypedArray | ArrayBufferLike
|
|
128
|
+
TypedArray (
|
|
129
|
+
V: unknown,
|
|
130
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike,
|
|
131
|
+
opts?: { allowShared: false }
|
|
132
|
+
): NodeJS.TypedArray | ArrayBuffer
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
136
|
+
*/
|
|
137
|
+
DataView (V: unknown, opts?: { allowShared: boolean }): DataView
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @see https://webidl.spec.whatwg.org/#BufferSource
|
|
141
|
+
*/
|
|
142
|
+
BufferSource (
|
|
143
|
+
V: unknown,
|
|
144
|
+
opts?: { allowShared: boolean }
|
|
145
|
+
): NodeJS.TypedArray | ArrayBufferLike | DataView
|
|
146
|
+
|
|
147
|
+
['sequence<ByteString>']: SequenceConverter<string>
|
|
148
|
+
|
|
149
|
+
['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
|
|
150
|
+
|
|
151
|
+
['record<ByteString, ByteString>']: RecordConverter<string, string>
|
|
152
|
+
|
|
153
|
+
[Key: string]: (...args: any[]) => unknown
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface Webidl {
|
|
157
|
+
errors: WebidlErrors
|
|
158
|
+
util: WebidlUtil
|
|
159
|
+
converters: WebidlConverters
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @description Performs a brand-check on {@param V} to ensure it is a
|
|
163
|
+
* {@param cls} object.
|
|
164
|
+
*/
|
|
165
|
+
brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @see https://webidl.spec.whatwg.org/#es-sequence
|
|
169
|
+
* @description Convert a value, V, to a WebIDL sequence type.
|
|
170
|
+
*/
|
|
171
|
+
sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
|
|
172
|
+
|
|
173
|
+
illegalConstructor (): never
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @see https://webidl.spec.whatwg.org/#es-to-record
|
|
177
|
+
* @description Convert a value, V, to a WebIDL record type.
|
|
178
|
+
*/
|
|
179
|
+
recordConverter <K extends string, V>(
|
|
180
|
+
keyConverter: Converter<K>,
|
|
181
|
+
valueConverter: Converter<V>
|
|
182
|
+
): RecordConverter<K, V>
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
|
|
186
|
+
* interfaces are allowed.
|
|
187
|
+
*/
|
|
188
|
+
interfaceConverter <Interface>(cls: Interface): (
|
|
189
|
+
V: unknown,
|
|
190
|
+
opts?: { strict: boolean }
|
|
191
|
+
) => asserts V is typeof cls
|
|
192
|
+
|
|
193
|
+
// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
|
|
194
|
+
// from the converters given?
|
|
195
|
+
/**
|
|
196
|
+
* Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
|
|
197
|
+
* allowed, values allowed, optional and required keys. Auto converts the value to
|
|
198
|
+
* a type given a converter.
|
|
199
|
+
*/
|
|
200
|
+
dictionaryConverter (converters: {
|
|
201
|
+
key: string,
|
|
202
|
+
defaultValue?: unknown,
|
|
203
|
+
required?: boolean,
|
|
204
|
+
converter: (...args: unknown[]) => unknown,
|
|
205
|
+
allowedValues?: unknown[]
|
|
206
|
+
}[]): (V: unknown) => Record<string, unknown>
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @see https://webidl.spec.whatwg.org/#idl-nullable-type
|
|
210
|
+
* @description allows a type, V, to be null
|
|
211
|
+
*/
|
|
212
|
+
nullableConverter <T>(
|
|
213
|
+
converter: Converter<T>
|
|
214
|
+
): (V: unknown) => ReturnType<typeof converter> | null
|
|
215
|
+
|
|
216
|
+
argumentLengthCheck (args: { length: number }, min: number, context: {
|
|
217
|
+
header: string
|
|
218
|
+
message?: string
|
|
219
|
+
}): void
|
|
220
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import type { Blob } from 'buffer'
|
|
4
|
+
import type { MessagePort } from 'worker_threads'
|
|
5
|
+
import {
|
|
6
|
+
EventTarget,
|
|
7
|
+
Event,
|
|
8
|
+
EventInit,
|
|
9
|
+
EventListenerOptions,
|
|
10
|
+
AddEventListenerOptions,
|
|
11
|
+
EventListenerOrEventListenerObject
|
|
12
|
+
} from './patch'
|
|
13
|
+
import Dispatcher from './dispatcher'
|
|
14
|
+
import { HeadersInit } from './fetch'
|
|
15
|
+
|
|
16
|
+
export type BinaryType = 'blob' | 'arraybuffer'
|
|
17
|
+
|
|
18
|
+
interface WebSocketEventMap {
|
|
19
|
+
close: CloseEvent
|
|
20
|
+
error: Event
|
|
21
|
+
message: MessageEvent
|
|
22
|
+
open: Event
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface WebSocket extends EventTarget {
|
|
26
|
+
binaryType: BinaryType
|
|
27
|
+
|
|
28
|
+
readonly bufferedAmount: number
|
|
29
|
+
readonly extensions: string
|
|
30
|
+
|
|
31
|
+
onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
|
|
32
|
+
onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
|
|
33
|
+
onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
|
|
34
|
+
onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
|
|
35
|
+
|
|
36
|
+
readonly protocol: string
|
|
37
|
+
readonly readyState: number
|
|
38
|
+
readonly url: string
|
|
39
|
+
|
|
40
|
+
close(code?: number, reason?: string): void
|
|
41
|
+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
|
|
42
|
+
|
|
43
|
+
readonly CLOSED: number
|
|
44
|
+
readonly CLOSING: number
|
|
45
|
+
readonly CONNECTING: number
|
|
46
|
+
readonly OPEN: number
|
|
47
|
+
|
|
48
|
+
addEventListener<K extends keyof WebSocketEventMap>(
|
|
49
|
+
type: K,
|
|
50
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
51
|
+
options?: boolean | AddEventListenerOptions
|
|
52
|
+
): void
|
|
53
|
+
addEventListener(
|
|
54
|
+
type: string,
|
|
55
|
+
listener: EventListenerOrEventListenerObject,
|
|
56
|
+
options?: boolean | AddEventListenerOptions
|
|
57
|
+
): void
|
|
58
|
+
removeEventListener<K extends keyof WebSocketEventMap>(
|
|
59
|
+
type: K,
|
|
60
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
61
|
+
options?: boolean | EventListenerOptions
|
|
62
|
+
): void
|
|
63
|
+
removeEventListener(
|
|
64
|
+
type: string,
|
|
65
|
+
listener: EventListenerOrEventListenerObject,
|
|
66
|
+
options?: boolean | EventListenerOptions
|
|
67
|
+
): void
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare const WebSocket: {
|
|
71
|
+
prototype: WebSocket
|
|
72
|
+
new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
|
|
73
|
+
readonly CLOSED: number
|
|
74
|
+
readonly CLOSING: number
|
|
75
|
+
readonly CONNECTING: number
|
|
76
|
+
readonly OPEN: number
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface CloseEventInit extends EventInit {
|
|
80
|
+
code?: number
|
|
81
|
+
reason?: string
|
|
82
|
+
wasClean?: boolean
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface CloseEvent extends Event {
|
|
86
|
+
readonly code: number
|
|
87
|
+
readonly reason: string
|
|
88
|
+
readonly wasClean: boolean
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare const CloseEvent: {
|
|
92
|
+
prototype: CloseEvent
|
|
93
|
+
new (type: string, eventInitDict?: CloseEventInit): CloseEvent
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface MessageEventInit<T = any> extends EventInit {
|
|
97
|
+
data?: T
|
|
98
|
+
lastEventId?: string
|
|
99
|
+
origin?: string
|
|
100
|
+
ports?: (typeof MessagePort)[]
|
|
101
|
+
source?: typeof MessagePort | null
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface MessageEvent<T = any> extends Event {
|
|
105
|
+
readonly data: T
|
|
106
|
+
readonly lastEventId: string
|
|
107
|
+
readonly origin: string
|
|
108
|
+
readonly ports: ReadonlyArray<typeof MessagePort>
|
|
109
|
+
readonly source: typeof MessagePort | null
|
|
110
|
+
initMessageEvent(
|
|
111
|
+
type: string,
|
|
112
|
+
bubbles?: boolean,
|
|
113
|
+
cancelable?: boolean,
|
|
114
|
+
data?: any,
|
|
115
|
+
origin?: string,
|
|
116
|
+
lastEventId?: string,
|
|
117
|
+
source?: typeof MessagePort | null,
|
|
118
|
+
ports?: (typeof MessagePort)[]
|
|
119
|
+
): void;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export declare const MessageEvent: {
|
|
123
|
+
prototype: MessageEvent
|
|
124
|
+
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
interface WebSocketInit {
|
|
128
|
+
protocols?: string | string[],
|
|
129
|
+
dispatcher?: Dispatcher,
|
|
130
|
+
headers?: HeadersInit
|
|
131
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-tak-registration",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@turf/turf": "6.5.0",
|
|
7
7
|
"adm-zip": "0.5.10",
|
|
8
|
-
"axios": "1.
|
|
9
|
-
"fast-xml-parser": "4.2
|
|
8
|
+
"axios": "1.6.2",
|
|
9
|
+
"fast-xml-parser": "4.3.2",
|
|
10
10
|
"form-data": "4.0.0",
|
|
11
11
|
"long": "5.2.3",
|
|
12
12
|
"protobufjs": "7.2.5",
|
package/tak-ingest.js
CHANGED
|
@@ -20,35 +20,49 @@ module.exports = function(RED) {
|
|
|
20
20
|
var global = this.context().global;
|
|
21
21
|
const parser = new XMLParser(fastXmlOptions);
|
|
22
22
|
|
|
23
|
+
var handleProtoBuf = function(msg) {
|
|
24
|
+
protobuf.load(path.join(__dirname,"proto/takmessage.proto"), function (err, root) {
|
|
25
|
+
if (err) { node.error(err); }
|
|
26
|
+
var m = root.lookupType("atakmap.commoncommo.protobuf.v1.TakMessage");
|
|
27
|
+
var m3;
|
|
28
|
+
try {
|
|
29
|
+
var m2 = m.decode(msg.payload);
|
|
30
|
+
m3 = m.toObject(m2, { longs:String, enums:String, bytes:String } ).cotEvent;
|
|
31
|
+
}
|
|
32
|
+
catch(e) { node.error("Protobuf decode "+e,msg); return; }
|
|
33
|
+
|
|
34
|
+
// Add any unique ID/callsigns to some global variables just in case it's useful for later.
|
|
35
|
+
if (m3.detail?.contact?.callsign && m3.uid) {
|
|
36
|
+
var a = global.get("_takgatewaycs") || {};
|
|
37
|
+
var c = a[m3.detail.contact.callsign];
|
|
38
|
+
a[m3.detail.contact.callsign] = m3.uid;
|
|
39
|
+
global.set("_takgatewaycs", a);
|
|
40
|
+
var b = global.get("_takgatewayid") || {};
|
|
41
|
+
if (c) { delete b[c]; }
|
|
42
|
+
b[m3.uid] = m3.detail.contact.callsign;
|
|
43
|
+
global.set("_takgatewayid", b);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
node.send({
|
|
47
|
+
topic: m3.type,
|
|
48
|
+
payload: { cotEvent: m3 }
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
23
53
|
node.on("input",function(msg) {
|
|
24
54
|
if (Buffer.isBuffer(msg.payload)) {
|
|
25
|
-
if (msg.payload[0] === 191 && msg.
|
|
55
|
+
if (msg.payload[0] === 191 && !msg.hasOwnProperty("fromip")) {
|
|
56
|
+
var l = msg.payload[1] + msg.payload[2] * 256;
|
|
57
|
+
msg.payload = msg.payload.slice(3,l+3);
|
|
58
|
+
handleProtoBuf(msg);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
else if (msg.payload[0] === 191 && msg.payload[2] === 191) {
|
|
26
62
|
var head = msg.payload[1];
|
|
27
63
|
msg.payload = msg.payload.slice(3);
|
|
28
64
|
if (head === 1) {
|
|
29
|
-
|
|
30
|
-
if (err) { node.error(err); }
|
|
31
|
-
var m = root.lookupType("atakmap.commoncommo.protobuf.v1.TakMessage");
|
|
32
|
-
var m2 = m.decode(msg.payload);
|
|
33
|
-
var m3 = m.toObject(m2, { longs:String, enums:String, bytes:String } ).cotEvent;
|
|
34
|
-
|
|
35
|
-
// Add any unique ID/callsigns to some global variables just in case it's useful for later.
|
|
36
|
-
if (m3.detail?.contact?.callsign && m3.uid) {
|
|
37
|
-
var a = global.get("_takgatewaycs") || {};
|
|
38
|
-
var c = a[m3.detail.contact.callsign];
|
|
39
|
-
a[m3.detail.contact.callsign] = m3.uid;
|
|
40
|
-
global.set("_takgatewaycs", a);
|
|
41
|
-
var b = global.get("_takgatewayid") || {};
|
|
42
|
-
if (c) { delete b[c]; }
|
|
43
|
-
b[m3.uid] = m3.detail.contact.callsign;
|
|
44
|
-
global.set("_takgatewayid", b);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
node.send({
|
|
48
|
-
topic: m3.type,
|
|
49
|
-
payload: { cotEvent: m3 }
|
|
50
|
-
});
|
|
51
|
-
});
|
|
65
|
+
handleProtoBuf(msg);
|
|
52
66
|
return;
|
|
53
67
|
}
|
|
54
68
|
else if (head === 0) {
|
|
@@ -68,6 +82,7 @@ module.exports = function(RED) {
|
|
|
68
82
|
node.error("Input is not a string.",msg);
|
|
69
83
|
return;
|
|
70
84
|
}
|
|
85
|
+
msg.payload = msg.payload.trim();
|
|
71
86
|
if (msg.payload.indexOf("<event") !== 0) {
|
|
72
87
|
if (msg.payload.trim().length > 0 && msg.payload !== '</event>') { // ignore blank lines
|
|
73
88
|
node.error("Input is not an XML event string.",msg);
|
package/tak-registration.html
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
<script type="text/html" data-template-name="tak registration">
|
|
2
|
+
<div class="form-row">
|
|
3
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
4
|
+
<input type="text" id="node-input-name">
|
|
5
|
+
</div>
|
|
2
6
|
<div class="form-row">
|
|
3
7
|
<label for="node-input-latitude"><i class="fa fa-globe"></i> Latitude</label>
|
|
4
8
|
<input type="text" id="node-input-latitude" placeholder="degrees dd.ddddd">
|
|
@@ -60,10 +64,6 @@
|
|
|
60
64
|
<label for="node-input-dphost"><i class="fa fa-globe"></i> DP-Host url:port</label>
|
|
61
65
|
<input type="text" id="node-input-dphost" placeholder="Data package server url http://server:port">
|
|
62
66
|
</div>
|
|
63
|
-
<div class="form-row">
|
|
64
|
-
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
65
|
-
<input type="text" id="node-input-name">
|
|
66
|
-
</div>
|
|
67
67
|
<div class="form-tips" id="pin-tip"><b>Note</b>: This node MUST be used in conjunction with a TCP request node,
|
|
68
68
|
configured to point to your TAK server tcp address and port (usually 8087 or 8089), set to return strings,
|
|
69
69
|
<i>keep connection open</i> mode, and split on <code></event></code></div>
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
-
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
|
-
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
-
|
|
27
|
-
/* Modules */
|
|
28
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
29
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
43
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
|
-
|
|
46
|
-
/* JavaScript Support */
|
|
47
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
48
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
49
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
|
-
|
|
51
|
-
/* Emit */
|
|
52
|
-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
53
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
-
// "outDir": "./", /* Specify an output folder for all emitted files. */
|
|
59
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
62
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
63
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
64
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
65
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
66
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
67
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
68
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
69
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
70
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
71
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
72
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
73
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
74
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
75
|
-
|
|
76
|
-
/* Interop Constraints */
|
|
77
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
78
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
79
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
80
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
81
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
82
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
83
|
-
|
|
84
|
-
/* Type Checking */
|
|
85
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
86
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
87
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
88
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
89
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
90
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
91
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
92
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
93
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
94
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
95
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
96
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
97
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
98
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
99
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
100
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
101
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
102
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
103
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
104
|
-
|
|
105
|
-
/* Completeness */
|
|
106
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
107
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
108
|
-
}
|
|
109
|
-
}
|