lakutata 2.0.12 → 2.0.13

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 (140) hide show
  1. package/com/database.cjs +13 -3
  2. package/com/database.mjs +13 -3
  3. package/com/docker.cjs +6 -2
  4. package/com/docker.d.ts +29 -11
  5. package/com/docker.mjs +6 -2
  6. package/com/logger.cjs +2 -2
  7. package/com/logger.mjs +2 -2
  8. package/decorator/orm.cjs +21 -11
  9. package/decorator/orm.mjs +13 -3
  10. package/helper.cjs +12 -12
  11. package/helper.d.ts +559 -82
  12. package/helper.mjs +5 -5
  13. package/lakutata.cjs +2 -2
  14. package/lakutata.mjs +2 -2
  15. package/orm.cjs +13 -3
  16. package/orm.mjs +39 -29
  17. package/package.json +2 -4
  18. package/src/components/Database.cjs +17 -7
  19. package/src/components/Database.mjs +13 -3
  20. package/src/components/Logger.cjs +2 -2
  21. package/src/components/Logger.mjs +2 -2
  22. package/src/components/docker/ConnectionOptionsBuilder.cjs +6 -2
  23. package/src/components/docker/ConnectionOptionsBuilder.mjs +6 -2
  24. package/src/components/docker/Docker.cjs +8 -3
  25. package/src/components/docker/Docker.mjs +8 -3
  26. package/src/components/docker/lib/DockerContainer.cjs +10 -6
  27. package/src/components/docker/lib/DockerContainer.mjs +6 -2
  28. package/src/components/docker/lib/DockerContainerTTY.cjs +6 -2
  29. package/src/components/docker/lib/DockerContainerTTY.mjs +6 -2
  30. package/src/decorators/orm/AfterInsert.cjs +13 -3
  31. package/src/decorators/orm/AfterInsert.mjs +17 -7
  32. package/src/decorators/orm/AfterLoad.cjs +17 -7
  33. package/src/decorators/orm/AfterLoad.mjs +13 -3
  34. package/src/decorators/orm/AfterRecover.cjs +17 -7
  35. package/src/decorators/orm/AfterRecover.mjs +17 -7
  36. package/src/decorators/orm/AfterRemove.cjs +17 -7
  37. package/src/decorators/orm/AfterRemove.mjs +22 -12
  38. package/src/decorators/orm/AfterSoftRemove.cjs +13 -3
  39. package/src/decorators/orm/AfterSoftRemove.mjs +24 -14
  40. package/src/decorators/orm/AfterUpdate.cjs +13 -3
  41. package/src/decorators/orm/AfterUpdate.mjs +22 -12
  42. package/src/decorators/orm/BeforeInsert.cjs +17 -7
  43. package/src/decorators/orm/BeforeInsert.mjs +17 -7
  44. package/src/decorators/orm/BeforeRecover.cjs +17 -7
  45. package/src/decorators/orm/BeforeRecover.mjs +22 -12
  46. package/src/decorators/orm/BeforeRemove.cjs +17 -7
  47. package/src/decorators/orm/BeforeRemove.mjs +17 -7
  48. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -7
  49. package/src/decorators/orm/BeforeSoftRemove.mjs +23 -13
  50. package/src/decorators/orm/BeforeUpdate.cjs +17 -7
  51. package/src/decorators/orm/BeforeUpdate.mjs +22 -12
  52. package/src/decorators/orm/Check.cjs +18 -8
  53. package/src/decorators/orm/Check.mjs +13 -3
  54. package/src/decorators/orm/ChildEntity.cjs +13 -3
  55. package/src/decorators/orm/ChildEntity.mjs +13 -3
  56. package/src/decorators/orm/Column.cjs +26 -16
  57. package/src/decorators/orm/Column.mjs +23 -13
  58. package/src/decorators/orm/CreateDateColumn.cjs +19 -9
  59. package/src/decorators/orm/CreateDateColumn.mjs +24 -14
  60. package/src/decorators/orm/DeleteDateColumn.cjs +19 -9
  61. package/src/decorators/orm/DeleteDateColumn.mjs +23 -13
  62. package/src/decorators/orm/Entity.cjs +26 -16
  63. package/src/decorators/orm/Entity.mjs +32 -22
  64. package/src/decorators/orm/EventSubscriber.cjs +13 -3
  65. package/src/decorators/orm/EventSubscriber.mjs +18 -8
  66. package/src/decorators/orm/Exclusion.cjs +21 -11
  67. package/src/decorators/orm/Exclusion.mjs +21 -11
  68. package/src/decorators/orm/Generated.cjs +13 -3
  69. package/src/decorators/orm/Generated.mjs +13 -3
  70. package/src/decorators/orm/Index.cjs +22 -12
  71. package/src/decorators/orm/Index.mjs +27 -17
  72. package/src/decorators/orm/JoinColumn.cjs +19 -9
  73. package/src/decorators/orm/JoinColumn.mjs +27 -17
  74. package/src/decorators/orm/JoinTable.cjs +13 -3
  75. package/src/decorators/orm/JoinTable.mjs +29 -19
  76. package/src/decorators/orm/ManyToMany.cjs +25 -15
  77. package/src/decorators/orm/ManyToMany.mjs +26 -16
  78. package/src/decorators/orm/ManyToOne.cjs +25 -15
  79. package/src/decorators/orm/ManyToOne.mjs +26 -16
  80. package/src/decorators/orm/ObjectIdColumn.cjs +13 -3
  81. package/src/decorators/orm/ObjectIdColumn.mjs +26 -16
  82. package/src/decorators/orm/OneToMany.cjs +21 -11
  83. package/src/decorators/orm/OneToMany.mjs +22 -12
  84. package/src/decorators/orm/OneToOne.cjs +16 -6
  85. package/src/decorators/orm/OneToOne.mjs +36 -26
  86. package/src/decorators/orm/PrimaryColumn.cjs +23 -13
  87. package/src/decorators/orm/PrimaryColumn.mjs +24 -14
  88. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +32 -22
  89. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +18 -8
  90. package/src/decorators/orm/RelationId.cjs +19 -9
  91. package/src/decorators/orm/RelationId.mjs +18 -8
  92. package/src/decorators/orm/TableInheritance.cjs +17 -7
  93. package/src/decorators/orm/TableInheritance.mjs +26 -16
  94. package/src/decorators/orm/Tree.cjs +13 -3
  95. package/src/decorators/orm/Tree.mjs +26 -16
  96. package/src/decorators/orm/TreeChildren.cjs +15 -5
  97. package/src/decorators/orm/TreeChildren.mjs +18 -8
  98. package/src/decorators/orm/TreeLevelColumn.cjs +13 -3
  99. package/src/decorators/orm/TreeLevelColumn.mjs +20 -10
  100. package/src/decorators/orm/TreeParent.cjs +19 -9
  101. package/src/decorators/orm/TreeParent.mjs +13 -3
  102. package/src/decorators/orm/Unique.cjs +29 -19
  103. package/src/decorators/orm/Unique.mjs +30 -20
  104. package/src/decorators/orm/UpdateDateColumn.cjs +19 -9
  105. package/src/decorators/orm/UpdateDateColumn.mjs +25 -15
  106. package/src/decorators/orm/VersionColumn.cjs +13 -3
  107. package/src/decorators/orm/VersionColumn.mjs +26 -16
  108. package/src/decorators/orm/ViewColumn.cjs +13 -3
  109. package/src/decorators/orm/ViewColumn.mjs +26 -16
  110. package/src/decorators/orm/ViewEntity.cjs +27 -17
  111. package/src/decorators/orm/ViewEntity.mjs +19 -9
  112. package/src/decorators/orm/VirtualColumn.cjs +18 -8
  113. package/src/decorators/orm/VirtualColumn.mjs +30 -20
  114. package/src/lib/base/internal/PatternManager.cjs +2 -2
  115. package/src/lib/base/internal/PatternManager.mjs +2 -2
  116. package/src/lib/core/Application.cjs +2 -2
  117. package/src/lib/core/Application.mjs +2 -2
  118. package/src/lib/helpers/Glob.cjs +1220 -1149
  119. package/src/lib/helpers/Glob.mjs +769 -700
  120. package/src/lib/helpers/IsXML.cjs +863 -801
  121. package/src/lib/helpers/IsXML.mjs +862 -800
  122. package/src/lib/ioc/ListModules.cjs +967 -909
  123. package/src/lib/ioc/ListModules.mjs +849 -791
  124. package/src/lib/validation/VLD.cjs +20 -10
  125. package/src/lib/validation/VLD.mjs +20 -10
  126. package/vendor/Package.1.cjs +170 -129
  127. package/vendor/Package.1.mjs +169 -128
  128. package/vendor/Package.13.cjs +0 -2
  129. package/vendor/Package.13.mjs +0 -2
  130. package/vendor/Package.14.cjs +8756 -8658
  131. package/vendor/Package.14.mjs +8665 -8581
  132. package/vendor/Package.16.cjs +36855 -15590
  133. package/vendor/Package.16.mjs +36893 -15633
  134. package/vendor/Package.2.cjs +2442 -2440
  135. package/vendor/Package.2.mjs +444 -442
  136. package/vendor/Package.4.cjs +325 -319
  137. package/vendor/Package.4.mjs +326 -320
  138. package/vendor/Package.7.cjs +299 -299
  139. package/vendor/Package.7.mjs +299 -299
  140. package/vendor/TypeDef.5.d.ts +6 -0
@@ -32,8 +32,6 @@ import "buffer";
32
32
 
33
33
  import "tty";
34
34
 
35
- import "string_decoder";
36
-
37
35
  import "../../../vendor/Package.6.mjs";
38
36
 
39
37
  import "url";
@@ -42,7 +40,19 @@ import "util";
42
40
 
43
41
  import "../../../vendor/Package.73.mjs";
44
42
 
45
- import "fs/promises";
43
+ import "node:url";
44
+
45
+ import "node:path";
46
+
47
+ import "node:fs";
48
+
49
+ import "node:fs/promises";
50
+
51
+ import "node:events";
52
+
53
+ import "node:stream";
54
+
55
+ import "node:string_decoder";
46
56
 
47
57
  var r = {};
48
58
 
@@ -54,15 +64,15 @@ Object.defineProperty(r, "__esModule", {
54
64
 
55
65
  var o = r.ViewEntity = void 0;
56
66
 
57
- const a = e();
67
+ const i = e();
58
68
 
59
- const i = t;
69
+ const a = t;
60
70
 
61
- function s(e, t) {
62
- const r = (i.ObjectUtils.isObject(e) ? e : t) || {};
71
+ function n(e, t) {
72
+ const r = (a.ObjectUtils.isObject(e) ? e : t) || {};
63
73
  const o = typeof e === "string" ? e : r.name;
64
74
  return function(e) {
65
- (0, a.getMetadataArgsStorage)().tables.push({
75
+ (0, i.getMetadataArgsStorage)().tables.push({
66
76
  target: e,
67
77
  name: o,
68
78
  expression: r.expression,
@@ -76,6 +86,6 @@ function s(e, t) {
76
86
  };
77
87
  }
78
88
 
79
- o = r.ViewEntity = s;
89
+ o = r.ViewEntity = n;
80
90
 
81
91
  export { o as ViewEntity };
@@ -38,8 +38,6 @@ require("buffer");
38
38
 
39
39
  require("tty");
40
40
 
41
- require("string_decoder");
42
-
43
41
  require("../../../vendor/Package.6.cjs");
44
42
 
45
43
  require("url");
@@ -48,7 +46,19 @@ require("util");
48
46
 
49
47
  require("../../../vendor/Package.73.cjs");
50
48
 
51
- require("fs/promises");
49
+ require("node:url");
50
+
51
+ require("node:path");
52
+
53
+ require("node:fs");
54
+
55
+ require("node:fs/promises");
56
+
57
+ require("node:events");
58
+
59
+ require("node:stream");
60
+
61
+ require("node:string_decoder");
52
62
 
53
63
  var r = {};
54
64
 
@@ -66,19 +76,19 @@ const o = e.requireGlobals();
66
76
 
67
77
  function u(e, r) {
68
78
  return function(u, i) {
69
- let a;
79
+ let n;
70
80
  if (typeof e === "string") {
71
- a = e;
81
+ n = e;
72
82
  } else {
73
83
  r = e;
74
- a = r.type;
84
+ n = r.type;
75
85
  }
76
86
  if (!r?.query) {
77
87
  throw new Error("Column options must be defined for calculated columns.");
78
88
  }
79
89
  const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", u, i) : undefined;
80
- if (!a && s) a = s;
81
- if (a) r.type = a;
90
+ if (!n && s) n = s;
91
+ if (n) r.type = n;
82
92
  if (r.type === "hstore" && !r.hstoreType) r.hstoreType = s === Object ? "object" : "string";
83
93
  if (!r.type) throw new t.ColumnTypeUndefinedError(u, i);
84
94
  (0, o.getMetadataArgsStorage)().columns.push({
@@ -32,8 +32,6 @@ import "buffer";
32
32
 
33
33
  import "tty";
34
34
 
35
- import "string_decoder";
36
-
37
35
  import "../../../vendor/Package.6.mjs";
38
36
 
39
37
  import "url";
@@ -42,48 +40,60 @@ import "util";
42
40
 
43
41
  import "../../../vendor/Package.73.mjs";
44
42
 
45
- import "fs/promises";
43
+ import "node:url";
44
+
45
+ import "node:path";
46
+
47
+ import "node:fs";
48
+
49
+ import "node:fs/promises";
50
+
51
+ import "node:events";
52
+
53
+ import "node:stream";
54
+
55
+ import "node:string_decoder";
46
56
 
47
- var r = {};
57
+ var o = {};
48
58
 
49
59
  "use strict";
50
60
 
51
- Object.defineProperty(r, "__esModule", {
61
+ Object.defineProperty(o, "__esModule", {
52
62
  value: true
53
63
  });
54
64
 
55
- var o = r.VirtualColumn = void 0;
65
+ var r = o.VirtualColumn = void 0;
56
66
 
57
67
  const i = e;
58
68
 
59
69
  const m = t();
60
70
 
61
- function a(e, t) {
62
- return function(r, o) {
63
- let a;
71
+ function p(e, t) {
72
+ return function(o, r) {
73
+ let p;
64
74
  if (typeof e === "string") {
65
- a = e;
75
+ p = e;
66
76
  } else {
67
77
  t = e;
68
- a = t.type;
78
+ p = t.type;
69
79
  }
70
80
  if (!t?.query) {
71
81
  throw new Error("Column options must be defined for calculated columns.");
72
82
  }
73
- const p = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", r, o) : undefined;
74
- if (!a && p) a = p;
75
- if (a) t.type = a;
76
- if (t.type === "hstore" && !t.hstoreType) t.hstoreType = p === Object ? "object" : "string";
77
- if (!t.type) throw new i.ColumnTypeUndefinedError(r, o);
83
+ const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", o, r) : undefined;
84
+ if (!p && n) p = n;
85
+ if (p) t.type = p;
86
+ if (t.type === "hstore" && !t.hstoreType) t.hstoreType = n === Object ? "object" : "string";
87
+ if (!t.type) throw new i.ColumnTypeUndefinedError(o, r);
78
88
  (0, m.getMetadataArgsStorage)().columns.push({
79
- target: r.constructor,
80
- propertyName: o,
89
+ target: o.constructor,
90
+ propertyName: r,
81
91
  mode: "virtual-property",
82
92
  options: t || {}
83
93
  });
84
94
  };
85
95
  }
86
96
 
87
- o = r.VirtualColumn = a;
97
+ r = o.VirtualColumn = p;
88
98
 
89
- export { o as VirtualColumn };
99
+ export { r as VirtualColumn };
@@ -475,7 +475,8 @@ var N = t.exports;
475
475
  Object.defineProperty(t, "__esModule", {
476
476
  value: true
477
477
  });
478
- t.Gex = t.Patrun = void 0;
478
+ t.Gex = void 0;
479
+ t.Patrun = s;
479
480
  const r = i;
480
481
  Object.defineProperty(t, "Gex", {
481
482
  enumerable: true,
@@ -826,7 +827,6 @@ var N = t.exports;
826
827
  };
827
828
  return t;
828
829
  }
829
- t.Patrun = s;
830
830
  function a(e) {
831
831
  return new s(e);
832
832
  }
@@ -469,7 +469,8 @@ var b = r.exports;
469
469
  Object.defineProperty(t, "__esModule", {
470
470
  value: true
471
471
  });
472
- t.Gex = t.Patrun = void 0;
472
+ t.Gex = void 0;
473
+ t.Patrun = i;
473
474
  const r = s;
474
475
  Object.defineProperty(t, "Gex", {
475
476
  enumerable: true,
@@ -820,7 +821,6 @@ var b = r.exports;
820
821
  };
821
822
  return t;
822
823
  }
823
- t.Patrun = i;
824
824
  function l(e) {
825
825
  return new i(e);
826
826
  }
@@ -246,10 +246,10 @@ require("buffer");
246
246
 
247
247
  require("tty");
248
248
 
249
- require("string_decoder");
250
-
251
249
  require("assert");
252
250
 
251
+ require("string_decoder");
252
+
253
253
  require("node:stream");
254
254
 
255
255
  const g = e => e && e.__esModule ? e : {
@@ -240,10 +240,10 @@ import "buffer";
240
240
 
241
241
  import "tty";
242
242
 
243
- import "string_decoder";
244
-
245
243
  import "assert";
246
244
 
245
+ import "string_decoder";
246
+
247
247
  import "node:stream";
248
248
 
249
249
  var f;