cdk-ecr-deployment 0.0.79 → 0.0.83
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/.gitattributes +20 -21
- package/.jsii +18 -13
- package/lambda/go.mod +1 -1
- package/lambda/go.sum +230 -66
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +88 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +55 -19
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +31 -0
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
- package/node_modules/got/dist/source/as-promise/types.js +2 -0
- package/node_modules/got/dist/source/core/index.d.ts +1 -1
- package/node_modules/got/dist/source/core/index.js +9 -3
- package/node_modules/got/dist/source/types.d.ts +14 -12
- package/node_modules/got/package.json +2 -2
- package/node_modules/got/readme.md +11 -10
- package/node_modules/keyv/LICENSE +1 -1
- package/node_modules/keyv/README.md +12 -10
- package/node_modules/keyv/package.json +17 -12
- package/node_modules/keyv/src/index.js +14 -16
- package/package.json +38 -38
|
@@ -37,6 +37,7 @@ declare module 'diagnostics_channel' {
|
|
|
37
37
|
* // There are subscribers, prepare and publish message
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
|
+
* @since v15.1.0, v14.17.0
|
|
40
41
|
* @param name The channel name
|
|
41
42
|
* @return If there are active subscribers
|
|
42
43
|
*/
|
|
@@ -51,6 +52,7 @@ declare module 'diagnostics_channel' {
|
|
|
51
52
|
*
|
|
52
53
|
* const channel = diagnostics_channel.channel('my-channel');
|
|
53
54
|
* ```
|
|
55
|
+
* @since v15.1.0, v14.17.0
|
|
54
56
|
* @param name The channel name
|
|
55
57
|
* @return The named channel object
|
|
56
58
|
*/
|
|
@@ -63,6 +65,7 @@ declare module 'diagnostics_channel' {
|
|
|
63
65
|
* lookups at publish time, enabling very fast publish speeds and allowing
|
|
64
66
|
* for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
|
|
65
67
|
* with `new Channel(name)` is not supported.
|
|
68
|
+
* @since v15.1.0, v14.17.0
|
|
66
69
|
*/
|
|
67
70
|
class Channel {
|
|
68
71
|
readonly name: string;
|
|
@@ -82,6 +85,7 @@ declare module 'diagnostics_channel' {
|
|
|
82
85
|
* // There are subscribers, prepare and publish message
|
|
83
86
|
* }
|
|
84
87
|
* ```
|
|
88
|
+
* @since v15.1.0, v14.17.0
|
|
85
89
|
*/
|
|
86
90
|
readonly hasSubscribers: boolean;
|
|
87
91
|
private constructor(name: string);
|
|
@@ -99,6 +103,7 @@ declare module 'diagnostics_channel' {
|
|
|
99
103
|
* // Received data
|
|
100
104
|
* });
|
|
101
105
|
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
102
107
|
* @param onMessage The handler to receive channel messages
|
|
103
108
|
*/
|
|
104
109
|
subscribe(onMessage: ChannelListener): void;
|
|
@@ -118,6 +123,7 @@ declare module 'diagnostics_channel' {
|
|
|
118
123
|
*
|
|
119
124
|
* channel.unsubscribe(onMessage);
|
|
120
125
|
* ```
|
|
126
|
+
* @since v15.1.0, v14.17.0
|
|
121
127
|
* @param onMessage The previous subscribed handler to remove
|
|
122
128
|
*/
|
|
123
129
|
unsubscribe(onMessage: ChannelListener): void;
|
|
@@ -331,6 +331,17 @@ declare module 'dns/promises' {
|
|
|
331
331
|
* @param servers array of `RFC 5952` formatted addresses
|
|
332
332
|
*/
|
|
333
333
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
334
|
+
/**
|
|
335
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
336
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
337
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
338
|
+
*
|
|
339
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
340
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
341
|
+
* @since v14.18.0
|
|
342
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
343
|
+
*/
|
|
344
|
+
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
334
345
|
class Resolver {
|
|
335
346
|
constructor(options?: ResolverOptions);
|
|
336
347
|
cancel(): void;
|
|
@@ -526,6 +526,17 @@ declare module 'dns' {
|
|
|
526
526
|
* @since v0.11.3
|
|
527
527
|
*/
|
|
528
528
|
export function getServers(): string[];
|
|
529
|
+
/**
|
|
530
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
531
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
532
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
533
|
+
*
|
|
534
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
535
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
536
|
+
* @since v14.18.0
|
|
537
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
538
|
+
*/
|
|
539
|
+
export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
529
540
|
// Error codes
|
|
530
541
|
export const NODATA: string;
|
|
531
542
|
export const FORMERR: string;
|
|
@@ -31,6 +31,8 @@ declare module 'fs/promises' {
|
|
|
31
31
|
WatchOptions,
|
|
32
32
|
WatchEventType,
|
|
33
33
|
CopyOptions,
|
|
34
|
+
ReadStream,
|
|
35
|
+
WriteStream,
|
|
34
36
|
} from 'node:fs';
|
|
35
37
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
36
38
|
eventType: WatchEventType;
|
|
@@ -59,6 +61,20 @@ declare module 'fs/promises' {
|
|
|
59
61
|
length?: number | null;
|
|
60
62
|
position?: number | null;
|
|
61
63
|
}
|
|
64
|
+
interface CreateReadStreamOptions {
|
|
65
|
+
encoding?: BufferEncoding | null | undefined;
|
|
66
|
+
autoClose?: boolean | undefined;
|
|
67
|
+
emitClose?: boolean | undefined;
|
|
68
|
+
start?: number | undefined;
|
|
69
|
+
end?: number | undefined;
|
|
70
|
+
highWaterMark?: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
interface CreateWriteStreamOptions {
|
|
73
|
+
encoding?: BufferEncoding | null | undefined;
|
|
74
|
+
autoClose?: boolean | undefined;
|
|
75
|
+
emitClose?: boolean | undefined;
|
|
76
|
+
start?: number | undefined;
|
|
77
|
+
}
|
|
62
78
|
// TODO: Add `EventEmitter` close
|
|
63
79
|
interface FileHandle {
|
|
64
80
|
/**
|
|
@@ -90,6 +106,77 @@ declare module 'fs/promises' {
|
|
|
90
106
|
* @return Fulfills with `undefined` upon success.
|
|
91
107
|
*/
|
|
92
108
|
chmod(mode: Mode): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
111
|
+
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
112
|
+
*
|
|
113
|
+
* `options` can include `start` and `end` values to read a range of bytes from
|
|
114
|
+
* the file instead of the entire file. Both `start` and `end` are inclusive and
|
|
115
|
+
* start counting at 0, allowed values are in the
|
|
116
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is
|
|
117
|
+
* omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
|
|
118
|
+
* the current file position. The `encoding` can be any one of those accepted by `Buffer`.
|
|
119
|
+
*
|
|
120
|
+
* If the `FileHandle` points to a character device that only supports blocking
|
|
121
|
+
* reads (such as keyboard or sound card), read operations do not finish until data
|
|
122
|
+
* is available. This can prevent the process from exiting and the stream from
|
|
123
|
+
* closing naturally.
|
|
124
|
+
*
|
|
125
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
126
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
127
|
+
*
|
|
128
|
+
* ```js
|
|
129
|
+
* import { open } from 'fs/promises';
|
|
130
|
+
*
|
|
131
|
+
* const fd = await open('/dev/input/event0');
|
|
132
|
+
* // Create a stream from some character device.
|
|
133
|
+
* const stream = fd.createReadStream();
|
|
134
|
+
* setTimeout(() => {
|
|
135
|
+
* stream.close(); // This may not close the stream.
|
|
136
|
+
* // Artificially marking end-of-stream, as if the underlying resource had
|
|
137
|
+
* // indicated end-of-file by itself, allows the stream to close.
|
|
138
|
+
* // This does not cancel pending read operations, and if there is such an
|
|
139
|
+
* // operation, the process may still not be able to exit successfully
|
|
140
|
+
* // until it finishes.
|
|
141
|
+
* stream.push(null);
|
|
142
|
+
* stream.read(0);
|
|
143
|
+
* }, 100);
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* If `autoClose` is false, then the file descriptor won't be closed, even if
|
|
147
|
+
* there's an error. It is the application's responsibility to close it and make
|
|
148
|
+
* sure there's no file descriptor leak. If `autoClose` is set to true (default
|
|
149
|
+
* behavior), on `'error'` or `'end'` the file descriptor will be closed
|
|
150
|
+
* automatically.
|
|
151
|
+
*
|
|
152
|
+
* An example to read the last 10 bytes of a file which is 100 bytes long:
|
|
153
|
+
*
|
|
154
|
+
* ```js
|
|
155
|
+
* import { open } from 'fs/promises';
|
|
156
|
+
*
|
|
157
|
+
* const fd = await open('sample.txt');
|
|
158
|
+
* fd.createReadStream({ start: 90, end: 99 });
|
|
159
|
+
* ```
|
|
160
|
+
* @since v16.11.0
|
|
161
|
+
*/
|
|
162
|
+
createReadStream(options?: CreateReadStreamOptions): ReadStream;
|
|
163
|
+
/**
|
|
164
|
+
* `options` may also include a `start` option to allow writing data at some
|
|
165
|
+
* position past the beginning of the file, allowed values are in the
|
|
166
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing
|
|
167
|
+
* it may require the `flags` `open` option to be set to `r+` rather than the
|
|
168
|
+
* default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
169
|
+
*
|
|
170
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
171
|
+
* then the file descriptor won't be closed, even if there's an error.
|
|
172
|
+
* It is the application's responsibility to close it and make sure there's no
|
|
173
|
+
* file descriptor leak.
|
|
174
|
+
*
|
|
175
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
176
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
177
|
+
* @since v16.11.0
|
|
178
|
+
*/
|
|
179
|
+
createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
|
|
93
180
|
/**
|
|
94
181
|
* Forces all currently queued I/O operations associated with the file to the
|
|
95
182
|
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
|
|
@@ -928,7 +1015,7 @@ declare module 'fs/promises' {
|
|
|
928
1015
|
* @since v12.12.0
|
|
929
1016
|
* @return Fulfills with an {fs.Dir}.
|
|
930
1017
|
*/
|
|
931
|
-
function opendir(path:
|
|
1018
|
+
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
932
1019
|
/**
|
|
933
1020
|
* Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
|
|
934
1021
|
*
|
|
@@ -260,6 +260,29 @@ declare module 'fs' {
|
|
|
260
260
|
*/
|
|
261
261
|
readSync(): Dirent | null;
|
|
262
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Class: fs.StatWatcher
|
|
265
|
+
* @since v14.3.0, v12.20.0
|
|
266
|
+
* Extends `EventEmitter`
|
|
267
|
+
* A successful call to {@link watchFile} method will return a new fs.StatWatcher object.
|
|
268
|
+
*/
|
|
269
|
+
export interface StatWatcher extends EventEmitter {
|
|
270
|
+
/**
|
|
271
|
+
* @since v14.3.0, v12.20.0
|
|
272
|
+
* When called, requests that the Node.js event loop not exit so long as the `fs.StatWatcher` is active.
|
|
273
|
+
* Calling `watcher.ref()` multiple times will have no effect.
|
|
274
|
+
* By default, all `fs.StatWatcher`` objects are "ref'ed", making it normally unnecessary to call `watcher.ref()`
|
|
275
|
+
* unless `watcher.unref()` had been called previously.
|
|
276
|
+
*/
|
|
277
|
+
ref(): this;
|
|
278
|
+
/**
|
|
279
|
+
* @since v14.3.0, v12.20.0
|
|
280
|
+
* When called, the active `fs.StatWatcher`` object will not require the Node.js event loop to remain active.
|
|
281
|
+
* If there is no other activity keeping the event loop running, the process may exit before the `fs.StatWatcher`` object's callback is invoked.
|
|
282
|
+
* `Calling watcher.unref()` multiple times will have no effect.
|
|
283
|
+
*/
|
|
284
|
+
unref(): this;
|
|
285
|
+
}
|
|
263
286
|
export interface FSWatcher extends EventEmitter {
|
|
264
287
|
/**
|
|
265
288
|
* Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable.
|
|
@@ -297,7 +320,7 @@ declare module 'fs' {
|
|
|
297
320
|
* @since v0.1.93
|
|
298
321
|
*/
|
|
299
322
|
export class ReadStream extends stream.Readable {
|
|
300
|
-
close(): void;
|
|
323
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
301
324
|
/**
|
|
302
325
|
* The number of bytes that have been read so far.
|
|
303
326
|
* @since v6.4.0
|
|
@@ -306,7 +329,7 @@ declare module 'fs' {
|
|
|
306
329
|
/**
|
|
307
330
|
* The path to the file the stream is reading from as specified in the first
|
|
308
331
|
* argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a
|
|
309
|
-
* `Buffer`.
|
|
332
|
+
* `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`.
|
|
310
333
|
* @since v0.1.93
|
|
311
334
|
*/
|
|
312
335
|
path: string | Buffer;
|
|
@@ -385,7 +408,7 @@ declare module 'fs' {
|
|
|
385
408
|
* callback that will be executed once the `writeStream`is closed.
|
|
386
409
|
* @since v0.9.4
|
|
387
410
|
*/
|
|
388
|
-
close(): void;
|
|
411
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
389
412
|
/**
|
|
390
413
|
* The number of bytes written so far. Does not include data that is still queued
|
|
391
414
|
* for writing.
|
|
@@ -768,6 +791,7 @@ declare module 'fs' {
|
|
|
768
791
|
* @deprecated Since v0.4.7
|
|
769
792
|
*/
|
|
770
793
|
export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
|
|
794
|
+
/** @deprecated */
|
|
771
795
|
export namespace lchmod {
|
|
772
796
|
/**
|
|
773
797
|
* Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
|
|
@@ -2762,7 +2786,7 @@ declare module 'fs' {
|
|
|
2762
2786
|
* the numeric values in these objects are specified as `BigInt`s.
|
|
2763
2787
|
*
|
|
2764
2788
|
* To be notified when the file was modified, not just accessed, it is necessary
|
|
2765
|
-
* to compare `curr.
|
|
2789
|
+
* to compare `curr.mtimeMs` and `prev.mtimeMs`.
|
|
2766
2790
|
*
|
|
2767
2791
|
* When an `fs.watchFile` operation results in an `ENOENT` error, it
|
|
2768
2792
|
* will invoke the listener once, with all the fields zeroed (or, for dates, the
|
|
@@ -2783,21 +2807,34 @@ declare module 'fs' {
|
|
|
2783
2807
|
* * the file is renamed and then renamed a second time back to its original name
|
|
2784
2808
|
* @since v0.1.31
|
|
2785
2809
|
*/
|
|
2810
|
+
export interface WatchFileOptions {
|
|
2811
|
+
bigint?: boolean | undefined;
|
|
2812
|
+
persistent?: boolean | undefined;
|
|
2813
|
+
interval?: number | undefined;
|
|
2814
|
+
}
|
|
2786
2815
|
export function watchFile(
|
|
2787
2816
|
filename: PathLike,
|
|
2788
2817
|
options:
|
|
2789
|
-
| {
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
}
|
|
2818
|
+
| (WatchFileOptions & {
|
|
2819
|
+
bigint?: false | undefined;
|
|
2820
|
+
})
|
|
2793
2821
|
| undefined,
|
|
2794
2822
|
listener: (curr: Stats, prev: Stats) => void
|
|
2795
|
-
):
|
|
2823
|
+
): StatWatcher;
|
|
2824
|
+
export function watchFile(
|
|
2825
|
+
filename: PathLike,
|
|
2826
|
+
options:
|
|
2827
|
+
| (WatchFileOptions & {
|
|
2828
|
+
bigint: true;
|
|
2829
|
+
})
|
|
2830
|
+
| undefined,
|
|
2831
|
+
listener: (curr: BigIntStats, prev: BigIntStats) => void
|
|
2832
|
+
): StatWatcher;
|
|
2796
2833
|
/**
|
|
2797
2834
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
2798
2835
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
2799
2836
|
*/
|
|
2800
|
-
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void):
|
|
2837
|
+
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): StatWatcher;
|
|
2801
2838
|
/**
|
|
2802
2839
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
2803
2840
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -3000,6 +3037,7 @@ declare module 'fs' {
|
|
|
3000
3037
|
* @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
|
|
3001
3038
|
*/
|
|
3002
3039
|
export function exists(path: PathLike, callback: (exists: boolean) => void): void;
|
|
3040
|
+
/** @deprecated */
|
|
3003
3041
|
export namespace exists {
|
|
3004
3042
|
/**
|
|
3005
3043
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -3360,7 +3398,7 @@ declare module 'fs' {
|
|
|
3360
3398
|
end?: number | undefined;
|
|
3361
3399
|
}
|
|
3362
3400
|
/**
|
|
3363
|
-
* Unlike the 16 kb default `highWaterMark` for a
|
|
3401
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
3364
3402
|
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
3365
3403
|
*
|
|
3366
3404
|
* `options` can include `start` and `end` values to read a range of bytes from
|
|
@@ -3380,7 +3418,7 @@ declare module 'fs' {
|
|
|
3380
3418
|
* closing naturally.
|
|
3381
3419
|
*
|
|
3382
3420
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3383
|
-
* destroyed
|
|
3421
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3384
3422
|
*
|
|
3385
3423
|
* By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option,
|
|
3386
3424
|
* an override for `read` is required. If no `fd` is provided, an override for`open` is also required. If `autoClose` is `true`, an override for `close` is
|
|
@@ -3422,7 +3460,6 @@ declare module 'fs' {
|
|
|
3422
3460
|
*
|
|
3423
3461
|
* If `options` is a string, then it specifies the encoding.
|
|
3424
3462
|
* @since v0.1.31
|
|
3425
|
-
* @return See `Readable Stream`.
|
|
3426
3463
|
*/
|
|
3427
3464
|
export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
|
|
3428
3465
|
/**
|
|
@@ -3438,7 +3475,7 @@ declare module 'fs' {
|
|
|
3438
3475
|
* file descriptor leak.
|
|
3439
3476
|
*
|
|
3440
3477
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3441
|
-
* destroyed
|
|
3478
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3442
3479
|
*
|
|
3443
3480
|
* By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce
|
|
3444
3481
|
* performance as some optimizations (`_writev()`)
|
|
@@ -3451,7 +3488,6 @@ declare module 'fs' {
|
|
|
3451
3488
|
*
|
|
3452
3489
|
* If `options` is a string, then it specifies the encoding.
|
|
3453
3490
|
* @since v0.1.31
|
|
3454
|
-
* @return See `Writable Stream`.
|
|
3455
3491
|
*/
|
|
3456
3492
|
export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream;
|
|
3457
3493
|
/**
|
|
@@ -3649,7 +3685,7 @@ declare module 'fs' {
|
|
|
3649
3685
|
* directory and subsequent read operations.
|
|
3650
3686
|
* @since v12.12.0
|
|
3651
3687
|
*/
|
|
3652
|
-
export function opendirSync(path:
|
|
3688
|
+
export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
|
|
3653
3689
|
/**
|
|
3654
3690
|
* Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
|
|
3655
3691
|
* more details.
|
|
@@ -3661,10 +3697,10 @@ declare module 'fs' {
|
|
|
3661
3697
|
* directory and subsequent read operations.
|
|
3662
3698
|
* @since v12.12.0
|
|
3663
3699
|
*/
|
|
3664
|
-
export function opendir(path:
|
|
3665
|
-
export function opendir(path:
|
|
3700
|
+
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3701
|
+
export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3666
3702
|
export namespace opendir {
|
|
3667
|
-
function __promisify__(path:
|
|
3703
|
+
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
3668
3704
|
}
|
|
3669
3705
|
export interface BigIntStats extends StatsBase<bigint> {
|
|
3670
3706
|
atimeNs: bigint;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
declare module 'http' {
|
|
43
43
|
import * as stream from 'node:stream';
|
|
44
44
|
import { URL } from 'node:url';
|
|
45
|
-
import { Socket, Server as NetServer } from 'node:net';
|
|
45
|
+
import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net';
|
|
46
46
|
// incoming headers will never contain number
|
|
47
47
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
|
48
48
|
accept?: string | undefined;
|
|
@@ -136,6 +136,7 @@ declare module 'http' {
|
|
|
136
136
|
setHost?: boolean | undefined;
|
|
137
137
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
138
138
|
createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
|
|
139
|
+
lookup?: LookupFunction | undefined;
|
|
139
140
|
}
|
|
140
141
|
interface ServerOptions {
|
|
141
142
|
IncomingMessage?: typeof IncomingMessage | undefined;
|
|
@@ -187,9 +188,9 @@ declare module 'http' {
|
|
|
187
188
|
* The maximum number of requests socket can handle
|
|
188
189
|
* before closing keep alive connection.
|
|
189
190
|
*
|
|
190
|
-
* A value of `
|
|
191
|
+
* A value of `0` will disable the limit.
|
|
191
192
|
*
|
|
192
|
-
* When limit is
|
|
193
|
+
* When the limit is reached it will set the `Connection` header value to `close`,
|
|
193
194
|
* but will not actually close the connection, subsequent requests sent
|
|
194
195
|
* after the limit is reached will get `503 Service Unavailable` as a response.
|
|
195
196
|
* @since v16.10.0
|
|
@@ -950,7 +951,7 @@ declare module 'http' {
|
|
|
950
951
|
*/
|
|
951
952
|
destroy(error?: Error): void;
|
|
952
953
|
}
|
|
953
|
-
interface AgentOptions {
|
|
954
|
+
interface AgentOptions extends Partial<TcpSocketConnectOpts> {
|
|
954
955
|
/**
|
|
955
956
|
* Keep sockets around in a pool to be used by other requests in the future. Default = false
|
|
956
957
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 16.
|
|
1
|
+
// Type definitions for non-npm package Node.js 16.11
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
+
// Seth Westphal <https://github.com/westy92>
|
|
24
25
|
// Simon Schick <https://github.com/SimonSchick>
|
|
25
26
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
26
27
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
@@ -30,7 +31,6 @@
|
|
|
30
31
|
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
31
32
|
// Marcin Kopacz <https://github.com/chyzwar>
|
|
32
33
|
// Trivikram Kamat <https://github.com/trivikr>
|
|
33
|
-
// Minh Son Nguyen <https://github.com/nguymin4>
|
|
34
34
|
// Junxiao Shi <https://github.com/yoursunny>
|
|
35
35
|
// Ilia Baryshnikov <https://github.com/qwelias>
|
|
36
36
|
// ExE Boss <https://github.com/ExE-Boss>
|
|
@@ -1778,6 +1778,13 @@ declare module 'inspector' {
|
|
|
1778
1778
|
* @since v8.0.0
|
|
1779
1779
|
*/
|
|
1780
1780
|
connect(): void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Connects a session to the main thread inspector back-end.
|
|
1783
|
+
* An exception will be thrown if this API was not called on a Worker
|
|
1784
|
+
* thread.
|
|
1785
|
+
* @since 12.11.0
|
|
1786
|
+
*/
|
|
1787
|
+
connectToMainThread(): void;
|
|
1781
1788
|
/**
|
|
1782
1789
|
* Immediately close the session. All pending message callbacks will be called
|
|
1783
1790
|
* with an error. `session.connect()` will need to be called to be able to send
|
|
@@ -255,12 +255,12 @@ declare module 'net' {
|
|
|
255
255
|
* connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`.
|
|
256
256
|
* @since v0.9.6
|
|
257
257
|
*/
|
|
258
|
-
readonly localAddress
|
|
258
|
+
readonly localAddress?: string;
|
|
259
259
|
/**
|
|
260
260
|
* The numeric representation of the local port. For example, `80` or `21`.
|
|
261
261
|
* @since v0.9.6
|
|
262
262
|
*/
|
|
263
|
-
readonly localPort
|
|
263
|
+
readonly localPort?: number;
|
|
264
264
|
/**
|
|
265
265
|
* The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
|
|
266
266
|
* the socket is destroyed (for example, if the client disconnected).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.11.11",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,6 +110,11 @@
|
|
|
110
110
|
"url": "https://github.com/eps1lon",
|
|
111
111
|
"githubUsername": "eps1lon"
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"name": "Seth Westphal",
|
|
115
|
+
"url": "https://github.com/westy92",
|
|
116
|
+
"githubUsername": "westy92"
|
|
117
|
+
},
|
|
113
118
|
{
|
|
114
119
|
"name": "Simon Schick",
|
|
115
120
|
"url": "https://github.com/SimonSchick",
|
|
@@ -155,11 +160,6 @@
|
|
|
155
160
|
"url": "https://github.com/trivikr",
|
|
156
161
|
"githubUsername": "trivikr"
|
|
157
162
|
},
|
|
158
|
-
{
|
|
159
|
-
"name": "Minh Son Nguyen",
|
|
160
|
-
"url": "https://github.com/nguymin4",
|
|
161
|
-
"githubUsername": "nguymin4"
|
|
162
|
-
},
|
|
163
163
|
{
|
|
164
164
|
"name": "Junxiao Shi",
|
|
165
165
|
"url": "https://github.com/yoursunny",
|
|
@@ -225,6 +225,6 @@
|
|
|
225
225
|
},
|
|
226
226
|
"scripts": {},
|
|
227
227
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
229
|
-
"typeScriptVersion": "3.
|
|
228
|
+
"typesPublisherContentHash": "2c07ab3f15ad8f0250e091bd0ca3ffaa5918c556923138897e7eabf6ec03c778",
|
|
229
|
+
"typeScriptVersion": "3.8"
|
|
230
230
|
}
|
|
@@ -94,7 +94,11 @@ declare module 'process' {
|
|
|
94
94
|
type ExitListener = (code: number) => void;
|
|
95
95
|
type RejectionHandledListener = (promise: Promise<unknown>) => void;
|
|
96
96
|
type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
|
|
97
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Most of the time the unhandledRejection will be an Error, but this should not be relied upon
|
|
99
|
+
* as *anything* can be thrown/rejected, it is therefore unsafe to assume the the value is an Error.
|
|
100
|
+
*/
|
|
101
|
+
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
98
102
|
type WarningListener = (warning: Error) => void;
|
|
99
103
|
type MessageListener = (message: unknown, sendHandle: unknown) => void;
|
|
100
104
|
type SignalsListener = (signal: Signals) => void;
|
|
@@ -236,6 +236,7 @@ declare module 'readline' {
|
|
|
236
236
|
* @since v0.1.98
|
|
237
237
|
*/
|
|
238
238
|
write(data: string | Buffer, key?: Key): void;
|
|
239
|
+
write(data: undefined | null | string | Buffer, key: Key): void;
|
|
239
240
|
/**
|
|
240
241
|
* Returns the real position of the cursor in relation to the input
|
|
241
242
|
* prompt + string. Long input (wrapping) strings, as well as multiple
|