lakutata 2.0.11 → 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 (142) 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 +39 -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 +10 -3
  25. package/src/components/docker/Docker.mjs +10 -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/components/docker/options/container/ContainerSettingOptions.cjs +4 -0
  31. package/src/components/docker/options/container/ContainerSettingOptions.mjs +4 -0
  32. package/src/decorators/orm/AfterInsert.cjs +13 -3
  33. package/src/decorators/orm/AfterInsert.mjs +17 -7
  34. package/src/decorators/orm/AfterLoad.cjs +17 -7
  35. package/src/decorators/orm/AfterLoad.mjs +13 -3
  36. package/src/decorators/orm/AfterRecover.cjs +17 -7
  37. package/src/decorators/orm/AfterRecover.mjs +17 -7
  38. package/src/decorators/orm/AfterRemove.cjs +17 -7
  39. package/src/decorators/orm/AfterRemove.mjs +22 -12
  40. package/src/decorators/orm/AfterSoftRemove.cjs +13 -3
  41. package/src/decorators/orm/AfterSoftRemove.mjs +24 -14
  42. package/src/decorators/orm/AfterUpdate.cjs +13 -3
  43. package/src/decorators/orm/AfterUpdate.mjs +22 -12
  44. package/src/decorators/orm/BeforeInsert.cjs +17 -7
  45. package/src/decorators/orm/BeforeInsert.mjs +17 -7
  46. package/src/decorators/orm/BeforeRecover.cjs +17 -7
  47. package/src/decorators/orm/BeforeRecover.mjs +22 -12
  48. package/src/decorators/orm/BeforeRemove.cjs +17 -7
  49. package/src/decorators/orm/BeforeRemove.mjs +17 -7
  50. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -7
  51. package/src/decorators/orm/BeforeSoftRemove.mjs +23 -13
  52. package/src/decorators/orm/BeforeUpdate.cjs +17 -7
  53. package/src/decorators/orm/BeforeUpdate.mjs +22 -12
  54. package/src/decorators/orm/Check.cjs +18 -8
  55. package/src/decorators/orm/Check.mjs +13 -3
  56. package/src/decorators/orm/ChildEntity.cjs +13 -3
  57. package/src/decorators/orm/ChildEntity.mjs +13 -3
  58. package/src/decorators/orm/Column.cjs +29 -19
  59. package/src/decorators/orm/Column.mjs +23 -13
  60. package/src/decorators/orm/CreateDateColumn.cjs +19 -9
  61. package/src/decorators/orm/CreateDateColumn.mjs +24 -14
  62. package/src/decorators/orm/DeleteDateColumn.cjs +19 -9
  63. package/src/decorators/orm/DeleteDateColumn.mjs +23 -13
  64. package/src/decorators/orm/Entity.cjs +26 -16
  65. package/src/decorators/orm/Entity.mjs +32 -22
  66. package/src/decorators/orm/EventSubscriber.cjs +13 -3
  67. package/src/decorators/orm/EventSubscriber.mjs +18 -8
  68. package/src/decorators/orm/Exclusion.cjs +21 -11
  69. package/src/decorators/orm/Exclusion.mjs +21 -11
  70. package/src/decorators/orm/Generated.cjs +13 -3
  71. package/src/decorators/orm/Generated.mjs +13 -3
  72. package/src/decorators/orm/Index.cjs +22 -12
  73. package/src/decorators/orm/Index.mjs +27 -17
  74. package/src/decorators/orm/JoinColumn.cjs +19 -9
  75. package/src/decorators/orm/JoinColumn.mjs +27 -17
  76. package/src/decorators/orm/JoinTable.cjs +13 -3
  77. package/src/decorators/orm/JoinTable.mjs +29 -19
  78. package/src/decorators/orm/ManyToMany.cjs +25 -15
  79. package/src/decorators/orm/ManyToMany.mjs +26 -16
  80. package/src/decorators/orm/ManyToOne.cjs +25 -15
  81. package/src/decorators/orm/ManyToOne.mjs +26 -16
  82. package/src/decorators/orm/ObjectIdColumn.cjs +13 -3
  83. package/src/decorators/orm/ObjectIdColumn.mjs +26 -16
  84. package/src/decorators/orm/OneToMany.cjs +21 -11
  85. package/src/decorators/orm/OneToMany.mjs +22 -12
  86. package/src/decorators/orm/OneToOne.cjs +16 -6
  87. package/src/decorators/orm/OneToOne.mjs +36 -26
  88. package/src/decorators/orm/PrimaryColumn.cjs +22 -12
  89. package/src/decorators/orm/PrimaryColumn.mjs +24 -14
  90. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +32 -22
  91. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +18 -8
  92. package/src/decorators/orm/RelationId.cjs +19 -9
  93. package/src/decorators/orm/RelationId.mjs +18 -8
  94. package/src/decorators/orm/TableInheritance.cjs +17 -7
  95. package/src/decorators/orm/TableInheritance.mjs +26 -16
  96. package/src/decorators/orm/Tree.cjs +13 -3
  97. package/src/decorators/orm/Tree.mjs +26 -16
  98. package/src/decorators/orm/TreeChildren.cjs +15 -5
  99. package/src/decorators/orm/TreeChildren.mjs +18 -8
  100. package/src/decorators/orm/TreeLevelColumn.cjs +13 -3
  101. package/src/decorators/orm/TreeLevelColumn.mjs +20 -10
  102. package/src/decorators/orm/TreeParent.cjs +19 -9
  103. package/src/decorators/orm/TreeParent.mjs +13 -3
  104. package/src/decorators/orm/Unique.cjs +29 -19
  105. package/src/decorators/orm/Unique.mjs +30 -20
  106. package/src/decorators/orm/UpdateDateColumn.cjs +19 -9
  107. package/src/decorators/orm/UpdateDateColumn.mjs +25 -15
  108. package/src/decorators/orm/VersionColumn.cjs +13 -3
  109. package/src/decorators/orm/VersionColumn.mjs +26 -16
  110. package/src/decorators/orm/ViewColumn.cjs +13 -3
  111. package/src/decorators/orm/ViewColumn.mjs +26 -16
  112. package/src/decorators/orm/ViewEntity.cjs +27 -17
  113. package/src/decorators/orm/ViewEntity.mjs +19 -9
  114. package/src/decorators/orm/VirtualColumn.cjs +18 -8
  115. package/src/decorators/orm/VirtualColumn.mjs +30 -20
  116. package/src/lib/base/internal/PatternManager.cjs +2 -2
  117. package/src/lib/base/internal/PatternManager.mjs +2 -2
  118. package/src/lib/core/Application.cjs +2 -2
  119. package/src/lib/core/Application.mjs +2 -2
  120. package/src/lib/helpers/Glob.cjs +1220 -1149
  121. package/src/lib/helpers/Glob.mjs +769 -700
  122. package/src/lib/helpers/IsXML.cjs +863 -801
  123. package/src/lib/helpers/IsXML.mjs +862 -800
  124. package/src/lib/ioc/ListModules.cjs +967 -909
  125. package/src/lib/ioc/ListModules.mjs +849 -791
  126. package/src/lib/validation/VLD.cjs +20 -10
  127. package/src/lib/validation/VLD.mjs +20 -10
  128. package/vendor/Package.1.cjs +170 -129
  129. package/vendor/Package.1.mjs +169 -128
  130. package/vendor/Package.13.cjs +0 -2
  131. package/vendor/Package.13.mjs +0 -2
  132. package/vendor/Package.14.cjs +8748 -8652
  133. package/vendor/Package.14.mjs +8665 -8581
  134. package/vendor/Package.16.cjs +36855 -15590
  135. package/vendor/Package.16.mjs +36893 -15633
  136. package/vendor/Package.2.cjs +2442 -2440
  137. package/vendor/Package.2.mjs +444 -442
  138. package/vendor/Package.4.cjs +325 -319
  139. package/vendor/Package.4.mjs +326 -320
  140. package/vendor/Package.7.cjs +299 -299
  141. package/vendor/Package.7.mjs +299 -299
  142. package/vendor/TypeDef.5.d.ts +6 -0
