cdk-ecr-deployment 3.0.111 → 3.0.112

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 (144) 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.d.ts +16 -9
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -3
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -1
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -7
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +3 -3
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -15
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -19
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +9 -9
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +17 -17
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +34 -15
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +86 -3
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -7
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +44 -44
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +13 -13
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +22 -22
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  50. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  51. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  52. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  53. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +16 -9
  54. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  55. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  56. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  57. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -3
  58. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  59. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  60. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  61. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  62. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  63. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
  64. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -1
  65. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -7
  66. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  67. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  68. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  69. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +3 -3
  70. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -15
  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 +19 -19
  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/promises.d.ts +1 -1
  78. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +9 -9
  79. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  80. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +17 -17
  82. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +34 -15
  83. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  84. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +86 -3
  85. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  86. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  87. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  88. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  89. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -7
  91. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +44 -44
  92. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  93. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +13 -13
  94. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  95. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +22 -22
  96. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  97. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  98. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  99. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +16 -9
  101. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  102. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  103. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  104. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -3
  105. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  106. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  107. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  108. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  109. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  110. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
  111. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -1
  112. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -7
  113. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  114. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  115. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  116. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +3 -3
  117. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -15
  118. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  119. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  120. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  121. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -19
  122. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  123. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  124. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  125. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +9 -9
  126. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  127. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  128. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +17 -17
  129. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +34 -15
  130. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  131. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +86 -3
  132. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  133. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  134. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  135. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  136. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  137. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -7
  138. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +44 -44
  139. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  140. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +13 -13
  141. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  142. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +22 -22
  143. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  144. package/package.json +1 -1
@@ -10,7 +10,7 @@
10
10
  * work:
11
11
  *
12
12
  * ```js
13
- * import test from 'test';
13
+ * import test from 'node:test';
14
14
  * ```
15
15
  *
16
16
  * Tests created via the `test` module consist of a single function that is
