cdk-ecr-deployment 3.0.33 → 3.0.35

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 (175) hide show
  1. package/.jsii +2 -2
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +3 -3
  4. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +1 -1
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -10
  7. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  8. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +1 -1
  9. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -10
  10. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  11. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +1 -1
  12. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -10
  13. package/package.json +3 -3
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +0 -896
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +0 -1889
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +0 -954
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +0 -944
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  68. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  69. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  70. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  71. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
  72. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  73. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  74. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  75. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  76. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  77. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  78. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  79. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  80. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  81. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  82. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  83. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +0 -896
  84. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  85. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  86. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  87. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  88. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +0 -1889
  89. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  90. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  91. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  92. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  93. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  94. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +0 -954
  95. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  96. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  97. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  98. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  99. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  100. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  101. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  102. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  103. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  104. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  105. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  106. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  107. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  108. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  109. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  110. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  111. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  112. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  113. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  114. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  115. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +0 -944
  116. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  117. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  118. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  119. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  120. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  121. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  122. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  123. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  124. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  125. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
  126. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  127. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  128. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  129. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  130. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  131. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  132. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  133. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  134. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  135. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  136. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  137. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +0 -896
  138. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  139. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  140. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  141. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  142. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +0 -1889
  143. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  144. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  145. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  146. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  147. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  148. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +0 -954
  149. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  150. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  151. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  152. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  153. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  154. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  155. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  156. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  157. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  158. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  159. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  160. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  161. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  162. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  163. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  164. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  165. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  166. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  167. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  168. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  169. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +0 -944
  170. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  171. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  172. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  173. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  174. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  175. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
