lakutata 2.0.65 → 2.0.67

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 (213) hide show
  1. package/com/cacher.cjs +1 -1
  2. package/com/cacher.d.ts +4 -4
  3. package/com/cacher.mjs +1 -1
  4. package/com/database.cjs +0 -2
  5. package/com/database.d.ts +4 -4
  6. package/com/database.mjs +0 -2
  7. package/com/docker.d.ts +5 -5
  8. package/com/entrypoint.cjs +3 -1
  9. package/com/entrypoint.d.ts +2 -2
  10. package/com/entrypoint.mjs +3 -1
  11. package/com/logger.d.ts +1 -1
  12. package/com/monitor.d.ts +2 -2
  13. package/decorator/asst.d.ts +1 -1
  14. package/decorator/ctrl.cjs +3 -1
  15. package/decorator/ctrl.d.ts +4 -4
  16. package/decorator/ctrl.mjs +3 -1
  17. package/decorator/di.d.ts +3 -3
  18. package/decorator/dto.d.ts +3 -3
  19. package/decorator/orm.cjs +86 -88
  20. package/decorator/orm.d.ts +51 -75
  21. package/decorator/orm.mjs +44 -46
  22. package/helper.cjs +24 -18
  23. package/helper.d.ts +129 -3
  24. package/helper.mjs +6 -2
  25. package/lakutata.cjs +3 -1
  26. package/lakutata.d.ts +10 -10
  27. package/lakutata.mjs +3 -1
  28. package/orm.cjs +1075 -112
  29. package/orm.d.ts +6 -6
  30. package/orm.mjs +1015 -17
  31. package/package.json +1 -1
  32. package/provider/database.cjs +0 -2
  33. package/provider/database.d.ts +4 -4
  34. package/provider/database.mjs +0 -2
  35. package/provider/passwordHash.d.ts +1 -1
  36. package/src/components/Database.cjs +0 -2
  37. package/src/components/Database.mjs +0 -2
  38. package/src/components/cacher/Cacher.cjs +1 -1
  39. package/src/components/cacher/Cacher.mjs +1 -1
  40. package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +1 -1
  41. package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +1 -1
  42. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +2 -2
  43. package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +2 -2
  44. package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +2 -2
  45. package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +2 -2
  46. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +2 -2
  47. package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +2 -2
  48. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +2 -2
  49. package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +2 -2
  50. package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +2 -2
  51. package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +2 -2
  52. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +2 -2
  53. package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +2 -2
  54. package/src/components/entrypoint/Entrypoint.cjs +3 -1
  55. package/src/components/entrypoint/Entrypoint.mjs +3 -1
  56. package/src/decorators/ctrl/CLIAction.cjs +7 -5
  57. package/src/decorators/ctrl/CLIAction.mjs +3 -1
  58. package/src/decorators/ctrl/HTTPAction.cjs +8 -6
  59. package/src/decorators/ctrl/HTTPAction.mjs +3 -1
  60. package/src/decorators/ctrl/ServiceAction.cjs +3 -1
  61. package/src/decorators/ctrl/ServiceAction.mjs +7 -5
  62. package/src/decorators/ctrl/http/DELETE.cjs +3 -1
  63. package/src/decorators/ctrl/http/DELETE.mjs +3 -1
  64. package/src/decorators/ctrl/http/GET.cjs +3 -1
  65. package/src/decorators/ctrl/http/GET.mjs +3 -1
  66. package/src/decorators/ctrl/http/HEAD.cjs +3 -1
  67. package/src/decorators/ctrl/http/HEAD.mjs +3 -1
  68. package/src/decorators/ctrl/http/OPTIONS.cjs +3 -1
  69. package/src/decorators/ctrl/http/OPTIONS.mjs +3 -1
  70. package/src/decorators/ctrl/http/PATCH.cjs +3 -1
  71. package/src/decorators/ctrl/http/PATCH.mjs +3 -1
  72. package/src/decorators/ctrl/http/POST.cjs +3 -1
  73. package/src/decorators/ctrl/http/POST.mjs +3 -1
  74. package/src/decorators/ctrl/http/PUT.cjs +3 -1
  75. package/src/decorators/ctrl/http/PUT.mjs +3 -1
  76. package/src/decorators/orm/AfterInsert.cjs +27 -7
  77. package/src/decorators/orm/AfterInsert.mjs +28 -6
  78. package/src/decorators/orm/AfterLoad.cjs +27 -7
  79. package/src/decorators/orm/AfterLoad.mjs +28 -6
  80. package/src/decorators/orm/AfterRecover.cjs +27 -7
  81. package/src/decorators/orm/AfterRecover.mjs +28 -6
  82. package/src/decorators/orm/AfterRemove.cjs +27 -7
  83. package/src/decorators/orm/AfterRemove.mjs +28 -6
  84. package/src/decorators/orm/AfterSoftRemove.cjs +27 -7
  85. package/src/decorators/orm/AfterSoftRemove.mjs +28 -6
  86. package/src/decorators/orm/AfterUpdate.cjs +27 -7
  87. package/src/decorators/orm/AfterUpdate.mjs +28 -6
  88. package/src/decorators/orm/BeforeInsert.cjs +27 -7
  89. package/src/decorators/orm/BeforeInsert.mjs +28 -6
  90. package/src/decorators/orm/BeforeRecover.cjs +27 -7
  91. package/src/decorators/orm/BeforeRecover.mjs +28 -6
  92. package/src/decorators/orm/BeforeRemove.cjs +27 -7
  93. package/src/decorators/orm/BeforeRemove.mjs +28 -6
  94. package/src/decorators/orm/BeforeSoftRemove.cjs +27 -7
  95. package/src/decorators/orm/BeforeSoftRemove.mjs +28 -6
  96. package/src/decorators/orm/BeforeUpdate.cjs +27 -7
  97. package/src/decorators/orm/BeforeUpdate.mjs +28 -6
  98. package/src/decorators/orm/Check.cjs +30 -7
  99. package/src/decorators/orm/Check.mjs +31 -6
  100. package/src/decorators/orm/ChildEntity.cjs +30 -7
  101. package/src/decorators/orm/ChildEntity.mjs +31 -6
  102. package/src/decorators/orm/Column.cjs +62 -7
  103. package/src/decorators/orm/Column.mjs +63 -6
  104. package/src/decorators/orm/CreateDateColumn.cjs +26 -7
  105. package/src/decorators/orm/CreateDateColumn.mjs +27 -6
  106. package/src/decorators/orm/DeleteDateColumn.cjs +26 -7
  107. package/src/decorators/orm/DeleteDateColumn.mjs +27 -6
  108. package/src/decorators/orm/Entity.cjs +36 -7
  109. package/src/decorators/orm/Entity.mjs +37 -6
  110. package/src/decorators/orm/EventSubscriber.cjs +23 -7
  111. package/src/decorators/orm/EventSubscriber.mjs +24 -6
  112. package/src/decorators/orm/Exclusion.cjs +30 -7
  113. package/src/decorators/orm/Exclusion.mjs +31 -6
  114. package/src/decorators/orm/Generated.cjs +25 -7
  115. package/src/decorators/orm/Generated.mjs +26 -6
  116. package/src/decorators/orm/Index.cjs +42 -7
  117. package/src/decorators/orm/Index.mjs +43 -6
  118. package/src/decorators/orm/JoinColumn.cjs +30 -7
  119. package/src/decorators/orm/JoinColumn.mjs +31 -6
  120. package/src/decorators/orm/JoinTable.cjs +31 -7
  121. package/src/decorators/orm/JoinTable.mjs +32 -6
  122. package/src/decorators/orm/ManyToMany.cjs +43 -7
  123. package/src/decorators/orm/ManyToMany.mjs +44 -6
  124. package/src/decorators/orm/ManyToOne.cjs +43 -7
  125. package/src/decorators/orm/ManyToOne.mjs +44 -6
  126. package/src/decorators/orm/ObjectIdColumn.cjs +29 -7
  127. package/src/decorators/orm/ObjectIdColumn.mjs +30 -6
  128. package/src/decorators/orm/OneToMany.cjs +35 -7
  129. package/src/decorators/orm/OneToMany.mjs +36 -6
  130. package/src/decorators/orm/OneToOne.cjs +43 -7
  131. package/src/decorators/orm/OneToOne.mjs +44 -6
  132. package/src/decorators/orm/PrimaryColumn.cjs +50 -7
  133. package/src/decorators/orm/PrimaryColumn.mjs +51 -6
  134. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +55 -7
  135. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +56 -6
  136. package/src/decorators/orm/RelationId.cjs +27 -7
  137. package/src/decorators/orm/RelationId.mjs +28 -6
  138. package/src/decorators/orm/TableInheritance.cjs +27 -7
  139. package/src/decorators/orm/TableInheritance.mjs +28 -6
  140. package/src/decorators/orm/Tree.cjs +25 -7
  141. package/src/decorators/orm/Tree.mjs +26 -6
  142. package/src/decorators/orm/TreeChildren.cjs +32 -7
  143. package/src/decorators/orm/TreeChildren.mjs +33 -6
  144. package/src/decorators/orm/TreeLevelColumn.cjs +26 -7
  145. package/src/decorators/orm/TreeLevelColumn.mjs +27 -6
  146. package/src/decorators/orm/TreeParent.cjs +32 -7
  147. package/src/decorators/orm/TreeParent.mjs +33 -6
  148. package/src/decorators/orm/Unique.cjs +45 -7
  149. package/src/decorators/orm/Unique.mjs +46 -6
  150. package/src/decorators/orm/UpdateDateColumn.cjs +26 -7
  151. package/src/decorators/orm/UpdateDateColumn.mjs +27 -6
  152. package/src/decorators/orm/VersionColumn.cjs +26 -7
  153. package/src/decorators/orm/VersionColumn.mjs +27 -6
  154. package/src/decorators/orm/ViewColumn.cjs +26 -7
  155. package/src/decorators/orm/ViewColumn.mjs +27 -6
  156. package/src/decorators/orm/ViewEntity.cjs +35 -7
  157. package/src/decorators/orm/ViewEntity.mjs +36 -6
  158. package/src/decorators/orm/VirtualColumn.cjs +43 -7
  159. package/src/decorators/orm/VirtualColumn.mjs +44 -6
  160. package/src/lib/base/internal/ControllerEntrypoint.cjs +70 -610
  161. package/src/lib/base/internal/ControllerEntrypoint.mjs +87 -627
  162. package/src/lib/base/internal/StringifyPattern.cjs +1 -1
  163. package/src/lib/base/internal/StringifyPattern.mjs +1 -1
  164. package/src/lib/core/Application.cjs +3 -1
  165. package/src/lib/core/Application.mjs +3 -1
  166. package/src/lib/helpers/MD5.cjs +1 -1
  167. package/src/lib/helpers/MD5.mjs +1 -1
  168. package/src/lib/helpers/SHA1.cjs +1 -1
  169. package/src/lib/helpers/SHA1.mjs +1 -1
  170. package/src/lib/helpers/SHA256.cjs +1 -1
  171. package/src/lib/helpers/SHA256.mjs +1 -1
  172. package/src/lib/helpers/SortArray.cjs +1 -1
  173. package/src/lib/helpers/SortArray.mjs +1 -1
  174. package/src/lib/helpers/UUID.cjs +45 -0
  175. package/src/lib/helpers/UUID.mjs +39 -0
  176. package/src/providers/Database.cjs +0 -2
  177. package/src/providers/Database.mjs +0 -2
  178. package/vendor/Package.122.cjs +13223 -16706
  179. package/vendor/Package.122.mjs +13498 -16881
  180. package/vendor/Package.19.cjs +184 -195
  181. package/vendor/Package.19.mjs +176 -187
  182. package/vendor/Package.610.cjs +297 -113
  183. package/vendor/Package.610.mjs +285 -97
  184. package/vendor/Package.611.cjs +85 -103
  185. package/vendor/Package.611.mjs +80 -98
  186. package/vendor/Package.612.cjs +100 -121
  187. package/vendor/Package.612.mjs +97 -120
  188. package/vendor/Package.613.cjs +196 -0
  189. package/vendor/Package.613.mjs +180 -0
  190. package/vendor/Package.64.cjs +511 -134
  191. package/vendor/Package.64.mjs +491 -134
  192. package/vendor/Package.65.cjs +140 -4118
  193. package/vendor/Package.65.mjs +140 -4126
  194. package/vendor/Package.66.cjs +4142 -692
  195. package/vendor/Package.66.mjs +4151 -689
  196. package/vendor/Package.67.cjs +571 -535
  197. package/vendor/Package.67.mjs +586 -528
  198. package/vendor/Package.68.cjs +633 -96
  199. package/vendor/Package.68.mjs +619 -94
  200. package/vendor/Package.69.cjs +96 -294
  201. package/vendor/Package.69.mjs +95 -295
  202. package/vendor/TypeDef.internal.1.d.ts +1 -1
  203. package/vendor/TypeDef.internal.10.d.ts +1 -1
  204. package/vendor/TypeDef.internal.11.d.ts +2 -2
  205. package/vendor/TypeDef.internal.12.d.ts +2 -2
  206. package/vendor/TypeDef.internal.13.d.ts +6 -6
  207. package/vendor/TypeDef.internal.3.d.ts +3 -3
  208. package/vendor/TypeDef.internal.4.d.ts +181 -347
  209. package/vendor/TypeDef.internal.5.d.ts +2 -2
  210. package/vendor/TypeDef.internal.6.d.ts +2 -2
  211. package/vendor/TypeDef.internal.7.d.ts +1 -1
  212. package/vendor/TypeDef.internal.8.d.ts +1 -1
  213. package/vendor/TypeDef.internal.9.d.ts +1 -1
