node-red-contrib-tak-registration 0.11.0 → 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/tak-registration.js +2 -3
- 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
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
* separate module.
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/https.js)
|
|
5
5
|
*/
|
|
6
|
-
declare module
|
|
7
|
-
import { Duplex } from
|
|
8
|
-
import * as tls from
|
|
9
|
-
import * as http from
|
|
10
|
-
import { URL } from
|
|
6
|
+
declare module "https" {
|
|
7
|
+
import { Duplex } from "node:stream";
|
|
8
|
+
import * as tls from "node:tls";
|
|
9
|
+
import * as http from "node:http";
|
|
10
|
+
import { URL } from "node:url";
|
|
11
11
|
type ServerOptions<
|
|
12
12
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
13
13
|
Response extends typeof http.ServerResponse = typeof http.ServerResponse,
|
|
14
14
|
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
|
|
15
|
-
type RequestOptions =
|
|
16
|
-
|
|
15
|
+
type RequestOptions =
|
|
16
|
+
& http.RequestOptions
|
|
17
|
+
& tls.SecureContextOptions
|
|
18
|
+
& {
|
|
17
19
|
checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
|
|
18
20
|
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
19
21
|
servername?: string | undefined; // SNI TLS Extension
|
|
@@ -58,125 +60,218 @@ declare module 'https' {
|
|
|
58
60
|
*/
|
|
59
61
|
closeIdleConnections(): void;
|
|
60
62
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
61
|
-
addListener(event:
|
|
62
|
-
addListener(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
addListener(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
addListener(
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
addListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
64
|
+
addListener(
|
|
65
|
+
event: "newSession",
|
|
66
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
67
|
+
): this;
|
|
68
|
+
addListener(
|
|
69
|
+
event: "OCSPRequest",
|
|
70
|
+
listener: (
|
|
71
|
+
certificate: Buffer,
|
|
72
|
+
issuer: Buffer,
|
|
73
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
74
|
+
) => void,
|
|
75
|
+
): this;
|
|
76
|
+
addListener(
|
|
77
|
+
event: "resumeSession",
|
|
78
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
79
|
+
): this;
|
|
80
|
+
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
81
|
+
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
82
|
+
addListener(event: "close", listener: () => void): this;
|
|
83
|
+
addListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
84
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
85
|
+
addListener(event: "listening", listener: () => void): this;
|
|
86
|
+
addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
87
|
+
addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
88
|
+
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
89
|
+
addListener(
|
|
90
|
+
event: "connect",
|
|
91
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
92
|
+
): this;
|
|
93
|
+
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
94
|
+
addListener(
|
|
95
|
+
event: "upgrade",
|
|
96
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
97
|
+
): this;
|
|
77
98
|
emit(event: string, ...args: any[]): boolean;
|
|
78
|
-
emit(event:
|
|
79
|
-
emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean;
|
|
80
|
-
emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean;
|
|
81
|
-
emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
82
|
-
emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
|
|
83
|
-
emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
84
|
-
emit(event: 'close'): boolean;
|
|
85
|
-
emit(event: 'connection', socket: Duplex): boolean;
|
|
86
|
-
emit(event: 'error', err: Error): boolean;
|
|
87
|
-
emit(event: 'listening'): boolean;
|
|
99
|
+
emit(event: "keylog", line: Buffer, tlsSocket: tls.TLSSocket): boolean;
|
|
88
100
|
emit(
|
|
89
|
-
event:
|
|
101
|
+
event: "newSession",
|
|
102
|
+
sessionId: Buffer,
|
|
103
|
+
sessionData: Buffer,
|
|
104
|
+
callback: (err: Error, resp: Buffer) => void,
|
|
105
|
+
): boolean;
|
|
106
|
+
emit(
|
|
107
|
+
event: "OCSPRequest",
|
|
108
|
+
certificate: Buffer,
|
|
109
|
+
issuer: Buffer,
|
|
110
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
111
|
+
): boolean;
|
|
112
|
+
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
113
|
+
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
114
|
+
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
115
|
+
emit(event: "close"): boolean;
|
|
116
|
+
emit(event: "connection", socket: Duplex): boolean;
|
|
117
|
+
emit(event: "error", err: Error): boolean;
|
|
118
|
+
emit(event: "listening"): boolean;
|
|
119
|
+
emit(
|
|
120
|
+
event: "checkContinue",
|
|
90
121
|
req: InstanceType<Request>,
|
|
91
122
|
res: InstanceType<Response> & {
|
|
92
123
|
req: InstanceType<Request>;
|
|
93
|
-
}
|
|
124
|
+
},
|
|
94
125
|
): boolean;
|
|
95
126
|
emit(
|
|
96
|
-
event:
|
|
127
|
+
event: "checkExpectation",
|
|
97
128
|
req: InstanceType<Request>,
|
|
98
129
|
res: InstanceType<Response> & {
|
|
99
130
|
req: InstanceType<Request>;
|
|
100
|
-
}
|
|
131
|
+
},
|
|
101
132
|
): boolean;
|
|
102
|
-
emit(event:
|
|
103
|
-
emit(event:
|
|
133
|
+
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
134
|
+
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
104
135
|
emit(
|
|
105
|
-
event:
|
|
136
|
+
event: "request",
|
|
106
137
|
req: InstanceType<Request>,
|
|
107
138
|
res: InstanceType<Response> & {
|
|
108
139
|
req: InstanceType<Request>;
|
|
109
|
-
}
|
|
140
|
+
},
|
|
110
141
|
): boolean;
|
|
111
|
-
emit(event:
|
|
142
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
|
112
143
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
113
|
-
on(event:
|
|
114
|
-
on(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
on(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
on(
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
on(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
145
|
+
on(
|
|
146
|
+
event: "newSession",
|
|
147
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
148
|
+
): this;
|
|
149
|
+
on(
|
|
150
|
+
event: "OCSPRequest",
|
|
151
|
+
listener: (
|
|
152
|
+
certificate: Buffer,
|
|
153
|
+
issuer: Buffer,
|
|
154
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
155
|
+
) => void,
|
|
156
|
+
): this;
|
|
157
|
+
on(
|
|
158
|
+
event: "resumeSession",
|
|
159
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
160
|
+
): this;
|
|
161
|
+
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
162
|
+
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
163
|
+
on(event: "close", listener: () => void): this;
|
|
164
|
+
on(event: "connection", listener: (socket: Duplex) => void): this;
|
|
165
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
166
|
+
on(event: "listening", listener: () => void): this;
|
|
167
|
+
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
168
|
+
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
169
|
+
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
170
|
+
on(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
171
|
+
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
172
|
+
on(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
129
173
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
130
|
-
once(event:
|
|
131
|
-
once(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
once(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
once(
|
|
144
|
-
|
|
145
|
-
|
|
174
|
+
once(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
175
|
+
once(
|
|
176
|
+
event: "newSession",
|
|
177
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
178
|
+
): this;
|
|
179
|
+
once(
|
|
180
|
+
event: "OCSPRequest",
|
|
181
|
+
listener: (
|
|
182
|
+
certificate: Buffer,
|
|
183
|
+
issuer: Buffer,
|
|
184
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
185
|
+
) => void,
|
|
186
|
+
): this;
|
|
187
|
+
once(
|
|
188
|
+
event: "resumeSession",
|
|
189
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
190
|
+
): this;
|
|
191
|
+
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
192
|
+
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
193
|
+
once(event: "close", listener: () => void): this;
|
|
194
|
+
once(event: "connection", listener: (socket: Duplex) => void): this;
|
|
195
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
196
|
+
once(event: "listening", listener: () => void): this;
|
|
197
|
+
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
198
|
+
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
199
|
+
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
200
|
+
once(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
201
|
+
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
202
|
+
once(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
|
146
203
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
147
|
-
prependListener(event:
|
|
148
|
-
prependListener(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
prependListener(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
prependListener(
|
|
161
|
-
|
|
162
|
-
|
|
204
|
+
prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
205
|
+
prependListener(
|
|
206
|
+
event: "newSession",
|
|
207
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
208
|
+
): this;
|
|
209
|
+
prependListener(
|
|
210
|
+
event: "OCSPRequest",
|
|
211
|
+
listener: (
|
|
212
|
+
certificate: Buffer,
|
|
213
|
+
issuer: Buffer,
|
|
214
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
215
|
+
) => void,
|
|
216
|
+
): this;
|
|
217
|
+
prependListener(
|
|
218
|
+
event: "resumeSession",
|
|
219
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
220
|
+
): this;
|
|
221
|
+
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
222
|
+
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
223
|
+
prependListener(event: "close", listener: () => void): this;
|
|
224
|
+
prependListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
225
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
226
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
227
|
+
prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
228
|
+
prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
229
|
+
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
230
|
+
prependListener(
|
|
231
|
+
event: "connect",
|
|
232
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
233
|
+
): this;
|
|
234
|
+
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
235
|
+
prependListener(
|
|
236
|
+
event: "upgrade",
|
|
237
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
238
|
+
): this;
|
|
163
239
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
164
|
-
prependOnceListener(event:
|
|
165
|
-
prependOnceListener(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
prependOnceListener(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
prependOnceListener(
|
|
178
|
-
|
|
179
|
-
|
|
240
|
+
prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
241
|
+
prependOnceListener(
|
|
242
|
+
event: "newSession",
|
|
243
|
+
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
|
244
|
+
): this;
|
|
245
|
+
prependOnceListener(
|
|
246
|
+
event: "OCSPRequest",
|
|
247
|
+
listener: (
|
|
248
|
+
certificate: Buffer,
|
|
249
|
+
issuer: Buffer,
|
|
250
|
+
callback: (err: Error | null, resp: Buffer) => void,
|
|
251
|
+
) => void,
|
|
252
|
+
): this;
|
|
253
|
+
prependOnceListener(
|
|
254
|
+
event: "resumeSession",
|
|
255
|
+
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
|
256
|
+
): this;
|
|
257
|
+
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
258
|
+
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
259
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
260
|
+
prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
261
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
262
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
263
|
+
prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
264
|
+
prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
265
|
+
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
266
|
+
prependOnceListener(
|
|
267
|
+
event: "connect",
|
|
268
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
269
|
+
): this;
|
|
270
|
+
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
271
|
+
prependOnceListener(
|
|
272
|
+
event: "upgrade",
|
|
273
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
|
274
|
+
): this;
|
|
180
275
|
}
|
|
181
276
|
/**
|
|
182
277
|
* ```js
|
|
@@ -406,8 +501,15 @@ declare module 'https' {
|
|
|
406
501
|
* @since v0.3.6
|
|
407
502
|
* @param options Accepts all `options` from `request`, with some differences in default values:
|
|
408
503
|
*/
|
|
409
|
-
function request(
|
|
410
|
-
|
|
504
|
+
function request(
|
|
505
|
+
options: RequestOptions | string | URL,
|
|
506
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
507
|
+
): http.ClientRequest;
|
|
508
|
+
function request(
|
|
509
|
+
url: string | URL,
|
|
510
|
+
options: RequestOptions,
|
|
511
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
512
|
+
): http.ClientRequest;
|
|
411
513
|
/**
|
|
412
514
|
* Like `http.get()` but for HTTPS.
|
|
413
515
|
*
|
|
@@ -432,10 +534,17 @@ declare module 'https' {
|
|
|
432
534
|
* @since v0.3.6
|
|
433
535
|
* @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
|
|
434
536
|
*/
|
|
435
|
-
function get(
|
|
436
|
-
|
|
537
|
+
function get(
|
|
538
|
+
options: RequestOptions | string | URL,
|
|
539
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
540
|
+
): http.ClientRequest;
|
|
541
|
+
function get(
|
|
542
|
+
url: string | URL,
|
|
543
|
+
options: RequestOptions,
|
|
544
|
+
callback?: (res: http.IncomingMessage) => void,
|
|
545
|
+
): http.ClientRequest;
|
|
437
546
|
let globalAgent: Agent;
|
|
438
547
|
}
|
|
439
|
-
declare module
|
|
440
|
-
export * from
|
|
548
|
+
declare module "node:https" {
|
|
549
|
+
export * from "https";
|
|
441
550
|
}
|
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 20.6
|
|
2
|
-
// Project: https://nodejs.org/
|
|
3
|
-
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
|
-
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
|
-
// Alberto Schiabel <https://github.com/jkomyno>
|
|
6
|
-
// Alvis HT Tang <https://github.com/alvis>
|
|
7
|
-
// Andrew Makarov <https://github.com/r3nya>
|
|
8
|
-
// Benjamin Toueg <https://github.com/btoueg>
|
|
9
|
-
// Chigozirim C. <https://github.com/smac89>
|
|
10
|
-
// David Junger <https://github.com/touffy>
|
|
11
|
-
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
12
|
-
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
13
|
-
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
|
|
14
|
-
// Huw <https://github.com/hoo29>
|
|
15
|
-
// Kelvin Jin <https://github.com/kjin>
|
|
16
|
-
// Klaus Meinhardt <https://github.com/ajafff>
|
|
17
|
-
// Lishude <https://github.com/islishude>
|
|
18
|
-
// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
|
|
19
|
-
// Mohsen Azimi <https://github.com/mohsen1>
|
|
20
|
-
// Nicolas Even <https://github.com/n-e>
|
|
21
|
-
// Nikita Galkin <https://github.com/galkin>
|
|
22
|
-
// Parambir Singh <https://github.com/parambirs>
|
|
23
|
-
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
-
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
25
|
-
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
26
|
-
// wwwy3y3 <https://github.com/wwwy3y3>
|
|
27
|
-
// Samuel Ainsworth <https://github.com/samuela>
|
|
28
|
-
// Kyle Uehlein <https://github.com/kuehlein>
|
|
29
|
-
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
30
|
-
// Marcin Kopacz <https://github.com/chyzwar>
|
|
31
|
-
// Trivikram Kamat <https://github.com/trivikr>
|
|
32
|
-
// Junxiao Shi <https://github.com/yoursunny>
|
|
33
|
-
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
34
|
-
// ExE Boss <https://github.com/ExE-Boss>
|
|
35
|
-
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
36
|
-
// Anna Henningsen <https://github.com/addaleax>
|
|
37
|
-
// Victor Perin <https://github.com/victorperin>
|
|
38
|
-
// Yongsheng Zhang <https://github.com/ZYSzys>
|
|
39
|
-
// NodeJS Contributors <https://github.com/NodeJS>
|
|
40
|
-
// Linus Unnebäck <https://github.com/LinusU>
|
|
41
|
-
// wafuwafu13 <https://github.com/wafuwafu13>
|
|
42
|
-
// Matteo Collina <https://github.com/mcollina>
|
|
43
|
-
// Dmitry Semigradsky <https://github.com/Semigradsky>
|
|
44
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
|
-
|
|
46
1
|
/**
|
|
47
2
|
* License for programmatically and manually incorporated
|
|
48
3
|
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|