lakutata 2.0.81 → 2.0.83

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 (234) hide show
  1. package/com/docker.cjs +1 -1
  2. package/com/docker.mjs +1 -1
  3. package/decorator/orm.cjs +84 -84
  4. package/decorator/orm.mjs +42 -128
  5. package/orm.cjs +873 -1410
  6. package/orm.mjs +708 -1458
  7. package/package.json +1 -1
  8. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +230 -239
  9. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +230 -239
  10. package/src/components/docker/ConnectionOptionsBuilder.cjs +1 -1
  11. package/src/components/docker/ConnectionOptionsBuilder.mjs +1 -1
  12. package/src/components/docker/Docker.cjs +4919 -4808
  13. package/src/components/docker/Docker.mjs +4939 -4828
  14. package/src/components/docker/lib/DockerContainer.cjs +1 -1
  15. package/src/components/docker/lib/DockerContainer.mjs +1 -1
  16. package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
  17. package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
  18. package/src/components/entrypoint/Entrypoint.cjs +1669 -2159
  19. package/src/components/entrypoint/Entrypoint.mjs +1629 -2119
  20. package/src/decorators/orm/AfterInsert.cjs +26 -4
  21. package/src/decorators/orm/AfterInsert.mjs +25 -5
  22. package/src/decorators/orm/AfterLoad.cjs +26 -4
  23. package/src/decorators/orm/AfterLoad.mjs +25 -5
  24. package/src/decorators/orm/AfterRecover.cjs +26 -4
  25. package/src/decorators/orm/AfterRecover.mjs +25 -5
  26. package/src/decorators/orm/AfterRemove.cjs +26 -4
  27. package/src/decorators/orm/AfterRemove.mjs +25 -5
  28. package/src/decorators/orm/AfterSoftRemove.cjs +26 -4
  29. package/src/decorators/orm/AfterSoftRemove.mjs +25 -5
  30. package/src/decorators/orm/AfterUpdate.cjs +26 -4
  31. package/src/decorators/orm/AfterUpdate.mjs +25 -5
  32. package/src/decorators/orm/BeforeInsert.cjs +26 -4
  33. package/src/decorators/orm/BeforeInsert.mjs +25 -5
  34. package/src/decorators/orm/BeforeRecover.cjs +26 -4
  35. package/src/decorators/orm/BeforeRecover.mjs +25 -5
  36. package/src/decorators/orm/BeforeRemove.cjs +26 -4
  37. package/src/decorators/orm/BeforeRemove.mjs +25 -5
  38. package/src/decorators/orm/BeforeSoftRemove.cjs +26 -4
  39. package/src/decorators/orm/BeforeSoftRemove.mjs +25 -5
  40. package/src/decorators/orm/BeforeUpdate.cjs +26 -4
  41. package/src/decorators/orm/BeforeUpdate.mjs +25 -5
  42. package/src/decorators/orm/Check.cjs +29 -4
  43. package/src/decorators/orm/Check.mjs +28 -5
  44. package/src/decorators/orm/ChildEntity.cjs +29 -4
  45. package/src/decorators/orm/ChildEntity.mjs +28 -5
  46. package/src/decorators/orm/Column.cjs +61 -4
  47. package/src/decorators/orm/Column.mjs +61 -6
  48. package/src/decorators/orm/CreateDateColumn.cjs +25 -4
  49. package/src/decorators/orm/CreateDateColumn.mjs +24 -5
  50. package/src/decorators/orm/DeleteDateColumn.cjs +25 -4
  51. package/src/decorators/orm/DeleteDateColumn.mjs +23 -4
  52. package/src/decorators/orm/Entity.cjs +35 -4
  53. package/src/decorators/orm/Entity.mjs +33 -4
  54. package/src/decorators/orm/EventSubscriber.cjs +22 -4
  55. package/src/decorators/orm/EventSubscriber.mjs +21 -5
  56. package/src/decorators/orm/Exclusion.cjs +29 -4
  57. package/src/decorators/orm/Exclusion.mjs +28 -5
  58. package/src/decorators/orm/Generated.cjs +24 -4
  59. package/src/decorators/orm/Generated.mjs +23 -5
  60. package/src/decorators/orm/Index.cjs +41 -4
  61. package/src/decorators/orm/Index.mjs +41 -6
  62. package/src/decorators/orm/JoinColumn.cjs +29 -4
  63. package/src/decorators/orm/JoinColumn.mjs +28 -5
  64. package/src/decorators/orm/JoinTable.cjs +30 -4
  65. package/src/decorators/orm/JoinTable.mjs +28 -4
  66. package/src/decorators/orm/ManyToMany.cjs +42 -4
  67. package/src/decorators/orm/ManyToMany.mjs +40 -4
  68. package/src/decorators/orm/ManyToOne.cjs +42 -4
  69. package/src/decorators/orm/ManyToOne.mjs +40 -4
  70. package/src/decorators/orm/ObjectIdColumn.cjs +28 -4
  71. package/src/decorators/orm/ObjectIdColumn.mjs +27 -5
  72. package/src/decorators/orm/OneToMany.cjs +34 -4
  73. package/src/decorators/orm/OneToMany.mjs +34 -6
  74. package/src/decorators/orm/OneToOne.cjs +42 -4
  75. package/src/decorators/orm/OneToOne.mjs +40 -4
  76. package/src/decorators/orm/PrimaryColumn.cjs +49 -4
  77. package/src/decorators/orm/PrimaryColumn.mjs +49 -6
  78. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +54 -4
  79. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +54 -6
  80. package/src/decorators/orm/RelationId.cjs +26 -4
  81. package/src/decorators/orm/RelationId.mjs +25 -5
  82. package/src/decorators/orm/TableInheritance.cjs +26 -4
  83. package/src/decorators/orm/TableInheritance.mjs +25 -5
  84. package/src/decorators/orm/Tree.cjs +24 -4
  85. package/src/decorators/orm/Tree.mjs +23 -5
  86. package/src/decorators/orm/TreeChildren.cjs +31 -4
  87. package/src/decorators/orm/TreeChildren.mjs +29 -4
  88. package/src/decorators/orm/TreeLevelColumn.cjs +25 -4
  89. package/src/decorators/orm/TreeLevelColumn.mjs +23 -4
  90. package/src/decorators/orm/TreeParent.cjs +31 -4
  91. package/src/decorators/orm/TreeParent.mjs +29 -4
  92. package/src/decorators/orm/Unique.cjs +44 -4
  93. package/src/decorators/orm/Unique.mjs +44 -6
  94. package/src/decorators/orm/UpdateDateColumn.cjs +25 -4
  95. package/src/decorators/orm/UpdateDateColumn.mjs +24 -5
  96. package/src/decorators/orm/VersionColumn.cjs +25 -4
  97. package/src/decorators/orm/VersionColumn.mjs +24 -5
  98. package/src/decorators/orm/ViewColumn.cjs +25 -4
  99. package/src/decorators/orm/ViewColumn.mjs +24 -5
  100. package/src/decorators/orm/ViewEntity.cjs +34 -4
  101. package/src/decorators/orm/ViewEntity.mjs +33 -5
  102. package/src/decorators/orm/VirtualColumn.cjs +42 -4
  103. package/src/decorators/orm/VirtualColumn.mjs +40 -4
  104. package/src/lib/base/EventEmitter.cjs +1193 -1200
  105. package/src/lib/base/EventEmitter.mjs +1194 -1201
  106. package/src/lib/base/internal/DataValidator.cjs +185 -174
  107. package/src/lib/base/internal/DataValidator.mjs +186 -175
  108. package/src/lib/base/internal/PatternManager.cjs +735 -740
  109. package/src/lib/base/internal/PatternManager.mjs +740 -745
  110. package/src/lib/core/Application.cjs +99 -112
  111. package/src/lib/core/Application.mjs +127 -140
  112. package/src/lib/helpers/IsHtml.cjs +13 -7
  113. package/src/lib/helpers/IsHtml.mjs +13 -7
  114. package/src/lib/helpers/IsXML.cjs +1016 -1158
  115. package/src/lib/helpers/IsXML.mjs +729 -871
  116. package/src/lib/helpers/ObjectHash.cjs +371 -378
  117. package/src/lib/helpers/ObjectHash.mjs +371 -378
  118. package/src/lib/helpers/RandomString.cjs +146 -167
  119. package/src/lib/helpers/RandomString.mjs +145 -166
  120. package/src/lib/helpers/URLBuilder.cjs +355 -355
  121. package/src/lib/helpers/URLBuilder.mjs +350 -350
  122. package/src/lib/ioc/ListModules.cjs +5237 -5160
  123. package/src/lib/ioc/ListModules.mjs +5252 -5175
  124. package/src/lib/validation/VLD.cjs +3903 -4080
  125. package/src/lib/validation/VLD.mjs +2793 -2970
  126. package/src/providers/migration/GenerateMigration.cjs +2 -2
  127. package/src/providers/migration/GenerateMigration.mjs +2 -2
  128. package/vendor/Package.112.cjs +38321 -38240
  129. package/vendor/Package.112.mjs +37720 -37579
  130. package/vendor/Package.16.cjs +7386 -7268
  131. package/vendor/Package.16.mjs +6706 -6588
  132. package/vendor/Package.18.cjs +48229 -20
  133. package/vendor/Package.18.mjs +48192 -24
  134. package/vendor/Package.2.cjs +5698 -5727
  135. package/vendor/Package.2.mjs +5707 -5736
  136. package/vendor/Package.4.cjs +874 -884
  137. package/vendor/Package.4.mjs +874 -884
  138. package/vendor/Package.5.cjs +11 -15
  139. package/vendor/Package.5.mjs +7 -11
  140. package/vendor/Package.6.cjs +511 -520
  141. package/vendor/Package.6.mjs +534 -543
  142. package/vendor/Package.62.cjs +87 -90
  143. package/vendor/Package.62.mjs +180 -183
  144. package/vendor/Package.65.cjs +1285 -1292
  145. package/vendor/Package.65.mjs +190 -197
  146. package/vendor/Package.68.cjs +111 -252
  147. package/vendor/Package.68.mjs +134 -268
  148. package/vendor/Package.9.cjs +118 -132
  149. package/vendor/Package.9.mjs +124 -138
  150. package/vendor/TypeDef.internal.3.d.ts +0 -14
  151. package/vendor/Package.19.cjs +0 -37
  152. package/vendor/Package.19.mjs +0 -35
  153. package/vendor/Package.20.cjs +0 -37
  154. package/vendor/Package.20.mjs +0 -35
  155. package/vendor/Package.21.cjs +0 -37
  156. package/vendor/Package.21.mjs +0 -35
  157. package/vendor/Package.22.cjs +0 -37
  158. package/vendor/Package.22.mjs +0 -35
  159. package/vendor/Package.23.cjs +0 -37
  160. package/vendor/Package.23.mjs +0 -35
  161. package/vendor/Package.24.cjs +0 -37
  162. package/vendor/Package.24.mjs +0 -35
  163. package/vendor/Package.25.cjs +0 -37
  164. package/vendor/Package.25.mjs +0 -35
  165. package/vendor/Package.26.cjs +0 -37
  166. package/vendor/Package.26.mjs +0 -35
  167. package/vendor/Package.27.cjs +0 -37
  168. package/vendor/Package.27.mjs +0 -35
  169. package/vendor/Package.28.cjs +0 -37
  170. package/vendor/Package.28.mjs +0 -35
  171. package/vendor/Package.29.cjs +0 -40
  172. package/vendor/Package.29.mjs +0 -38
  173. package/vendor/Package.30.cjs +0 -41
  174. package/vendor/Package.30.mjs +0 -39
  175. package/vendor/Package.31.cjs +0 -72
  176. package/vendor/Package.31.mjs +0 -70
  177. package/vendor/Package.32.cjs +0 -37
  178. package/vendor/Package.32.mjs +0 -35
  179. package/vendor/Package.33.cjs +0 -37
  180. package/vendor/Package.33.mjs +0 -35
  181. package/vendor/Package.34.cjs +0 -46
  182. package/vendor/Package.34.mjs +0 -44
  183. package/vendor/Package.35.cjs +0 -34
  184. package/vendor/Package.35.mjs +0 -32
  185. package/vendor/Package.36.cjs +0 -40
  186. package/vendor/Package.36.mjs +0 -38
  187. package/vendor/Package.37.cjs +0 -36
  188. package/vendor/Package.37.mjs +0 -34
  189. package/vendor/Package.38.cjs +0 -52
  190. package/vendor/Package.38.mjs +0 -50
  191. package/vendor/Package.39.cjs +0 -41
  192. package/vendor/Package.39.mjs +0 -39
  193. package/vendor/Package.40.cjs +0 -42
  194. package/vendor/Package.40.mjs +0 -40
  195. package/vendor/Package.41.cjs +0 -53
  196. package/vendor/Package.41.mjs +0 -51
  197. package/vendor/Package.42.cjs +0 -53
  198. package/vendor/Package.42.mjs +0 -51
  199. package/vendor/Package.43.cjs +0 -40
  200. package/vendor/Package.43.mjs +0 -38
  201. package/vendor/Package.44.cjs +0 -46
  202. package/vendor/Package.44.mjs +0 -44
  203. package/vendor/Package.45.cjs +0 -53
  204. package/vendor/Package.45.mjs +0 -51
  205. package/vendor/Package.46.cjs +0 -59
  206. package/vendor/Package.46.mjs +0 -57
  207. package/vendor/Package.47.cjs +0 -65
  208. package/vendor/Package.47.mjs +0 -63
  209. package/vendor/Package.48.cjs +0 -38
  210. package/vendor/Package.48.mjs +0 -36
  211. package/vendor/Package.49.cjs +0 -38
  212. package/vendor/Package.49.mjs +0 -36
  213. package/vendor/Package.50.cjs +0 -36
  214. package/vendor/Package.50.mjs +0 -34
  215. package/vendor/Package.51.cjs +0 -43
  216. package/vendor/Package.51.mjs +0 -41
  217. package/vendor/Package.52.cjs +0 -37
  218. package/vendor/Package.52.mjs +0 -35
  219. package/vendor/Package.53.cjs +0 -43
  220. package/vendor/Package.53.mjs +0 -41
  221. package/vendor/Package.54.cjs +0 -55
  222. package/vendor/Package.54.mjs +0 -53
  223. package/vendor/Package.55.cjs +0 -37
  224. package/vendor/Package.55.mjs +0 -35
  225. package/vendor/Package.56.cjs +0 -37
  226. package/vendor/Package.56.mjs +0 -35
  227. package/vendor/Package.57.cjs +0 -37
  228. package/vendor/Package.57.mjs +0 -35
  229. package/vendor/Package.58.cjs +0 -45
  230. package/vendor/Package.58.mjs +0 -43
  231. package/vendor/Package.59.cjs +0 -53
  232. package/vendor/Package.59.mjs +0 -51
  233. package/vendor/Package.60.cjs +0 -47649
  234. package/vendor/Package.60.mjs +0 -47606
