cdk-ecr-deployment 2.0.0 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/.gitattributes +23 -22
  2. package/.jsii +85 -6
  3. package/README.md +2 -0
  4. package/lib/index.js +3 -3
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +7 -3
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +9 -9
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -1
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +1 -1
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +1 -1
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +2 -2
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +2 -2
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +12 -10
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +17 -12
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +2 -2
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +5 -5
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +62 -11
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +21 -4
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +4 -5
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -11
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +4 -4
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +121 -14
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +1 -1
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +3 -65
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +2 -2
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +1 -1
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +58 -18
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +3 -3
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +3 -3
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +4 -4
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +1 -1
  49. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  50. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  51. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +7 -3
  52. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +9 -9
  53. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -1
  54. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +1 -1
  55. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +1 -1
  56. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +2 -2
  57. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +2 -2
  58. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  59. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +12 -10
  60. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +17 -12
  61. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  62. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +2 -2
  63. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +5 -5
  64. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +62 -11
  65. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +21 -4
  66. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
  67. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  68. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
  69. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +4 -5
  70. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -11
  71. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  72. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  73. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  74. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +4 -4
  75. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  76. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  77. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +121 -14
  78. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +1 -1
  79. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +3 -65
  80. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +2 -2
  81. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  82. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
  84. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +1 -1
  85. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  86. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +58 -18
  87. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +3 -3
  88. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +3 -3
  89. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  91. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +4 -4
  92. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
  93. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  94. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  95. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +7 -3
  96. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +9 -9
  97. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -1
  98. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +1 -1
  99. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +2 -2
  101. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +2 -2
  102. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  103. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +12 -10
  104. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +17 -12
  105. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  106. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +2 -2
  107. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +5 -5
  108. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +62 -11
  109. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +21 -4
  110. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
  111. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  112. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
  113. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +4 -5
  114. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -11
  115. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  116. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  117. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  118. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +4 -4
  119. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  120. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  121. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +121 -14
  122. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +1 -1
  123. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +3 -65
  124. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +2 -2
  125. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  126. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  127. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
  128. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +1 -1
  129. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  130. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +58 -18
  131. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +3 -3
  132. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +3 -3
  133. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
  134. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  135. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +4 -4
  136. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
  137. package/package.json +12 -15
@@ -6,7 +6,7 @@
6
6
  * The timer functions within Node.js implement a similar API as the timers API
7
7
  * provided by Web Browsers but use a different internal implementation that is
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/timers.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/timers.js)
10
10
  */
11
11
  declare module 'timers' {
12
12
  import { Abortable } from 'node:events';
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const tls = require('tls');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tls.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tls.js)
10
10
  */
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
@@ -73,7 +73,7 @@
73
73
  *
74
74
  * The features from this module are not available in `Worker` threads.
75
75
  * @experimental
76
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/trace_events.js)
76
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/trace_events.js)
77
77
  */
