adminforth 1.1.79 → 1.1.81

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 (212) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/modules/codeInjector.js +51 -23
  3. package/dist/plugins/AuditLog/index.js +13 -0
  4. package/dist/plugins/AuditLog/types.js +1 -0
  5. package/dist/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
  6. package/dist/spa/index.html +1 -1
  7. package/dist/spa/package-lock.json +0 -111
  8. package/dist/spa/package.json +0 -1
  9. package/dist/spa/spa/src/App.vue +1 -1
  10. package/dist/spa/spa/src/components/MenuLink.vue +1 -1
  11. package/dist/spa/src/App.vue +133 -178
  12. package/dist/spa/src/components/MenuLink.vue +3 -3
  13. package/dist/spa/src/components/ResourceForm.vue +96 -96
  14. package/dist/spa/src/components/ResourceListTable.vue +84 -69
  15. package/dist/spa/src/components/ValueRenderer.vue +3 -2
  16. package/dist/spa/src/composables/useStores.ts +11 -24
  17. package/dist/spa/src/main.ts +1 -1
  18. package/dist/spa/src/router/index.ts +1 -0
  19. package/dist/spa/src/utils.ts +1 -1
  20. package/dist/spa/src/views/CreateView.vue +9 -1
  21. package/dist/spa/src/views/EditView.vue +9 -1
  22. package/dist/spa/src/views/ListView.vue +3 -12
  23. package/dist/spa/src/views/LoginView.vue +1 -6
  24. package/dist/spa/src/views/ResourceParent.vue +2 -1
  25. package/dist/spa/src/views/ShowView.vue +14 -6
  26. package/dist/spa/tailwind.config.js +1 -3
  27. package/index.ts +1 -1
  28. package/modules/codeInjector.ts +56 -26
  29. package/package.json +1 -1
  30. package/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
  31. package/spa/src/App.vue +1 -1
  32. package/spa/src/components/MenuLink.vue +1 -1
  33. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
  34. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
  35. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
  36. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
  37. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
  38. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
  39. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
  40. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
  41. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
  42. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
  43. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
  44. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
  45. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
  46. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
  47. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
  48. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
  49. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
  50. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
  51. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
  52. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
  53. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
  54. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
  55. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
  56. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
  57. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
  58. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
  59. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
  60. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
  61. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
  62. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
  63. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
  64. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
  65. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
  66. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
  67. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
  68. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
  69. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
  70. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
  71. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
  72. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
  73. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
  74. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
  75. package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
  76. package/dist/spa/src/components/SkeleteLoader.vue +0 -23
  77. package/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
  78. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
  79. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
  80. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert/strict.d.ts +0 -8
  81. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert.d.ts +0 -1040
  82. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/async_hooks.d.ts +0 -541
  83. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/buffer.d.ts +0 -2363
  84. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/child_process.d.ts +0 -1544
  85. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/cluster.d.ts +0 -578
  86. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/console.d.ts +0 -452
  87. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/constants.d.ts +0 -19
  88. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/crypto.d.ts +0 -4523
  89. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dgram.d.ts +0 -596
  90. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  91. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns/promises.d.ts +0 -476
  92. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns.d.ts +0 -864
  93. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dom-events.d.ts +0 -124
  94. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/domain.d.ts +0 -170
  95. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/events.d.ts +0 -931
  96. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs/promises.d.ts +0 -1245
  97. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs.d.ts +0 -4317
  98. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.d.ts +0 -412
  99. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.global.d.ts +0 -1
  100. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http.d.ts +0 -1908
  101. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http2.d.ts +0 -2418
  102. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/https.d.ts +0 -550
  103. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/index.d.ts +0 -89
  104. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/inspector.d.ts +0 -2746
  105. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/module.d.ts +0 -315
  106. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/net.d.ts +0 -999
  107. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/os.d.ts +0 -495
  108. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
  109. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/path.d.ts +0 -191
  110. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/perf_hooks.d.ts +0 -905
  111. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/process.d.ts +0 -1754
  112. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/punycode.d.ts +0 -117
  113. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/querystring.d.ts +0 -153
  114. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline/promises.d.ts +0 -150
  115. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline.d.ts +0 -540
  116. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/repl.d.ts +0 -430
  117. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/sea.d.ts +0 -153
  118. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/consumers.d.ts +0 -12
  119. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/promises.d.ts +0 -83
  120. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/web.d.ts +0 -367
  121. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream.d.ts +0 -1707
  122. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/string_decoder.d.ts +0 -67
  123. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/test.d.ts +0 -1718
  124. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers/promises.d.ts +0 -97
  125. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers.d.ts +0 -240
  126. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tls.d.ts +0 -1217
  127. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/trace_events.d.ts +0 -197
  128. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tty.d.ts +0 -208
  129. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/url.d.ts +0 -952
  130. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/util.d.ts +0 -2292
  131. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/v8.d.ts +0 -808
  132. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/vm.d.ts +0 -924
  133. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/wasi.d.ts +0 -181
  134. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/worker_threads.d.ts +0 -694
  135. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/zlib.d.ts +0 -530
  136. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
  137. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
  138. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/index.d.ts +0 -127
  139. package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
  140. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
  141. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
  142. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.d.ts +0 -11
  143. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
  144. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.d.ts +0 -4
  145. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
  146. package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
  147. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
  148. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
  149. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
  150. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
  151. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
  152. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
  153. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
  154. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
  155. package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
  156. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
  157. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
  158. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
  159. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
  160. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
  161. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
  162. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
  163. package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
  164. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
  165. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
  166. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
  167. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
  168. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.d.ts +0 -37
  169. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
  170. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
  171. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
  172. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.d.ts +0 -453
  173. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
  174. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
  175. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
  176. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
  177. package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
  178. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
  179. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/agent.d.ts +0 -31
  180. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/api.d.ts +0 -43
  181. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/balanced-pool.d.ts +0 -18
  182. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cache.d.ts +0 -36
  183. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/client.d.ts +0 -97
  184. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/connector.d.ts +0 -34
  185. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/content-type.d.ts +0 -21
  186. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cookies.d.ts +0 -28
  187. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  188. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/dispatcher.d.ts +0 -241
  189. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/errors.d.ts +0 -128
  190. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/fetch.d.ts +0 -209
  191. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/file.d.ts +0 -39
  192. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/filereader.d.ts +0 -54
  193. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/formdata.d.ts +0 -108
  194. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  195. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-origin.d.ts +0 -7
  196. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/handlers.d.ts +0 -9
  197. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/header.d.ts +0 -4
  198. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/index.d.ts +0 -63
  199. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/interceptors.d.ts +0 -5
  200. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-agent.d.ts +0 -50
  201. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-client.d.ts +0 -25
  202. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-errors.d.ts +0 -12
  203. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  204. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-pool.d.ts +0 -25
  205. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
  206. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/patch.d.ts +0 -71
  207. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool-stats.d.ts +0 -19
  208. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool.d.ts +0 -28
  209. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/proxy-agent.d.ts +0 -30
  210. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/readable.d.ts +0 -61
  211. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/webidl.d.ts +0 -220
  212. package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/websocket.d.ts +0 -131