@@ -1,315 +0,0 @@
1
- /**
2
- * @since v0.3.7
3
- * @experimental
4
- */
5
- declare module "module" {
6
- import { URL } from "node:url";
7
- import { MessagePort } from "node:worker_threads";
8
- namespace Module {
9
- /**
10
- * The `module.syncBuiltinESMExports()` method updates all the live bindings for
11
- * builtin `ES Modules` to match the properties of the `CommonJS` exports. It
12
- * does not add or remove exported names from the `ES Modules`.
13
- *
14
- * ```js
15
- * const fs = require('node:fs');
16
- * const assert = require('node:assert');
17
- * const { syncBuiltinESMExports } = require('node:module');
18
- *
19
- * fs.readFile = newAPI;
20
- *
21
- * delete fs.readFileSync;
22
- *
23
- * function newAPI() {
24
- * // ...
25
- * }
26
- *
27
- * fs.newAPI = newAPI;
28
- *
29
- * syncBuiltinESMExports();
30
- *
31
- * import('node:fs').then((esmFS) => {
32
- * // It syncs the existing readFile property with the new value
33
- * assert.strictEqual(esmFS.readFile, newAPI);
34
- * // readFileSync has been deleted from the required fs
35
- * assert.strictEqual('readFileSync' in fs, false);
36
- * // syncBuiltinESMExports() does not remove readFileSync from esmFS
37
- * assert.strictEqual('readFileSync' in esmFS, true);
38
- * // syncBuiltinESMExports() does not add names
39
- * assert.strictEqual(esmFS.newAPI, undefined);
40
- * });
41
- * ```
42
- * @since v12.12.0
43
- */
44
- function syncBuiltinESMExports(): void;
45
- /**
46
- * `path` is the resolved path for the file for which a corresponding source map
47
- * should be fetched.
48
- * @since v13.7.0, v12.17.0
49
- * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
50
- */
51
- function findSourceMap(path: string, error?: Error): SourceMap;
52
- interface SourceMapPayload {
53
- file: string;
54
- version: number;
55
- sources: string[];
56
- sourcesContent: string[];
57
- names: string[];
58
- mappings: string;
59
- sourceRoot: string;
60
- }
61
- interface SourceMapping {
62
- generatedLine: number;
63
- generatedColumn: number;
64
- originalSource: string;
65
- originalLine: number;
66
- originalColumn: number;
67
- }
68
- interface SourceOrigin {
69
- /**
70
- * The name of the range in the source map, if one was provided
71
- */
72
- name?: string;
73
- /**
74
- * The file name of the original source, as reported in the SourceMap
75
- */
76
- fileName: string;
77
- /**
78
- * The 1-indexed lineNumber of the corresponding call site in the original source
79
- */
80
- lineNumber: number;
81
- /**
82
- * The 1-indexed columnNumber of the corresponding call site in the original source
83
- */
84
- columnNumber: number;
85
- }
86
- /**
87
- * @since v13.7.0, v12.17.0
88
- */
89
- class SourceMap {
90
- /**
91
- * Getter for the payload used to construct the `SourceMap` instance.
92
- */
93
- readonly payload: SourceMapPayload;
94
- constructor(payload: SourceMapPayload);
95
- /**
96
- * Given a line offset and column offset in the generated source
97
- * file, returns an object representing the SourceMap range in the
98
- * original file if found, or an empty object if not.
99
- *
100
- * The object returned contains the following keys:
101
- *
102
- * The returned value represents the raw range as it appears in the
103
- * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
104
- * column numbers as they appear in Error messages and CallSite
105
- * objects.
106
- *
107
- * To get the corresponding 1-indexed line and column numbers from a
108
- * lineNumber and columnNumber as they are reported by Error stacks
109
- * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
110
- * @param lineOffset The zero-indexed line number offset in the generated source
111
- * @param columnOffset The zero-indexed column number offset in the generated source
112
- */
113
- findEntry(lineOffset: number, columnOffset: number): SourceMapping;
114
- /**
115
- * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
116
- * find the corresponding call site location in the original source.
117
- *
118
- * If the `lineNumber` and `columnNumber` provided are not found in any source map,
119
- * then an empty object is returned.
120
- * @param lineNumber The 1-indexed line number of the call site in the generated source
121
- * @param columnNumber The 1-indexed column number of the call site in the generated source
122
- */
123
- findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
124
- }
125
- /** @deprecated Use `ImportAttributes` instead */
126
- interface ImportAssertions extends ImportAttributes {}
127
- interface ImportAttributes extends NodeJS.Dict<string> {
128
- type?: string | undefined;
129
- }
130
- type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm";
131
- type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
132
- interface GlobalPreloadContext {
133
- port: MessagePort;
134
- }
135
- /**
136
- * @deprecated This hook will be removed in a future version.
137
- * Use `initialize` instead. When a loader has an `initialize` export, `globalPreload` will be ignored.
138
- *
139
- * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in.
140
- * This hook allows the return of a string that is run as a sloppy-mode script on startup.
141
- *
142
- * @param context Information to assist the preload code
143
- * @return Code to run before application startup
144
- */
145
- type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
146
- /**
147
- * The `initialize` hook provides a way to define a custom function that runs in the hooks thread
148
- * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`.
149
- *
150
- * This hook can receive data from a `register` invocation, including ports and other transferrable objects.
151
- * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes.
152
- */
153
- type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
154
- interface ResolveHookContext {
155
- /**
156
- * Export conditions of the relevant `package.json`
157
- */
158
- conditions: string[];
159
- /**
160
- * @deprecated Use `importAttributes` instead
161
- */
162
- importAssertions: ImportAttributes;
163
- /**
164
- * An object whose key-value pairs represent the assertions for the module to import
165
- */
166
- importAttributes: ImportAttributes;
167
- /**
168
- * The module importing this one, or undefined if this is the Node.js entry point
169
- */
170
- parentURL: string | undefined;
171
- }
172
- interface ResolveFnOutput {
173
- /**
174
- * A hint to the load hook (it might be ignored)
175
- */
176
- format?: ModuleFormat | null | undefined;
177
- /**
178
- * @deprecated Use `importAttributes` instead
179
- */
180
- importAssertions?: ImportAttributes | undefined;
181
- /**
182
- * The import attributes to use when caching the module (optional; if excluded the input will be used)
183
- */
184
- importAttributes?: ImportAttributes | undefined;
185
- /**
186
- * A signal that this hook intends to terminate the chain of `resolve` hooks.
187
- * @default false
188
- */
189
- shortCircuit?: boolean | undefined;
190
- /**
191
- * The absolute URL to which this input resolves
192
- */
193
- url: string;
194
- }
195
- /**
196
- * The `resolve` hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as `'module'`) as a hint to the `load` hook.
197
- * If a format is specified, the load hook is ultimately responsible for providing the final `format` value (and it is free to ignore the hint provided by `resolve`);
198
- * if `resolve` provides a format, a custom `load` hook is required even if only to pass the value to the Node.js default `load` hook.
199
- *
200
- * @param specifier The specified URL path of the module to be resolved
201
- * @param context
202
- * @param nextResolve The subsequent `resolve` hook in the chain, or the Node.js default `resolve` hook after the last user-supplied resolve hook
203
- */
204
- type ResolveHook = (
205
- specifier: string,
206
- context: ResolveHookContext,
207
- nextResolve: (
208
- specifier: string,
209
- context?: ResolveHookContext,
210
- ) => ResolveFnOutput | Promise<ResolveFnOutput>,
211
- ) => ResolveFnOutput | Promise<ResolveFnOutput>;
212
- interface LoadHookContext {
213
- /**
214
- * Export conditions of the relevant `package.json`
215
- */
216
- conditions: string[];
217
- /**
218
- * The format optionally supplied by the `resolve` hook chain
219
- */
220
- format: ModuleFormat;
221
- /**
222
- * @deprecated Use `importAttributes` instead
223
- */
224
- importAssertions: ImportAttributes;
225
- /**
226
- * An object whose key-value pairs represent the assertions for the module to import
227
- */
228
- importAttributes: ImportAttributes;
229
- }
230
- interface LoadFnOutput {
231
- format: ModuleFormat;
232
- /**
233
- * A signal that this hook intends to terminate the chain of `resolve` hooks.
234
- * @default false
235
- */
236
- shortCircuit?: boolean | undefined;
237
- /**
238
- * The source for Node.js to evaluate
239
- */
240
- source?: ModuleSource;
241
- }
242
- /**
243
- * The `load` hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed.
244
- * It is also in charge of validating the import assertion.
245
- *
246
- * @param url The URL/path of the module to be loaded
247
- * @param context Metadata about the module
248
- * @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
249
- */
250
- type LoadHook = (
251
- url: string,
252
- context: LoadHookContext,
253
- nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
254
- ) => LoadFnOutput | Promise<LoadFnOutput>;
255
- }
256
- interface RegisterOptions<Data> {
257
- parentURL: string | URL;
258
- data?: Data | undefined;
259
- transferList?: any[] | undefined;
260
- }
261
- interface Module extends NodeModule {}
262
- class Module {
263
- static runMain(): void;
264
- static wrap(code: string): string;
265
- static createRequire(path: string | URL): NodeRequire;
266
- static builtinModules: string[];
267
- static isBuiltin(moduleName: string): boolean;
268
- static Module: typeof Module;
269
- static register<Data = any>(
270
- specifier: string | URL,
271
- parentURL?: string | URL,
272
- options?: RegisterOptions<Data>,
273
- ): void;
274
- static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
275
- constructor(id: string, parent?: Module);
276
- }
277
- global {
278
- interface ImportMeta {
279
- /**
280
- * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
281
- * **Caveat:** only present on `file:` modules.
282
- */
283
- dirname: string;
284
- /**
285
- * The full absolute path and filename of the current module, with symlinks resolved.
286
- * This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
287
- * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
288
- */
289
- filename: string;
290
- /**
291
- * The absolute `file:` URL of the module.
292
- */
293
- url: string;
294
- /**
295
- * Provides a module-relative resolution function scoped to each module, returning
296
- * the URL string.
297
- *
298
- * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
299
- * command flag enabled.
300
- *
301
- * @since v20.6.0
302
- *
303
- * @param specifier The module specifier to resolve relative to `parent`.
304
- * @param parent The absolute parent module URL to resolve from.
305
- * @returns The absolute (`file:`) URL string for the resolved module.
306
- */
307
- resolve(specifier: string, parent?: string | URL | undefined): string;
308
- }
309
- }
310
- export = Module;
311
- }
312
- declare module "node:module" {
313
- import module = require("module");
314
- export = module;
315
- }