@@ -10,9 +10,9 @@ import n from "path";
10
10
 
11
11
  import { D as s } from "../../../vendor/Package.11.mjs";
12
12
 
13
- import { g as a } from "../../../vendor/Package.5.mjs";
13
+ import { e as a, I as p, a as c, b as m, P as l, c as u, s as h } from "../../../vendor/Package.112.mjs";
14
14
 
15
- import { a as c, b as p, c as m, d as l, e as u, f as h, g as d } from "../../../vendor/Package.112.mjs";
15
+ import { g as d } from "../../../vendor/Package.5.mjs";
16
16
 
17
17
  import { r as g } from "../../../vendor/Package.12.mjs";
18
18
 
@@ -32,11 +32,11 @@ import { ApplicationOptions as w } from "../../options/ApplicationOptions.mjs";
32
32
 
33
33
  import { Alias as O } from "./Alias.mjs";
34
34
 
35
- import { GetBasicInfo as C } from "../base/internal/BasicInfo.mjs";
35
+ import { GetBasicInfo as P } from "../base/internal/BasicInfo.mjs";
36
36
 
37
- import { Entrypoint as P } from "../../components/entrypoint/Entrypoint.mjs";
37
+ import { Entrypoint as A } from "../../components/entrypoint/Entrypoint.mjs";
38
38
 
