lakutata 2.0.5 → 2.0.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -2761,7 +2761,8 @@ exports.Docker = class Docker extends t.Component {
2761
2761
  PortBindings: n,
2762
2762
  Binds: s,
2763
2763
  Devices: a,
2764
- CapAdd: r.capabilities
2764
+ CapAdd: r.capabilities,
2765
+ Init: true
2765
2766
  },
2766
2767
  NetworkingConfig: {
2767
2768
  EndpointsConfig: o
@@ -2757,7 +2757,8 @@ let qr = class Docker extends i {
2757
2757
  PortBindings: n,
2758
2758
  Binds: s,
2759
2759
  Devices: a,
2760
- CapAdd: i.capabilities
2760
+ CapAdd: i.capabilities,
2761
+ Init: true
2761
2762
  },
2762
2763
  NetworkingConfig: {
2763
2764
  EndpointsConfig: o
@@ -62,10 +62,10 @@ exports.Column = r.Column = void 0;
62
62
 
63
63
  const t = e.requireGlobals();
64
64
 
65
- const o = e.ColumnTypeUndefinedError;
65
+ const o = e.requireColumnTypeUndefinedError();
66
66
 
67
- function a(e, r) {
68
- return function(a, u) {
67
+ function u(e, r) {
68
+ return function(u, a) {
69
69
  let i;
70
70
  if (typeof e === "string" || typeof e === "function") {
71
71
  i = e;
@@ -74,34 +74,34 @@ function a(e, r) {
74
74
  i = e.type;
75
75
  }
76
76
  if (!r) r = {};
77
- const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", a, u) : undefined;
77
+ const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", u, a) : undefined;
78
78
  if (!i && n) i = n;
79
79
  if (!r.type && i) r.type = i;
80
80
  if (r.type === "hstore" && !r.hstoreType) r.hstoreType = n === Object ? "object" : "string";
81
81
  if (typeof e === "function") {
82
82
  (0, t.getMetadataArgsStorage)().embeddeds.push({
83
- target: a.constructor,
84
- propertyName: u,
83
+ target: u.constructor,
84
+ propertyName: a,
85
85
  isArray: n === Array || r.array === true,
86
86
  prefix: r.prefix !== undefined ? r.prefix : undefined,
87
87
  type: e
88
88
  });
89
89
  } else {
90
- if (!r.type) throw new o.ColumnTypeUndefinedError(a, u);
90
+ if (!r.type) throw new o.ColumnTypeUndefinedError(u, a);
91
91
  if (r.unique === true) (0, t.getMetadataArgsStorage)().uniques.push({
92
- target: a.constructor,
93
- columns: [ u ]
92
+ target: u.constructor,
93
+ columns: [ a ]
94
94
  });
95
95
  (0, t.getMetadataArgsStorage)().columns.push({
96
- target: a.constructor,
97
- propertyName: u,
96
+ target: u.constructor,
97
+ propertyName: a,
98
98
  mode: "regular",
99
99
  options: r
100
100
  });
101
101
  if (r.generated) {
102
102
  (0, t.getMetadataArgsStorage)().generations.push({
103
- target: a.constructor,
104
- propertyName: u,
103
+ target: u.constructor,
104
+ propertyName: a,
105
105
  strategy: typeof r.generated === "string" ? r.generated : "increment"
106
106
  });
107
107
  }
@@ -109,4 +109,4 @@ function a(e, r) {
109
109
  };
110
110
  }
111
111
 
112
- exports.Column = r.Column = a;
112
+ exports.Column = r.Column = u;
@@ -62,7 +62,7 @@ exports.PrimaryColumn = r.PrimaryColumn = void 0;
62
62
 
63
63
  const t = e.requireGlobals();
64
64
 
65
- const o = e.ColumnTypeUndefinedError;
65
+ const o = e.requireColumnTypeUndefinedError();
66
66
 
67
67
  const a = e.requirePrimaryColumnCannotBeNullableError();
68
68
 
@@ -39,7 +39,7 @@ function c(t) {
39
39
  }
40
40
 
41
41
  function i(i, a, s = false) {
42
- if (c(i) && !s || c(i) && r(i) !== a) throw new t.LifetimeLockedException("Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked");
42
+ if (c(i) && !s || c(i) && r(i) !== a) throw new t.LifetimeLockedException("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
43
43
  if (s) Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, true, i);
44
44
  Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, a, i);
45
45
  return i;
@@ -1,6 +1,6 @@
1
1
  import { DI_TARGET_CONSTRUCTOR_LIFETIME as e, DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK as t } from "../../../constants/DIMetadataKey.mjs";
2
2
 
3
- import { LifetimeLockedException as o } from "../../../exceptions/di/LifetimeLockedException.mjs";
3
+ import { LifetimeLockedException as a } from "../../../exceptions/di/LifetimeLockedException.mjs";
4
4
 
5
5
  import "../../../../vendor/Package.4.mjs";
6
6
 
@@ -24,7 +24,7 @@ import "./CamelCase.mjs";
24
24
 
25
25
  import "../../helpers/NoCase.mjs";
26
26
 
27
- function a(t) {
27
+ function o(t) {
28
28
  return Reflect.getMetadata(e, t);
29
29
  }
30
30
 
@@ -32,11 +32,11 @@ function r(e) {
32
32
  return !!Reflect.getMetadata(t, e);
33
33
  }
34
34
 
35
- function i(i, m, n = false) {
36
- if (r(i) && !n || r(i) && a(i) !== m) throw new o("Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked");
37
- if (n) Reflect.defineMetadata(t, true, i);
35
+ function i(i, m, s = false) {
36
+ if (r(i) && !s || r(i) && o(i) !== m) throw new a("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
37
+ if (s) Reflect.defineMetadata(t, true, i);
38
38
  Reflect.defineMetadata(e, m, i);
39
39
  return i;
40
40
  }
41
41
 
42
- export { a as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
42
+ export { o as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
@@ -29640,24 +29640,26 @@ function vE() {
29640
29640
 
29641
29641
  var IE = {};
29642
29642
 
29643
- "use strict";
29644
-
29645
- Object.defineProperty(IE, "__esModule", {
29646
- value: true
29647
- });
29648
-
29649
- var ME = IE.ColumnTypeUndefinedError = void 0;
29643
+ var ME;
29650
29644
 
29651
- const wE = yp;
29652
-
29653
- class ColumnTypeUndefinedError extends wE.TypeORMError {
29654
- constructor(e, t) {
29655
- super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29656
- }
29645
+ function wE() {
29646
+ if (ME) return IE;
29647
+ ME = 1;
29648
+ "use strict";
29649
+ Object.defineProperty(IE, "__esModule", {
29650
+ value: true
29651
+ });
29652
+ IE.ColumnTypeUndefinedError = void 0;
29653
+ const e = yp;
29654
+ let t = class ColumnTypeUndefinedError extends e.TypeORMError {
29655
+ constructor(e, t) {
29656
+ super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29657
+ }
29658
+ };
29659
+ IE.ColumnTypeUndefinedError = t;
29660
+ return IE;
29657
29661
  }
29658
29662
 
29659
- ME = IE.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
29660
-
29661
29663
  var DE = {};
29662
29664
 
29663
29665
  var LE;
@@ -29828,7 +29830,7 @@ function YE() {
29828
29830
  t.__exportStar(bE(), e);
29829
29831
  t.__exportStar(AE(), e);
29830
29832
  t.__exportStar(vE(), e);
29831
- t.__exportStar(IE, e);
29833
+ t.__exportStar(wE(), e);
29832
29834
  t.__exportStar(PE(), e);
29833
29835
  t.__exportStar(xE, e);
29834
29836
  t.__exportStar($E(), e);
@@ -72385,8 +72387,6 @@ function wB() {
72385
72387
 
72386
72388
  exports.Brackets = kg;
72387
72389
 
72388
- exports.ColumnTypeUndefinedError = IE;
72389
-
72390
72390
  exports.DefaultNamingStrategy = rb;
72391
72391
 
72392
72392
  exports.EventListenerTypes = Dk;
@@ -72403,6 +72403,8 @@ exports.error = gp;
72403
72403
 
72404
72404
  exports.requireAbstractRepository = pN;
72405
72405
 
72406
+ exports.requireColumnTypeUndefinedError = wE;
72407
+
72406
72408
  exports.requireDataSource = OB;
72407
72409
 
72408
72410
  exports.requireEntityManager = WC;