cdk-common 2.0.276 → 2.0.278
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/.jsii +8 -2
- package/API.md +5 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +1 -0
- package/lib/managed-policies.js +2 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +17 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +33 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +1 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/net.d.ts +33 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +30 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +17 -2
- package/node_modules/@types/form-data/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +43 -6
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +33 -2
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +15 -0
- package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +1 -0
- package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/net.d.ts +33 -2
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +6 -6
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +30 -0
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +43 -0
- package/package.json +2 -3
|
@@ -131,6 +131,17 @@ declare module 'net' {
|
|
|
131
131
|
* @return The socket itself.
|
|
132
132
|
*/
|
|
133
133
|
pause(): this;
|
|
134
|
+
/**
|
|
135
|
+
* Close the TCP connection by sending an RST packet and destroy the stream.
|
|
136
|
+
* If this TCP socket is in connecting status, it will send an RST packet
|
|
137
|
+
* and destroy this TCP socket once it is connected. Otherwise, it will call
|
|
138
|
+
* `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. If this is not a TCP socket
|
|
139
|
+
* (for example, a pipe), calling this method will immediately throw
|
|
140
|
+
* an `ERR_INVALID_HANDLE_TYPE` Error.
|
|
141
|
+
* @since v18.3.0
|
|
142
|
+
* @return The socket itself.
|
|
143
|
+
*/
|
|
144
|
+
resetAndDestroy(): this;
|
|
134
145
|
/**
|
|
135
146
|
* Resumes reading after a call to `socket.pause()`.
|
|
136
147
|
* @return The socket itself.
|
|
@@ -266,6 +277,11 @@ declare module 'net' {
|
|
|
266
277
|
* @since v0.9.6
|
|
267
278
|
*/
|
|
268
279
|
readonly localPort?: number;
|
|
280
|
+
/**
|
|
281
|
+
* The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
|
|
282
|
+
* @since v18.8.0
|
|
283
|
+
*/
|
|
284
|
+
readonly localFamily?: string;
|
|
269
285
|
/**
|
|
270
286
|
* This property represents the state of the connection as a string.
|
|
271
287
|
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
@@ -315,7 +331,8 @@ declare module 'net' {
|
|
|
315
331
|
* 5. end
|
|
316
332
|
* 6. error
|
|
317
333
|
* 7. lookup
|
|
318
|
-
* 8.
|
|
334
|
+
* 8. ready
|
|
335
|
+
* 9. timeout
|
|
319
336
|
*/
|
|
320
337
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
321
338
|
addListener(event: 'close', listener: (hadError: boolean) => void): this;
|
|
@@ -422,6 +439,14 @@ declare module 'net' {
|
|
|
422
439
|
*/
|
|
423
440
|
keepAliveInitialDelay?: number | undefined;
|
|
424
441
|
}
|
|
442
|
+
interface DropArgument {
|
|
443
|
+
localAddress?: string;
|
|
444
|
+
localPort?: number;
|
|
445
|
+
localFamily?: string;
|
|
446
|
+
remoteAddress?: string;
|
|
447
|
+
remotePort?: number;
|
|
448
|
+
remoteFamily?: string;
|
|
449
|
+
}
|
|
425
450
|
/**
|
|
426
451
|
* This class is used to create a TCP or `IPC` server.
|
|
427
452
|
* @since v0.1.90
|
|
@@ -558,37 +583,44 @@ declare module 'net' {
|
|
|
558
583
|
* 2. connection
|
|
559
584
|
* 3. error
|
|
560
585
|
* 4. listening
|
|
586
|
+
* 5. drop
|
|
561
587
|
*/
|
|
562
588
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
563
589
|
addListener(event: 'close', listener: () => void): this;
|
|
564
590
|
addListener(event: 'connection', listener: (socket: Socket) => void): this;
|
|
565
591
|
addListener(event: 'error', listener: (err: Error) => void): this;
|
|
566
592
|
addListener(event: 'listening', listener: () => void): this;
|
|
593
|
+
addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
567
594
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
568
595
|
emit(event: 'close'): boolean;
|
|
569
596
|
emit(event: 'connection', socket: Socket): boolean;
|
|
570
597
|
emit(event: 'error', err: Error): boolean;
|
|
571
598
|
emit(event: 'listening'): boolean;
|
|
599
|
+
emit(event: 'drop', data?: DropArgument): boolean;
|
|
572
600
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
573
601
|
on(event: 'close', listener: () => void): this;
|
|
574
602
|
on(event: 'connection', listener: (socket: Socket) => void): this;
|
|
575
603
|
on(event: 'error', listener: (err: Error) => void): this;
|
|
576
604
|
on(event: 'listening', listener: () => void): this;
|
|
605
|
+
on(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
577
606
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
578
607
|
once(event: 'close', listener: () => void): this;
|
|
579
608
|
once(event: 'connection', listener: (socket: Socket) => void): this;
|
|
580
609
|
once(event: 'error', listener: (err: Error) => void): this;
|
|
581
610
|
once(event: 'listening', listener: () => void): this;
|
|
611
|
+
once(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
582
612
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
583
613
|
prependListener(event: 'close', listener: () => void): this;
|
|
584
614
|
prependListener(event: 'connection', listener: (socket: Socket) => void): this;
|
|
585
615
|
prependListener(event: 'error', listener: (err: Error) => void): this;
|
|
586
616
|
prependListener(event: 'listening', listener: () => void): this;
|
|
617
|
+
prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
587
618
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
588
619
|
prependOnceListener(event: 'close', listener: () => void): this;
|
|
589
620
|
prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
|
|
590
621
|
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
591
622
|
prependOnceListener(event: 'listening', listener: () => void): this;
|
|
623
|
+
prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
|
|
592
624
|
}
|
|
593
625
|
type IPVersion = 'ipv4' | 'ipv6';
|
|
594
626
|
/**
|
|
@@ -814,7 +846,6 @@ declare module 'net' {
|
|
|
814
846
|
class SocketAddress {
|
|
815
847
|
constructor(options: SocketAddressInitOptions);
|
|
816
848
|
/**
|
|
817
|
-
* Either \`'ipv4'\` or \`'ipv6'\`.
|
|
818
849
|
* @since v15.14.0, v14.18.0
|
|
819
850
|
*/
|
|
820
851
|
readonly address: string;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module 'url' {
|
|
11
|
-
import { Blob } from 'node:buffer';
|
|
11
|
+
import { Blob as NodeBlob } from 'node:buffer';
|
|
12
12
|
import { ClientRequestArgs } from 'node:http';
|
|
13
13
|
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
|
|
14
14
|
// Input to `url.format`
|
|
@@ -395,7 +395,7 @@ declare module 'url' {
|
|
|
395
395
|
* @since v16.7.0
|
|
396
396
|
* @experimental
|
|
397
397
|
*/
|
|
398
|
-
static createObjectURL(blob:
|
|
398
|
+
static createObjectURL(blob: NodeBlob): string;
|
|
399
399
|
/**
|
|
400
400
|
* Removes the stored `Blob` identified by the given ID. Attempting to revoke a
|
|
401
401
|
* ID that isn’t registered will silently fail.
|
|
@@ -875,9 +875,9 @@ declare module 'url' {
|
|
|
875
875
|
*/
|
|
876
876
|
var URL: typeof globalThis extends {
|
|
877
877
|
onmessage: any;
|
|
878
|
-
URL: infer
|
|
878
|
+
URL: infer T;
|
|
879
879
|
}
|
|
880
|
-
?
|
|
880
|
+
? T
|
|
881
881
|
: typeof _URL;
|
|
882
882
|
/**
|
|
883
883
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
@@ -886,9 +886,9 @@ declare module 'url' {
|
|
|
886
886
|
*/
|
|
887
887
|
var URLSearchParams: typeof globalThis extends {
|
|
888
888
|
onmessage: any;
|
|
889
|
-
URLSearchParams: infer
|
|
889
|
+
URLSearchParams: infer T;
|
|
890
890
|
}
|
|
891
|
-
?
|
|
891
|
+
? T
|
|
892
892
|
: typeof _URLSearchParams;
|
|
893
893
|
}
|
|
894
894
|
}
|
|
@@ -1067,6 +1067,8 @@ declare module 'util' {
|
|
|
1067
1067
|
written: number;
|
|
1068
1068
|
}
|
|
1069
1069
|
export { types };
|
|
1070
|
+
|
|
1071
|
+
//// TextEncoder/Decoder
|
|
1070
1072
|
/**
|
|
1071
1073
|
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
|
|
1072
1074
|
* instances of `TextEncoder` only support UTF-8 encoding.
|
|
@@ -1106,6 +1108,34 @@ declare module 'util' {
|
|
|
1106
1108
|
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1107
1109
|
}
|
|
1108
1110
|
|
|
1111
|
+
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from 'util';
|
|
1112
|
+
global {
|
|
1113
|
+
/**
|
|
1114
|
+
* `TextDecoder` class is a global reference for `require('util').TextDecoder`
|
|
1115
|
+
* https://nodejs.org/api/globals.html#textdecoder
|
|
1116
|
+
* @since v11.0.0
|
|
1117
|
+
*/
|
|
1118
|
+
var TextDecoder: typeof globalThis extends {
|
|
1119
|
+
onmessage: any;
|
|
1120
|
+
TextDecoder: infer TextDecoder;
|
|
1121
|
+
}
|
|
1122
|
+
? TextDecoder
|
|
1123
|
+
: typeof _TextDecoder;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* `TextEncoder` class is a global reference for `require('util').TextEncoder`
|
|
1127
|
+
* https://nodejs.org/api/globals.html#textencoder
|
|
1128
|
+
* @since v11.0.0
|
|
1129
|
+
*/
|
|
1130
|
+
var TextEncoder: typeof globalThis extends {
|
|
1131
|
+
onmessage: any;
|
|
1132
|
+
TextEncoder: infer TextEncoder;
|
|
1133
|
+
}
|
|
1134
|
+
? TextEncoder
|
|
1135
|
+
: typeof _TextEncoder;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
//// parseArgs
|
|
1109
1139
|
/**
|
|
1110
1140
|
* Provides a high-level API for command-line argument parsing. Takes a
|
|
1111
1141
|
* specification for the expected arguments and returns a structured object
|
|
@@ -640,6 +640,49 @@ declare module 'worker_threads' {
|
|
|
640
640
|
* for the `key` will be deleted.
|
|
641
641
|
*/
|
|
642
642
|
function setEnvironmentData(key: Serializable, value: Serializable): void;
|
|
643
|
+
|
|
644
|
+
import {
|
|
645
|
+
BroadcastChannel as _BroadcastChannel,
|
|
646
|
+
MessageChannel as _MessageChannel,
|
|
647
|
+
MessagePort as _MessagePort,
|
|
648
|
+
} from 'worker_threads';
|
|
649
|
+
global {
|
|
650
|
+
/**
|
|
651
|
+
* `BroadcastChannel` class is a global reference for `require('worker_threads').BroadcastChannel`
|
|
652
|
+
* https://nodejs.org/api/globals.html#broadcastchannel
|
|
653
|
+
* @since v18.0.0
|
|
654
|
+
*/
|
|
655
|
+
var BroadcastChannel: typeof globalThis extends {
|
|
656
|
+
onmessage: any;
|
|
657
|
+
BroadcastChannel: infer T;
|
|
658
|
+
}
|
|
659
|
+
? T
|
|
660
|
+
: typeof _BroadcastChannel;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* `MessageChannel` class is a global reference for `require('worker_threads').MessageChannel`
|
|
664
|
+
* https://nodejs.org/api/globals.html#messagechannel
|
|
665
|
+
* @since v15.0.0
|
|
666
|
+
*/
|
|
667
|
+
var MessageChannel: typeof globalThis extends {
|
|
668
|
+
onmessage: any;
|
|
669
|
+
MessageChannel: infer T;
|
|
670
|
+
}
|
|
671
|
+
? T
|
|
672
|
+
: typeof _MessageChannel;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* `MessagePort` class is a global reference for `require('worker_threads').MessagePort`
|
|
676
|
+
* https://nodejs.org/api/globals.html#messageport
|
|
677
|
+
* @since v15.0.0
|
|
678
|
+
*/
|
|
679
|
+
var MessagePort: typeof globalThis extends {
|
|
680
|
+
onmessage: any;
|
|
681
|
+
MessagePort: infer T;
|
|
682
|
+
}
|
|
683
|
+
? T
|
|
684
|
+
: typeof _MessagePort;
|
|
685
|
+
}
|
|
643
686
|
}
|
|
644
687
|
declare module 'node:worker_threads' {
|
|
645
688
|
export * from 'worker_threads';
|
package/package.json
CHANGED
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"release": "npx projen release",
|
|
26
26
|
"release:cdkv1": "npx projen release:cdkv1",
|
|
27
27
|
"test": "npx projen test",
|
|
28
|
-
"test:update": "npx projen test:update",
|
|
29
28
|
"test:watch": "npx projen test:watch",
|
|
30
29
|
"unbump": "npx projen unbump",
|
|
31
30
|
"upgrade": "npx projen upgrade",
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
"jsii-pacmak": "^1.69.0",
|
|
57
56
|
"json-schema": "^0.4.0",
|
|
58
57
|
"npm-check-updates": "^15",
|
|
59
|
-
"projen": "0.
|
|
58
|
+
"projen": "0.63.4",
|
|
60
59
|
"standard-version": "^9",
|
|
61
60
|
"ts-jest": "^27",
|
|
62
61
|
"typescript": "3.9.10"
|
|
@@ -84,7 +83,7 @@
|
|
|
84
83
|
],
|
|
85
84
|
"main": "lib/index.js",
|
|
86
85
|
"license": "Apache-2.0",
|
|
87
|
-
"version": "2.0.
|
|
86
|
+
"version": "2.0.278",
|
|
88
87
|
"jest": {
|
|
89
88
|
"testMatch": [
|
|
90
89
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|