@nocobase/plugin-multi-app-manager 1.2.12-alpha → 1.3.0-alpha.20240710084543

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/package.json +2 -2
  2. package/dist/client/AppManager.d.ts +0 -10
  3. package/dist/client/AppNameInput.d.ts +0 -10
  4. package/dist/client/MultiAppManagerProvider.d.ts +0 -10
  5. package/dist/client/MultiAppManagerProvider.style.d.ts +0 -13
  6. package/dist/client/Settings.d.ts +0 -10
  7. package/dist/client/index.d.ts +0 -14
  8. package/dist/client/index.js +0 -10
  9. package/dist/client/settings/schemas/applications.d.ts +0 -18
  10. package/dist/client/utils.d.ts +0 -12
  11. package/dist/externalVersion.js +0 -25
  12. package/dist/index.d.ts +0 -10
  13. package/dist/index.js +0 -48
  14. package/dist/locale/en-US.json +0 -11
  15. package/dist/locale/es-ES.json +0 -9
  16. package/dist/locale/index.d.ts +0 -9
  17. package/dist/locale/index.js +0 -36
  18. package/dist/locale/ko_KR.json +0 -11
  19. package/dist/locale/pt-BR.json +0 -9
  20. package/dist/locale/zh-CN.json +0 -14
  21. package/dist/node_modules/mariadb/LICENSE +0 -502
  22. package/dist/node_modules/mariadb/callback.js +0 -41
  23. package/dist/node_modules/mariadb/lib/cmd/batch-bulk.js +0 -278
  24. package/dist/node_modules/mariadb/lib/cmd/batch-rewrite.js +0 -372
  25. package/dist/node_modules/mariadb/lib/cmd/change-user.js +0 -149
  26. package/dist/node_modules/mariadb/lib/cmd/class/ok-packet.js +0 -17
  27. package/dist/node_modules/mariadb/lib/cmd/column-definition.js +0 -102
  28. package/dist/node_modules/mariadb/lib/cmd/command.js +0 -168
  29. package/dist/node_modules/mariadb/lib/cmd/common-binary-cmd.js +0 -327
  30. package/dist/node_modules/mariadb/lib/cmd/common-text-cmd.js +0 -427
  31. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/caching-sha2-password-auth.js +0 -168
  32. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/clear-password-auth.js +0 -23
  33. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/ed25519-password-auth.js +0 -761
  34. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/native-password-auth.js +0 -55
  35. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/pam-password-auth.js +0 -58
  36. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/plugin-auth.js +0 -19
  37. package/dist/node_modules/mariadb/lib/cmd/handshake/auth/sha256-password-auth.js +0 -142
  38. package/dist/node_modules/mariadb/lib/cmd/handshake/client-capabilities.js +0 -74
  39. package/dist/node_modules/mariadb/lib/cmd/handshake/client-handshake-response.js +0 -126
  40. package/dist/node_modules/mariadb/lib/cmd/handshake/handshake.js +0 -292
  41. package/dist/node_modules/mariadb/lib/cmd/handshake/initial-handshake.js +0 -74
  42. package/dist/node_modules/mariadb/lib/cmd/handshake/ssl-request.js +0 -29
  43. package/dist/node_modules/mariadb/lib/cmd/ping.js +0 -52
  44. package/dist/node_modules/mariadb/lib/cmd/query.js +0 -255
  45. package/dist/node_modules/mariadb/lib/cmd/quit.js +0 -28
  46. package/dist/node_modules/mariadb/lib/cmd/reset.js +0 -54
  47. package/dist/node_modules/mariadb/lib/cmd/resultset.js +0 -607
  48. package/dist/node_modules/mariadb/lib/cmd/stream.js +0 -45
  49. package/dist/node_modules/mariadb/lib/config/connection-options.js +0 -258
  50. package/dist/node_modules/mariadb/lib/config/pool-cluster-options.js +0 -19
  51. package/dist/node_modules/mariadb/lib/config/pool-options.js +0 -47
  52. package/dist/node_modules/mariadb/lib/connection-callback.js +0 -160
  53. package/dist/node_modules/mariadb/lib/connection.js +0 -1460
  54. package/dist/node_modules/mariadb/lib/const/capabilities.js +0 -64
  55. package/dist/node_modules/mariadb/lib/const/collations.js +0 -473
  56. package/dist/node_modules/mariadb/lib/const/connection_status.js +0 -13
  57. package/dist/node_modules/mariadb/lib/const/error-code.js +0 -1282
  58. package/dist/node_modules/mariadb/lib/const/field-detail.js +0 -35
  59. package/dist/node_modules/mariadb/lib/const/field-type.js +0 -71
  60. package/dist/node_modules/mariadb/lib/const/server-status.js +0 -30
  61. package/dist/node_modules/mariadb/lib/const/state-change.js +0 -12
  62. package/dist/node_modules/mariadb/lib/filtered-pool-cluster.js +0 -81
  63. package/dist/node_modules/mariadb/lib/io/bulk-packet.js +0 -590
  64. package/dist/node_modules/mariadb/lib/io/compression-input-stream.js +0 -141
  65. package/dist/node_modules/mariadb/lib/io/compression-output-stream.js +0 -171
  66. package/dist/node_modules/mariadb/lib/io/packet-input-stream.js +0 -193
  67. package/dist/node_modules/mariadb/lib/io/packet-node-encoded.js +0 -36
  68. package/dist/node_modules/mariadb/lib/io/packet-node-iconv.js +0 -37
  69. package/dist/node_modules/mariadb/lib/io/packet-output-stream.js +0 -502
  70. package/dist/node_modules/mariadb/lib/io/packet.js +0 -515
  71. package/dist/node_modules/mariadb/lib/io/rewrite-packet.js +0 -481
  72. package/dist/node_modules/mariadb/lib/misc/connection-information.js +0 -96
  73. package/dist/node_modules/mariadb/lib/misc/errors.js +0 -123
  74. package/dist/node_modules/mariadb/lib/misc/parse.js +0 -1033
  75. package/dist/node_modules/mariadb/lib/misc/utils.js +0 -298
  76. package/dist/node_modules/mariadb/lib/pool-base.js +0 -611
  77. package/dist/node_modules/mariadb/lib/pool-callback.js +0 -202
  78. package/dist/node_modules/mariadb/lib/pool-cluster-callback.js +0 -66
  79. package/dist/node_modules/mariadb/lib/pool-cluster.js +0 -407
  80. package/dist/node_modules/mariadb/lib/pool-promise.js +0 -108
  81. package/dist/node_modules/mariadb/node_modules/@types/node/assert/strict.d.ts +0 -8
  82. package/dist/node_modules/mariadb/node_modules/@types/node/assert.d.ts +0 -912
  83. package/dist/node_modules/mariadb/node_modules/@types/node/async_hooks.d.ts +0 -501
  84. package/dist/node_modules/mariadb/node_modules/@types/node/buffer.d.ts +0 -2232
  85. package/dist/node_modules/mariadb/node_modules/@types/node/child_process.d.ts +0 -1366
  86. package/dist/node_modules/mariadb/node_modules/@types/node/cluster.d.ts +0 -414
  87. package/dist/node_modules/mariadb/node_modules/@types/node/console.d.ts +0 -412
  88. package/dist/node_modules/mariadb/node_modules/@types/node/constants.d.ts +0 -18
  89. package/dist/node_modules/mariadb/node_modules/@types/node/crypto.d.ts +0 -3338
  90. package/dist/node_modules/mariadb/node_modules/@types/node/dgram.d.ts +0 -545
  91. package/dist/node_modules/mariadb/node_modules/@types/node/diagnostics_channel.d.ts +0 -152
  92. package/dist/node_modules/mariadb/node_modules/@types/node/dns/promises.d.ts +0 -370
  93. package/dist/node_modules/mariadb/node_modules/@types/node/dns.d.ts +0 -659
  94. package/dist/node_modules/mariadb/node_modules/@types/node/domain.d.ts +0 -169
  95. package/dist/node_modules/mariadb/node_modules/@types/node/events.d.ts +0 -651
  96. package/dist/node_modules/mariadb/node_modules/@types/node/fs/promises.d.ts +0 -1091
  97. package/dist/node_modules/mariadb/node_modules/@types/node/fs.d.ts +0 -3869
  98. package/dist/node_modules/mariadb/node_modules/@types/node/globals.d.ts +0 -294
  99. package/dist/node_modules/mariadb/node_modules/@types/node/globals.global.d.ts +0 -1
  100. package/dist/node_modules/mariadb/node_modules/@types/node/http.d.ts +0 -1396
  101. package/dist/node_modules/mariadb/node_modules/@types/node/http2.d.ts +0 -2101
  102. package/dist/node_modules/mariadb/node_modules/@types/node/https.d.ts +0 -391
  103. package/dist/node_modules/mariadb/node_modules/@types/node/index.d.ts +0 -129
  104. package/dist/node_modules/mariadb/node_modules/@types/node/inspector.d.ts +0 -2744
  105. package/dist/node_modules/mariadb/node_modules/@types/node/module.d.ts +0 -114
  106. package/dist/node_modules/mariadb/node_modules/@types/node/net.d.ts +0 -791
  107. package/dist/node_modules/mariadb/node_modules/@types/node/os.d.ts +0 -455
  108. package/dist/node_modules/mariadb/node_modules/@types/node/package.json +0 -220
  109. package/dist/node_modules/mariadb/node_modules/@types/node/path.d.ts +0 -180
  110. package/dist/node_modules/mariadb/node_modules/@types/node/perf_hooks.d.ts +0 -557
  111. package/dist/node_modules/mariadb/node_modules/@types/node/process.d.ts +0 -1481
  112. package/dist/node_modules/mariadb/node_modules/@types/node/punycode.d.ts +0 -117
  113. package/dist/node_modules/mariadb/node_modules/@types/node/querystring.d.ts +0 -131
  114. package/dist/node_modules/mariadb/node_modules/@types/node/readline.d.ts +0 -650
  115. package/dist/node_modules/mariadb/node_modules/@types/node/repl.d.ts +0 -424
  116. package/dist/node_modules/mariadb/node_modules/@types/node/stream/consumers.d.ts +0 -24
  117. package/dist/node_modules/mariadb/node_modules/@types/node/stream/promises.d.ts +0 -42
  118. package/dist/node_modules/mariadb/node_modules/@types/node/stream/web.d.ts +0 -330
  119. package/dist/node_modules/mariadb/node_modules/@types/node/stream.d.ts +0 -1249
  120. package/dist/node_modules/mariadb/node_modules/@types/node/string_decoder.d.ts +0 -67
  121. package/dist/node_modules/mariadb/node_modules/@types/node/timers/promises.d.ts +0 -68
  122. package/dist/node_modules/mariadb/node_modules/@types/node/timers.d.ts +0 -94
  123. package/dist/node_modules/mariadb/node_modules/@types/node/tls.d.ts +0 -1020
  124. package/dist/node_modules/mariadb/node_modules/@types/node/trace_events.d.ts +0 -161
  125. package/dist/node_modules/mariadb/node_modules/@types/node/tty.d.ts +0 -204
  126. package/dist/node_modules/mariadb/node_modules/@types/node/url.d.ts +0 -891
  127. package/dist/node_modules/mariadb/node_modules/@types/node/util.d.ts +0 -1594
  128. package/dist/node_modules/mariadb/node_modules/@types/node/v8.d.ts +0 -378
  129. package/dist/node_modules/mariadb/node_modules/@types/node/vm.d.ts +0 -507
  130. package/dist/node_modules/mariadb/node_modules/@types/node/wasi.d.ts +0 -158
  131. package/dist/node_modules/mariadb/node_modules/@types/node/worker_threads.d.ts +0 -649
  132. package/dist/node_modules/mariadb/node_modules/@types/node/zlib.d.ts +0 -517
  133. package/dist/node_modules/mariadb/node_modules/iconv-lite/.github/dependabot.yml +0 -11
  134. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
  135. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
  136. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
  137. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
  138. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/modules.xml +0 -8
  139. package/dist/node_modules/mariadb/node_modules/iconv-lite/.idea/vcs.xml +0 -6
  140. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -597
  141. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/dbcs-data.js +0 -188
  142. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/index.js +0 -23
  143. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/internal.js +0 -198
  144. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  145. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  146. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/sbcs-data.js +0 -179
  147. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  148. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  149. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  150. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  151. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  152. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  153. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  154. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  155. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/utf16.js +0 -197
  156. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/utf32.js +0 -319
  157. package/dist/node_modules/mariadb/node_modules/iconv-lite/encodings/utf7.js +0 -290
  158. package/dist/node_modules/mariadb/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  159. package/dist/node_modules/mariadb/node_modules/iconv-lite/lib/index.d.ts +0 -41
  160. package/dist/node_modules/mariadb/node_modules/iconv-lite/lib/index.js +0 -180
  161. package/dist/node_modules/mariadb/node_modules/iconv-lite/lib/streams.js +0 -109
  162. package/dist/node_modules/mariadb/node_modules/iconv-lite/package.json +0 -44
  163. package/dist/node_modules/mariadb/package.json +0 -1
  164. package/dist/node_modules/mariadb/promise.js +0 -34
  165. package/dist/node_modules/mariadb/types/index.d.ts +0 -870
  166. package/dist/server/collections/applications.d.ts +0 -10
  167. package/dist/server/collections/applications.js +0 -75
  168. package/dist/server/index.d.ts +0 -11
  169. package/dist/server/index.js +0 -40
  170. package/dist/server/models/application.d.ts +0 -18
  171. package/dist/server/models/application.js +0 -50
  172. package/dist/server/server.d.ts +0 -26
  173. package/dist/server/server.js +0 -310
  174. package/dist/swagger/index.d.ts +0 -195
  175. package/dist/swagger/index.js +0 -226