@@ -356,7 +356,7 @@ var B = "joi";
356
356
 
357
357
  var P = "Object schema validation";
358
358
 
359
- var U = "17.12.2";
359
+ var U = "17.13.3";
360
360
 
361
361
  var G = "git://github.com/hapijs/joi";
362
362
 
@@ -1280,12 +1280,12 @@ function me() {
1280
1280
  return t[n];
1281
1281
  };
1282
1282
  e.label = function(t, r, s, n) {
1283
- if (t.label) {
1284
- return t.label;
1285
- }
1286
1283
  if (!s.errors.label) {
1287
1284
  return "";
1288
1285
  }
1286
+ if (t.label) {
1287
+ return t.label;
1288
+ }
1289
1289
  let i = r.path;
1290
1290
  if (s.errors.label === "key" && r.path.length > 1) {
1291
1291
  i = r.path.slice(-1);
@@ -6122,9 +6122,11 @@ function vt() {
6122
6122
  type: l.type,
6123
6123
  report: c
6124
6124
  });
6125
- continue;
6125
+ } else if (c.code === "object.base") {
6126
+ s.add(c.local.type);
6127
+ } else {
6128
+ s.add(u);
6126
6129
  }
6127
- s.add(u);
6128
6130
  }
6129
6131
  if (!n.length) {
6130
6132
  return {
@@ -6626,6 +6628,7 @@ function Rt() {
6626
6628
  number: Object.create(null),
6627
6629
  undefined: Object.create(null),
6628
6630
  boolean: Object.create(null),
6631
+ bigint: Object.create(null),
6629
6632
  object: new Map,
6630
6633
  function: new Map,
6631
6634
  custom: new Map
@@ -7466,7 +7469,7 @@ function Xt() {
7466
7469
  },
7467
7470
  flags: {
7468
7471
  unknown: {
7469
- default: false
7472
+ default: undefined
7470
7473
  }
7471
7474
  },
7472
7475
  terms: {
@@ -8307,7 +8310,7 @@ function Xt() {
8307
8310
  if (!r.size || !e.$_terms.keys && !e.$_terms.patterns) {
8308
8311
  return;
8309
8312
  }
8310
- if (a.stripUnknown && !e._flags.unknown || a.skipFunctions) {
8313
+ if (a.stripUnknown && typeof e._flags.unknown === "undefined" || a.skipFunctions) {
8311
8314
  const e = a.stripUnknown ? a.stripUnknown === true ? true : !!a.stripUnknown.objects : false;
8312
8315
  for (const s of r) {
8313
8316
  if (e) {
@@ -9989,7 +9992,7 @@ function xr() {
9989
9992
  },
9990
9993
  uri: {
9991
9994
  method(e = {}) {
9992
- l.assertOptions(e, [ "allowRelative", "allowQuerySquareBrackets", "domain", "relativeOnly", "scheme" ]);
9995
+ l.assertOptions(e, [ "allowRelative", "allowQuerySquareBrackets", "domain", "relativeOnly", "scheme", "encodeUri" ]);
9993
9996
  if (e.domain) {
9994
9997
  l.assertOptions(e.domain, [ "allowFullyQualified", "allowUnicode", "maxDomainSegments", "minDomainSegments", "tlds" ]);
9995
9998
  }
@@ -10009,7 +10012,14 @@ function xr() {
10009
10012
  if ([ "http:/", "https:/" ].includes(e)) {
10010
10013
  return r.error("string.uri");
10011
10014
  }
10012
- const o = n.exec(e);
10015
+ let o = n.exec(e);
10016
+ if (!o && r.prefs.convert && s.encodeUri) {
10017
+ const t = encodeURI(e);
10018
+ o = n.exec(t);
10019
+ if (o) {
10020
+ e = t;
10021
+ }
10022
+ }
10013
10023
  if (o) {
10014
10024
  const n = o[1] || o[2];
10015
10025
  if (i && (!s.allowRelative || n) && !t.isValid(n, i)) {
@@ -342,7 +342,7 @@ var M = "joi";
342
342
 
343
343
  var j = "Object schema validation";
344
344
 
345
- var k = "17.12.2";
345
+ var k = "17.13.3";
346
346
 
347
347
  var B = "git://github.com/hapijs/joi";
348
348
 
@@ -1266,12 +1266,12 @@ function ue() {
1266
1266
  return t[n];
1267
1267
  };
1268
1268
  e.label = function(t, r, s, n) {
1269
- if (t.label) {
1270
- return t.label;
1271
- }
1272
1269
  if (!s.errors.label) {
1273
1270
  return "";
1274
1271
  }
1272
+ if (t.label) {
1273
+ return t.label;
1274
+ }
1275
1275
  let i = r.path;
1276
1276
  if (s.errors.label === "key" && r.path.length > 1) {
1277
1277
  i = r.path.slice(-1);
@@ -6108,9 +6108,11 @@ function yt() {
6108
6108
  type: l.type,
6109
6109
  report: c
6110
6110
  });
6111
- continue;
6111
+ } else if (c.code === "object.base") {
6112
+ s.add(c.local.type);
6113
+ } else {
6114
+ s.add(u);
6112
6115
  }
6113
- s.add(u);
6114
6116
  }
6115
6117
  if (!n.length) {
6116
6118
  return {
@@ -6612,6 +6614,7 @@ function vt() {
6612
6614
  number: Object.create(null),
6613
6615
  undefined: Object.create(null),
6614
6616
  boolean: Object.create(null),
6617
+ bigint: Object.create(null),
6615
6618
  object: new Map,
6616
6619
  function: new Map,
6617
6620
  custom: new Map
@@ -7452,7 +7455,7 @@ function Ut() {
7452
7455
  },
7453
7456
  flags: {
7454
7457
  unknown: {
7455
- default: false
7458
+ default: undefined
7456
7459
  }
7457
7460
  },
7458
7461
  terms: {
@@ -8293,7 +8296,7 @@ function Ut() {
8293
8296
  if (!r.size || !e.$_terms.keys && !e.$_terms.patterns) {
8294
8297
  return;
8295
8298
  }
8296
- if (a.stripUnknown && !e._flags.unknown || a.skipFunctions) {
8299
+ if (a.stripUnknown && typeof e._flags.unknown === "undefined" || a.skipFunctions) {
8297
8300
  const e = a.stripUnknown ? a.stripUnknown === true ? true : !!a.stripUnknown.objects : false;
8298
8301
  for (const s of r) {
8299
8302
  if (e) {
@@ -9975,7 +9978,7 @@ function $r() {
9975
9978
  },
9976
9979
  uri: {
9977
9980
  method(e = {}) {
9978
- l.assertOptions(e, [ "allowRelative", "allowQuerySquareBrackets", "domain", "relativeOnly", "scheme" ]);
9981
+ l.assertOptions(e, [ "allowRelative", "allowQuerySquareBrackets", "domain", "relativeOnly", "scheme", "encodeUri" ]);
9979
9982
  if (e.domain) {
9980
9983
  l.assertOptions(e.domain, [ "allowFullyQualified", "allowUnicode", "maxDomainSegments", "minDomainSegments", "tlds" ]);
9981
9984
  }
@@ -9995,7 +9998,14 @@ function $r() {
9995
9998
  if ([ "http:/", "https:/" ].includes(e)) {
9996
9999
  return r.error("string.uri");
9997
10000
  }
9998
- const o = n.exec(e);
10001
+ let o = n.exec(e);
10002
+ if (!o && r.prefs.convert && s.encodeUri) {
10003
+ const t = encodeURI(e);
10004
+ o = n.exec(t);
10005
+ if (o) {
10006
+ e = t;
10007
+ }
10008
+ }
9999
10009
  if (o) {
10000
10010
  const n = o[1] || o[2];
10001
10011
  if (i && (!s.allowRelative || n) && !t.isValid(n, i)) {