39
- import { L as A } from "../../../vendor/Package.16.mjs";
39
+ import { L as C } from "../../../vendor/Package.16.mjs";
40
40
 
41
41
  import { Accept as S } from "../../decorators/dto/Accept.mjs";
42
42
 
@@ -284,119 +284,106 @@ import "assert";
284
284
 
285
285
  import "string_decoder";
286
286
 
287
- var M = c();
287
+ var M = {};
288
288
 
289
- const L = a(M);
289
+ "use strict";
290
290
 
291
- var T = p();
291
+ Object.defineProperty(M, "__esModule", {
292
+ value: true
293
+ });
292
294
 
293
- const q = a(T);
295
+ var L = M.CommandUtils = void 0;
294
296
 
295
- var F = m();
297
+ const T = g;
296
298
 
297
- const $ = a(F);
299
+ const q = T.__importDefault(f);
298
300
 
299
- var U = {};
301
+ const F = T.__importDefault(n);
300
302
 
301
- var G;
303
+ const $ = a;
302
304
 
303
- function Q() {
304
- if (G) return U;
305
- G = 1;
306
- "use strict";
307
- Object.defineProperty(U, "__esModule", {
308
- value: true
309
- });
310
- U.CommandUtils = void 0;
311
- const t = g;
312
- const e = t.__importDefault(f);
313
- const o = t.__importDefault(n);
314
- const i = l();
315
- const r = u();
316
- const s = h();
317
- class CommandUtils {
318
- static async loadDataSource(t) {
319
- let e;
320
- try {
321
- [e] = await (0, s.importOrRequireFile)(t);
322
- } catch (e) {
323
- throw new Error(`Unable to open file: "${t}". ${e.message}`);
324
- }
325
- if (!e || typeof e !== "object") {
326
- throw new Error(`Given data source file must contain export of a DataSource instance`);
327
- }
328
- if (r.InstanceChecker.isDataSource(e)) {
329
- return e;
330
- }
331
- const o = [];
332
- for (const t in e) {
333
- const i = e[t];
334
- const n = await i;
335
- if (r.InstanceChecker.isDataSource(n)) {
336
- o.push(n);
337
- }
338
- }
339
- if (o.length === 0) {
340
- throw new Error(`Given data source file must contain export of a DataSource instance`);
341
- }
342
- if (o.length > 1) {
343
- throw new Error(`Given data source file must contain only one export of DataSource instance`);
344
- }
345
- return o[0];
305
+ const U = p;
306
+
307
+ const G = c();
308
+
309
+ class CommandUtils {
310
+ static async loadDataSource(t) {
311
+ let e;
312
+ try {
313
+ [e] = await (0, G.importOrRequireFile)(t);
314
+ } catch (e) {
315
+ throw new Error(`Unable to open file: "${t}". ${e.message}`);
346
316
  }
347
- static async createDirectories(t) {
348
- await e.default.mkdir(t, {
349
- recursive: true
350
- });
317
+ if (!e || typeof e !== "object") {
318
+ throw new Error(`Given data source file must contain export of a DataSource instance`);
351
319
  }
352
- static async createFile(t, i, r = true) {
353
- await CommandUtils.createDirectories(o.default.dirname(t));
354
- if (r === false && await CommandUtils.fileExists(t)) {
355
- return;
320
+ if (U.InstanceChecker.isDataSource(e)) {
321
+ return e;
322
+ }
323
+ const o = [];
324
+ for (const t in e) {
325
+ const i = e[t];
326
+ const r = await i;
327
+ if (U.InstanceChecker.isDataSource(r)) {
328
+ o.push(r);
356
329
  }
357
- await e.default.writeFile(t, i);
358
330
  }
359
- static async readFile(t) {
360
- const o = await e.default.readFile(t);
361
- return o.toString();
331
+ if (o.length === 0) {
332
+ throw new Error(`Given data source file must contain export of a DataSource instance`);
362
333
  }
363
- static async fileExists(t) {
364
- try {
365
- await e.default.access(t, e.default.constants.F_OK);
366
- return true;
367
- } catch {
368
- return false;
369
- }
334
+ if (o.length > 1) {
335
+ throw new Error(`Given data source file must contain only one export of DataSource instance`);
370
336
  }
371
- static getTimestamp(t) {
372
- if (t && (isNaN(t) || t < 0)) {
373
- throw new i.TypeORMError(`timestamp option should be a non-negative number. received: ${t}`);
374
- }
375
- return t ? new Date(Number(t)).getTime() : Date.now();
337
+ return o[0];
338
+ }
339
+ static async createDirectories(t) {
340
+ await q.default.mkdir(t, {
341
+ recursive: true
342
+ });
343
+ }
344
+ static async createFile(t, e, o = true) {
345
+ await CommandUtils.createDirectories(F.default.dirname(t));
346
+ if (o === false && await CommandUtils.fileExists(t)) {
347
+ return;
376
348
  }
349
+ await q.default.writeFile(t, e);
350
+ }
351
+ static async readFile(t) {
352
+ const e = await q.default.readFile(t);
353
+ return e.toString();
354
+ }
355
+ static async fileExists(t) {
356
+ try {
357
+ await q.default.access(t, q.default.constants.F_OK);
358
+ return true;
359
+ } catch {
360
+ return false;
361
+ }
362
+ }
363
+ static getTimestamp(t) {
364
+ if (t && (isNaN(t) || t < 0)) {
365
+ throw new $.TypeORMError(`timestamp option should be a non-negative number. received: ${t}`);
366
+ }
367
+ return t ? new Date(Number(t)).getTime() : Date.now();
377
368
  }
378
- U.CommandUtils = CommandUtils;
379
- return U;
380
369
  }
381
370
 
382
- var _ = Q();
371
+ L = M.CommandUtils = CommandUtils;
383
372
 
384
- const J = a(_);
373
+ var Q = m();
385
374
 
386
- var V = d();
375
+ const _ = d(Q);
387
376
 
388
- const H = a(V);
377
+ const {Ansis: J, ansi256: V, fg: H, bgAnsi256: z, bg: W, rgb: K, bgRgb: X, hex: Y, bgHex: Z, reset: tt, inverse: et, hidden: ot, visible: it, bold: rt, dim: nt, italic: st, underline: at, strikethrough: pt, strike: ct, black: mt, red: lt, green: ut, yellow: ht, blue: dt, magenta: gt, cyan: ft, white: jt, grey: yt, gray: bt, blackBright: vt, redBright: xt, greenBright: Et, yellowBright: wt, blueBright: Ot, magentaBright: Pt, cyanBright: At, whiteBright: Ct, bgBlack: St, bgRed: kt, bgGreen: It, bgYellow: Dt, bgBlue: Rt, bgMagenta: Nt, bgCyan: Bt, bgWhite: Mt, bgGrey: Lt, bgGray: Tt, bgBlackBright: qt, bgRedBright: Ft, bgGreenBright: $t, bgYellowBright: Ut, bgBlueBright: Gt, bgMagentaBright: Qt, bgCyanBright: _t, bgWhiteBright: Jt} = _;
389
378
 
390
- const {Ansis: z, ansi256: W, fg: K, bgAnsi256: X, bg: Y, rgb: Z, bgRgb: tt, hex: et, bgHex: ot, reset: it, inverse: rt, hidden: nt, visible: st, bold: at, dim: ct, italic: pt, underline: mt, strikethrough: lt, strike: ut, black: ht, red: dt, green: gt, yellow: ft, blue: jt, magenta: yt, cyan: bt, white: vt, grey: xt, gray: Et, blackBright: wt, redBright: Ot, greenBright: Ct, yellowBright: Pt, blueBright: At, magentaBright: St, cyanBright: kt, whiteBright: It, bgBlack: Dt, bgRed: Rt, bgGreen: Nt, bgYellow: Bt, bgBlue: Mt, bgMagenta: Lt, bgCyan: Tt, bgWhite: qt, bgGrey: Ft, bgGray: $t, bgBlackBright: Ut, bgRedBright: Gt, bgGreenBright: Qt, bgYellowBright: _t, bgBlueBright: Jt, bgMagentaBright: Vt, bgCyanBright: Ht, bgWhiteBright: zt} = H;
391
-
392
- var Wt;
379
+ var Vt;
393
380
 
394
381
  (function(t) {
395
382
  t["Launched"] = "LAUNCHED";
396
383
  t["Done"] = "DONE";
397
384
  t["UncaughtException"] = "UNCAUGHT_EXCEPTION";
398
385
  t["FatalException"] = "FATAL_EXCEPTION";
399
- })(Wt || (Wt = {}));
386
+ })(Vt || (Vt = {}));
400
387
 
401
388
  class Application extends y {
402
389
  constructor() {
@@ -405,10 +392,10 @@ class Application extends y {
405
392
  this.options = {
406
393
  components: {
407
394
  log: {
408
- class: A
395
+ class: C
409
396
  },
410
397
  entrypoint: {
411
- class: P
398
+ class: A
412
399
  }
413
400
  },
414
401
  bootstrap: [ "log" ]
@@ -424,7 +411,7 @@ class Application extends y {
424
411
  this.aliasDeclarations = [];
425
412
  }
426
413
  static async getLogger() {
427
- return this.appInstance ? await this.appInstance.getObject("log") : await (new x).set(A);
414
+ return this.appInstance ? await this.appInstance.getObject("log") : await (new x).set(C);
428
415
  }
429
416
  static env(t) {
430
417
  Object.keys(t).forEach((e => this.environmentVariableMap.set(e, t[e])));
@@ -438,22 +425,22 @@ class Application extends y {
438
425
  return this.launch();
439
426
  }
440
427
  static onLaunched(t) {
441
- this.eventEmitter.once(Wt.Launched, (async e => t(e, await e.getObject("log"))));
428
+ this.eventEmitter.once(Vt.Launched, (async e => t(e, await e.getObject("log"))));
442
429
  return this.launch();
443
430
  }
444
431
  static onDone(t) {
445
- this.eventEmitter.once(Wt.Done, (async e => t(e, await e.getObject("log"))));
432
+ this.eventEmitter.once(Vt.Done, (async e => t(e, await e.getObject("log"))));
446
433
  return this.launch();
447
434
  }
448
435
  static onUncaughtException(t) {
449
- this.eventEmitter.on(Wt.UncaughtException, (async e => {
436
+ this.eventEmitter.on(Vt.UncaughtException, (async e => {
450
437
  const o = await this.getLogger();
451
438
  await t(e, o);
452
439
  }));
453
440
  return this.launch();
454
441
  }
455
442
  static onFatalException(t) {
456
- this.eventEmitter.once(Wt.FatalException, (async e => {
443
+ this.eventEmitter.once(Vt.FatalException, (async e => {
457
444
  const o = await this.getLogger();
458
445
  let i = await t(e, o);
459
446
  if (typeof i !== "number") i = 1;
@@ -469,7 +456,7 @@ class Application extends y {
469
456
  if (this.launchTimeout) clearTimeout(this.launchTimeout);
470
457
  this.launchTimeout = setTimeout((async () => {
471
458
  process.on("uncaughtException", (async t => {
472
- if (this.eventEmitter.listenerCount(Wt.UncaughtException)) return this.eventEmitter.emit(Wt.UncaughtException, t);
459
+ if (this.eventEmitter.listenerCount(Vt.UncaughtException)) return this.eventEmitter.emit(Vt.UncaughtException, t);
473
460
  const e = await this.getLogger();
474
461
  return e.warn(new Error("UncaughtException", {
475
462
  cause: t
@@ -484,7 +471,7 @@ class Application extends y {
484
471
  return this;
485
472
  }
486
473
  static processFatalException(t) {
487
- if (!this.eventEmitter.listenerCount(Wt.FatalException)) {
474
+ if (!this.eventEmitter.listenerCount(Vt.FatalException)) {
488
475
  return process.nextTick((async () => {
489
476
  const e = await this.getLogger();
490
477
  e.error(new Error("FatalException", {
@@ -492,12 +479,12 @@ class Application extends y {
492
479
  }));
493
480
  }));
494
481
  }
495
- this.eventEmitter.emit(Wt.FatalException, t);
482
+ this.eventEmitter.emit(Vt.FatalException, t);
496
483
  }
497
484
  static async launchApplication() {
498
485
  this.eventEmitter.once("exit", (async (t, e) => {
499
486
  try {
500
- await this.eventEmitter.emitRequest(Wt.Done, t);
487
+ await this.eventEmitter.emitRequest(Vt.Done, t);
501
488
  await o.destroy();
502
489
  process.exit(e ? e : 0);
503
490
  } catch (t) {
@@ -525,10 +512,10 @@ class Application extends y {
525
512
  switch (t.toUpperCase()) {
526
513
  case "MIGRATION_GENERATE":
527
514
  {
528
- this.eventEmitter.removeAllListeners(Wt.Launched);
529
- this.eventEmitter.removeAllListeners(Wt.Done);
530
- this.eventEmitter.removeAllListeners(Wt.UncaughtException);
531
- this.eventEmitter.removeAllListeners(Wt.FatalException);
515
+ this.eventEmitter.removeAllListeners(Vt.Launched);
516
+ this.eventEmitter.removeAllListeners(Vt.Done);
517
+ this.eventEmitter.removeAllListeners(Vt.UncaughtException);
518
+ this.eventEmitter.removeAllListeners(Vt.FatalException);
532
519
  const o = process.env[t];
533
520
  const i = t => {
534
521
  const e = [];
@@ -549,7 +536,7 @@ class Application extends y {
549
536
  const n = `GenerateMigration${i}${Date.now()}`;
550
537
  if (!e.providers) e.providers = {};
551
538
  e.providers[n] = {
552
- class: Xt,
539
+ class: zt,
553
540
  path: o,
554
541
  outputJs: false,
555
542
  exitProcess: i === r.length - 1,
@@ -571,7 +558,7 @@ class Application extends y {
571
558
  R(Reflect.getOwnMetadata("#bootstrap", this))?.pop();
572
559
  };
573
560
  e.bind(R(t))();
574
- this.eventEmitter.emit(Wt.Launched, R(t));
561
+ this.eventEmitter.emit(Vt.Launched, R(t));
575
562
  }));
576
563
  o.set(Application, {
577
564
  options: e
@@ -583,13 +570,13 @@ class Application extends y {
583
570
  return O.getAliasInstance();
584
571
  }
585
572
  get appId() {
586
- return C().appId;
573
+ return P().appId;
587
574
  }
588
575
  get appName() {
589
- return C().appName;
576
+ return P().appName;
590
577
  }
591
578
  get timezone() {
592
- return C().timezone;
579
+ return P().timezone;
593
580
  }
594
581
  get uptime() {
595
582
  return Math.floor(process.uptime());
@@ -607,9 +594,9 @@ t([ S(r.Object().pattern(r.String(), r.String()).required()), e("design:type", F
607
594
 
608
595
  t([ S(r.Object().pattern(r.String(), r.String()).required(), r.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], Application, "alias", null);
609
596
 
610
- var Kt;
597
+ var Ht;
611
598
 
612
- let Xt = Kt = class GenerateMigration extends o {
599
+ let zt = Ht = class GenerateMigration extends o {
613
600
  get extension() {
614
601
  return this.outputJs ? ".js" : ".ts";
615
602
  }
@@ -640,31 +627,31 @@ let Xt = Kt = class GenerateMigration extends o {
640
627
  const o = await this.#e.driver.createSchemaBuilder().log();
641
628
  if (this.pretty) {
642
629
  o.upQueries.forEach((t => {
643
- t.query = Kt.prettifyQuery(t.query);
630
+ t.query = Ht.prettifyQuery(t.query);
644
631
  }));
645
632
  o.downQueries.forEach((t => {
646
- t.query = Kt.prettifyQuery(t.query);
633
+ t.query = Ht.prettifyQuery(t.query);
647
634
  }));
648
635
  }
649
636
  o.upQueries.forEach((e => {
650
- t.push(" await queryRunner.query(`" + e.query.replaceAll("`", "\\`") + "`" + Kt.queryParams(e.parameters) + ");");
637
+ t.push(" await queryRunner.query(`" + e.query.replaceAll("`", "\\`") + "`" + Ht.queryParams(e.parameters) + ");");
651
638
  }));
652
639
  o.downQueries.forEach((t => {
653
- e.push(" await queryRunner.query(`" + t.query.replaceAll("`", "\\`") + "`" + Kt.queryParams(t.parameters) + ");");
640
+ e.push(" await queryRunner.query(`" + t.query.replaceAll("`", "\\`") + "`" + Ht.queryParams(t.parameters) + ");");
654
641
  }));
655
642
  } finally {
656
643
  await this.#e.destroy();
657
644
  }
658
645
  if (!t.length) {
659
646
  if (this.check) {
660
- console.log(H.green`No changes in database schema were found`);
647
+ console.log(_.green`No changes in database schema were found`);
661
648
  if (this.exitProcess) {
662
649
  return this.#t.exit(0);
663
650
  } else {
664
651
  return;
665
652
  }
666
653
  } else {
667
- console.log(H.yellow`No changes in database schema were found`);
654
+ console.log(_.yellow`No changes in database schema were found`);
668
655
  if (this.exitProcess) {
669
656
  return this.#t.exit(1);
670
657
  } else {
@@ -672,12 +659,12 @@ let Xt = Kt = class GenerateMigration extends o {
672
659
  }
673
660
  }
674
661
  } else if (!this.path) {
675
- console.log(H.yellow`Please specify a migration path`);
662
+ console.log(_.yellow`Please specify a migration path`);
676
663
  return this.#t.exit(1);
677
664
  }
678
- const o = this.outputJs ? Kt.getJavascriptTemplate(n.basename(this.path), this.timestamp, t, e.reverse(), this.esm) : Kt.getTemplate(n.basename(this.path), this.timestamp, t, e.reverse());
665
+ const o = this.outputJs ? Ht.getJavascriptTemplate(n.basename(this.path), this.timestamp, t, e.reverse(), this.esm) : Ht.getTemplate(n.basename(this.path), this.timestamp, t, e.reverse());
679
666
  if (this.check) {
680
- console.log(H.yellow`Unexpected changes in database schema were found in check mode:\n\n${H.white(o)}`);
667
+ console.log(_.yellow`Unexpected changes in database schema were found in check mode:\n\n${_.white(o)}`);
681
668
  if (this.exitProcess) {
682
669
  return this.#t.exit(0);
683
670
  } else {
@@ -685,11 +672,11 @@ let Xt = Kt = class GenerateMigration extends o {
685
672
  }
686
673
  }
687
674
  if (this.dryRun) {
688
- console.log(H.green(`Migration ${H.blue(this.path + this.extension)} has content:\n\n${H.white(o)}`));
675
+ console.log(_.green(`Migration ${_.blue(this.path + this.extension)} has content:\n\n${_.white(o)}`));
689
676
  } else {
690
677
  const t = n.isAbsolute(this.path) ? n.join(this.path, this.filename) : n.join(process.cwd(), this.path, this.filename);
691
- await _.CommandUtils.createFile(t, o);
692
- console.log(H.green`Migration ${H.blue(t)} has been generated successfully.`);
678
+ await L.createFile(t, o);
679
+ console.log(_.green`Migration ${_.blue(t)} has been generated successfully.`);
693
680
  if (this.exitProcess) {
694
681
  return this.#t.exit(0);
695
682
  } else {
@@ -697,7 +684,7 @@ let Xt = Kt = class GenerateMigration extends o {
697
684
  }
698
685
  }
699
686
  } catch (t) {
700
- F.PlatformTools.logCmdErr("Error during migration generation:", t);
687
+ l.PlatformTools.logCmdErr("Error during migration generation:", t);
701
688
  return this.#t.exit(1);
702
689
  }
703
690
  }
@@ -708,42 +695,42 @@ let Xt = Kt = class GenerateMigration extends o {
708
695
  return `, ${JSON.stringify(t)}`;
709
696
  }
710
697
  static getTemplate(t, e, o, i) {
711
- const r = `${T.camelCase(t, true)}${e}`;
698
+ const r = `${u(t, true)}${e}`;
712
699
  return `import { MigrationInterface, QueryRunner } from "lakutata/orm";\n\nexport class ${r} implements MigrationInterface {\n name = '${r}'\n\n public async up(queryRunner: QueryRunner): Promise<void> {\n${o.join(`\n`)}\n }\n\n public async down(queryRunner: QueryRunner): Promise<void> {\n${i.join(`\n`)}\n }\n\n}\n`;
713
700
  }
714
701
  static getJavascriptTemplate(t, e, o, i, r) {
715
- const n = `${T.camelCase(t, true)}${e}`;
702
+ const n = `${u(t, true)}${e}`;
716
703
  const s = r ? "export" : "module.exports =";
717
704
  return `/**\n * @typedef {import('lakutata/orm').MigrationInterface} MigrationInterface\n * @typedef {import('lakutata/orm').QueryRunner} QueryRunner\n */\n\n/**\n * @class\n * @implements {MigrationInterface}\n */\n${s} class ${n} {\n name = '${n}'\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async up(queryRunner) {\n${o.join(`\n`)}\n }\n\n /**\n * @param {QueryRunner} queryRunner\n */\n async down(queryRunner) {\n${i.join(`\n`)}\n }\n}\n`;
718
705
  }
719
706
  static prettifyQuery(t) {
720
- const e = M.format(t, {
707
+ const e = h.format(t, {
721
708
  indent: " "
722
709
  });
723
710
  return "\n" + e.replace(/^/gm, " ") + "\n ";
724
711
  }
725
712
  };
726
713
 
727
- t([ i(r.String().required()), e("design:type", String) ], Xt.prototype, "path", void 0);
714
+ t([ i(r.String().required()), e("design:type", String) ], zt.prototype, "path", void 0);
728
715
 
729
- t([ i(r.String().allow("").optional().default("")), e("design:type", String) ], Xt.prototype, "dataSourceName", void 0);
716
+ t([ i(r.String().allow("").optional().default("")), e("design:type", String) ], zt.prototype, "dataSourceName", void 0);
730
717
 
731
- t([ i(), e("design:type", Object) ], Xt.prototype, "dataSource", void 0);
718
+ t([ i(), e("design:type", Object) ], zt.prototype, "dataSource", void 0);
732
719
 
733
- t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], Xt.prototype, "pretty", void 0);
720
+ t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], zt.prototype, "pretty", void 0);
734
721
 
735
- t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "outputJs", void 0);
722
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], zt.prototype, "outputJs", void 0);
736
723
 
737
- t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "esm", void 0);
724
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], zt.prototype, "esm", void 0);
738
725
 
739
- t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "dryRun", void 0);
726
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], zt.prototype, "dryRun", void 0);
740
727
 
741
- t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], Xt.prototype, "check", void 0);
728
+ t([ i(r.Boolean().optional().default(false)), e("design:type", Boolean) ], zt.prototype, "check", void 0);
742
729
 
743
- t([ i(r.Number().optional().default((() => Date.now()))), e("design:type", Number) ], Xt.prototype, "timestamp", void 0);
730
+ t([ i(r.Number().optional().default((() => Date.now()))), e("design:type", Number) ], zt.prototype, "timestamp", void 0);
744
731
 
745
- t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], Xt.prototype, "exitProcess", void 0);
732
+ t([ i(r.Boolean().optional().default(true)), e("design:type", Boolean) ], zt.prototype, "exitProcess", void 0);
746
733
 
747
- Xt = Kt = t([ j() ], Xt);
734
+ zt = Ht = t([ j() ], zt);
748
735
 
749
- export { Application, Wt as ApplicationState, Xt as G };
736
+ export { Application, Vt as ApplicationState, zt as G };
@@ -4,17 +4,23 @@ Object.defineProperty(exports, Symbol.toStringTag, {
4
4
  value: "Module"
5
5
  });
6
6
 
7
- const t = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "search", "section", "select", "selectedcontent", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ];
7
+ const t = require("../../../vendor/Package.5.cjs");
8
8
 
9
- const e = [ "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr" ];
9
+ const e = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ];
10
10
 
11
- const o = /\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i;
11
+ "use strict";
12
+
13
+ var r = e;
14
+
15
+ const o = t.getDefaultExportFromCjs(r);
16
+
17
+ const a = /\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i;
12
18
 
13
- const a = new RegExp(t.map((t => `<${t}\\b[^>]*>`)).join("|"), "i");
19
+ const s = new RegExp(o.map((t => `<${t}\\b[^>]*>`)).join("|"), "i");
14
20
 
15
- function r(t) {
21
+ function i(t) {
16
22
  t = t.trim().slice(0, 1e3);
17
- return o.test(t) || a.test(t);
23
+ return a.test(t) || s.test(t);
18
24
  }
19
25
 
20
- exports.IsHtml = r;
26
+ exports.IsHtml = i;
@@ -1,14 +1,20 @@
1
- const t = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "search", "section", "select", "selectedcontent", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ];
1
+ import { g as t } from "../../../vendor/Package.5.mjs";
2
2
 
3
- const e = [ "area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr" ];
3
+ const e = [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr" ];
4
4
 
5
- const a = /\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i;
5
+ "use strict";
6
6
 
7
- const o = new RegExp(t.map((t => `<${t}\\b[^>]*>`)).join("|"), "i");
7
+ var a = e;
8
8
 
9
- function r(t) {
9
+ const o = t(a);
10
+
11
+ const r = /\s?<!doctype html>|(<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>)+/i;
12
+
13
+ const s = new RegExp(o.map((t => `<${t}\\b[^>]*>`)).join("|"), "i");
14
+
15
+ function i(t) {
10
16
  t = t.trim().slice(0, 1e3);
11
- return a.test(t) || o.test(t);
17
+ return r.test(t) || s.test(t);
12
18
  }
13
19
 
14
- export { r as IsHtml };
20
+ export { i as IsHtml };