78
78
  declare module 'trace_events' {
79
79
  /**
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * In most cases, there should be little to no reason for an application to
24
24
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
25
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tty.js)
25
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tty.js)
26
26
  */
27
27
  declare module 'tty' {
28
28
  import * as net from 'node:net';
@@ -5,7 +5,7 @@
5
5
  * ```js
6
6
  * import url from 'url';
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/url.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/url.js)
9
9
  */
10
10
  declare module 'url' {
11
11
  import { Blob } from 'node:buffer';
@@ -72,27 +72,67 @@ declare module 'url' {
72
72
  function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
73
73
  function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
74
74
  /**
75
- * The URL object has both a `toString()` method and `href` property that return string serializations of the URL.
76
- * These are not, however, customizable in any way. The `url.format(URL[, options])` method allows for basic
77
- * customization of the output.
78
- * Returns a customizable serialization of a URL `String` representation of a `WHATWG URL` object.
75
+ * The `url.format()` method returns a formatted URL string derived from`urlObject`.
79
76
  *
80
77
  * ```js
81
- * import url from 'url';
82
- * const myURL = new URL('https://a:b@測試?abc#foo');
78
+ * const url = require('url');
79
+ * url.format({
80
+ * protocol: 'https',
81
+ * hostname: 'example.com',
82
+ * pathname: '/some/path',
83
+ * query: {
84
+ * page: 1,
85
+ * format: 'json'
86
+ * }
87
+ * });
83
88
  *
84
- * console.log(myURL.href);
85
- * // Prints https://a:b@xn--g6w251d/?abc#foo
89
+ * // => 'https://example.com/some/path?page=1&format=json'
90
+ * ```
86
91
  *
87
- * console.log(myURL.toString());
88
- * // Prints https://a:b@xn--g6w251d/?abc#foo
92
+ * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`.
89
93
  *
90
- * console.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));
91
- * // Prints 'https://測試/?abc'
92
- * ```
93
- * @since v7.6.0
94
- * @param urlObject A `WHATWG URL` object
95
- * @param options
94
+ * The formatting process operates as follows:
95
+ *
96
+ * * A new empty string `result` is created.
97
+ * * If `urlObject.protocol` is a string, it is appended as-is to `result`.
98
+ * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
99
+ * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
100
+ * colon (`:`) character, the literal string `:` will be appended to `result`.
101
+ * * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
102
+ * * `urlObject.slashes` property is true;
103
+ * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
104
+ * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
105
+ * and appended to `result`followed by the literal string `@`.
106
+ * * If the `urlObject.host` property is `undefined` then:
107
+ * * If the `urlObject.hostname` is a string, it is appended to `result`.
108
+ * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
109
+ * an `Error` is thrown.
110
+ * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
111
+ * * The literal string `:` is appended to `result`, and
112
+ * * The value of `urlObject.port` is coerced to a string and appended to`result`.
113
+ * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
114
+ * * If the `urlObject.pathname` property is a string that is not an empty string:
115
+ * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
116
+ * (`/`), then the literal string `'/'` is appended to `result`.
117
+ * * The value of `urlObject.pathname` is appended to `result`.
118
+ * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
119
+ * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
120
+ * `querystring` module's `stringify()`method passing the value of `urlObject.query`.
121
+ * * Otherwise, if `urlObject.search` is a string:
122
+ * * If the value of `urlObject.search`_does not start_ with the ASCII question
123
+ * mark (`?`) character, the literal string `?` is appended to `result`.
124
+ * * The value of `urlObject.search` is appended to `result`.
125
+ * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
126
+ * * If the `urlObject.hash` property is a string:
127
+ * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
128
+ * character, the literal string `#` is appended to `result`.
129
+ * * The value of `urlObject.hash` is appended to `result`.
130
+ * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
131
+ * string, an `Error` is thrown.
132
+ * * `result` is returned.
133
+ * @since v0.1.25
134
+ * @deprecated Legacy: Use the WHATWG URL API instead.
135
+ * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
96
136
  */
97
137
  function format(urlObject: URL, options?: URLFormatOptions): string;
98
138
  /**
@@ -301,7 +341,7 @@ declare module 'url' {
301
341
  * }
302
342
  *
303
343
  * ```
304
- * @since v15.7.0
344
+ * @since v15.7.0, v14.18.0
305
345
  * @param url The `WHATWG URL` object to convert to an options object.
306
346
  * @return Options object
307
347
  */
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const util = require('util');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/util.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/util.js)
10
10
  */
11
11
  declare module 'util' {
12
12
  import * as types from 'node:util/types';
@@ -139,7 +139,7 @@ declare module 'util' {
139
139
  * console.error(name); // ENOENT
140
140
  * });
141
141
  * ```
142
- * @since v16.0.0
142
+ * @since v16.0.0, v14.17.0
143
143
  */
144
144
  export function getSystemErrorMap(): Map<number, [string, string]>;
145
145
  /**
@@ -159,7 +159,7 @@ declare module 'util' {
159
159
  * Returns the `string` after replacing any surrogate code points
160
160
  * (or equivalently, any unpaired surrogate code units) with the
161
161
  * Unicode "replacement character" U+FFFD.
162
- * @since v16.8.0
162
+ * @since v16.8.0, v14.18.0
163
163
  */
164
164
  export function toUSVString(string: string): string;
165
165
  /**
@@ -4,7 +4,7 @@
4
4
  * ```js