@@ -1,28 +1,47 @@
1
1
  import '../vendor/TypeDef.internal.2.js';
2
- import { C as ColumnOptions, l as SimpleColumnType, m as ColumnCommonOptions, n as SpatialColumnType, o as SpatialColumnOptions, W as WithLengthColumnType, U as UnsignedColumnType, p as WithPrecisionColumnType, P as PrimaryGeneratedColumnType, q as ColumnType, V as ValueTransformer, J as JoinColumnOptions, r as JoinTableOptions, s as JoinTableMultipleColumnsOptions, t as ObjectType, u as RelationOptions, S as SelectQueryBuilder, a as DataSource, v as OnDeleteType, w as TreeType, x as ClosureTreeOptions, y as DeferrableType } from '../vendor/TypeDef.internal.4.js';
3
- import { E as EntityOptions, I as IndexOptions } from '../vendor/TypeDef.internal.12.js';
2
+ import { ColumnOptions, SimpleColumnType, ColumnCommonOptions, SpatialColumnType, SpatialColumnOptions, WithLengthColumnType, WithWidthColumnType, WithPrecisionColumnType, PrimaryGeneratedColumnType, ColumnType, ValueTransformer, JoinColumnOptions, JoinTableOptions, JoinTableMultipleColumnsOptions, ObjectType, RelationOptions, SelectQueryBuilder, DataSource, OnDeleteType, TreeType, ClosureTreeOptions, DeferrableType } from '../vendor/TypeDef.internal.4.js';
3
+ import { EntityOptions, IndexOptions } from '../vendor/TypeDef.internal.12.js';
4
4
  import 'fs';