@@ -331,6 +331,13 @@ declare module "node:test" {
331
331
  * @default false
332
332
  */
333
333
  forceExit?: boolean | undefined;
334
+ /**
335
+ * An array containing the list of glob patterns to match test files.
336
+ * This option cannot be used together with `files`. If omitted, files are run according to the
337
+ * [test runner execution model](https://nodejs.org/docs/latest-v22.x/api/test.html#test-runner-execution-model).
338
+ * @since v22.6.0
339
+ */
340
+ globPatterns?: readonly string[] | undefined;
334
341
  /**
335
342
  * Sets inspector port of test child process.
336
343
  * If a nullish value is provided, each process gets its own port,
@@ -479,7 +486,7 @@ declare module "node:test" {
479
486
  /**
480
487
  * An object containing assertion methods bound to the test context.
481
488
  * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
482
- * @since v22.2.0
489
+ * @since v22.2.0, v20.15.0
483
490
  */
484
491
  readonly assert: TestContextAssert;
485
492
  /**
@@ -528,6 +535,12 @@ declare module "node:test" {
528
535
  * @param message Message to be reported.
529
536
  */
530
537
  diagnostic(message: string): void;
538
+ /**
539
+ * The absolute path of the test file that created the current test. If a test file imports
540
+ * additional modules that generate tests, the imported tests will return the path of the root test file.
541
+ * @since v22.6.0
542
+ */
543
+ readonly filePath: string | undefined;
531
544
  /**
532
545
  * The name of the test and each of its ancestors, separated by `>`.
533
546
  * @since v22.3.0
@@ -657,6 +670,22 @@ declare module "node:test" {
657
670
  deepEqual: typeof import("node:assert").deepEqual;
658
671
  /**
659
672
  * Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
673
+ *
674
+ * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
675
+ * type annotation, otherwise an error will be raised by the TypeScript compiler:
676
+ * ```ts
677
+ * import { test, type TestContext } from 'node:test';
678
+ *
679
+ * // The test function's context parameter must have a type annotation.
680
+ * test('example', (t: TestContext) => {
681
+ * t.assert.deepStrictEqual(actual, expected);
682
+ * });
683
+ *
684
+ * // Omitting the type annotation will result in a compilation error.
685
+ * test('example', t => {
686
+ * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
687
+ * });
688
+ * ```
660
689
  */
661
690
  deepStrictEqual: typeof import("node:assert").deepStrictEqual;
662
691
  /**
@@ -681,6 +710,22 @@ declare module "node:test" {
681
710
  fail: typeof import("node:assert").fail;
682
711
  /**
683
712
  * Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
713
+ *
714
+ * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
715
+ * type annotation, otherwise an error will be raised by the TypeScript compiler:
716
+ * ```ts
717
+ * import { test, type TestContext } from 'node:test';
718
+ *
719
+ * // The test function's context parameter must have a type annotation.
720
+ * test('example', (t: TestContext) => {
721
+ * t.assert.ifError(err);
722
+ * });
723
+ *
724
+ * // Omitting the type annotation will result in a compilation error.
725
+ * test('example', t => {
726
+ * t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
727
+ * });
728
+ * ```
684
729
  */
685
730
  ifError: typeof import("node:assert").ifError;
686
731
  /**
@@ -705,6 +750,22 @@ declare module "node:test" {
705
750
  notStrictEqual: typeof import("node:assert").notStrictEqual;
706
751
  /**
707
752
  * Identical to the `ok` function from the `node:assert` module, but bound to the test context.
753
+ *
754
+ * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
755
+ * type annotation, otherwise an error will be raised by the TypeScript compiler:
756
+ * ```ts
757
+ * import { test, type TestContext } from 'node:test';
758
+ *
759
+ * // The test function's context parameter must have a type annotation.
760
+ * test('example', (t: TestContext) => {
761
+ * t.assert.ok(condition);
762
+ * });
763
+ *
764
+ * // Omitting the type annotation will result in a compilation error.
765
+ * test('example', t => {
766
+ * t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
767
+ * });
768
+ * ```
708
769
  */
709
770
  ok: typeof import("node:assert").ok;
710
771
  /**
@@ -713,6 +774,22 @@ declare module "node:test" {
713
774
  rejects: typeof import("node:assert").rejects;
714
775
  /**
715
776
  * Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
777
+ *
778
+ * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
779
+ * type annotation, otherwise an error will be raised by the TypeScript compiler:
780
+ * ```ts
781
+ * import { test, type TestContext } from 'node:test';
782
+ *
783
+ * // The test function's context parameter must have a type annotation.
784
+ * test('example', (t: TestContext) => {
785
+ * t.assert.strictEqual(actual, expected);
786
+ * });
787
+ *
788
+ * // Omitting the type annotation will result in a compilation error.
789
+ * test('example', t => {
790
+ * t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
791
+ * });
792
+ * ```
716
793
  */
717
794
  strictEqual: typeof import("node:assert").strictEqual;
718
795
  /**
@@ -758,6 +835,12 @@ declare module "node:test" {
758
835
  * @since v18.7.0, v16.17.0
759
836
  */
760
837
  class SuiteContext {
838
+ /**
839
+ * The absolute path of the test file that created the current suite. If a test file imports
840
+ * additional modules that generate suites, the imported suites will return the path of the root test file.
841
+ * @since v22.6.0
842
+ */
843
+ readonly filePath: string | undefined;
761
844
  /**
762
845
  * The name of the suite.
763
846
  * @since v18.8.0, v16.18.0
@@ -1946,7 +2029,7 @@ interface TestStdout {
1946
2029
  * work:
1947
2030
  *
1948
2031
  * ```js
1949
- * import test from 'test/reporters';
2032
+ * import test from 'node:test/reporters';
1950
2033
  * ```
1951
2034
  * @since v19.9.0
1952
2035
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test/reporters.js)
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * The `timers/promises` API provides an alternative set of timer functions
3
- * that return `Promise` objects. The API is accessible via `require('node:timers/promises')`.
3
+ * that return `Promise` objects. The API is accessible via `import timersPromises from 'node:timers/promises'`.
4
4
  *
5
5
  * ```js
6
6
  * import {
7
7
  * setTimeout,
8
8
  * setImmediate,
9
9
  * setInterval,
10
- * } from 'timers/promises';
10
+ * } from 'node:timers/promises';
11
11
  * ```
12
12
  * @since v15.0.0
13
13
  */
@@ -17,7 +17,7 @@ declare module "timers/promises" {
17
17
  * ```js
18
18
  * import {
19
19
  * setTimeout,
20
- * } from 'timers/promises';
20
+ * } from 'node:timers/promises';
21
21
  *
22
22
  * const res = await setTimeout(100, 'result');
23
23
  *
@@ -32,7 +32,7 @@ declare module "timers/promises" {
32
32
  * ```js
33
33
  * import {
34
34
  * setImmediate,
35
- * } from 'timers/promises';
35
+ * } from 'node:timers/promises';
36
36
  *
37
37
  * const res = await setImmediate('result');
38
38
  *
@@ -50,7 +50,7 @@ declare module "timers/promises" {
50
50
  * ```js
51
51
  * import {
52
52
  * setInterval,
53
- * } from 'timers/promises';
53
+ * } from 'node:timers/promises';
54
54
  *
55
55
  * const interval = 100;
56
56
  * for await (const startTime of setInterval(interval, Date.now())) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `timer` module exposes a global API for scheduling functions to
3
3
  * be called at some future period of time. Because the timer functions are
4
- * globals, there is no need to call `require('node:timers')` to use the API.
4
+ * globals, there is no need to import `node:timers` to use the API.
5
5
  *
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
@@ -4,7 +4,7 @@
4
4
  * The module can be accessed using:
5
5
  *
6
6
  * ```js
7
- * const tls = require('node:tls');
7
+ * import tls from 'node:tls';
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/tls.js)
10
10
  */
@@ -1003,8 +1003,8 @@ declare module "tls" {
1003
1003
  * The following illustrates a simple echo server:
1004
1004
  *
1005
1005
  * ```js
1006
- * const tls = require('node:tls');
1007
- * const fs = require('node:fs');
1006
+ * import tls from 'node:tls';
1007
+ * import fs from 'node:fs';
1008
1008
  *
1009
1009
  * const options = {
1010
1010
  * key: fs.readFileSync('server-key.pem'),
@@ -1049,8 +1049,8 @@ declare module "tls" {
1049
1049
  *
1050
1050
  * ```js
1051
1051
  * // Assumes an echo server that is listening on port 8000.
1052
- * const tls = require('node:tls');
1053
- * const fs = require('node:fs');
1052
+ * import tls from 'node:tls';
1053
+ * import fs from 'node:fs';
1054
1054
  *
1055
1055
  * const options = {
1056
1056
  * // Necessary only if the server requires client certificate authentication.
@@ -53,7 +53,7 @@
53
53
  * Alternatively, trace events may be enabled using the `node:trace_events` module:
54
54
  *
55
55
  * ```js
56
- * const trace_events = require('node:trace_events');
56
+ * import trace_events from 'node:trace_events';
57
57
  * const tracing = trace_events.createTracing({ categories: ['node.perf'] });
58
58
  * tracing.enable(); // Enable trace event capture for the 'node.perf' category
59
59
  *
@@ -118,7 +118,7 @@ declare module "trace_events" {
118
118
  * will be disabled.
119
119
  *
120
120
  * ```js
121
- * const trace_events = require('node:trace_events');
121
+ * import trace_events from 'node:trace_events';
122
122
  * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] });
123
123
  * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] });