@@ -1,294 +0,0 @@
1
- // Declare "static" methods in Error
2
- interface ErrorConstructor {
3
- /** Create .stack property on a target object */
4
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
5
-
6
- /**
7
- * Optional override for formatting stack traces
8
- *
9
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
- */
11
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
-
13
- stackTraceLimit: number;
14
- }
15
-
16
- /*-----------------------------------------------*
17
- * *
18
- * GLOBAL *
19
- * *
20
- ------------------------------------------------*/
21
-
22
- // For backwards compability
23
- interface NodeRequire extends NodeJS.Require { }
24
- interface RequireResolve extends NodeJS.RequireResolve { }
25
- interface NodeModule extends NodeJS.Module { }
26
-
27
- declare var process: NodeJS.Process;
28
- declare var console: Console;
29
-
30
- declare var __filename: string;
31
- declare var __dirname: string;
32
-
33
- declare var require: NodeRequire;
34
- declare var module: NodeModule;
35
-
36
- // Same as module.exports
37
- declare var exports: any;
38
-
39
- /**
40
- * Only available if `--expose-gc` is passed to the process.
41
- */
42
- declare var gc: undefined | (() => void);
43
-
44
- //#region borrowed
45
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
- interface AbortController {
48
- /**
49
- * Returns the AbortSignal object associated with this object.
50
- */
51
-
52
- readonly signal: AbortSignal;
53
- /**
54
- * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
- */
56
- abort(): void;
57
- }
58
-
59
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
- interface AbortSignal {
61
- /**
62
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
- */
64
- readonly aborted: boolean;
65
- }
66
-
67
- declare var AbortController: {
68
- prototype: AbortController;
69
- new(): AbortController;
70
- };
71
-
72
- declare var AbortSignal: {
73
- prototype: AbortSignal;
74
- new(): AbortSignal;
75
- // TODO: Add abort() static
76
- };
77
- //#endregion borrowed
78
-
79
- //#region ArrayLike.at()
80
- interface RelativeIndexable<T> {
81
- /**
82
- * Takes an integer value and returns the item at that index,
83
- * allowing for positive and negative integers.
84
- * Negative integers count back from the last item in the array.
85
- */
86
- at(index: number): T | undefined;
87
- }
88
- interface String extends RelativeIndexable<string> {}
89
- interface Array<T> extends RelativeIndexable<T> {}
90
- interface Int8Array extends RelativeIndexable<number> {}
91
- interface Uint8Array extends RelativeIndexable<number> {}
92
- interface Uint8ClampedArray extends RelativeIndexable<number> {}
93
- interface Int16Array extends RelativeIndexable<number> {}
94
- interface Uint16Array extends RelativeIndexable<number> {}
95
- interface Int32Array extends RelativeIndexable<number> {}
96
- interface Uint32Array extends RelativeIndexable<number> {}
97
- interface Float32Array extends RelativeIndexable<number> {}
98
- interface Float64Array extends RelativeIndexable<number> {}
99
- interface BigInt64Array extends RelativeIndexable<bigint> {}
100
- interface BigUint64Array extends RelativeIndexable<bigint> {}
101
- //#endregion ArrayLike.at() end
102
-
103
- /**
104
- * @since v17.0.0
105
- *
106
- * Creates a deep clone of an object.
107
- */
108
- declare function structuredClone<T>(
109
- value: T,
110
- transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
111
- ): T;
112
-
113
- /*----------------------------------------------*
114
- * *
115
- * GLOBAL INTERFACES *
116
- * *
117
- *-----------------------------------------------*/
118
- declare namespace NodeJS {
119
- interface CallSite {
120
- /**
121
- * Value of "this"
122
- */
123
- getThis(): unknown;
124
-
125
- /**
126
- * Type of "this" as a string.
127
- * This is the name of the function stored in the constructor field of
128
- * "this", if available. Otherwise the object's [[Class]] internal
129
- * property.
130
- */
131
- getTypeName(): string | null;
132
-
133
- /**
134
- * Current function
135
- */
136
- getFunction(): Function | undefined;
137
-
138
- /**
139
- * Name of the current function, typically its name property.
140
- * If a name property is not available an attempt will be made to try
141
- * to infer a name from the function's context.
142
- */
143
- getFunctionName(): string | null;
144
-
145
- /**
146
- * Name of the property [of "this" or one of its prototypes] that holds
147
- * the current function
148
- */
149
- getMethodName(): string | null;
150
-
151
- /**
152
- * Name of the script [if this function was defined in a script]
153
- */
154
- getFileName(): string | null;
155
-
156
- /**
157
- * Current line number [if this function was defined in a script]
158
- */
159
- getLineNumber(): number | null;
160
-
161
- /**
162
- * Current column number [if this function was defined in a script]
163
- */
164
- getColumnNumber(): number | null;
165
-
166
- /**
167
- * A call site object representing the location where eval was called
168
- * [if this function was created using a call to eval]
169
- */
170
- getEvalOrigin(): string | undefined;
171
-
172
- /**
173
- * Is this a toplevel invocation, that is, is "this" the global object?
174
- */
175
- isToplevel(): boolean;
176
-
177
- /**
178
- * Does this call take place in code defined by a call to eval?
179
- */
180
- isEval(): boolean;
181
-
182
- /**
183
- * Is this call in native V8 code?
184
- */
185
- isNative(): boolean;
186
-
187
- /**
188
- * Is this a constructor call?
189
- */
190
- isConstructor(): boolean;
191
- }
192
-
193
- interface ErrnoException extends Error {
194
- errno?: number | undefined;
195
- code?: string | undefined;
196
- path?: string | undefined;
197
- syscall?: string | undefined;
198
- }
199
-
200
- interface ReadableStream extends EventEmitter {
201
- readable: boolean;
202
- read(size?: number): string | Buffer;
203
- setEncoding(encoding: BufferEncoding): this;
204
- pause(): this;
205
- resume(): this;
206
- isPaused(): boolean;
207
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
208
- unpipe(destination?: WritableStream): this;
209
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
210
- wrap(oldStream: ReadableStream): this;
211
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
212
- }
213
-
214
- interface WritableStream extends EventEmitter {
215
- writable: boolean;
216
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
217
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
218
- end(cb?: () => void): this;
219
- end(data: string | Uint8Array, cb?: () => void): this;
220
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
221
- }
222
-
223
- interface ReadWriteStream extends ReadableStream, WritableStream { }
224
-
225
- interface RefCounted {
226
- ref(): this;
227
- unref(): this;
228
- }
229
-
230
- type TypedArray =
231
- | Uint8Array
232
- | Uint8ClampedArray
233
- | Uint16Array
234
- | Uint32Array
235
- | Int8Array
236
- | Int16Array
237
- | Int32Array
238
- | BigUint64Array
239
- | BigInt64Array
240
- | Float32Array
241
- | Float64Array;
242
- type ArrayBufferView = TypedArray | DataView;
243
-
244
- interface Require {
245
- (id: string): any;
246
- resolve: RequireResolve;
247
- cache: Dict<NodeModule>;
248
- /**
249
- * @deprecated
250
- */
251
- extensions: RequireExtensions;
252
- main: Module | undefined;
253
- }
254
-
255
- interface RequireResolve {
256
- (id: string, options?: { paths?: string[] | undefined; }): string;
257
- paths(request: string): string[] | null;
258
- }
259
-
260
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
261
- '.js': (m: Module, filename: string) => any;
262
- '.json': (m: Module, filename: string) => any;
263
- '.node': (m: Module, filename: string) => any;
264
- }
265
- interface Module {
266
- /**
267
- * `true` if the module is running during the Node.js preload
268
- */
269
- isPreloading: boolean;
270
- exports: any;
271
- require: Require;
272
- id: string;
273
- filename: string;
274
- loaded: boolean;
275
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
276
- parent: Module | null | undefined;
277
- children: Module[];
278
- /**
279
- * @since v11.14.0
280
- *
281
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
282
- */
283
- path: string;
284
- paths: string[];
285
- }
286
-
287
- interface Dict<T> {
288
- [key: string]: T | undefined;
289
- }
290
-
291
- interface ReadOnlyDict<T> {
292
- readonly [key: string]: T | undefined;
293
- }
294
- }
@@ -1 +0,0 @@
1
- declare var global: typeof globalThis;