5
- import 'dns';
6
- import 'net';
7
5
  import 'tls';
6
+ import 'net';
7
+ import 'dns';
8
8
  import 'events';
9
9
  import 'stream';
10
10
 
11
11
  /**
12
- * Column options specific to embedded column.
12
+ * Options for columns that can define a length of the column type.
13
13
  */
14
- interface ColumnEmbeddedOptions {
14
+ interface ColumnWithLengthOptions {
15
15
  /**
16
- * Embedded column prefix.
17
- * If set to empty string or false, then prefix is not set at all.
16
+ * Column type's length.
17
+ * For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
18
18
  */
19
- prefix?: string | boolean;
19
+ length?: string | number;
20
+ }
21
+
22
+ /**
23
+ * Options for numeric column types where user can specify scale and precision.
24
+ */
25
+ interface ColumnNumericOptions {
20
26
  /**
21
- * Indicates if this embedded is in array mode.
22
- *
23
- * This option works only in mongodb.
27
+ * The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
28
+ * number of digits that are stored for the values.
24
29
  */
25
- array?: boolean;
30
+ precision?: number;
31
+ /**
32
+ * The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
33
+ * of digits to the right of the decimal point and must not be greater than precision.
34
+ */
35
+ scale?: number;
36
+ /**
37
+ * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
38
+ * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
39
+ */
40
+ zerofill?: boolean;
41
+ /**
42
+ * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
43
+ */
44
+ unsigned?: boolean;
26
45
  }
27
46
 
28
47
  /**
@@ -40,69 +59,45 @@ interface ColumnEnumOptions {
40
59
  }
41
60
 
42
61
  /**
43
- * Column options for enum-typed columns.
62
+ * Column options specific to embedded column.
44
63
  */
45
- interface ColumnHstoreOptions {
64
+ interface ColumnEmbeddedOptions {
46
65
  /**
47
- * Return type of HSTORE column.
48
- * Returns value as string or as object.
66
+ * Embedded column prefix.
67
+ * If set to empty string or false, then prefix is not set at all.
49
68
  */
50
- hstoreType?: string;
69
+ prefix?: string | boolean;
70
+ /**
71
+ * Indicates if this embedded is in array mode.
72
+ *
73
+ * This option works only in mongodb.
74
+ */
75
+ array?: boolean;
51
76
  }
52
77
 
53
78
  /**
54
- * Options for numeric column types where user can specify scale and precision.
79
+ * Column options for enum-typed columns.
55
80
  */
56
- interface ColumnNumericOptions {
57
- /**
58
- * The precision for a decimal (exact numeric) column (applies only for decimal column), which is the maximum
59
- * number of digits that are stored for the values.
60
- */
61
- precision?: number;
62
- /**
63
- * The scale for a decimal (exact numeric) column (applies only for decimal column), which represents the number
64
- * of digits to the right of the decimal point and must not be greater than precision.
65
- */
66
- scale?: number;
67
- /**
68
- * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
69
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds
70
- * the UNSIGNED attribute to the column
71
- * @deprecated MySQL deprecated and removed the ZEROFILL attribute. This
72
- * will also be removed from TypeORM in an upcoming version. Use a character
73
- * column and the `LPAD` function as suggested by MySQL or handle the
74
- * formatting in the application layer.
75
- */
76
- zerofill?: boolean;
81
+ interface ColumnHstoreOptions {
77
82
  /**
78
- * Puts UNSIGNED attribute on to numeric column. Works only for MySQL.
79
- * @deprecated MySQL deprecated the UNSIGNED attribute for non-integer
80
- * numeric types. This will also be removed from TypeORM in an upcoming version.
83
+ * Return type of HSTORE column.
84
+ * Returns value as string or as object.
81
85
  */
82
- unsigned?: boolean;
86
+ hstoreType?: string;
83
87
  }
84
88
 
85
89
  /**
86
90
  * Options for columns that can define a length of the column type.
87
91
  */
88
- interface ColumnUnsignedOptions {
92
+ interface ColumnWithWidthOptions {
89
93
  /**
90
94
  * Column type's display width. Used only on some column types in MySQL.
91
95
  * For example, INT(4) specifies an INT with a display width of four digits.
92
- * @deprecated MySQL deprecated and removed display width for integer types,
93
- * TypeORM will also remove it in an upcoming version. Use a character
94
- * column and the `LPAD` function as suggested by MySQL or handle the
95
- * formatting in the application layer.
96
96
  */
97
97
  width?: number;
98
98
  /**
99
99
  * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
100
- * If you specify ZEROFILL for a numeric column, MySQL automatically adds
101
- * the UNSIGNED attribute to this column
102
- * @deprecated MySQL deprecated and removed the zerofill attribute. This
103
- * will also be removed from TypeORM in an upcoming version. Use a character
104
- * column and the `LPAD` function as suggested by MySQL or handle the
105
- * formatting in the application layer.
100
+ * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to this column
106
101
  */
107
102
  zerofill?: boolean;
108
103
  /**
@@ -111,17 +106,6 @@ interface ColumnUnsignedOptions {
111
106
  unsigned?: boolean;
112
107
  }
113
108
 
114
- /**
115
- * Options for columns that can define a length of the column type.
116
- */
117
- interface ColumnWithLengthOptions {
118
- /**
119
- * Column type's length.
120
- * For example type = "varchar" and length = "100" means ORM will create a column with type varchar(100).
121
- */
122
- length?: string | number;
123
- }
124
-
125
109
  /**
126
110
  * Column decorator is used to mark a specific class property as a table column. Only properties decorated with this
127
111
  * decorator will be persisted to the database when entity be saved.
@@ -151,7 +135,7 @@ declare function Column(type: WithLengthColumnType, options?: ColumnCommonOption
151
135
  * Column decorator is used to mark a specific class property as a table column.
152
136
  * Only properties decorated with this decorator will be persisted to the database when entity be saved.
153
137
  */
154
- declare function Column(type: UnsignedColumnType, options?: ColumnCommonOptions & ColumnUnsignedOptions): PropertyDecorator;
138
+ declare function Column(type: WithWidthColumnType, options?: ColumnCommonOptions & ColumnWithWidthOptions): PropertyDecorator;
155
139
  /**
156
140
  * Column decorator is used to mark a specific class property as a table column.
157
141
  * Only properties decorated with this decorator will be persisted to the database when entity be saved.
@@ -219,9 +203,6 @@ interface PrimaryGeneratedColumnNumericOptions {
219
203
  /**
220
204
  * Puts ZEROFILL attribute on to numeric column. Works only for MySQL.
221
205
  * If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column
222
- * @deprecated No longer supported in newer MySQL versions, will be removed
223
- * from TypeORM in an upcoming version. Use a character column and the
224
- * `LPAD` function as suggested by MySQL
225
206
  */
226
207
  zerofill?: boolean;
227
208
  /**
@@ -341,11 +322,6 @@ interface VirtualColumnOptions {
341
322
  * Column type. Must be one of the value from the ColumnTypes class.
342
323
  */
343
324
  type?: ColumnType;
344
- /**
345
- * Indicates if column is always selected by QueryBuilder and find operations.
346
- * Default value is "true".
347
- */
348
- select?: boolean;
349
325
  /**
350
326
  * Return type of HSTORE column.
351
327
  * Returns value as string or as object.
package/decorator/orm.mjs CHANGED
@@ -1,93 +1,93 @@
1
1
  import "../vendor/Package.4.mjs";
2
2
 
3
- import "../src/decorators/orm/AfterRecover.mjs";
3
+ export { AfterRecover } from "../src/decorators/orm/AfterRecover.mjs";
4
4
 
5
- import "../src/decorators/orm/AfterRemove.mjs";
5
+ export { AfterRemove } from "../src/decorators/orm/AfterRemove.mjs";
6
6
 
7
- import "../src/decorators/orm/AfterInsert.mjs";
7
+ export { AfterInsert } from "../src/decorators/orm/AfterInsert.mjs";
8
8
 
9
- import "../src/decorators/orm/AfterLoad.mjs";
9
+ export { AfterLoad } from "../src/decorators/orm/AfterLoad.mjs";
10
10
 
11
- import "../src/decorators/orm/AfterSoftRemove.mjs";
11
+ export { AfterSoftRemove } from "../src/decorators/orm/AfterSoftRemove.mjs";
12
12
 
13
- import "../src/decorators/orm/AfterUpdate.mjs";
13
+ export { AfterUpdate } from "../src/decorators/orm/AfterUpdate.mjs";
14
14
 
15
- import "../src/decorators/orm/BeforeInsert.mjs";
15
+ export { BeforeInsert } from "../src/decorators/orm/BeforeInsert.mjs";
16
16
 
17
- import "../src/decorators/orm/BeforeRecover.mjs";
17
+ export { BeforeRecover } from "../src/decorators/orm/BeforeRecover.mjs";
18
18
 
19
- import "../src/decorators/orm/BeforeRemove.mjs";
19
+ export { BeforeRemove } from "../src/decorators/orm/BeforeRemove.mjs";
20
20
 
21
- import "../src/decorators/orm/BeforeSoftRemove.mjs";
21
+ export { BeforeSoftRemove } from "../src/decorators/orm/BeforeSoftRemove.mjs";
22
22
 
23
- import "../src/decorators/orm/BeforeUpdate.mjs";
23
+ export { BeforeUpdate } from "../src/decorators/orm/BeforeUpdate.mjs";
24
24
 
25
- import "../src/decorators/orm/Check.mjs";
25
+ export { Check } from "../src/decorators/orm/Check.mjs";
26
26
 
27
- import "../src/decorators/orm/ChildEntity.mjs";
27
+ export { ChildEntity } from "../src/decorators/orm/ChildEntity.mjs";
28
28
 
29
- import "../src/decorators/orm/Column.mjs";
29
+ export { Column } from "../src/decorators/orm/Column.mjs";
30
30
 
31
- import "../src/decorators/orm/CreateDateColumn.mjs";
31
+ export { CreateDateColumn } from "../src/decorators/orm/CreateDateColumn.mjs";
32
32
 
33
- import "../src/decorators/orm/DeleteDateColumn.mjs";
33
+ export { DeleteDateColumn } from "../src/decorators/orm/DeleteDateColumn.mjs";
34
34
 
35
- import "../src/decorators/orm/Entity.mjs";
35
+ export { Entity } from "../src/decorators/orm/Entity.mjs";
36
36
 
37
- import "../src/decorators/orm/EventSubscriber.mjs";
37
+ export { EventSubscriber } from "../src/decorators/orm/EventSubscriber.mjs";
38
38
 
39
- import "../src/decorators/orm/Exclusion.mjs";
39
+ export { Exclusion } from "../src/decorators/orm/Exclusion.mjs";
40
40
 
41
- import "../src/decorators/orm/Generated.mjs";
41
+ export { Generated } from "../src/decorators/orm/Generated.mjs";
42
42
 
43
- import "../src/decorators/orm/Index.mjs";
43
+ export { Index } from "../src/decorators/orm/Index.mjs";
44
44
 
45
- import "../src/decorators/orm/JoinColumn.mjs";
45
+ export { JoinColumn } from "../src/decorators/orm/JoinColumn.mjs";
46
46
 
47
- import "../src/decorators/orm/JoinTable.mjs";
47
+ export { JoinTable } from "../src/decorators/orm/JoinTable.mjs";
48
48
 
49
- import "../src/decorators/orm/ManyToMany.mjs";
49
+ export { ManyToMany } from "../src/decorators/orm/ManyToMany.mjs";
50
50
 
51
- import "../src/decorators/orm/ManyToOne.mjs";
51
+ export { ManyToOne } from "../src/decorators/orm/ManyToOne.mjs";
52
52
 
53
- import "../src/decorators/orm/ObjectIdColumn.mjs";
53
+ export { ObjectIdColumn } from "../src/decorators/orm/ObjectIdColumn.mjs";
54
54
 
55
- import "../src/decorators/orm/OneToMany.mjs";
55
+ export { OneToMany } from "../src/decorators/orm/OneToMany.mjs";
56
56
 
57
- import "../src/decorators/orm/OneToOne.mjs";
57
+ export { OneToOne } from "../src/decorators/orm/OneToOne.mjs";
58
58
 
59
- import "../src/decorators/orm/PrimaryColumn.mjs";
59
+ export { PrimaryColumn } from "../src/decorators/orm/PrimaryColumn.mjs";
60
60
 
61
- import "../src/decorators/orm/PrimaryGeneratedColumn.mjs";
61
+ export { PrimaryGeneratedColumn } from "../src/decorators/orm/PrimaryGeneratedColumn.mjs";
62
62
 
63
- import "../src/decorators/orm/RelationId.mjs";
63
+ export { RelationId } from "../src/decorators/orm/RelationId.mjs";
64
64
 
65
- import "../src/decorators/orm/TableInheritance.mjs";
65
+ export { TableInheritance } from "../src/decorators/orm/TableInheritance.mjs";
66
66
 
67
- import "../src/decorators/orm/Tree.mjs";
67
+ export { Tree } from "../src/decorators/orm/Tree.mjs";
68
68
 
69
- import "../src/decorators/orm/TreeChildren.mjs";
69
+ export { TreeChildren } from "../src/decorators/orm/TreeChildren.mjs";
70
70
 
71
- import "../src/decorators/orm/TreeLevelColumn.mjs";
71
+ export { TreeLevelColumn } from "../src/decorators/orm/TreeLevelColumn.mjs";
72
72
 
73
- import "../src/decorators/orm/TreeParent.mjs";
73
+ export { TreeParent } from "../src/decorators/orm/TreeParent.mjs";
74
74
 
75
- import "../src/decorators/orm/Unique.mjs";
75
+ export { Unique } from "../src/decorators/orm/Unique.mjs";
76
76
 
77
- import "../src/decorators/orm/UpdateDateColumn.mjs";
77
+ export { UpdateDateColumn } from "../src/decorators/orm/UpdateDateColumn.mjs";
78
78
 
79
- import "../src/decorators/orm/VersionColumn.mjs";
79
+ export { VersionColumn } from "../src/decorators/orm/VersionColumn.mjs";
80
80
 
81
- import "../src/decorators/orm/ViewColumn.mjs";
81
+ export { ViewColumn } from "../src/decorators/orm/ViewColumn.mjs";
82
82
 
83
- import "../src/decorators/orm/ViewEntity.mjs";
83
+ export { ViewEntity } from "../src/decorators/orm/ViewEntity.mjs";
84
84
 
85
- import "../src/decorators/orm/VirtualColumn.mjs";
86
-
87
- export { b as AfterInsert, c as AfterLoad, A as AfterRecover, a as AfterRemove, d as AfterSoftRemove, e as AfterUpdate, B as BeforeInsert, f as BeforeRecover, g as BeforeRemove, h as BeforeSoftRemove, i as BeforeUpdate, C as Check, j as ChildEntity, k as Column, l as CreateDateColumn, D as DeleteDateColumn, E as Entity, m as EventSubscriber, n as Exclusion, G as Generated, I as Index, J as JoinColumn, o as JoinTable, M as ManyToMany, p as ManyToOne, O as ObjectIdColumn, q as OneToMany, s as OneToOne, P as PrimaryColumn, t as PrimaryGeneratedColumn, R as RelationId, T as TableInheritance, u as Tree, v as TreeChildren, w as TreeLevelColumn, x as TreeParent, U as Unique, y as UpdateDateColumn, V as VersionColumn, z as ViewColumn, F as ViewEntity, H as VirtualColumn } from "../vendor/Package.122.mjs";
85
+ export { VirtualColumn } from "../src/decorators/orm/VirtualColumn.mjs";
88
86
 
89
87
  import "../vendor/Package.5.mjs";
90
88
 
89
+ import "../vendor/Package.122.mjs";
90
+
91
91
  import "../vendor/Package.13.mjs";
92
92
 
93
93
  import "../vendor/Package.1.mjs";
@@ -132,8 +132,6 @@ import "../vendor/Package.11.mjs";
132
132
 
133
133
  import "url";
134
134
 
135
- import "node:util";
136
-
137
135
  import "../vendor/Package.63.mjs";
138
136
 
139
137
  import "node:url";
package/helper.cjs CHANGED
@@ -42,9 +42,9 @@ const h = require("./src/lib/helpers/NoCase.cjs");
42
42
 
43
43
  const g = require("./src/lib/helpers/ObjectConstructor.cjs");
44
44
 
45
- const d = require("./src/lib/helpers/ObjectHash.cjs");
45
+ const I = require("./src/lib/helpers/ObjectHash.cjs");
46
46
 
47
- const I = require("./src/lib/helpers/ObjectParentConstructor.cjs");
47
+ const d = require("./src/lib/helpers/ObjectParentConstructor.cjs");
48
48
 
49
49
  const S = require("./src/lib/helpers/ObjectParentConstructors.cjs");
50
50
 
@@ -66,21 +66,21 @@ const H = require("./src/lib/helpers/ConvertArrayLikeToStream.cjs");
66
66
 
67
67
  const m = require("./src/lib/helpers/MergeSet.cjs");
68
68
 
69
- const M = require("./src/lib/helpers/MergeArray.cjs");
69
+ const k = require("./src/lib/helpers/MergeArray.cjs");
70
70
 
71
- const k = require("./src/lib/helpers/MergeMap.cjs");
71
+ const M = require("./src/lib/helpers/MergeMap.cjs");
72
72
 
73
73
  const C = require("./src/lib/helpers/SortArray.cjs");
74
74
 
75
- const L = require("./src/lib/helpers/SortKeys.cjs");
75
+ const U = require("./src/lib/helpers/SortKeys.cjs");
76
76
 
77
77
  const D = require("./src/lib/helpers/SortObject.cjs");
78
78
 
79
- const N = require("./src/lib/helpers/RandomString.cjs");
79
+ const L = require("./src/lib/helpers/RandomString.cjs");
80
80
 
81
- const G = require("./src/lib/helpers/NonceStr.cjs");
81
+ const N = require("./src/lib/helpers/NonceStr.cjs");
82
82
 
83
- const U = require("./src/lib/helpers/IsAbortError.cjs");
83
+ const G = require("./src/lib/helpers/IsAbortError.cjs");
84
84
 
85
85
  const R = require("./src/lib/helpers/Glob.cjs");
86
86
 
@@ -108,6 +108,8 @@ const J = require("./src/lib/helpers/URLBuilder.cjs");
108
108
 
109
109
  const Q = require("./src/lib/helpers/Statistics.cjs");
110
110
 
111
+ const Y = require("./src/lib/helpers/UUID.cjs");
112
+
111
113
  require("./vendor/Package.5.cjs");
112
114
 
113
115
  require("fs");
@@ -154,7 +156,7 @@ require("crypto");
154
156
 
155
157
  require("node:stream");
156
158
 
157
- require("./vendor/Package.64.cjs");
159
+ require("./vendor/Package.65.cjs");
158
160
 
159
161
  require("./vendor/Package.63.cjs");
160
162
 
@@ -170,12 +172,14 @@ require("node:string_decoder");
170
172
 
171
173
  require("./src/lib/base/internal/IEEE754.cjs");
172
174
 
173
- require("./vendor/Package.65.cjs");
175
+ require("./vendor/Package.66.cjs");
174
176
 
175
177
  require("node:crypto");
176
178
 
177
179
  require("./vendor/Package.16.cjs");
178
180
 
181
+ require("./vendor/Package.64.cjs");
182
+
179
183
  exports.ArrayToSet = e.ArrayToSet;
180
184
 
181
185
  exports.As = r.As;
@@ -218,9 +222,9 @@ exports.ToUpper = h.ToUpper;
218
222
 
219
223
  exports.ObjectConstructor = g.ObjectConstructor;
220
224
 
221
- exports.ObjectHash = d.ObjectHash;
225
+ exports.ObjectHash = I.ObjectHash;
222
226
 
223
- exports.ObjectParentConstructor = I.ObjectParentConstructor;
227
+ exports.ObjectParentConstructor = d.ObjectParentConstructor;
224
228
 
225
229
  exports.ObjectParentConstructors = S.ObjectParentConstructors;
226
230
 
@@ -244,21 +248,21 @@ exports.ConvertArrayLikeToStream = H.ConvertArrayLikeToStream;
244
248
 
245
249
  exports.MergeSet = m.MergeSet;
246
250
 
247
- exports.MergeArray = M.MergeArray;
251
+ exports.MergeArray = k.MergeArray;
248
252
 
249
- exports.MergeMap = k.MergeMap;
253
+ exports.MergeMap = M.MergeMap;
250
254
 
251
255
  exports.SortArray = C.SortArray;
252
256
 
253
- exports.SortKeys = L.SortKeys;
257
+ exports.SortKeys = U.SortKeys;
254
258
 
255
259
  exports.SortObject = D.SortObject;
256
260
 
257
- exports.RandomString = N.RandomString;
261
+ exports.RandomString = L.RandomString;
258
262
 
259
- exports.NonceStr = G.NonceStr;
263
+ exports.NonceStr = N.NonceStr;
260
264
 
261
- exports.IsAbortError = U.IsAbortError;
265
+ exports.IsAbortError = G.IsAbortError;
262
266
 
263
267
  exports.Glob = R.Glob;
264
268
 
@@ -289,3 +293,5 @@ exports.SHA256 = z.SHA256;
289
293
  exports.URLBuilder = J.URLBuilder;
290
294
 
291
295
  exports.Statistics = Q.Statistics;
296
+
297
+ exports.UUID = Y.UUID;
package/helper.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import './vendor/TypeDef.internal.2.js';
3
3
  import { PathLike } from 'fs';
4
- import { I as IConstructor } from './vendor/TypeDef.internal.9.js';
4
+ import { IConstructor } from './vendor/TypeDef.internal.9.js';
5
5
  import { PathLike as PathLike$1, Dirent, Stats } from 'node:fs';
6
6
  import { ReadableOptions, Readable } from 'node:stream';
7
7
  import { win32, posix } from 'node:path';
@@ -4797,5 +4797,131 @@ declare class Statistics {
4797
4797
  static subtractFromAverage(mean: number, n: number, value: number): number;
4798
4798
  }
4799
4799
 
4800
- export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UniqueArray, UnsignedToHex };
4801
- export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes };
4800
+ type UUIDTypes<TBuf extends Uint8Array = Uint8Array> = string | TBuf;
4801
+ type Version1Options = {
4802
+ node?: Uint8Array;
4803
+ clockseq?: number;
4804
+ random?: Uint8Array;
4805
+ rng?: () => Uint8Array;
4806
+ msecs?: number;
4807
+ nsecs?: number;
4808
+ _v6?: boolean;
4809
+ };
4810
+ type Version4Options = {
4811
+ random?: Uint8Array;
4812
+ rng?: () => Uint8Array;
4813
+ };
4814
+ type Version6Options = Version1Options;
4815
+
4816
+ declare class UUID {
4817
+ /**
4818
+ * The nil UUID string (all zeros).
4819
+ */
4820
+ static readonly NIL: string;
4821
+ /**
4822
+ * The max UUID string (all ones).
4823
+ */
4824
+ static readonly MAX: string;
4825
+ /**
4826
+ * Convert UUID string to array of bytes
4827
+ * @param uuid
4828
+ * @returns Uint8Array[16]
4829
+ * @throws TypeError if str is not a valid UUID
4830
+ */
4831
+ static parse(uuid: string): Uint8Array;
4832
+ /**
4833
+ * Convert array of bytes to UUID string
4834
+ * @param arr
4835
+ * @param offset
4836
+ * @returns string
4837
+ * @throws TypeError if a valid UUID string cannot be generated
4838
+ */
4839
+ static stringify(arr: Uint8Array, offset?: number): string;
4840
+ /**
4841
+ * Create an RFC version 1 (timestamp) UUID
4842
+ * @param options
4843
+ * @param buf
4844
+ * @param offset
4845
+ */
4846
+ static v1(options?: Version1Options, buf?: undefined, offset?: number): string;
4847
+ /**
4848
+ * Create an RFC version 1 (timestamp) UUID
4849
+ * @param options
4850
+ * @param buf
4851
+ * @param offset
4852
+ */
4853
+ static v1<Buf extends Uint8Array = Uint8Array>(options: Version1Options | undefined, buf: Buf, offset?: number): Buf;
4854
+ /**
4855
+ * Create an RFC version 3 (namespace w/ MD5) UUID
4856
+ * @param value
4857
+ * @param namespace
4858
+ * @param buf
4859
+ * @param offset
4860
+ */
4861
+ static v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string;
4862
+ /**
4863
+ * Create an RFC version 3 (namespace w/ MD5) UUID
4864
+ * @param value
4865
+ * @param namespace
4866
+ * @param buf
4867
+ * @param offset
4868
+ */
4869
+ static v3<TBuf extends Uint8Array = Uint8Array>(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf;
4870
+ /**
4871
+ * Create an RFC version 4 (random) UUID
4872
+ * @param options
4873
+ * @param buf
4874
+ * @param offset
4875
+ */
4876
+ static v4(options?: Version4Options, buf?: undefined, offset?: number): string;
4877
+ /**
4878
+ * Create an RFC version 4 (random) UUID
4879
+ * @param options
4880
+ * @param buf
4881
+ * @param offset
4882
+ */
4883
+ static v4<TBuf extends Uint8Array = Uint8Array>(options: Version4Options | undefined, buf: TBuf, offset?: number): TBuf;
4884
+ /**
4885
+ * Create an RFC version 5 (namespace w/ SHA-1) UUID
4886
+ * @param value
4887
+ * @param namespace
4888
+ * @param buf
4889
+ * @param offset
4890
+ */
4891
+ static v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: undefined, offset?: number): string;
4892
+ /**
4893
+ * Create an RFC version 5 (namespace w/ SHA-1) UUID
4894
+ * @param value
4895
+ * @param namespace
4896
+ * @param buf
4897
+ * @param offset
4898
+ */
4899
+ static v5<TBuf extends Uint8Array = Uint8Array>(value: string | Uint8Array, namespace: UUIDTypes, buf: TBuf, offset?: number): TBuf;
4900
+ /**
4901
+ * Create an RFC version 6 (timestamp, reordered) UUID
4902
+ * @param options
4903
+ * @param buf
4904
+ * @param offset
4905
+ */
4906
+ static v6(options?: Version6Options, buf?: undefined, offset?: number): string;
4907
+ /**
4908
+ * Create an RFC version 6 (timestamp, reordered) UUID
4909
+ * @param options
4910
+ * @param buf
4911
+ * @param offset
4912
+ */
4913
+ static v6<TBuf extends Uint8Array = Uint8Array>(options: Version6Options | undefined, buf: TBuf, offset?: number): TBuf;
4914
+ /**
4915
+ * Test a string to see if it is a valid UUID
4916
+ * @param uuid
4917
+ */
4918
+ static validate(uuid: string): boolean;
4919
+ /**
4920
+ * Detect RFC version of a UUID
4921
+ * @param uuid
4922
+ */
4923
+ static version(uuid: string): number;
4924
+ }
4925
+
4926
+ export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UUID, UniqueArray, UnsignedToHex };
4927
+ export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes, UUIDTypes, Version1Options as UUIDVersion1Options, Version4Options as UUIDVersion4Options, Version6Options as UUIDVersion6Options };
package/helper.mjs CHANGED
@@ -102,6 +102,8 @@ export { URLBuilder } from "./src/lib/helpers/URLBuilder.mjs";
102
102
 
103
103
  export { Statistics } from "./src/lib/helpers/Statistics.mjs";
104
104
 
105
+ export { UUID } from "./src/lib/helpers/UUID.mjs";
106
+
105
107
  import "./vendor/Package.5.mjs";
106
108
 
107
109
  import "fs";
@@ -148,7 +150,7 @@ import "crypto";
148
150
 
149
151
  import "node:stream";
150
152
 
151
- import "./vendor/Package.64.mjs";
153
+ import "./vendor/Package.65.mjs";
152
154
 
153
155
  import "./vendor/Package.63.mjs";
154
156
 
@@ -164,8 +166,10 @@ import "node:string_decoder";
164
166
 
165
167
  import "./src/lib/base/internal/IEEE754.mjs";
166
168
 
167
- import "./vendor/Package.65.mjs";
169
+ import "./vendor/Package.66.mjs";
168
170
 
169
171
  import "node:crypto";
170
172
 
171
173
  import "./vendor/Package.16.mjs";
174
+
175
+ import "./vendor/Package.64.mjs";
package/lakutata.cjs CHANGED
@@ -244,9 +244,11 @@ require("./src/lib/helpers/ObjectHash.cjs");
244
244
 
245
245
  require("./src/lib/helpers/GetObjectNestingDepth.cjs");
246
246
 
247
+ require("./vendor/Package.64.cjs");
248
+
247
249
  require("./src/lib/base/internal/StringifyPattern.cjs");
248
250
 
249
- require("./vendor/Package.64.cjs");
251
+ require("./vendor/Package.65.cjs");
250
252
 
251
253
  require("./src/lib/base/internal/PatternManager.cjs");
252
254