cdk-ecr-deployment 3.0.111 → 3.0.113

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 (162) hide show
  1. package/.jsii +2 -2
  2. package/lib/index.js +5 -5
  3. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -3
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -15
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -7
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +5 -1
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +3 -3
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -15
  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 +9 -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 +19 -19
  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/promises.d.ts +1 -1
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +9 -9
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +17 -17
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +34 -15
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +86 -3
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -7
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +44 -44
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +13 -13
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +22 -22
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  56. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  57. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  58. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  59. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  60. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
  61. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  62. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  63. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  64. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -3
  65. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  66. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  67. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  68. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  69. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  70. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
  71. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -15
  72. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  73. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -7
  74. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  75. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  76. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +5 -1
  77. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  78. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +3 -3
  79. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -15
  80. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/package.json +9 -2
  82. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -19
  84. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  85. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  86. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
  87. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +9 -9
  88. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  89. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +17 -17
  91. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +34 -15
  92. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  93. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +86 -3
  94. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  95. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  96. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  97. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  98. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  102. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -7
  103. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +44 -44
  104. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  105. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +13 -13
  106. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  107. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +22 -22
  108. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  109. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  110. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  111. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  112. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  113. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
  114. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  115. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  116. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  117. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -3
  118. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  119. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  120. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  121. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  122. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  123. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
  124. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -15
  125. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  126. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -7
  127. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  128. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  129. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +5 -1
  130. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  131. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +3 -3
  132. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -15
  133. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  134. package/node_modules/@types/responselike/node_modules/@types/node/package.json +9 -2
  135. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  136. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -19
  137. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  138. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  139. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  140. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +9 -9
  141. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  142. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  143. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +17 -17
  144. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +34 -15
  145. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  146. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +86 -3
  147. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  148. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  149. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  150. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  151. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  155. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -7
  156. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +44 -44
  157. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  158. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +13 -13
  159. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  160. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +22 -22
  161. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  162. package/package.json +1 -1
@@ -17,7 +17,7 @@
17
17
  * code are reflected in the context object.
18
18
  *
19
19
  * ```js
20
- * const vm = require('node:vm');
20
+ * import vm from 'node:vm';
21
21
  *
22
22
  * const x = 1;
23
23
  *
@@ -203,7 +203,7 @@ declare module "vm" {
203
203
  * The globals are contained in the `context` object.
204
204
  *
205
205
  * ```js
206
- * const vm = require('node:vm');
206
+ * import vm from 'node:vm';
207
207
  *
