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
package/com/database.cjs CHANGED
@@ -174,11 +174,21 @@ require("buffer");
174
174
 
175
175
  require("tty");
176
176
 
177
- require("string_decoder");
178
-
179
177
  require("../vendor/Package.73.cjs");
180
178
 
181
- require("fs/promises");
179
+ require("node:url");
180
+
181
+ require("node:path");
182
+
183
+ require("node:fs");
184
+
185
+ require("node:fs/promises");
186
+
187
+ require("node:events");
188
+
189
+ require("node:stream");
190
+
191
+ require("node:string_decoder");
182
192
 
183
193
  exports.BuildDatabaseOptions = e.BuildDatabaseOptions;
184
194
 
package/com/database.mjs CHANGED
@@ -168,8 +168,18 @@ import "buffer";
168
168
 
169
169
  import "tty";
170
170
 
171
- import "string_decoder";
172
-
173
171
  import "../vendor/Package.73.mjs";
174
172
 
175
- import "fs/promises";
173
+ import "node:url";
174
+
175
+ import "node:path";
176
+
177
+ import "node:fs";
178
+
179
+ import "node:fs/promises";
180
+
181
+ import "node:events";
182
+
183
+ import "node:stream";
184
+
185
+ import "node:string_decoder";
package/com/docker.cjs CHANGED
@@ -302,10 +302,10 @@ require("buffer");
302
302
 
303
303
  require("tty");
304
304
 
305
- require("string_decoder");
306
-
307
305
  require("assert");
308
306
 
307
+ require("string_decoder");
308
+
309
309
  require("tls");
310
310
 
311
311
  require("dns");
@@ -316,6 +316,10 @@ require("../vendor/Package.74.cjs");
316
316
 
317
317
  require("constants");
318
318
 
319
+ require("process");
320
+
321
+ require("http2");
322
+
319
323
  require("../src/decorators/di/Inject.cjs");
320
324
 