@@ -1,412 +0,0 @@
1
- export {}; // Make this a module
2
-
3
- // #region Fetch and friends
4
- // Conditional type aliases, used at the end of this file.
5
- // Will either be empty if lib-dom is included, or the undici version otherwise.
6
- type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request;
7
- type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response;
8
- type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData;
9
- type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers;
10
- type _RequestInit = typeof globalThis extends { onmessage: any } ? {}
11
- : import("undici-types").RequestInit;
12
- type _ResponseInit = typeof globalThis extends { onmessage: any } ? {}
13
- : import("undici-types").ResponseInit;
14
- type _File = typeof globalThis extends { onmessage: any } ? {} : import("node:buffer").File;
15
- // #endregion Fetch and friends
16
-
17
- declare global {
18
- // Declare "static" methods in Error
19
- interface ErrorConstructor {
20
- /** Create .stack property on a target object */
21
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
22
-
23
- /**
24
- * Optional override for formatting stack traces
25
- *
26
- * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
27
- */
28
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
29
-
30
- stackTraceLimit: number;
31
- }
32
-
33
- /*-----------------------------------------------*
34
- * *
35
- * GLOBAL *
36
- * *
37
- ------------------------------------------------*/
38
-
39
- // For backwards compability
40
- interface NodeRequire extends NodeJS.Require {}
41
- interface RequireResolve extends NodeJS.RequireResolve {}
42
- interface NodeModule extends NodeJS.Module {}
43
-
44
- var process: NodeJS.Process;
45
- var console: Console;
46
-
47
- var __filename: string;
48
- var __dirname: string;
49
-
50
- var require: NodeRequire;
51
- var module: NodeModule;
52
-
53
- // Same as module.exports
54
- var exports: any;
55
-
56
- /**
57
- * Only available if `--expose-gc` is passed to the process.
58
- */
59
- var gc: undefined | (() => void);
60
-
61
- // #region borrowed
62
- // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
63
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
64
- interface AbortController {
65
- /**
66
- * Returns the AbortSignal object associated with this object.
67
- */
68
-
69
- readonly signal: AbortSignal;
70
- /**
71
- * 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.
72
- */
73
- abort(reason?: any): void;
74
- }
75
-
76
- /** 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. */
77
- interface AbortSignal extends EventTarget {
78
- /**
79
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
80
- */
81
- readonly aborted: boolean;
82
- readonly reason: any;
83
- onabort: null | ((this: AbortSignal, event: Event) => any);
84
- throwIfAborted(): void;
85
- }
86
-
87
- var AbortController: typeof globalThis extends { onmessage: any; AbortController: infer T } ? T
88
- : {
89
- prototype: AbortController;
90
- new(): AbortController;
91
- };
92
-
93
- var AbortSignal: typeof globalThis extends { onmessage: any; AbortSignal: infer T } ? T
94
- : {
95
- prototype: AbortSignal;
96
- new(): AbortSignal;
97
- abort(reason?: any): AbortSignal;
98
- timeout(milliseconds: number): AbortSignal;
99
- any(signals: AbortSignal[]): AbortSignal;
100
- };
101
- // #endregion borrowed
102
-
103
- // #region Disposable
104
- interface SymbolConstructor {
105
- /**
106
- * A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
107
- */
108
- readonly dispose: unique symbol;
109
-
110
- /**
111
- * A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
112
- */
113
- readonly asyncDispose: unique symbol;
114
- }
115
-
116
- interface Disposable {
117
- [Symbol.dispose](): void;
118
- }
119
-
120
- interface AsyncDisposable {
121
- [Symbol.asyncDispose](): PromiseLike<void>;
122
- }
123
- // #endregion Disposable
124
-
125
- // #region ArrayLike.at()
126
- interface RelativeIndexable<T> {
127
- /**
128
- * Takes an integer value and returns the item at that index,
129
- * allowing for positive and negative integers.
130
- * Negative integers count back from the last item in the array.
131
- */
132
- at(index: number): T | undefined;
133
- }
134
- interface String extends RelativeIndexable<string> {}
135
- interface Array<T> extends RelativeIndexable<T> {}
136
- interface ReadonlyArray<T> extends RelativeIndexable<T> {}
137
- interface Int8Array extends RelativeIndexable<number> {}
138
- interface Uint8Array extends RelativeIndexable<number> {}
139
- interface Uint8ClampedArray extends RelativeIndexable<number> {}
140
- interface Int16Array extends RelativeIndexable<number> {}
141
- interface Uint16Array extends RelativeIndexable<number> {}
142
- interface Int32Array extends RelativeIndexable<number> {}
143
- interface Uint32Array extends RelativeIndexable<number> {}
144
- interface Float32Array extends RelativeIndexable<number> {}
145
- interface Float64Array extends RelativeIndexable<number> {}
146
- interface BigInt64Array extends RelativeIndexable<bigint> {}
147
- interface BigUint64Array extends RelativeIndexable<bigint> {}
148
- // #endregion ArrayLike.at() end
149
-
150
- /**
151
- * @since v17.0.0
152
- *
153
- * Creates a deep clone of an object.
154
- */
155
- function structuredClone<T>(
156
- value: T,
157
- transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
158
- ): T;
159
-
160
- /*----------------------------------------------*
161
- * *
162
- * GLOBAL INTERFACES *
163
- * *
164
- *-----------------------------------------------*/
165
- namespace NodeJS {
166
- interface CallSite {
167
- /**
168
- * Value of "this"
169
- */
170
- getThis(): unknown;
171
-
172
- /**
173
- * Type of "this" as a string.
174
- * This is the name of the function stored in the constructor field of
175
- * "this", if available. Otherwise the object's [[Class]] internal
176
- * property.
177
- */
178
- getTypeName(): string | null;
179
-
180
- /**
181
- * Current function
182
- */
183
- getFunction(): Function | undefined;
184
-
185
- /**
186
- * Name of the current function, typically its name property.
187
- * If a name property is not available an attempt will be made to try
188
- * to infer a name from the function's context.
189
- */
190
- getFunctionName(): string | null;
191
-
192
- /**
193
- * Name of the property [of "this" or one of its prototypes] that holds
194
- * the current function
195
- */
196
- getMethodName(): string | null;
197
-
198
- /**
199
- * Name of the script [if this function was defined in a script]
200
- */
201
- getFileName(): string | undefined;
202
-
203
- /**
204
- * Current line number [if this function was defined in a script]
205
- */
206
- getLineNumber(): number | null;
207
-
208
- /**
209
- * Current column number [if this function was defined in a script]
210
- */
211
- getColumnNumber(): number | null;
212
-
213
- /**
214
- * A call site object representing the location where eval was called
215
- * [if this function was created using a call to eval]
216
- */
217
- getEvalOrigin(): string | undefined;
218
-
219
- /**
220
- * Is this a toplevel invocation, that is, is "this" the global object?
221
- */
222
- isToplevel(): boolean;
223
-
224
- /**
225
- * Does this call take place in code defined by a call to eval?
226
- */
227
- isEval(): boolean;
228
-
229
- /**
230
- * Is this call in native V8 code?
231
- */
232
- isNative(): boolean;
233
-
234
- /**
235
- * Is this a constructor call?
236
- */
237
- isConstructor(): boolean;
238
-
239
- /**
240
- * is this an async call (i.e. await, Promise.all(), or Promise.any())?
241
- */
242
- isAsync(): boolean;
243
-
244
- /**
245
- * is this an async call to Promise.all()?
246
- */
247
- isPromiseAll(): boolean;
248
-
249
- /**
250
- * returns the index of the promise element that was followed in
251
- * Promise.all() or Promise.any() for async stack traces, or null
252
- * if the CallSite is not an async
253
- */
254
- getPromiseIndex(): number | null;
255
-
256
- getScriptNameOrSourceURL(): string;
257
- getScriptHash(): string;
258
-
259
- getEnclosingColumnNumber(): number;
260
- getEnclosingLineNumber(): number;
261
- getPosition(): number;
262
-
263
- toString(): string;
264
- }
265
-
266
- interface ErrnoException extends Error {
267
- errno?: number | undefined;
268
- code?: string | undefined;
269
- path?: string | undefined;
270
- syscall?: string | undefined;
271
- }
272
-
273
- interface ReadableStream extends EventEmitter {
274
- readable: boolean;
275
- read(size?: number): string | Buffer;
276
- setEncoding(encoding: BufferEncoding): this;
277
- pause(): this;
278
- resume(): this;
279
- isPaused(): boolean;
280
- pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined }): T;
281
- unpipe(destination?: WritableStream): this;
282
- unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
283
- wrap(oldStream: ReadableStream): this;
284
- [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
285
- }
286
-
287
- interface WritableStream extends EventEmitter {
288
- writable: boolean;
289
- write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
290
- write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
291
- end(cb?: () => void): this;
292
- end(data: string | Uint8Array, cb?: () => void): this;
293
- end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
294
- }
295
-
296
- interface ReadWriteStream extends ReadableStream, WritableStream {}
297
-
298
- interface RefCounted {
299
- ref(): this;
300
- unref(): this;
301
- }
302
-
303
- type TypedArray =
304
- | Uint8Array
305
- | Uint8ClampedArray
306
- | Uint16Array
307
- | Uint32Array
308
- | Int8Array
309
- | Int16Array
310
- | Int32Array
311
- | BigUint64Array
312
- | BigInt64Array
313
- | Float32Array
314
- | Float64Array;
315
- type ArrayBufferView = TypedArray | DataView;
316
-
317
- interface Require {
318
- (id: string): any;
319
- resolve: RequireResolve;
320
- cache: Dict<NodeModule>;
321
- /**
322
- * @deprecated
323
- */
324
- extensions: RequireExtensions;
325
- main: Module | undefined;
326
- }
327
-
328
- interface RequireResolve {
329
- (id: string, options?: { paths?: string[] | undefined }): string;
330
- paths(request: string): string[] | null;
331
- }
332
-
333
- interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
334
- ".js": (m: Module, filename: string) => any;
335
- ".json": (m: Module, filename: string) => any;
336
- ".node": (m: Module, filename: string) => any;
337
- }
338
- interface Module {
339
- /**
340
- * `true` if the module is running during the Node.js preload
341
- */
342
- isPreloading: boolean;
343
- exports: any;
344
- require: Require;
345
- id: string;
346
- filename: string;
347
- loaded: boolean;
348
- /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
349
- parent: Module | null | undefined;
350
- children: Module[];
351
- /**
352
- * @since v11.14.0
353
- *
354
- * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
355
- */
356
- path: string;
357
- paths: string[];
358
- }
359
-
360
- interface Dict<T> {
361
- [key: string]: T | undefined;
362
- }
363
-
364
- interface ReadOnlyDict<T> {
365
- readonly [key: string]: T | undefined;
366
- }
367
- }
368
-
369
- interface RequestInit extends _RequestInit {}
370
-
371
- function fetch(
372
- input: string | URL | globalThis.Request,
373
- init?: RequestInit,
374
- ): Promise<Response>;
375
-
376
- interface Request extends _Request {}
377
- var Request: typeof globalThis extends {
378
- onmessage: any;
379
- Request: infer T;
380
- } ? T
381
- : typeof import("undici-types").Request;
382
-
383
- interface ResponseInit extends _ResponseInit {}
384
-
385
- interface Response extends _Response {}
386
- var Response: typeof globalThis extends {
387
- onmessage: any;
388
- Response: infer T;
389
- } ? T
390
- : typeof import("undici-types").Response;
391
-
392
- interface FormData extends _FormData {}
393
- var FormData: typeof globalThis extends {
394
- onmessage: any;
395
- FormData: infer T;
396
- } ? T
397
- : typeof import("undici-types").FormData;
398
-
399
- interface Headers extends _Headers {}
400
- var Headers: typeof globalThis extends {
401
- onmessage: any;
402
- Headers: infer T;
403
- } ? T
404
- : typeof import("undici-types").Headers;
405
-
406
- interface File extends _File {}
407
- var File: typeof globalThis extends {
408
- onmessage: any;
409
- File: infer T;
410
- } ? T
411
- : typeof import("node:buffer").File;
412
- }
@@ -1 +0,0 @@
1
- declare var global: typeof globalThis;