5
5
  * const v8 = require('v8');
6
6
  * ```
7
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/v8.js)
7
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/v8.js)
8
8
  */
9
9
  declare module 'v8' {
10
10
  import { Readable } from 'node:stream';
@@ -362,14 +362,14 @@ declare module 'v8' {
362
362
  *
363
363
  * When the process is about to exit, one last coverage will still be written to
364
364
  * disk unless {@link stopCoverage} is invoked before the process exits.
365
- * @since v15.1.0, v12.22.0
365
+ * @since v15.1.0, v14.18.0, v12.22.0
366
366
  */
367
367
  function takeCoverage(): void;
368
368
  /**
369
369
  * The `v8.stopCoverage()` method allows the user to stop the coverage collection
370
370
  * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count
371
371
  * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand.
372
- * @since v15.1.0, v12.22.0
372
+ * @since v15.1.0, v14.18.0, v12.22.0
373
373
  */
374
374
  function stopCoverage(): void;
375
375
  }
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * console.log(x); // 1; y is not defined.
34
34
  * ```
35
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/vm.js)
35
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/vm.js)
36
36
  */
37
37
  declare module 'vm' {
38
38
  interface Context extends NodeJS.Dict<any> {}
@@ -68,7 +68,7 @@
68
68
  * The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
69
69
  * example to run.
70
70
  * @experimental
71
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/wasi.js)
71
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/wasi.js)
72
72
  */
73
73
  declare module 'wasi' {
74
74
  interface WASIOptions {
@@ -49,7 +49,7 @@
49
49
  *
50
50
  * Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
51
51
  * specifically `argv` and `execArgv` options.
52
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/worker_threads.js)
52
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/worker_threads.js)
53
53
  */