321
325
  Object.defineProperty(exports, "Docker", {
package/com/docker.d.ts CHANGED
@@ -903,12 +903,14 @@ declare namespace Dockerode {
903
903
  abortSignal?: AbortSignal;
904
904
  /**
905
905
  * Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
906
+ * A dictionary of key/value list is also accepted.
906
907
  */
907
- filters?: string;
908
+ filters?: string | { [key: string]: string[] };
908
909
  }
909
910
 
910
911
  interface VolumeRemoveOptions {
911
912
  abortSignal?: AbortSignal;
913
+ force?: boolean | undefined;
912
914
  }
913
915
 
914
916
  interface VolumeCreateResponse {
@@ -1085,8 +1087,9 @@ declare namespace Dockerode {
1085
1087
  interface NetworkListOptions {
1086
1088
  /**
1087
1089
  * JSON encoded value of the filters (a `map[string][]string`) to process on the networks list.
1090
+ * A dictionary of key/value list is also accepted.
1088
1091
  */
1089
- filters?: string;
1092
+ filters?: string | { [key: string]: string[] };
1090
1093
  abortSignal?: AbortSignal;
1091
1094
  }
1092
1095
 
@@ -1108,9 +1111,9 @@ declare namespace Dockerode {
1108
1111
  interface VolumeListOptions {
1109
1112
  abortSignal?: AbortSignal;
1110
1113
  /**
1111
- * A JSON encoded value of the filters (a map[string][]string) to process on the images list.
1114
+ * A JSON encoded value of the filters (a map[string][]string) to process on the volume list.
1112
1115
  */
1113
- filters?: string;
1116
+ filters?: string | { [key: string]: string[] };
1114
1117
  /**
1115
1118
  * Show digest information as a RepoDigests field on each image.
1116
1119
  * @default false
@@ -1408,6 +1411,13 @@ declare namespace Dockerode {
1408
1411
  target?: string | undefined;
1409
1412
  outputs?: string | undefined;
1410
1413
  nocache?: boolean | undefined;
1414
+
1415
+ /**
1416
+ * Version of the builder backend to use.
1417
+ * - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
1418
+ * - `2` is [BuildKit](https://github.com/moby/buildkit)
1419
+ */
1420
+ version?: "1" | "2" | undefined;
1411
1421
  }
1412
1422
 
1413
1423
  interface ImageDistributionOptions {
@@ -1434,9 +1444,13 @@ declare namespace Dockerode {
1434
1444
  }
1435
1445
 
1436
1446
  interface AuthConfig {
1437
- username: string;
1438
- password: string;
1439
- serveraddress: string;
1447
+ username?: string;
1448
+ password?: string;
1449
+ auth?: string;
1450
+ serveraddress?: string;
1451
+ identitytoken?: string;
1452
+ registrytoken?: string;
1453
+ /** @deprecated */
1440
1454
  email?: string | undefined;
1441
1455
  }
1442
1456
 
@@ -1531,6 +1545,7 @@ declare namespace Dockerode {
1531
1545
  User?: string | undefined;
1532
1546
  WorkingDir?: string | undefined;
1533
1547
  abortSignal?: AbortSignal;
1548
+ ConsoleSize?: [number, number];
1534
1549
  }
1535
1550
 
1536
1551
  interface ExecInspectInfo {
@@ -1592,6 +1607,7 @@ declare namespace Dockerode {
1592
1607
  Name: string;
1593
1608
  Options: { [option: string]: string };
1594
1609
  };
1610
+ Subpath?: string;
1595
1611
  }
1596
1612
  | undefined;
1597
1613
  TmpfsOptions?:
@@ -1674,6 +1690,7 @@ declare namespace Dockerode {
1674
1690
  timeout?: number | undefined;
1675
1691
  version?: string | undefined;
1676
1692
  sshAuthAgent?: string | undefined;
1693
+ sshOptions?: ConnectConfig | undefined;
1677
1694
  Promise?: typeof Promise | undefined;
1678
1695
  }
1679
1696
 
@@ -1997,8 +2014,9 @@ declare namespace Dockerode {
1997
2014
  size?: boolean;
1998
2015
  /**
1999
2016
  * Filters to process on the container list, encoded as JSON (a map[string][]string).
2017
+ * A dictionary of key/value list is also accepted.
2000
2018
  */
2001
- filters?: string;
2019
+ filters?: string | { [key: string]: string[] };
2002
2020
  }
2003
2021
 
2004
2022
  interface ServiceListOptions {
@@ -2263,7 +2281,7 @@ declare namespace Dockerode {
2263
2281
 
2264
2282
  interface ListImagesOptions {
2265
2283
  all?: boolean | undefined;
2266
- filters?: string | undefined;
2284
+ filters?: string | { [key: string]: string[] } | undefined;
2267
2285
  digests?: boolean | undefined;
2268
2286
  abortSignal?: AbortSignal;
2269
2287
  }
@@ -2555,8 +2573,8 @@ declare class Dockerode {
2555
2573
  getEvents(callback: Callback<NodeJS.ReadableStream>): void;
2556
2574
  getEvents(options?: Dockerode.GetEventsOptions): Promise<NodeJS.ReadableStream>;
2557
2575
 
2558
- pull(repoTag: string, options: {}, callback: Callback<any>, auth?: {}): Dockerode.Image;
2559
- pull(repoTag: string, options?: {}): Promise<any>;
2576
+ pull(repoTag: string, options: {}, callback: Callback<NodeJS.ReadableStream>, auth?: {}): Dockerode.Image;
2577
+ pull(repoTag: string, options?: {}): Promise<NodeJS.ReadableStream>;
2560
2578
 
2561
2579
  run(
2562
2580
  image: string,
package/com/docker.mjs CHANGED
@@ -296,10 +296,10 @@ import "buffer";
296
296
 
297
297
  import "tty";
298
298
 
299
- import "string_decoder";
300
-
301
299
  import "assert";
302
300
 
301
+ import "string_decoder";
302
+
303
303
  import "tls";
304
304
 
305
305
  import "dns";
@@ -310,4 +310,8 @@ import "../vendor/Package.74.mjs";
310
310
 
311
311
  import "constants";
312
312
 
313
+ import "process";
314
+
315
+ import "http2";
316
+
313
317
  import "../src/decorators/di/Inject.mjs";
package/com/logger.cjs CHANGED
@@ -166,10 +166,10 @@ require("buffer");
166
166
 
167
167
  require("tty");
168
168
 
169
- require("string_decoder");
170
-
171
169
  require("assert");
172
170
 
171
+ require("string_decoder");
172
+
173
173
  require("node:stream");
174
174
 
175
175
  Object.defineProperty(exports, "Logger", {
package/com/logger.mjs CHANGED
@@ -160,8 +160,8 @@ import "buffer";
160
160
 
161
161
  import "tty";
162
162
 
163
- import "string_decoder";
164
-
165
163
  import "assert";
166
164
 
165
+ import "string_decoder";
166
+
167
167
  import "node:stream";
package/decorator/orm.cjs CHANGED
@@ -40,9 +40,9 @@ const p = require("../src/decorators/orm/DeleteDateColumn.cjs");
40
40
 
41
41
  const f = require("../src/decorators/orm/Entity.cjs");
42
42
 
43
- const y = require("../src/decorators/orm/EventSubscriber.cjs");
43
+ const q = require("../src/decorators/orm/EventSubscriber.cjs");
44
44
 
45
- const q = require("../src/decorators/orm/Exclusion.cjs");
45
+ const y = require("../src/decorators/orm/Exclusion.cjs");
46
46
 
47
47
  const P = require("../src/decorators/orm/Generated.cjs");
48
48
 
@@ -68,9 +68,9 @@ const B = require("../src/decorators/orm/PrimaryGeneratedColumn.cjs");
68
68
 
69
69
  const E = require("../src/decorators/orm/RelationId.cjs");
70
70
 
71
- const k = require("../src/decorators/orm/TableInheritance.cjs");
71
+ const h = require("../src/decorators/orm/TableInheritance.cjs");
72
72
 
73
- const h = require("../src/decorators/orm/Tree.cjs");
73
+ const k = require("../src/decorators/orm/Tree.cjs");
74
74
 
75
75
  const M = require("../src/decorators/orm/TreeChildren.cjs");
76
76
 
@@ -124,8 +124,6 @@ require("buffer");
124
124
 
125
125
  require("tty");
126
126
 
127
- require("string_decoder");
128
-
129
127
  require("../vendor/Package.6.cjs");
130
128
 
131
129
  require("url");
@@ -134,7 +132,19 @@ require("util");
134
132
 
135
133
  require("../vendor/Package.73.cjs");
136
134
 
137
- require("fs/promises");
135
+ require("node:url");
136
+
137
+ require("node:path");
138
+
139
+ require("node:fs");
140
+
141
+ require("node:fs/promises");
142
+
143
+ require("node:events");
144
+
145
+ require("node:stream");
146
+
147
+ require("node:string_decoder");
138
148
 
139
149
  Object.defineProperty(exports, "AfterRecover", {
140
150
  enumerable: true,
@@ -223,12 +233,12 @@ Object.defineProperty(exports, "Entity", {
223
233
 
224
234
  Object.defineProperty(exports, "EventSubscriber", {
225
235
  enumerable: true,
226
- get: () => y.EventSubscriber
236
+ get: () => q.EventSubscriber
227
237
  });
228
238
 
229
239
  Object.defineProperty(exports, "Exclusion", {
230
240
  enumerable: true,
231
- get: () => q.Exclusion
241
+ get: () => y.Exclusion
232
242
  });
233
243
 
234
244
  Object.defineProperty(exports, "Generated", {
@@ -293,12 +303,12 @@ Object.defineProperty(exports, "RelationId", {
293
303
 
294
304
  Object.defineProperty(exports, "TableInheritance", {
295
305
  enumerable: true,
296
- get: () => k.TableInheritance
306
+ get: () => h.TableInheritance
297
307
  });
298
308
 
299
309
  Object.defineProperty(exports, "Tree", {
300
310
  enumerable: true,
301
- get: () => h.Tree
311
+ get: () => k.Tree
302
312
  });
303
313
 
304
314
  Object.defineProperty(exports, "TreeChildren", {
package/decorator/orm.mjs CHANGED
@@ -118,8 +118,6 @@ import "buffer";
118
118
 
119
119
  import "tty";
120
120
 
121
- import "string_decoder";
122
-
123
121
  import "../vendor/Package.6.mjs";
124
122
 
125
123
  import "url";
@@ -128,4 +126,16 @@ import "util";
128
126
 
129
127
  import "../vendor/Package.73.mjs";
130
128
 
131
- import "fs/promises";
129
+ import "node:url";
130
+
131
+ import "node:path";
132
+
133
+ import "node:fs";
134
+
135
+ import "node:fs/promises";
136
+
137
+ import "node:events";
138
+
139
+ import "node:stream";
140
+
141
+ import "node:string_decoder";
package/helper.cjs CHANGED
@@ -48,11 +48,11 @@ const S = require("./src/lib/helpers/ObjectParentConstructor.cjs");
48
48
 
49
49
  const y = require("./src/lib/helpers/ObjectParentConstructors.cjs");
50
50
 
51
- const T = require("./src/lib/helpers/ObjectPrototype.cjs");
51
+ const d = require("./src/lib/helpers/ObjectPrototype.cjs");
52
52
 
53
- const P = require("./src/lib/helpers/SetToArray.cjs");
53
+ const T = require("./src/lib/helpers/SetToArray.cjs");
54
54
 
55
- const d = require("./src/lib/helpers/Templating.cjs");
55
+ const P = require("./src/lib/helpers/Templating.cjs");
56
56
 
57
57
  const E = require("./src/lib/helpers/UniqueArray.cjs");
58
58
 
@@ -150,15 +150,15 @@ require("node:stream");
150
150
 
151
151
  require("./vendor/Package.73.cjs");
152
152
 
153
- require("path");
153
+ require("node:url");
154
154
 
155
- require("fs/promises");
155
+ require("node:path");
156
156
 
157
- require("events");
157
+ require("node:fs");
158
158
 
159
- require("stream");
159
+ require("node:events");
160
160
 
161
- require("string_decoder");
161
+ require("node:string_decoder");
162
162
 
163
163
  require("./src/lib/base/internal/IEEE754.cjs");
164
164
 
@@ -214,13 +214,13 @@ exports.ObjectParentConstructor = S.ObjectParentConstructor;
214
214
 
215
215
  exports.ObjectParentConstructors = y.ObjectParentConstructors;
216
216
 
217
- exports.ObjectPrototype = T.ObjectPrototype;
217
+ exports.ObjectPrototype = d.ObjectPrototype;
218
218
 
219
- exports.SetToArray = P.SetToArray;
219
+ exports.SetToArray = T.SetToArray;
220
220
 
221
- exports.MissingValueError = d.MissingValueError;
221
+ exports.MissingValueError = P.MissingValueError;
222
222
 
223
- exports.Templating = d.Templating;
223
+ exports.Templating = P.Templating;
224
224
 
225
225
  exports.UniqueArray = E.UniqueArray;
226
226