@aligent/cdk-prerender-proxy 0.2.8 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +29 -0
- package/lib/error-response-construct.ts +54 -0
- package/lib/handlers/cache-control.ts +1 -4
- package/lib/handlers/error-response.ts +0 -1
- package/lib/handlers/prerender.ts +2 -2
- package/lib/prerender-cf-cache-control-construct.ts +58 -0
- package/lib/prerender-check-construct.ts +43 -0
- package/lib/prerender-construct.ts +55 -0
- package/lib/prerender-lambda-construct.ts +48 -0
- package/package.json +17 -26
- package/index.d.ts +0 -6
- package/lib/error-response-construct.d.ts +0 -9
- package/lib/error-response-construct.js +0 -32
- package/lib/handlers/node_modules/.package-lock.json +0 -55
- package/lib/handlers/node_modules/@types/aws-lambda/LICENSE +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/README.md +0 -16
- package/lib/handlers/node_modules/@types/aws-lambda/common/api-gateway.d.ts +0 -79
- package/lib/handlers/node_modules/@types/aws-lambda/common/cloudfront.d.ts +0 -79
- package/lib/handlers/node_modules/@types/aws-lambda/handler.d.ts +0 -171
- package/lib/handlers/node_modules/@types/aws-lambda/index.d.ts +0 -85
- package/lib/handlers/node_modules/@types/aws-lambda/package.json +0 -210
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/alb.d.ts +0 -48
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.ts +0 -174
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +0 -187
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +0 -51
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.ts +0 -68
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.ts +0 -20
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.ts +0 -8
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.ts +0 -37
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.ts +0 -104
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts +0 -31
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts +0 -32
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts +0 -23
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts +0 -11
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline.d.ts +0 -55
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/_common.d.ts +0 -41
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.ts +0 -22
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +0 -86
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +0 -44
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +0 -119
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts +0 -15
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts +0 -22
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts +0 -15
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.ts +0 -31
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts +0 -39
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.ts +0 -20
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +0 -65
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/eventbridge.d.ts +0 -18
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/iot.d.ts +0 -28
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +0 -28
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/lex.d.ts +0 -116
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/msk.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3-batch.d.ts +0 -41
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3.d.ts +0 -60
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/ses.d.ts +0 -103
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/sns.d.ts +0 -38
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/sqs.d.ts +0 -46
- package/lib/handlers/node_modules/@types/node/LICENSE +0 -21
- package/lib/handlers/node_modules/@types/node/README.md +0 -16
- package/lib/handlers/node_modules/@types/node/assert/strict.d.ts +0 -4
- package/lib/handlers/node_modules/@types/node/assert.d.ts +0 -124
- package/lib/handlers/node_modules/@types/node/async_hooks.d.ts +0 -226
- package/lib/handlers/node_modules/@types/node/base.d.ts +0 -19
- package/lib/handlers/node_modules/@types/node/buffer.d.ts +0 -84
- package/lib/handlers/node_modules/@types/node/child_process.d.ts +0 -526
- package/lib/handlers/node_modules/@types/node/cluster.d.ts +0 -262
- package/lib/handlers/node_modules/@types/node/console.d.ts +0 -133
- package/lib/handlers/node_modules/@types/node/constants.d.ts +0 -13
- package/lib/handlers/node_modules/@types/node/crypto.d.ts +0 -1580
- package/lib/handlers/node_modules/@types/node/dgram.d.ts +0 -141
- package/lib/handlers/node_modules/@types/node/diagnostic_channel.d.ts +0 -34
- package/lib/handlers/node_modules/@types/node/dns/promises.d.ts +0 -97
- package/lib/handlers/node_modules/@types/node/dns.d.ts +0 -322
- package/lib/handlers/node_modules/@types/node/domain.d.ts +0 -24
- package/lib/handlers/node_modules/@types/node/events.d.ts +0 -93
- package/lib/handlers/node_modules/@types/node/fs/promises.d.ts +0 -592
- package/lib/handlers/node_modules/@types/node/fs.d.ts +0 -2239
- package/lib/handlers/node_modules/@types/node/globals.d.ts +0 -655
- package/lib/handlers/node_modules/@types/node/globals.global.d.ts +0 -1
- package/lib/handlers/node_modules/@types/node/http.d.ts +0 -434
- package/lib/handlers/node_modules/@types/node/http2.d.ts +0 -976
- package/lib/handlers/node_modules/@types/node/https.d.ts +0 -36
- package/lib/handlers/node_modules/@types/node/index.d.ts +0 -58
- package/lib/handlers/node_modules/@types/node/inspector.d.ts +0 -3041
- package/lib/handlers/node_modules/@types/node/module.d.ts +0 -52
- package/lib/handlers/node_modules/@types/node/net.d.ts +0 -326
- package/lib/handlers/node_modules/@types/node/os.d.ts +0 -239
- package/lib/handlers/node_modules/@types/node/package.json +0 -232
- package/lib/handlers/node_modules/@types/node/path.d.ts +0 -163
- package/lib/handlers/node_modules/@types/node/perf_hooks.d.ts +0 -310
- package/lib/handlers/node_modules/@types/node/process.d.ts +0 -461
- package/lib/handlers/node_modules/@types/node/punycode.d.ts +0 -75
- package/lib/handlers/node_modules/@types/node/querystring.d.ts +0 -28
- package/lib/handlers/node_modules/@types/node/readline.d.ts +0 -192
- package/lib/handlers/node_modules/@types/node/repl.d.ts +0 -395
- package/lib/handlers/node_modules/@types/node/stream/promises.d.ts +0 -67
- package/lib/handlers/node_modules/@types/node/stream.d.ts +0 -471
- package/lib/handlers/node_modules/@types/node/string_decoder.d.ts +0 -7
- package/lib/handlers/node_modules/@types/node/timers/promises.d.ts +0 -21
- package/lib/handlers/node_modules/@types/node/timers.d.ts +0 -27
- package/lib/handlers/node_modules/@types/node/tls.d.ts +0 -793
- package/lib/handlers/node_modules/@types/node/trace_events.d.ts +0 -61
- package/lib/handlers/node_modules/@types/node/ts3.6/assert.d.ts +0 -98
- package/lib/handlers/node_modules/@types/node/ts3.6/base.d.ts +0 -68
- package/lib/handlers/node_modules/@types/node/ts3.6/index.d.ts +0 -7
- package/lib/handlers/node_modules/@types/node/tty.d.ts +0 -66
- package/lib/handlers/node_modules/@types/node/url.d.ts +0 -116
- package/lib/handlers/node_modules/@types/node/util/types.d.ts +0 -53
- package/lib/handlers/node_modules/@types/node/util.d.ts +0 -156
- package/lib/handlers/node_modules/@types/node/v8.d.ts +0 -198
- package/lib/handlers/node_modules/@types/node/vm.d.ts +0 -152
- package/lib/handlers/node_modules/@types/node/wasi.d.ts +0 -86
- package/lib/handlers/node_modules/@types/node/worker_threads.d.ts +0 -282
- package/lib/handlers/node_modules/@types/node/zlib.d.ts +0 -361
- package/lib/handlers/node_modules/axios/CHANGELOG.md +0 -685
- package/lib/handlers/node_modules/axios/LICENSE +0 -19
- package/lib/handlers/node_modules/axios/README.md +0 -800
- package/lib/handlers/node_modules/axios/UPGRADE_GUIDE.md +0 -162
- package/lib/handlers/node_modules/axios/dist/axios.js +0 -1756
- package/lib/handlers/node_modules/axios/dist/axios.map +0 -1
- package/lib/handlers/node_modules/axios/dist/axios.min.js +0 -3
- package/lib/handlers/node_modules/axios/dist/axios.min.map +0 -1
- package/lib/handlers/node_modules/axios/index.d.ts +0 -161
- package/lib/handlers/node_modules/axios/index.js +0 -1
- package/lib/handlers/node_modules/axios/lib/adapters/README.md +0 -37
- package/lib/handlers/node_modules/axios/lib/adapters/http.js +0 -303
- package/lib/handlers/node_modules/axios/lib/adapters/xhr.js +0 -179
- package/lib/handlers/node_modules/axios/lib/axios.js +0 -56
- package/lib/handlers/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/lib/handlers/node_modules/axios/lib/cancel/CancelToken.js +0 -57
- package/lib/handlers/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/lib/handlers/node_modules/axios/lib/core/Axios.js +0 -95
- package/lib/handlers/node_modules/axios/lib/core/InterceptorManager.js +0 -52
- package/lib/handlers/node_modules/axios/lib/core/README.md +0 -7
- package/lib/handlers/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/lib/handlers/node_modules/axios/lib/core/createError.js +0 -18
- package/lib/handlers/node_modules/axios/lib/core/dispatchRequest.js +0 -79
- package/lib/handlers/node_modules/axios/lib/core/enhanceError.js +0 -42
- package/lib/handlers/node_modules/axios/lib/core/mergeConfig.js +0 -87
- package/lib/handlers/node_modules/axios/lib/core/settle.js +0 -25
- package/lib/handlers/node_modules/axios/lib/core/transformData.js +0 -20
- package/lib/handlers/node_modules/axios/lib/defaults.js +0 -98
- package/lib/handlers/node_modules/axios/lib/helpers/README.md +0 -7
- package/lib/handlers/node_modules/axios/lib/helpers/bind.js +0 -11
- package/lib/handlers/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/lib/handlers/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/lib/handlers/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/lib/handlers/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/lib/handlers/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/lib/handlers/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
- package/lib/handlers/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/lib/handlers/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/lib/handlers/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/lib/handlers/node_modules/axios/lib/helpers/spread.js +0 -27
- package/lib/handlers/node_modules/axios/lib/utils.js +0 -351
- package/lib/handlers/node_modules/axios/package.json +0 -86
- package/lib/handlers/node_modules/buffer-from/LICENSE +0 -21
- package/lib/handlers/node_modules/buffer-from/index.js +0 -69
- package/lib/handlers/node_modules/buffer-from/package.json +0 -19
- package/lib/handlers/node_modules/buffer-from/readme.md +0 -69
- package/lib/handlers/node_modules/follow-redirects/LICENSE +0 -18
- package/lib/handlers/node_modules/follow-redirects/README.md +0 -148
- package/lib/handlers/node_modules/follow-redirects/debug.js +0 -14
- package/lib/handlers/node_modules/follow-redirects/http.js +0 -1
- package/lib/handlers/node_modules/follow-redirects/https.js +0 -1
- package/lib/handlers/node_modules/follow-redirects/index.js +0 -531
- package/lib/handlers/node_modules/follow-redirects/package.json +0 -59
- package/lib/handlers/node_modules/source-map/CHANGELOG.md +0 -301
- package/lib/handlers/node_modules/source-map/LICENSE +0 -28
- package/lib/handlers/node_modules/source-map/README.md +0 -742
- package/lib/handlers/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/lib/handlers/node_modules/source-map/dist/source-map.js +0 -3233
- package/lib/handlers/node_modules/source-map/dist/source-map.min.js +0 -2
- package/lib/handlers/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/lib/handlers/node_modules/source-map/lib/array-set.js +0 -121
- package/lib/handlers/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/lib/handlers/node_modules/source-map/lib/base64.js +0 -67
- package/lib/handlers/node_modules/source-map/lib/binary-search.js +0 -111
- package/lib/handlers/node_modules/source-map/lib/mapping-list.js +0 -79
- package/lib/handlers/node_modules/source-map/lib/quick-sort.js +0 -114
- package/lib/handlers/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/lib/handlers/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/lib/handlers/node_modules/source-map/lib/source-node.js +0 -413
- package/lib/handlers/node_modules/source-map/lib/util.js +0 -488
- package/lib/handlers/node_modules/source-map/package.json +0 -73
- package/lib/handlers/node_modules/source-map/source-map.d.ts +0 -98
- package/lib/handlers/node_modules/source-map/source-map.js +0 -8
- package/lib/handlers/node_modules/source-map-support/LICENSE.md +0 -21
- package/lib/handlers/node_modules/source-map-support/README.md +0 -284
- package/lib/handlers/node_modules/source-map-support/browser-source-map-support.js +0 -114
- package/lib/handlers/node_modules/source-map-support/package.json +0 -31
- package/lib/handlers/node_modules/source-map-support/register.js +0 -1
- package/lib/handlers/node_modules/source-map-support/source-map-support.js +0 -604
- package/lib/handlers/package-lock.json +0 -108
- package/lib/handlers/package.json +0 -13
- package/lib/handlers/tsconfig.json +0 -22
- package/lib/prerender-cf-cache-control-construct.d.ts +0 -10
- package/lib/prerender-cf-cache-control-construct.js +0 -33
- package/lib/prerender-check-construct.d.ts +0 -6
- package/lib/prerender-check-construct.js +0 -25
- package/lib/prerender-construct.d.ts +0 -11
- package/lib/prerender-construct.js +0 -34
- package/lib/prerender-lambda-construct.d.ts +0 -17
- package/lib/prerender-lambda-construct.js +0 -19
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
declare module 'dgram' {
|
|
2
|
-
import { AddressInfo } from 'net';
|
|
3
|
-
import * as dns from 'dns';
|
|
4
|
-
import { EventEmitter, Abortable } from 'events';
|
|
5
|
-
|
|
6
|
-
interface RemoteInfo {
|
|
7
|
-
address: string;
|
|
8
|
-
family: 'IPv4' | 'IPv6';
|
|
9
|
-
port: number;
|
|
10
|
-
size: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface BindOptions {
|
|
14
|
-
port?: number;
|
|
15
|
-
address?: string;
|
|
16
|
-
exclusive?: boolean;
|
|
17
|
-
fd?: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type SocketType = "udp4" | "udp6";
|
|
21
|
-
|
|
22
|
-
interface SocketOptions extends Abortable {
|
|
23
|
-
type: SocketType;
|
|
24
|
-
reuseAddr?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
ipv6Only?: boolean;
|
|
29
|
-
recvBufferSize?: number;
|
|
30
|
-
sendBufferSize?: number;
|
|
31
|
-
lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
35
|
-
function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
|
|
36
|
-
|
|
37
|
-
class Socket extends EventEmitter {
|
|
38
|
-
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
39
|
-
address(): AddressInfo;
|
|
40
|
-
bind(port?: number, address?: string, callback?: () => void): void;
|
|
41
|
-
bind(port?: number, callback?: () => void): void;
|
|
42
|
-
bind(callback?: () => void): void;
|
|
43
|
-
bind(options: BindOptions, callback?: () => void): void;
|
|
44
|
-
close(callback?: () => void): void;
|
|
45
|
-
connect(port: number, address?: string, callback?: () => void): void;
|
|
46
|
-
connect(port: number, callback: () => void): void;
|
|
47
|
-
disconnect(): void;
|
|
48
|
-
dropMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
49
|
-
getRecvBufferSize(): number;
|
|
50
|
-
getSendBufferSize(): number;
|
|
51
|
-
ref(): this;
|
|
52
|
-
remoteAddress(): AddressInfo;
|
|
53
|
-
send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
54
|
-
send(msg: string | Uint8Array | ReadonlyArray<any>, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
55
|
-
send(msg: string | Uint8Array | ReadonlyArray<any>, callback?: (error: Error | null, bytes: number) => void): void;
|
|
56
|
-
send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void;
|
|
57
|
-
send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
58
|
-
send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
|
|
59
|
-
setBroadcast(flag: boolean): void;
|
|
60
|
-
setMulticastInterface(multicastInterface: string): void;
|
|
61
|
-
setMulticastLoopback(flag: boolean): void;
|
|
62
|
-
setMulticastTTL(ttl: number): void;
|
|
63
|
-
setRecvBufferSize(size: number): void;
|
|
64
|
-
setSendBufferSize(size: number): void;
|
|
65
|
-
setTTL(ttl: number): void;
|
|
66
|
-
unref(): this;
|
|
67
|
-
/**
|
|
68
|
-
* Tells the kernel to join a source-specific multicast channel at the given
|
|
69
|
-
* `sourceAddress` and `groupAddress`, using the `multicastInterface` with the
|
|
70
|
-
* `IP_ADD_SOURCE_MEMBERSHIP` socket option.
|
|
71
|
-
* If the `multicastInterface` argument
|
|
72
|
-
* is not specified, the operating system will choose one interface and will add
|
|
73
|
-
* membership to it.
|
|
74
|
-
* To add membership to every available interface, call
|
|
75
|
-
* `socket.addSourceSpecificMembership()` multiple times, once per interface.
|
|
76
|
-
*/
|
|
77
|
-
addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Instructs the kernel to leave a source-specific multicast channel at the given
|
|
81
|
-
* `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`
|
|
82
|
-
* socket option. This method is automatically called by the kernel when the
|
|
83
|
-
* socket is closed or the process terminates, so most apps will never have
|
|
84
|
-
* reason to call this.
|
|
85
|
-
*
|
|
86
|
-
* If `multicastInterface` is not specified, the operating system will attempt to
|
|
87
|
-
* drop membership on all valid interfaces.
|
|
88
|
-
*/
|
|
89
|
-
dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* events.EventEmitter
|
|
93
|
-
* 1. close
|
|
94
|
-
* 2. connect
|
|
95
|
-
* 3. error
|
|
96
|
-
* 4. listening
|
|
97
|
-
* 5. message
|
|
98
|
-
*/
|
|
99
|
-
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
100
|
-
addListener(event: "close", listener: () => void): this;
|
|
101
|
-
addListener(event: "connect", listener: () => void): this;
|
|
102
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
103
|
-
addListener(event: "listening", listener: () => void): this;
|
|
104
|
-
addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
105
|
-
|
|
106
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
107
|
-
emit(event: "close"): boolean;
|
|
108
|
-
emit(event: "connect"): boolean;
|
|
109
|
-
emit(event: "error", err: Error): boolean;
|
|
110
|
-
emit(event: "listening"): boolean;
|
|
111
|
-
emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
|
|
112
|
-
|
|
113
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
114
|
-
on(event: "close", listener: () => void): this;
|
|
115
|
-
on(event: "connect", listener: () => void): this;
|
|
116
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
117
|
-
on(event: "listening", listener: () => void): this;
|
|
118
|
-
on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
119
|
-
|
|
120
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
121
|
-
once(event: "close", listener: () => void): this;
|
|
122
|
-
once(event: "connect", listener: () => void): this;
|
|
123
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
124
|
-
once(event: "listening", listener: () => void): this;
|
|
125
|
-
once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
126
|
-
|
|
127
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
128
|
-
prependListener(event: "close", listener: () => void): this;
|
|
129
|
-
prependListener(event: "connect", listener: () => void): this;
|
|
130
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
131
|
-
prependListener(event: "listening", listener: () => void): this;
|
|
132
|
-
prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
133
|
-
|
|
134
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
135
|
-
prependOnceListener(event: "close", listener: () => void): this;
|
|
136
|
-
prependOnceListener(event: "connect", listener: () => void): this;
|
|
137
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
138
|
-
prependOnceListener(event: "listening", listener: () => void): this;
|
|
139
|
-
prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @experimental
|
|
3
|
-
*/
|
|
4
|
-
declare module 'diagnostic_channel' {
|
|
5
|
-
/**
|
|
6
|
-
* Returns wether a named channel has subscribers or not.
|
|
7
|
-
*/
|
|
8
|
-
function hasSubscribers(name: string): boolean;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Gets or create a diagnostic channel by name.
|
|
12
|
-
*/
|
|
13
|
-
function channel(name: string): Channel;
|
|
14
|
-
|
|
15
|
-
type ChannelListener = (name: string, message: unknown) => void;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Simple diagnostic channel that allows
|
|
19
|
-
*/
|
|
20
|
-
class Channel {
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly hashSubscribers: boolean;
|
|
23
|
-
private constructor(name: string);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Add a listener to the message channel.
|
|
27
|
-
*/
|
|
28
|
-
subscribe(listener: ChannelListener): void;
|
|
29
|
-
/**
|
|
30
|
-
* Removes a previously registered listener.
|
|
31
|
-
*/
|
|
32
|
-
unsubscribe(listener: ChannelListener): void;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
declare module "dns/promises" {
|
|
2
|
-
import {
|
|
3
|
-
LookupAddress,
|
|
4
|
-
LookupOneOptions,
|
|
5
|
-
LookupAllOptions,
|
|
6
|
-
LookupOptions,
|
|
7
|
-
AnyRecord,
|
|
8
|
-
CaaRecord,
|
|
9
|
-
MxRecord,
|
|
10
|
-
NaptrRecord,
|
|
11
|
-
SoaRecord,
|
|
12
|
-
SrvRecord,
|
|
13
|
-
ResolveWithTtlOptions,
|
|
14
|
-
RecordWithTtl,
|
|
15
|
-
ResolveOptions,
|
|
16
|
-
ResolverOptions,
|
|
17
|
-
} from "dns";
|
|
18
|
-
|
|
19
|
-
function getServers(): string[];
|
|
20
|
-
|
|
21
|
-
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
|
22
|
-
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
|
23
|
-
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
24
|
-
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
25
|
-
function lookup(hostname: string): Promise<LookupAddress>;
|
|
26
|
-
|
|
27
|
-
function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
|
28
|
-
|
|
29
|
-
function resolve(hostname: string): Promise<string[]>;
|
|
30
|
-
function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
|
|
31
|
-
function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
|
|
32
|
-
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
33
|
-
function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
|
34
|
-
function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
|
|
35
|
-
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
36
|
-
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
37
|
-
function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
|
|
38
|
-
function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
|
|
39
|
-
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
40
|
-
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
41
|
-
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
42
|
-
function resolve(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
43
|
-
|
|
44
|
-
function resolve4(hostname: string): Promise<string[]>;
|
|
45
|
-
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
46
|
-
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
47
|
-
|
|
48
|
-
function resolve6(hostname: string): Promise<string[]>;
|
|
49
|
-
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
50
|
-
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
51
|
-
|
|
52
|
-
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
|
53
|
-
|
|
54
|
-
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
|
55
|
-
|
|
56
|
-
function resolveCname(hostname: string): Promise<string[]>;
|
|
57
|
-
|
|
58
|
-
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
|
59
|
-
|
|
60
|
-
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
|
61
|
-
|
|
62
|
-
function resolveNs(hostname: string): Promise<string[]>;
|
|
63
|
-
|
|
64
|
-
function resolvePtr(hostname: string): Promise<string[]>;
|
|
65
|
-
|
|
66
|
-
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
|
67
|
-
|
|
68
|
-
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
|
69
|
-
|
|
70
|
-
function resolveTxt(hostname: string): Promise<string[][]>;
|
|
71
|
-
|
|
72
|
-
function reverse(ip: string): Promise<string[]>;
|
|
73
|
-
|
|
74
|
-
function setServers(servers: ReadonlyArray<string>): void;
|
|
75
|
-
|
|
76
|
-
class Resolver {
|
|
77
|
-
constructor(options?: ResolverOptions);
|
|
78
|
-
|
|
79
|
-
cancel(): void;
|
|
80
|
-
getServers: typeof getServers;
|
|
81
|
-
resolve: typeof resolve;
|
|
82
|
-
resolve4: typeof resolve4;
|
|
83
|
-
resolve6: typeof resolve6;
|
|
84
|
-
resolveAny: typeof resolveAny;
|
|
85
|
-
resolveCname: typeof resolveCname;
|
|
86
|
-
resolveMx: typeof resolveMx;
|
|
87
|
-
resolveNaptr: typeof resolveNaptr;
|
|
88
|
-
resolveNs: typeof resolveNs;
|
|
89
|
-
resolvePtr: typeof resolvePtr;
|
|
90
|
-
resolveSoa: typeof resolveSoa;
|
|
91
|
-
resolveSrv: typeof resolveSrv;
|
|
92
|
-
resolveTxt: typeof resolveTxt;
|
|
93
|
-
reverse: typeof reverse;
|
|
94
|
-
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
95
|
-
setServers: typeof setServers;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
declare module 'dns' {
|
|
2
|
-
import * as dnsPromises from "dns/promises";
|
|
3
|
-
|
|
4
|
-
// Supported getaddrinfo flags.
|
|
5
|
-
export const ADDRCONFIG: number;
|
|
6
|
-
export const V4MAPPED: number;
|
|
7
|
-
/**
|
|
8
|
-
* If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
|
|
9
|
-
* well as IPv4 mapped IPv6 addresses.
|
|
10
|
-
*/
|
|
11
|
-
export const ALL: number;
|
|
12
|
-
|
|
13
|
-
export interface LookupOptions {
|
|
14
|
-
family?: number;
|
|
15
|
-
hints?: number;
|
|
16
|
-
all?: boolean;
|
|
17
|
-
verbatim?: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface LookupOneOptions extends LookupOptions {
|
|
21
|
-
all?: false;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface LookupAllOptions extends LookupOptions {
|
|
25
|
-
all: true;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface LookupAddress {
|
|
29
|
-
address: string;
|
|
30
|
-
family: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
34
|
-
export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
35
|
-
export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
|
|
36
|
-
export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
|
|
37
|
-
export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
|
38
|
-
|
|
39
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
40
|
-
export namespace lookup {
|
|
41
|
-
function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
|
42
|
-
function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
|
|
43
|
-
function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
|
|
47
|
-
|
|
48
|
-
export namespace lookupService {
|
|
49
|
-
function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ResolveOptions {
|
|
53
|
-
ttl: boolean;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ResolveWithTtlOptions extends ResolveOptions {
|
|
57
|
-
ttl: true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface RecordWithTtl {
|
|
61
|
-
address: string;
|
|
62
|
-
ttl: number;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
|
|
66
|
-
export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
|
|
67
|
-
|
|
68
|
-
export interface AnyARecord extends RecordWithTtl {
|
|
69
|
-
type: "A";
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface AnyAaaaRecord extends RecordWithTtl {
|
|
73
|
-
type: "AAAA";
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface CaaRecord {
|
|
77
|
-
critial: number;
|
|
78
|
-
issue?: string;
|
|
79
|
-
issuewild?: string;
|
|
80
|
-
iodef?: string;
|
|
81
|
-
contactemail?: string;
|
|
82
|
-
contactphone?: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface MxRecord {
|
|
86
|
-
priority: number;
|
|
87
|
-
exchange: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface AnyMxRecord extends MxRecord {
|
|
91
|
-
type: "MX";
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface NaptrRecord {
|
|
95
|
-
flags: string;
|
|
96
|
-
service: string;
|
|
97
|
-
regexp: string;
|
|
98
|
-
replacement: string;
|
|
99
|
-
order: number;
|
|
100
|
-
preference: number;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface AnyNaptrRecord extends NaptrRecord {
|
|
104
|
-
type: "NAPTR";
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface SoaRecord {
|
|
108
|
-
nsname: string;
|
|
109
|
-
hostmaster: string;
|
|
110
|
-
serial: number;
|
|
111
|
-
refresh: number;
|
|
112
|
-
retry: number;
|
|
113
|
-
expire: number;
|
|
114
|
-
minttl: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface AnySoaRecord extends SoaRecord {
|
|
118
|
-
type: "SOA";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface SrvRecord {
|
|
122
|
-
priority: number;
|
|
123
|
-
weight: number;
|
|
124
|
-
port: number;
|
|
125
|
-
name: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface AnySrvRecord extends SrvRecord {
|
|
129
|
-
type: "SRV";
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface AnyTxtRecord {
|
|
133
|
-
type: "TXT";
|
|
134
|
-
entries: string[];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface AnyNsRecord {
|
|
138
|
-
type: "NS";
|
|
139
|
-
value: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface AnyPtrRecord {
|
|
143
|
-
type: "PTR";
|
|
144
|
-
value: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface AnyCnameRecord {
|
|
148
|
-
type: "CNAME";
|
|
149
|
-
value: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type AnyRecord = AnyARecord |
|
|
153
|
-
AnyAaaaRecord |
|
|
154
|
-
AnyCnameRecord |
|
|
155
|
-
AnyMxRecord |
|
|
156
|
-
AnyNaptrRecord |
|
|
157
|
-
AnyNsRecord |
|
|
158
|
-
AnyPtrRecord |
|
|
159
|
-
AnySoaRecord |
|
|
160
|
-
AnySrvRecord |
|
|
161
|
-
AnyTxtRecord;
|
|
162
|
-
|
|
163
|
-
export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
164
|
-
export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
165
|
-
export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
166
|
-
export function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
167
|
-
export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
168
|
-
export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
169
|
-
export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
170
|
-
export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
171
|
-
export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
172
|
-
export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
|
|
173
|
-
export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
174
|
-
export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
175
|
-
export function resolve(
|
|
176
|
-
hostname: string,
|
|
177
|
-
rrtype: string,
|
|
178
|
-
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void,
|
|
179
|
-
): void;
|
|
180
|
-
|
|
181
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
182
|
-
export namespace resolve {
|
|
183
|
-
function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
|
184
|
-
function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
|
185
|
-
function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
|
186
|
-
function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
|
187
|
-
function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
|
188
|
-
function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
|
189
|
-
function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
|
190
|
-
function __promisify__(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
194
|
-
export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
195
|
-
export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
196
|
-
|
|
197
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
198
|
-
export namespace resolve4 {
|
|
199
|
-
function __promisify__(hostname: string): Promise<string[]>;
|
|
200
|
-
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
201
|
-
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
205
|
-
export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
|
206
|
-
export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
|
207
|
-
|
|
208
|
-
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
209
|
-
export namespace resolve6 {
|
|
210
|
-
function __promisify__(hostname: string): Promise<string[]>;
|
|
211
|
-
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
|
212
|
-
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
216
|
-
export namespace resolveCname {
|
|
217
|
-
function __promisify__(hostname: string): Promise<string[]>;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void;
|
|
221
|
-
export namespace resolveCaa {
|
|
222
|
-
function __promisify__(hostname: string): Promise<CaaRecord[]>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
|
226
|
-
export namespace resolveMx {
|
|
227
|
-
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
|
231
|
-
export namespace resolveNaptr {
|
|
232
|
-
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
236
|
-
export namespace resolveNs {
|
|
237
|
-
function __promisify__(hostname: string): Promise<string[]>;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
|
241
|
-
export namespace resolvePtr {
|
|
242
|
-
function __promisify__(hostname: string): Promise<string[]>;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
|
|
246
|
-
export namespace resolveSoa {
|
|
247
|
-
function __promisify__(hostname: string): Promise<SoaRecord>;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
|
251
|
-
export namespace resolveSrv {
|
|
252
|
-
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
|
256
|
-
export namespace resolveTxt {
|
|
257
|
-
function __promisify__(hostname: string): Promise<string[][]>;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
|
261
|
-
export namespace resolveAny {
|
|
262
|
-
function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
|
266
|
-
export function setServers(servers: ReadonlyArray<string>): void;
|
|
267
|
-
export function getServers(): string[];
|
|
268
|
-
|
|
269
|
-
// Error codes
|
|
270
|
-
export const NODATA: string;
|
|
271
|
-
export const FORMERR: string;
|
|
272
|
-
export const SERVFAIL: string;
|
|
273
|
-
export const NOTFOUND: string;
|
|
274
|
-
export const NOTIMP: string;
|
|
275
|
-
export const REFUSED: string;
|
|
276
|
-
export const BADQUERY: string;
|
|
277
|
-
export const BADNAME: string;
|
|
278
|
-
export const BADFAMILY: string;
|
|
279
|
-
export const BADRESP: string;
|
|
280
|
-
export const CONNREFUSED: string;
|
|
281
|
-
export const TIMEOUT: string;
|
|
282
|
-
export const EOF: string;
|
|
283
|
-
export const FILE: string;
|
|
284
|
-
export const NOMEM: string;
|
|
285
|
-
export const DESTRUCTION: string;
|
|
286
|
-
export const BADSTR: string;
|
|
287
|
-
export const BADFLAGS: string;
|
|
288
|
-
export const NONAME: string;
|
|
289
|
-
export const BADHINTS: string;
|
|
290
|
-
export const NOTINITIALIZED: string;
|
|
291
|
-
export const LOADIPHLPAPI: string;
|
|
292
|
-
export const ADDRGETNETWORKPARAMS: string;
|
|
293
|
-
export const CANCELLED: string;
|
|
294
|
-
|
|
295
|
-
export interface ResolverOptions {
|
|
296
|
-
timeout?: number;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export class Resolver {
|
|
300
|
-
constructor(options?: ResolverOptions);
|
|
301
|
-
|
|
302
|
-
cancel(): void;
|
|
303
|
-
getServers: typeof getServers;
|
|
304
|
-
resolve: typeof resolve;
|
|
305
|
-
resolve4: typeof resolve4;
|
|
306
|
-
resolve6: typeof resolve6;
|
|
307
|
-
resolveAny: typeof resolveAny;
|
|
308
|
-
resolveCname: typeof resolveCname;
|
|
309
|
-
resolveMx: typeof resolveMx;
|
|
310
|
-
resolveNaptr: typeof resolveNaptr;
|
|
311
|
-
resolveNs: typeof resolveNs;
|
|
312
|
-
resolvePtr: typeof resolvePtr;
|
|
313
|
-
resolveSoa: typeof resolveSoa;
|
|
314
|
-
resolveSrv: typeof resolveSrv;
|
|
315
|
-
resolveTxt: typeof resolveTxt;
|
|
316
|
-
reverse: typeof reverse;
|
|
317
|
-
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
|
318
|
-
setServers: typeof setServers;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export { dnsPromises as promises };
|
|
322
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare module 'domain' {
|
|
2
|
-
import EventEmitter = require('events');
|
|
3
|
-
|
|
4
|
-
global {
|
|
5
|
-
namespace NodeJS {
|
|
6
|
-
interface Domain extends EventEmitter {
|
|
7
|
-
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
|
8
|
-
add(emitter: EventEmitter | Timer): void;
|
|
9
|
-
remove(emitter: EventEmitter | Timer): void;
|
|
10
|
-
bind<T extends Function>(cb: T): T;
|
|
11
|
-
intercept<T extends Function>(cb: T): T;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface Domain extends NodeJS.Domain {}
|
|
17
|
-
class Domain extends EventEmitter {
|
|
18
|
-
members: Array<EventEmitter | NodeJS.Timer>;
|
|
19
|
-
enter(): void;
|
|
20
|
-
exit(): void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function create(): Domain;
|
|
24
|
-
}
|