54
54
  declare module 'worker_threads' {
55
55
  import { Blob } from 'node:buffer';
@@ -384,7 +384,7 @@ declare module 'worker_threads' {
384
384
  /**
385
385
  * An object that can be used to query performance information from a worker
386
386
  * instance. Similar to `perf_hooks.performance`.
387
- * @since v15.1.0, v12.22.0
387
+ * @since v15.1.0, v14.17.0, v12.22.0
388
388
  */
389
389
  readonly performance: WorkerPerformance;
390
390
  /**
@@ -629,14 +629,14 @@ declare module 'worker_threads' {
629
629
  * console.log(getEnvironmentData('Hello')); // Prints 'World!'.
630
630
  * }
631
631
  * ```
632
- * @since v15.12.0
632
+ * @since v15.12.0, v14.18.0
633
633
  * @experimental
634
634
  * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
635
635
  */
636
636
  function getEnvironmentData(key: Serializable): Serializable;
637
637
  /**
638
638
  * The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
639
- * @since v15.12.0
639
+ * @since v15.12.0, v14.18.0
640
640
  * @experimental
641
641
  * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
642
642
  * @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
@@ -88,7 +88,7 @@
88
88
  * });
89
89
  * ```
90
90
  * @since v0.5.8
91
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/zlib.js)
91
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/zlib.js)
92
92
  */
93
93
  declare module 'zlib' {
94
94
  import * as stream from 'node:stream';
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 30 Nov 2021 01:01:04 GMT
11
+ * Last updated: Wed, 15 Dec 2021 21:31:06 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `assert` module provides a set of assertion functions for verifying
3
3
  * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/assert.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/assert.js)
5
5
  */
6
6
  declare module 'assert' {
7
7
  /**
@@ -6,7 +6,7 @@
6
6
  * import async_hooks from 'async_hooks';
7
7
  * ```
8
8
  * @experimental
9
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/async_hooks.js)
10
10
  */
11
11
  declare module 'async_hooks' {
12
12
  /**
@@ -395,8 +395,9 @@ declare module 'async_hooks' {
395
395
  getStore(): T | undefined;
396
396
  /**
397
397
  * Runs a function synchronously within a context and returns its
398
- * return value. The store is not accessible outside of the callback function or
399
- * the asynchronous operations created within the callback.
398
+ * return value. The store is not accessible outside of the callback function.
399
+ * The store is accessible to any asynchronous operations created within the
400
+ * callback.
400
401
  *
401
402
  * The optional `args` are passed to the callback function.
402
403
  *
@@ -410,6 +411,9 @@ declare module 'async_hooks' {
410
411
  * try {
411
412
  * asyncLocalStorage.run(store, () => {
412
413
  * asyncLocalStorage.getStore(); // Returns the store object
414
+ * setTimeout(() => {
415
+ * asyncLocalStorage.getStore(); // Returns the store object
416
+ * }, 200);
413
417
  * throw new Error();
414
418
  * });
415
419
  * } catch (e) {
@@ -41,7 +41,7 @@
41
41
  * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
42
42
  * const buf7 = Buffer.from('tést', 'latin1');
43
43
  * ```
44
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
44
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/buffer.js)
45
45
  */
46
46
  declare module 'buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
@@ -113,18 +113,18 @@ declare module 'buffer' {
113
113
  /**
114
114
  * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across
115
115
  * multiple worker threads.
116
- * @since v15.7.0
116
+ * @since v15.7.0, v14.18.0
117
117
  * @experimental
118
118
  */
119
119
  export class Blob {
120
120
  /**
121
121
  * The total size of the `Blob` in bytes.
122
- * @since v15.7.0
122
+ * @since v15.7.0, v14.18.0
123
123
  */
124
124
  readonly size: number;
125
125
  /**
126
126
  * The content-type of the `Blob`.
127
- * @since v15.7.0
127
+ * @since v15.7.0, v14.18.0
128
128
  */
129
129
  readonly type: string;
130
130
  /**
@@ -139,13 +139,13 @@ declare module 'buffer' {
139
139
  /**
140
140
  * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
141
141
  * the `Blob` data.
142
- * @since v15.7.0
142
+ * @since v15.7.0, v14.18.0
143
143
  */
144
144
  arrayBuffer(): Promise<ArrayBuffer>;
145
145
  /**
146
146
  * Creates and returns a new `Blob` containing a subset of this `Blob` objects
147
147
  * data. The original `Blob` is not altered.
148
- * @since v15.7.0
148
+ * @since v15.7.0, v14.18.0
149
149
  * @param start The starting index.
150
150
  * @param end The ending index.
151
151
  * @param type The content-type for the new `Blob`
@@ -154,7 +154,7 @@ declare module 'buffer' {
154
154
  /**
155
155
  * Returns a promise that fulfills with the contents of the `Blob` decoded as a
156
156
  * UTF-8 string.
157
- * @since v15.7.0
157
+ * @since v15.7.0, v14.18.0
158
158
  */
159
159
  text(): Promise<string>;
160
160
  /**
@@ -2114,7 +2114,7 @@ declare module 'buffer' {
2114
2114
  * **binary data and predate the introduction of typed arrays in JavaScript.**
2115
2115
  * **For code running using Node.js APIs, converting between base64-encoded strings**
2116
2116
  * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2117
- * @since v15.13.0
2117
+ * @since v15.13.0, v14.17.0
2118
2118
  * @deprecated Use `Buffer.from(data, 'base64')` instead.
2119
2119
  * @param data The Base64-encoded input string.
2120
2120
  */
@@ -2130,7 +2130,7 @@ declare module 'buffer' {
2130
2130
  * **binary data and predate the introduction of typed arrays in JavaScript.**
2131
2131
  * **For code running using Node.js APIs, converting between base64-encoded strings**
2132
2132
  * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
2133
- * @since v15.13.0
2133
+ * @since v15.13.0, v14.17.0
2134
2134
  * @deprecated Use `buf.toString('base64')` instead.
2135
2135
  * @param data An ASCII (Latin1) string.
2136
2136
  */
@@ -60,7 +60,7 @@
60
60
  * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
61
61
  * the synchronous methods can have significant impact on performance due to
62
62
  * stalling the event loop while spawned processes complete.
63
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/child_process.js)
63
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/child_process.js)
64
64
  */
65
65
  declare module 'child_process' {
66
66
  import { ObjectEncodingOptions } from 'node:fs';
@@ -49,7 +49,7 @@
49
49
  * ```
50
50
  *
51
51
  * On Windows, it is not yet possible to set up a named pipe server in a worker.
52
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/cluster.js)
52
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/cluster.js)
53
53
  */
54
54
  declare module 'cluster' {
55
55
  import * as child from 'node:child_process';
@@ -53,7 +53,7 @@
53
53
  * myConsole.warn(`Danger ${name}! Danger!`);
54
54
  * // Prints: Danger Will Robinson! Danger!, to err
55
55
  * ```
56
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/console.js)
56
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/console.js)
57
57
  */
58
58
  declare module 'console' {
59
59
  import console = require('node:console');
@@ -13,7 +13,7 @@
13
13
  * // Prints:
14
14
  * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
15
15
  * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/crypto.js)
16
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/crypto.js)
17
17
  */
18
18
  declare module 'crypto' {
19
19
  import * as stream from 'node:stream';
@@ -3030,7 +3030,7 @@ declare module 'crypto' {
3030
3030
  /**
3031
3031
  * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3032
3032
  * cryptographic pseudorandom number generator.
3033
- * @since v15.6.0
3033
+ * @since v15.6.0, v14.17.0
3034
3034
  */
3035
3035
  function randomUUID(options?: RandomUUIDOptions): string;
3036
3036
  interface X509CheckOptions {
@@ -23,7 +23,7 @@
23
23
  * server.bind(41234);
24
24
  * // Prints: server listening 0.0.0.0:41234
25
25
  * ```
26
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dgram.js)
26
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dgram.js)
27
27
  */
28
28
  declare module 'dgram' {
29
29
  import { AddressInfo } from 'node:net';
@@ -260,7 +260,7 @@ declare module 'dgram' {
260
260
  *
261
261
  * The `address` argument is a string. If the value of `address` is a host name,
262
262
  * DNS will be used to resolve the address of the host. If `address` is not
263
- * provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
263
+ * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
264
264
  *
265
265
  * If the socket has not been previously bound with a call to `bind`, the socket
266
266
  * is assigned a random port number and is bound to the "all interfaces" address
@@ -20,7 +20,7 @@
20
20
  * should generally include the module name to avoid collisions with data from
21
21
  * other modules.
22
22
  * @experimental
23
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/diagnostics_channel.js)
23
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/diagnostics_channel.js)
24
24
  */
25
25
  declare module 'diagnostics_channel' {
26
26
  /**
@@ -119,7 +119,7 @@ declare module 'dns/promises' {
119
119
  *
120
120
  * <omitted>
121
121
  *
122
- * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
122
+ * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
123
123
  * @since v10.6.0
124
124
  * @param hostname Host name to resolve.
125
125
  * @param [rrtype='A'] Resource record type.
@@ -189,7 +189,7 @@ declare module 'dns/promises' {
189
189
  * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
190
190
  * the `Promise` is resolved with an array of objects containing available
191
191
  * certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
192
- * @since v15.0.0
192
+ * @since v15.0.0, v14.17.0
193
193
  */
194
194
  function resolveCaa(hostname: string): Promise<CaaRecord[]>;
195
195
  /**
@@ -300,7 +300,7 @@ declare module 'dns/promises' {
300
300
  * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
301
301
  * array of host names.
302
302
  *
303
- * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
303
+ * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes.
304
304
  * @since v10.6.0
305
305
  */
306
306
  function reverse(ip: string): Promise<string[]>;
@@ -332,14 +332,16 @@ declare module 'dns/promises' {
332
332
  */
333
333
  function setServers(servers: ReadonlyArray<string>): void;
334
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`.
335
+ * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
338
336
  *
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'.
337
+ * * `ipv4first`: sets default `verbatim` `false`.
338
+ * * `verbatim`: sets default `verbatim` `true`.
339
+ *
340
+ * The default is `ipv4first` and `dnsPromises.setDefaultResultOrder()` have
341
+ * higher priority than `--dns-result-order`. When using `worker threads`,`dnsPromises.setDefaultResultOrder()` from the main thread won't affect the
342
+ * default dns orders in workers.
343
+ * @since v16.4.0, v14.18.0
344
+ * @param order must be `'ipv4first'` or `'verbatim'`.
343
345
  */
344
346
  function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
345
347
  class Resolver {
@@ -42,7 +42,7 @@
42
42
  * ```
43
43
  *
44
44
  * See the `Implementation considerations section` for more information.
45
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dns.js)
45
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dns.js)
46
46
  */
47
47
  declare module 'dns' {
48
48
  import * as dnsPromises from 'node:dns/promises';
@@ -58,6 +58,9 @@ declare module 'dns' {
58
58
  family?: number | undefined;
59
59
  hints?: number | undefined;
60
60
  all?: boolean | undefined;
61
+ /**
62
+ * @default true
63
+ */
61
64
  verbatim?: boolean | undefined;
62
65
  }
63
66
  export interface LookupOneOptions extends LookupOptions {
@@ -241,7 +244,7 @@ declare module 'dns' {
241
244
  *
242
245
  * <omitted>
243
246
  *
244
- * On error, `err` is an `Error` object, where `err.code` is one of the `DNS error codes`.
247
+ * On error, `err` is an `Error` object, where `err.code` is one of theDNS error codes.
245
248
  * @since v0.1.27
246
249
  * @param hostname Host name to resolve.
247
250
  * @param [rrtype='A'] Resource record type.
@@ -314,7 +317,7 @@ declare module 'dns' {
314
317
  * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The`addresses` argument passed to the `callback` function
315
318
  * will contain an array of certification authority authorization records
316
319
  * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
317
- * @since v15.0.0
320
+ * @since v15.0.0, v14.17.0
318
321
  */
319
322
  export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void;
320
323
  export namespace resolveCaa {
@@ -527,14 +530,16 @@ declare module 'dns' {
527
530
  */
528
531
  export function getServers(): string[];
529
532
  /**
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'.
533
+ * Set the default value of `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
534
+ *
535
+ * * `ipv4first`: sets default `verbatim` `false`.
536
+ * * `verbatim`: sets default `verbatim` `true`.
537
+ *
538
+ * The default is `ipv4first` and {@link setDefaultResultOrder} have higher
539
+ * priority than `--dns-result-order`. When using `worker threads`,{@link setDefaultResultOrder} from the main thread won't affect the default
540
+ * dns orders in workers.
541
+ * @since v16.4.0, v14.18.0
542
+ * @param order must be `'ipv4first'` or `'verbatim'`.
538
543
  */
539
544
  export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
540
545
  // Error codes
@@ -640,7 +645,7 @@ declare module 'dns' {
640
645
  * The resolver will use the v4 local address when making requests to IPv4 DNS
641
646
  * servers, and the v6 local address when making requests to IPv6 DNS servers.
642
647
  * The `rrtype` of resolution requests has no impact on the local address used.
643
- * @since v15.1.0
648
+ * @since v15.1.0, v14.17.0
644
649
  * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
645
650
  * @param [ipv6='::0'] A string representation of an IPv6 address.
646
651
  */
@@ -11,7 +11,7 @@
11
11
  * will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
12
12
  * exit immediately with an error code.
13
13
  * @deprecated Since v1.4.2 - Deprecated
14
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/domain.js)
14
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/domain.js)
15
15
  */
16
16
  declare module 'domain' {
17
17
  import EventEmitter = require('node:events');
@@ -32,7 +32,7 @@
32
32
  * });
33
33
  * myEmitter.emit('event');
34
34
  * ```
35
- * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/events.js)
35
+ * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/events.js)
36
36
  */
37
37
  declare module 'events' {
38
38
  interface EventEmitterOptions {
@@ -257,7 +257,7 @@ declare module 'events' {
257
257
  * getEventListeners(et, 'foo'); // [listener]
258
258
  * }
259
259
  * ```
260
- * @since v15.2.0
260
+ * @since v15.2.0, v14.17.0
261
261
  */
262
262
  static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
263
263
  /**