124
124
  * t1.enable();
@@ -159,7 +159,7 @@ declare module "trace_events" {
159
159
  * Creates and returns a `Tracing` object for the given set of `categories`.
160
160
  *
161
161
  * ```js
162
- * const trace_events = require('node:trace_events');
162
+ * import trace_events from 'node:trace_events';
163
163
  * const categories = ['node.perf', 'node.async_hooks'];
164
164
  * const tracing = trace_events.createTracing({ categories });
165
165
  * tracing.enable();
@@ -178,7 +178,7 @@ declare module "trace_events" {
178
178
  * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console.
179
179
  *
180
180
  * ```js
181
- * const trace_events = require('node:trace_events');
181
+ * import trace_events from 'node:trace_events';
182
182
  * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] });
183
183
  * const t2 = trace_events.createTracing({ categories: ['node.perf'] });
184
184
  * const t3 = trace_events.createTracing({ categories: ['v8'] });
@@ -3,7 +3,7 @@
3
3
  * directly. However, it can be accessed using:
4
4
  *
5
5
  * ```js
6
- * const tty = require('node:tty');
6
+ * import tty from 'node:tty';
7
7
  * ```
8
8
  *
9
9
  * When Node.js detects that it is being run with a text terminal ("TTY")
@@ -93,7 +93,7 @@ declare module "url" {
93
93
  * The `url.format()` method returns a formatted URL string derived from `urlObject`.
94
94
  *
95
95
  * ```js
96
- * const url = require('node:url');
96
+ * import url from 'node:url';
97
97
  * url.format({
98
98
  * protocol: 'https',
99
99
  * hostname: 'example.com',
@@ -157,7 +157,7 @@ declare module "url" {
157
157
  * The `url.format()` method returns a formatted URL string derived from `urlObject`.
158
158
  *
159
159
  * ```js
160
- * const url = require('node:url');
160
+ * import url from 'node:url';
161
161
  * url.format({
162
162
  * protocol: 'https',
163
163
  * hostname: 'example.com',
@@ -222,7 +222,7 @@ declare module "url" {
222
222
  * manner similar to that of a web browser resolving an anchor tag.
223
223
  *
224
224
  * ```js
225
- * const url = require('node:url');
225
+ * import url from 'node:url';
226
226
  * url.resolve('/one/two/three', 'four'); // '/one/two/four'
227
227
  * url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
228
228
  * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
@@ -400,10 +400,10 @@ declare module "url" {
400
400
  * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later.
401
401
  *
402
402
  * ```js
403
- * const {
403
+ * import {
404
404
  * Blob,
405
405
  * resolveObjectURL,
406
- * } = require('node:buffer');
406
+ * } from 'node:buffer';
407
407
  *
408
408
  * const blob = new Blob(['hello']);
409
409
  * const id = URL.createObjectURL(blob);
@@ -943,7 +943,7 @@ declare module "url" {
943
943
  URLSearchParams: typeof _URLSearchParams;
944
944
  }
945
945
  /**
946
- * `URL` class is a global reference for `require('url').URL`
946
+ * `URL` class is a global reference for `import { URL } from 'url'`
947
947
  * https://nodejs.org/api/url.html#the-whatwg-url-api
948
948
  * @since v10.0.0
949
949
  */
@@ -953,7 +953,7 @@ declare module "url" {
953
953
  } ? T
954
954
  : typeof _URL;
955
955
  /**
956
- * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
956
+ * `URLSearchParams` class is a global reference for `import { URLSearchParams } from 'node:url'`
957
957
  * https://nodejs.org/api/url.html#class-urlsearchparams
958
958
  * @since v10.0.0
959
959
  */