208
208
  * const context = {
209
209
  * animal: 'cat',
@@ -239,7 +239,7 @@ declare module "vm" {
239
239
  * contained within each individual `context`.
240
240
  *
241
241
  * ```js
242
- * const vm = require('node:vm');
242
+ * import vm from 'node:vm';
243
243
  *
244
244
  * const script = new vm.Script('globalVar = "set"');
245
245
  *
@@ -264,7 +264,7 @@ declare module "vm" {
264
264
  * executes that code multiple times:
265
265
  *
266
266
  * ```js
267
- * const vm = require('node:vm');
267
+ * import vm from 'node:vm';
268
268
  *
269
269
  * global.globalVar = 0;
270
270
  *
@@ -357,7 +357,7 @@ declare module "vm" {
357
357
  * variables will remain unchanged.
358
358
  *
359
359
  * ```js
360
- * const vm = require('node:vm');
360
+ * import vm from 'node:vm';
361
361
  *
362
362
  * global.globalVar = 3;
363
363
  *
@@ -404,7 +404,7 @@ declare module "vm" {
404
404
  * The following example compiles and executes different scripts using a single `contextified` object:
405
405
  *
406
406
  * ```js
407
- * const vm = require('node:vm');
407
+ * import vm from 'node:vm';
408
408
  *
409
409
  * const contextObject = { globalVar: 1 };
410
410
  * vm.createContext(contextObject);
@@ -433,7 +433,7 @@ declare module "vm" {
433
433
  * variable and sets a new one. These globals are contained in the `contextObject`.
434
434
  *
435
435
  * ```js
436
- * const vm = require('node:vm');
436
+ * import vm from 'node:vm';
437
437
  *
438
438
  * const contextObject = {
439
439
  * animal: 'cat',
@@ -465,7 +465,7 @@ declare module "vm" {
465
465
  * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
466
466
  *
467
467
  * ```js
468
- * const vm = require('node:vm');
468
+ * import vm from 'node:vm';
469
469
  * let localVar = 'initial value';
470
470
  *
471
471
  * const vmResult = vm.runInThisContext('localVar = "vm";');
@@ -487,16 +487,16 @@ declare module "vm" {
487
487
  * context. The code passed to this VM context will have its own isolated scope.
488
488
  *
489
489
  * In order to run a simple web server using the `node:http` module the code passed
490
- * to the context must either call `require('node:http')` on its own, or have a
490
+ * to the context must either import `node:http` on its own, or have a
491
491
  * reference to the `node:http` module passed to it. For instance:
492
492
  *
493
493
  * ```js
494
494
  * 'use strict';
495
- * const vm = require('node:vm');
495
+ * import vm from 'node:vm';
496
496
  *
497
497
  * const code = `
498
498
  * ((require) => {
499
- * const http = require('node:http');
499
+ * const http = require('node:http');
500
500
  *
501
501
  * http.createServer((request, response) => {
502
502
  * response.writeHead(200, { 'Content-Type': 'text/plain' });
@@ -547,7 +547,7 @@ declare module "vm" {
547
547
  * the memory occupied by each heap space in the current V8 instance.
548
548
  *
549
549
  * ```js
550
- * const vm = require('node:vm');
550
+ * import vm from 'node:vm';
551
551
  * // Measure the memory used by the main context.
552
552
  * vm.measureMemory({ mode: 'summary' })
553
553
  * // This is the same as vm.measureMemory()
@@ -853,7 +853,7 @@ declare module "vm" {
853
853
  * module graphs.
854
854
  *
855
855
  * ```js
856
- * const vm = require('node:vm');
856
+ * import vm from 'node:vm';
857
857
  *
858
858
  * const source = '{ "a": 1 }';
859
859
  * const module = new vm.SyntheticModule(['default'], function() {
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * ```js
11
11
  * import { readFile } from 'node:fs/promises';
12
- * import { WASI } from 'wasi';
12
+ * import { WASI } from 'node:wasi';
13
13
  * import { argv, env } from 'node:process';
14
14
  *
15
15
  * const wasi = new WASI({
@@ -3,7 +3,7 @@
3
3
  * JavaScript in parallel. To access it:
4
4
  *
5
5
  * ```js
6
- * const worker = require('node:worker_threads');
6
+ * import worker from 'node:worker_threads';
7
7
  * ```
8
8
  *
9
9
  * Workers (threads) are useful for performing CPU-intensive JavaScript operations.
@@ -14,9 +14,10 @@
14
14
  * so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
15
15
  *
16
16
  * ```js
17
- * const {
17
+ * import {
18
18
  * Worker, isMainThread, parentPort, workerData,
19
- * } = require('node:worker_threads');
19
+ * } from 'node:worker_threads';
20
+ * import { parse } from 'some-js-parsing-library';
20
21
  *
21
22
  * if (isMainThread) {
22
23
  * module.exports = function parseJSAsync(script) {
@@ -33,7 +34,6 @@
33
34
  * });
34
35
  * };
35
36
  * } else {
36
- * const { parse } = require('some-js-parsing-library');
37
37
  * const script = workerData;
38
38
  * parentPort.postMessage(parse(script));
39
39
  * }
@@ -72,7 +72,7 @@ declare module "worker_threads" {
72
72
  * The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
73
73
  *
74
74
  * ```js
75
- * const { MessageChannel } = require('node:worker_threads');
75
+ * import { MessageChannel } from 'node:worker_threads';
76
76
  *
77
77
  * const { port1, port2 } = new MessageChannel();
78
78
  * port1.on('message', (message) => console.log('received', message));
@@ -121,7 +121,7 @@ declare module "worker_threads" {
121
121
  * * `value` may not contain native (C++-backed) objects other than:
122
122
  *
123
123
  * ```js
124
- * const { MessageChannel } = require('node:worker_threads');
124
+ * import { MessageChannel } from 'node:worker_threads';
125
125
  * const { port1, port2 } = new MessageChannel();
126
126
  *
127
127
  * port1.on('message', (message) => console.log(message));
@@ -143,7 +143,7 @@ declare module "worker_threads" {
143
143
  * `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
144
144
  *
145
145
  * ```js
146
- * const { MessageChannel } = require('node:worker_threads');
146
+ * import { MessageChannel } from 'node:worker_threads';
147
147
  * const { port1, port2 } = new MessageChannel();
148
148
  *
149
149
  * port1.on('message', (message) => console.log(message));
@@ -298,8 +298,8 @@ declare module "worker_threads" {
298
298
  * Notable differences inside a Worker environment are:
299
299
  *
300
300
  * * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
301
- * * The `require('node:worker_threads').isMainThread` property is set to `false`.
302
- * * The `require('node:worker_threads').parentPort` message port is available.
301
+ * * The `import { isMainThread } from 'node:worker_threads'` variable is set to `false`.
302
+ * * The `import { parentPort } from 'node:worker_threads'` message port is available.
303
303
  * * `process.exit()` does not stop the whole program, just the single thread,
304
304
  * and `process.abort()` is not available.
305
305
  * * `process.chdir()` and `process` methods that set group or user ids
@@ -334,10 +334,10 @@ declare module "worker_threads" {
334
334
  * the thread barrier.
335
335
  *
336
336
  * ```js
337
- * const assert = require('node:assert');
338
- * const {
337
+ * import assert from 'node:assert';
338
+ * import {
339
339
  * Worker, MessageChannel, MessagePort, isMainThread, parentPort,
340
- * } = require('node:worker_threads');
340
+ * } from 'node:worker_threads';
341
341
  * if (isMainThread) {
342
342
  * const worker = new Worker(__filename);
343
343
  * const subChannel = new MessageChannel();
@@ -377,7 +377,7 @@ declare module "worker_threads" {
377
377
  readonly stderr: Readable;
378
378
  /**
379
379
  * An integer identifier for the referenced thread. Inside the worker thread,
380
- * it is available as `require('node:worker_threads').threadId`.
380
+ * it is available as `import { threadId } from 'node:worker_threads'`.
381
381
  * This value is unique for each `Worker` instance inside a single process.
382
382
  * @since v10.5.0
383
383
  */
@@ -513,11 +513,11 @@ declare module "worker_threads" {
513
513
  * ```js
514
514
  * 'use strict';
515
515
  *
516
- * const {
516
+ * import {
517
517
  * isMainThread,
518
518
  * BroadcastChannel,
519
519
  * Worker,
520
- * } = require('node:worker_threads');
520
+ * } from 'node:worker_threads';
521
521
  *
522
522
  * const bc = new BroadcastChannel('hello');
523
523
  *
@@ -571,7 +571,7 @@ declare module "worker_threads" {
571
571
  * This operation cannot be undone.
572
572
  *
573
573
  * ```js
574
- * const { MessageChannel, markAsUntransferable } = require('node:worker_threads');
574
+ * import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
575
575
  *
576
576
  * const pooledBuffer = new ArrayBuffer(8);
577
577
  * const typedArray1 = new Uint8Array(pooledBuffer);
@@ -616,7 +616,7 @@ declare module "worker_threads" {
616
616
  * that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
617
617
  *
618
618
  * ```js
619
- * const { MessageChannel, receiveMessageOnPort } = require('node:worker_threads');
619
+ * import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
620
620
  * const { port1, port2 } = new MessageChannel();
621
621
  * port1.postMessage({ hello: 'world' });
622
622
  *
@@ -642,12 +642,12 @@ declare module "worker_threads" {
642
642
  * automatically.
643
643
  *
644
644
  * ```js
645
- * const {
645
+ * import {
646
646
  * Worker,
647
647
  * isMainThread,
648
648
  * setEnvironmentData,
649
649
  * getEnvironmentData,
650
- * } = require('node:worker_threads');
650
+ * } from 'node:worker_threads';
651
651
  *
652
652
  * if (isMainThread) {
653
653
  * setEnvironmentData('Hello', 'World!');
@@ -676,7 +676,7 @@ declare module "worker_threads" {
676
676
  } from "worker_threads";
677
677
  global {
678
678
  /**
679
- * `BroadcastChannel` class is a global reference for `require('worker_threads').BroadcastChannel`
679
+ * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
680
680
  * https://nodejs.org/api/globals.html#broadcastchannel
681
681
  * @since v18.0.0
682
682
  */
@@ -686,7 +686,7 @@ declare module "worker_threads" {
686
686
  } ? T
687
687
  : typeof _BroadcastChannel;
688
688
  /**
689
- * `MessageChannel` class is a global reference for `require('worker_threads').MessageChannel`
689
+ * `MessageChannel` class is a global reference for `import { MessageChannel } from 'worker_threads'`
690
690
  * https://nodejs.org/api/globals.html#messagechannel
691
691
  * @since v15.0.0
692
692
  */
@@ -696,7 +696,7 @@ declare module "worker_threads" {
696
696
  } ? T
697
697
  : typeof _MessageChannel;
698
698
  /**
699
- * `MessagePort` class is a global reference for `require('worker_threads').MessagePort`
699
+ * `MessagePort` class is a global reference for `import { MessagePort } from 'worker_threads'`
700
700
  * https://nodejs.org/api/globals.html#messageport
701
701
  * @since v15.0.0
702
702
  */
@@ -5,7 +5,7 @@
5
5
  * To access it:
6
6
  *
7
7
  * ```js
8
- * const zlib = require('node:zlib');
8
+ * import zlib from 'node:zlib';
9
9
  * ```
10
10
  *
11
11
  * Compression and decompression are built around the Node.js
@@ -16,12 +16,12 @@
16
16
  * stream:
17
17
  *
18
18
  * ```js
19
- * const { createGzip } = require('node:zlib');
20
- * const { pipeline } = require('node:stream');
21
- * const {
19
+ * import { createGzip } from 'node:zlib';
20
+ * import { pipeline } from 'node:stream';
21
+ * import {
22
22
  * createReadStream,
23
23
  * createWriteStream,
24
- * } = require('node:fs');
24
+ * } from 'node:fs';
25
25
  *
26
26
  * const gzip = createGzip();
27
27
  * const source = createReadStream('input.txt');
@@ -36,7 +36,7 @@
36
36
  *
37
37
  * // Or, Promisified
38
38
  *
39
- * const { promisify } = require('node:util');
39
+ * import { promisify } from 'node:util';
40
40
  * const pipe = promisify(pipeline);
41
41
  *
42
42
  * async function do_gzip(input, output) {
@@ -56,7 +56,7 @@
56
56
  * It is also possible to compress or decompress data in a single step:
57
57
  *
58
58
  * ```js
59
- * const { deflate, unzip } = require('node:zlib');
59
+ * import { deflate, unzip } from 'node:zlib';
60
60
  *
61
61
  * const input = '.................................';
62
62
  * deflate(input, (err, buffer) => {
@@ -78,7 +78,7 @@
78
78
  *
79
79
  * // Or, Promisified
80
80
  *
81
- * const { promisify } = require('node:util');
81
+ * import { promisify } from 'node:util';
82
82
  * const do_unzip = promisify(unzip);
83
83
  *
84
84
  * do_unzip(buffer)
package/package.json CHANGED
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "3.0.111",
96
+ "version": "3.0.113",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [