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 +1 -1
- package/src/components/docker/Docker.cjs +2 -1
- package/src/components/docker/Docker.mjs +2 -1
- package/src/decorators/orm/Column.cjs +14 -14
- package/src/decorators/orm/PrimaryColumn.cjs +1 -1
- package/src/lib/base/internal/ObjectLifetime.cjs +1 -1
- package/src/lib/base/internal/ObjectLifetime.mjs +6 -6
- package/vendor/Package.14.cjs +20 -18
package/package.json
CHANGED
|
@@ -62,10 +62,10 @@ exports.Column = r.Column = void 0;
|
|
|
62
62
|
|
|
63
63
|
const t = e.requireGlobals();
|
|
64
64
|
|
|
65
|
-
const o = e.
|
|
65
|
+
const o = e.requireColumnTypeUndefinedError();
|
|
66
66
|
|
|
67
|
-
function
|
|
68
|
-
return function(
|
|
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",
|
|
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:
|
|
84
|
-
propertyName:
|
|
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(
|
|
90
|
+
if (!r.type) throw new o.ColumnTypeUndefinedError(u, a);
|
|
91
91
|
if (r.unique === true) (0, t.getMetadataArgsStorage)().uniques.push({
|
|
92
|
-
target:
|
|
93
|
-
columns: [
|
|
92
|
+
target: u.constructor,
|
|
93
|
+
columns: [ a ]
|
|
94
94
|
});
|
|
95
95
|
(0, t.getMetadataArgsStorage)().columns.push({
|
|
96
|
-
target:
|
|
97
|
-
propertyName:
|
|
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:
|
|
104
|
-
propertyName:
|
|
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 =
|
|
112
|
+
exports.Column = r.Column = u;
|
|
@@ -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
|
|
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
|
|
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,
|
|
36
|
-
if (r(i) && !
|
|
37
|
-
if (
|
|
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 {
|
|
42
|
+
export { o as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
|
package/vendor/Package.14.cjs
CHANGED
|
@@ -29640,24 +29640,26 @@ function vE() {
|
|
|
29640
29640
|
|
|
29641
29641
|
var IE = {};
|
|
29642
29642
|
|
|
29643
|
-
|
|
29644
|
-
|
|
29645
|
-
Object.defineProperty(IE, "__esModule", {
|
|
29646
|
-
value: true
|
|
29647
|
-
});
|
|
29648
|
-
|
|
29649
|
-
var ME = IE.ColumnTypeUndefinedError = void 0;
|
|
29643
|
+
var ME;
|
|
29650
29644
|
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
|
|
29654
|
-
|
|
29655
|
-
|
|
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(
|
|
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;
|