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.
- package/com/database.cjs +13 -3
- package/com/database.mjs +13 -3
- package/com/docker.cjs +6 -2
- package/com/docker.d.ts +39 -11
- package/com/docker.mjs +6 -2
- package/com/logger.cjs +2 -2
- package/com/logger.mjs +2 -2
- package/decorator/orm.cjs +21 -11
- package/decorator/orm.mjs +13 -3
- package/helper.cjs +12 -12
- package/helper.d.ts +559 -82
- package/helper.mjs +5 -5
- package/lakutata.cjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.cjs +13 -3
- package/orm.mjs +39 -29
- package/package.json +2 -4
- package/src/components/Database.cjs +17 -7
- package/src/components/Database.mjs +13 -3
- package/src/components/Logger.cjs +2 -2
- package/src/components/Logger.mjs +2 -2
- package/src/components/docker/ConnectionOptionsBuilder.cjs +6 -2
- package/src/components/docker/ConnectionOptionsBuilder.mjs +6 -2
- package/src/components/docker/Docker.cjs +10 -3
- package/src/components/docker/Docker.mjs +10 -3
- package/src/components/docker/lib/DockerContainer.cjs +10 -6
- package/src/components/docker/lib/DockerContainer.mjs +6 -2
- package/src/components/docker/lib/DockerContainerTTY.cjs +6 -2
- package/src/components/docker/lib/DockerContainerTTY.mjs +6 -2
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +4 -0
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +4 -0
- package/src/decorators/orm/AfterInsert.cjs +13 -3
- package/src/decorators/orm/AfterInsert.mjs +17 -7
- package/src/decorators/orm/AfterLoad.cjs +17 -7
- package/src/decorators/orm/AfterLoad.mjs +13 -3
- package/src/decorators/orm/AfterRecover.cjs +17 -7
- package/src/decorators/orm/AfterRecover.mjs +17 -7
- package/src/decorators/orm/AfterRemove.cjs +17 -7
- package/src/decorators/orm/AfterRemove.mjs +22 -12
- package/src/decorators/orm/AfterSoftRemove.cjs +13 -3
- package/src/decorators/orm/AfterSoftRemove.mjs +24 -14
- package/src/decorators/orm/AfterUpdate.cjs +13 -3
- package/src/decorators/orm/AfterUpdate.mjs +22 -12
- package/src/decorators/orm/BeforeInsert.cjs +17 -7
- package/src/decorators/orm/BeforeInsert.mjs +17 -7
- package/src/decorators/orm/BeforeRecover.cjs +17 -7
- package/src/decorators/orm/BeforeRecover.mjs +22 -12
- package/src/decorators/orm/BeforeRemove.cjs +17 -7
- package/src/decorators/orm/BeforeRemove.mjs +17 -7
- package/src/decorators/orm/BeforeSoftRemove.cjs +17 -7
- package/src/decorators/orm/BeforeSoftRemove.mjs +23 -13
- package/src/decorators/orm/BeforeUpdate.cjs +17 -7
- package/src/decorators/orm/BeforeUpdate.mjs +22 -12
- package/src/decorators/orm/Check.cjs +18 -8
- package/src/decorators/orm/Check.mjs +13 -3
- package/src/decorators/orm/ChildEntity.cjs +13 -3
- package/src/decorators/orm/ChildEntity.mjs +13 -3
- package/src/decorators/orm/Column.cjs +29 -19
- package/src/decorators/orm/Column.mjs +23 -13
- package/src/decorators/orm/CreateDateColumn.cjs +19 -9
- package/src/decorators/orm/CreateDateColumn.mjs +24 -14
- package/src/decorators/orm/DeleteDateColumn.cjs +19 -9
- package/src/decorators/orm/DeleteDateColumn.mjs +23 -13
- package/src/decorators/orm/Entity.cjs +26 -16
- package/src/decorators/orm/Entity.mjs +32 -22
- package/src/decorators/orm/EventSubscriber.cjs +13 -3
- package/src/decorators/orm/EventSubscriber.mjs +18 -8
- package/src/decorators/orm/Exclusion.cjs +21 -11
- package/src/decorators/orm/Exclusion.mjs +21 -11
- package/src/decorators/orm/Generated.cjs +13 -3
- package/src/decorators/orm/Generated.mjs +13 -3
- package/src/decorators/orm/Index.cjs +22 -12
- package/src/decorators/orm/Index.mjs +27 -17
- package/src/decorators/orm/JoinColumn.cjs +19 -9
- package/src/decorators/orm/JoinColumn.mjs +27 -17
- package/src/decorators/orm/JoinTable.cjs +13 -3
- package/src/decorators/orm/JoinTable.mjs +29 -19
- package/src/decorators/orm/ManyToMany.cjs +25 -15
- package/src/decorators/orm/ManyToMany.mjs +26 -16
- package/src/decorators/orm/ManyToOne.cjs +25 -15
- package/src/decorators/orm/ManyToOne.mjs +26 -16
- package/src/decorators/orm/ObjectIdColumn.cjs +13 -3
- package/src/decorators/orm/ObjectIdColumn.mjs +26 -16
- package/src/decorators/orm/OneToMany.cjs +21 -11
- package/src/decorators/orm/OneToMany.mjs +22 -12
- package/src/decorators/orm/OneToOne.cjs +16 -6
- package/src/decorators/orm/OneToOne.mjs +36 -26
- package/src/decorators/orm/PrimaryColumn.cjs +22 -12
- package/src/decorators/orm/PrimaryColumn.mjs +24 -14
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +32 -22
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +18 -8
- package/src/decorators/orm/RelationId.cjs +19 -9
- package/src/decorators/orm/RelationId.mjs +18 -8
- package/src/decorators/orm/TableInheritance.cjs +17 -7
- package/src/decorators/orm/TableInheritance.mjs +26 -16
- package/src/decorators/orm/Tree.cjs +13 -3
- package/src/decorators/orm/Tree.mjs +26 -16
- package/src/decorators/orm/TreeChildren.cjs +15 -5
- package/src/decorators/orm/TreeChildren.mjs +18 -8
- package/src/decorators/orm/TreeLevelColumn.cjs +13 -3
- package/src/decorators/orm/TreeLevelColumn.mjs +20 -10
- package/src/decorators/orm/TreeParent.cjs +19 -9
- package/src/decorators/orm/TreeParent.mjs +13 -3
- package/src/decorators/orm/Unique.cjs +29 -19
- package/src/decorators/orm/Unique.mjs +30 -20
- package/src/decorators/orm/UpdateDateColumn.cjs +19 -9
- package/src/decorators/orm/UpdateDateColumn.mjs +25 -15
- package/src/decorators/orm/VersionColumn.cjs +13 -3
- package/src/decorators/orm/VersionColumn.mjs +26 -16
- package/src/decorators/orm/ViewColumn.cjs +13 -3
- package/src/decorators/orm/ViewColumn.mjs +26 -16
- package/src/decorators/orm/ViewEntity.cjs +27 -17
- package/src/decorators/orm/ViewEntity.mjs +19 -9
- package/src/decorators/orm/VirtualColumn.cjs +18 -8
- package/src/decorators/orm/VirtualColumn.mjs +30 -20
- package/src/lib/base/internal/PatternManager.cjs +2 -2
- package/src/lib/base/internal/PatternManager.mjs +2 -2
- package/src/lib/core/Application.cjs +2 -2
- package/src/lib/core/Application.mjs +2 -2
- package/src/lib/helpers/Glob.cjs +1220 -1149
- package/src/lib/helpers/Glob.mjs +769 -700
- package/src/lib/helpers/IsXML.cjs +863 -801
- package/src/lib/helpers/IsXML.mjs +862 -800
- package/src/lib/ioc/ListModules.cjs +967 -909
- package/src/lib/ioc/ListModules.mjs +849 -791
- package/src/lib/validation/VLD.cjs +20 -10
- package/src/lib/validation/VLD.mjs +20 -10
- package/vendor/Package.1.cjs +170 -129
- package/vendor/Package.1.mjs +169 -128
- package/vendor/Package.13.cjs +0 -2
- package/vendor/Package.13.mjs +0 -2
- package/vendor/Package.14.cjs +8748 -8652
- package/vendor/Package.14.mjs +8665 -8581
- package/vendor/Package.16.cjs +36855 -15590
- package/vendor/Package.16.mjs +36893 -15633
- package/vendor/Package.2.cjs +2442 -2440
- package/vendor/Package.2.mjs +444 -442
- package/vendor/Package.4.cjs +325 -319
- package/vendor/Package.4.mjs +326 -320
- package/vendor/Package.7.cjs +299 -299
- package/vendor/Package.7.mjs +299 -299
- package/vendor/TypeDef.5.d.ts +6 -0
|
@@ -32,8 +32,6 @@ import "buffer";
|
|
|
32
32
|
|
|
33
33
|
import "tty";
|
|
34
34
|
|
|
35
|
-
import "string_decoder";
|
|
36
|
-
|
|
37
35
|
import "../../../vendor/Package.6.mjs";
|
|
38
36
|
|
|
39
37
|
import "url";
|
|
@@ -42,32 +40,44 @@ import "util";
|
|
|
42
40
|
|
|
43
41
|
import "../../../vendor/Package.73.mjs";
|
|
44
42
|
|
|
45
|
-
import "
|
|
43
|
+
import "node:url";
|
|
44
|
+
|
|
45
|
+
import "node:path";
|
|
46
|
+
|
|
47
|
+
import "node:fs";
|
|
48
|
+
|
|
49
|
+
import "node:fs/promises";
|
|
50
|
+
|
|
51
|
+
import "node:events";
|
|
52
|
+
|
|
53
|
+
import "node:stream";
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
import "node:string_decoder";
|
|
56
|
+
|
|
57
|
+
var o = {};
|
|
48
58
|
|
|
49
59
|
"use strict";
|
|
50
60
|
|
|
51
|
-
Object.defineProperty(
|
|
61
|
+
Object.defineProperty(o, "__esModule", {
|
|
52
62
|
value: true
|
|
53
63
|
});
|
|
54
64
|
|
|
55
|
-
var
|
|
65
|
+
var r = o.ManyToOne = void 0;
|
|
56
66
|
|
|
57
67
|
const a = e();
|
|
58
68
|
|
|
59
69
|
const i = t;
|
|
60
70
|
|
|
61
|
-
function m(e, t,
|
|
62
|
-
let
|
|
71
|
+
function m(e, t, o) {
|
|
72
|
+
let r;
|
|
63
73
|
if (i.ObjectUtils.isObject(t)) {
|
|
64
|
-
r = t;
|
|
65
|
-
} else {
|
|
66
74
|
o = t;
|
|
75
|
+
} else {
|
|
76
|
+
r = t;
|
|
67
77
|
}
|
|
68
78
|
return function(t, i) {
|
|
69
|
-
if (!
|
|
70
|
-
let m =
|
|
79
|
+
if (!o) o = {};
|
|
80
|
+
let m = o && o.lazy === true;
|
|
71
81
|
if (!m && Reflect && Reflect.getMetadata) {
|
|
72
82
|
const e = Reflect.getMetadata("design:type", t, i);
|
|
73
83
|
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") m = true;
|
|
@@ -78,12 +88,12 @@ function m(e, t, r) {
|
|
|
78
88
|
relationType: "many-to-one",
|
|
79
89
|
isLazy: m,
|
|
80
90
|
type: e,
|
|
81
|
-
inverseSideProperty:
|
|
82
|
-
options:
|
|
91
|
+
inverseSideProperty: r,
|
|
92
|
+
options: o
|
|
83
93
|
});
|
|
84
94
|
};
|
|
85
95
|
}
|
|
86
96
|
|
|
87
|
-
|
|
97
|
+
r = o.ManyToOne = m;
|
|
88
98
|
|
|
89
|
-
export {
|
|
99
|
+
export { r as ManyToOne };
|
|
@@ -38,8 +38,6 @@ require("buffer");
|
|
|
38
38
|
|
|
39
39
|
require("tty");
|
|
40
40
|
|
|
41
|
-
require("string_decoder");
|
|
42
|
-
|
|
43
41
|
require("../../../vendor/Package.6.cjs");
|
|
44
42
|
|
|
45
43
|
require("url");
|
|
@@ -48,7 +46,19 @@ require("util");
|
|
|
48
46
|
|
|
49
47
|
require("../../../vendor/Package.73.cjs");
|
|
50
48
|
|
|
51
|
-
require("
|
|
49
|
+
require("node:url");
|
|
50
|
+
|
|
51
|
+
require("node:path");
|
|
52
|
+
|
|
53
|
+
require("node:fs");
|
|
54
|
+
|
|
55
|
+
require("node:fs/promises");
|
|
56
|
+
|
|
57
|
+
require("node:events");
|
|
58
|
+
|
|
59
|
+
require("node:stream");
|
|
60
|
+
|
|
61
|
+
require("node:string_decoder");
|
|
52
62
|
|
|
53
63
|
var r = {};
|
|
54
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import { r } from "../../../vendor/Package.14.mjs";
|
|
3
|
+
import { r as o } from "../../../vendor/Package.14.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../vendor/Package.8.mjs";
|
|
6
6
|
|
|
@@ -32,8 +32,6 @@ import "buffer";
|
|
|
32
32
|
|
|
33
33
|
import "tty";
|
|
34
34
|
|
|
35
|
-
import "string_decoder";
|
|
36
|
-
|
|
37
35
|
import "../../../vendor/Package.6.mjs";
|
|
38
36
|
|
|
39
37
|
import "url";
|
|
@@ -42,34 +40,46 @@ import "util";
|
|
|
42
40
|
|
|
43
41
|
import "../../../vendor/Package.73.mjs";
|
|
44
42
|
|
|
45
|
-
import "
|
|
43
|
+
import "node:url";
|
|
44
|
+
|
|
45
|
+
import "node:path";
|
|
46
|
+
|
|
47
|
+
import "node:fs";
|
|
48
|
+
|
|
49
|
+
import "node:fs/promises";
|
|
50
|
+
|
|
51
|
+
import "node:events";
|
|
52
|
+
|
|
53
|
+
import "node:stream";
|
|
54
|
+
|
|
55
|
+
import "node:string_decoder";
|
|
46
56
|
|
|
47
|
-
var
|
|
57
|
+
var r = {};
|
|
48
58
|
|
|
49
59
|
"use strict";
|
|
50
60
|
|
|
51
|
-
Object.defineProperty(
|
|
61
|
+
Object.defineProperty(r, "__esModule", {
|
|
52
62
|
value: true
|
|
53
63
|
});
|
|
54
64
|
|
|
55
|
-
var t =
|
|
65
|
+
var t = r.ObjectIdColumn = void 0;
|
|
56
66
|
|
|
57
|
-
const e =
|
|
67
|
+
const e = o();
|
|
58
68
|
|
|
59
|
-
function m(
|
|
60
|
-
return function(
|
|
61
|
-
if (!
|
|
62
|
-
|
|
63
|
-
if (!
|
|
69
|
+
function m(o) {
|
|
70
|
+
return function(r, t) {
|
|
71
|
+
if (!o) o = {};
|
|
72
|
+
o.primary = true;
|
|
73
|
+
if (!o.name) o.name = "_id";
|
|
64
74
|
(0, e.getMetadataArgsStorage)().columns.push({
|
|
65
|
-
target:
|
|
75
|
+
target: r.constructor,
|
|
66
76
|
propertyName: t,
|
|
67
77
|
mode: "objectId",
|
|
68
|
-
options:
|
|
78
|
+
options: o
|
|
69
79
|
});
|
|
70
80
|
};
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
t =
|
|
83
|
+
t = r.ObjectIdColumn = m;
|
|
74
84
|
|
|
75
85
|
export { t as ObjectIdColumn };
|
|
@@ -38,8 +38,6 @@ require("buffer");
|
|
|
38
38
|
|
|
39
39
|
require("tty");
|
|
40
40
|
|
|
41
|
-
require("string_decoder");
|
|
42
|
-
|
|
43
41
|
require("../../../vendor/Package.6.cjs");
|
|
44
42
|
|
|
45
43
|
require("url");
|
|
@@ -48,7 +46,19 @@ require("util");
|
|
|
48
46
|
|
|
49
47
|
require("../../../vendor/Package.73.cjs");
|
|
50
48
|
|
|
51
|
-
require("
|
|
49
|
+
require("node:url");
|
|
50
|
+
|
|
51
|
+
require("node:path");
|
|
52
|
+
|
|
53
|
+
require("node:fs");
|
|
54
|
+
|
|
55
|
+
require("node:fs/promises");
|
|
56
|
+
|
|
57
|
+
require("node:events");
|
|
58
|
+
|
|
59
|
+
require("node:stream");
|
|
60
|
+
|
|
61
|
+
require("node:string_decoder");
|
|
52
62
|
|
|
53
63
|
var r = {};
|
|
54
64
|
|
|
@@ -62,24 +72,24 @@ exports.OneToMany = r.OneToMany = void 0;
|
|
|
62
72
|
|
|
63
73
|
const t = e.requireGlobals();
|
|
64
74
|
|
|
65
|
-
function
|
|
66
|
-
return function(
|
|
67
|
-
if (!
|
|
68
|
-
let n =
|
|
75
|
+
function o(e, r, o) {
|
|
76
|
+
return function(a, i) {
|
|
77
|
+
if (!o) o = {};
|
|
78
|
+
let n = o && o.lazy === true;
|
|
69
79
|
if (!n && Reflect && Reflect.getMetadata) {
|
|
70
|
-
const e = Reflect.getMetadata("design:type",
|
|
80
|
+
const e = Reflect.getMetadata("design:type", a, i);
|
|
71
81
|
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") n = true;
|
|
72
82
|
}
|
|
73
83
|
(0, t.getMetadataArgsStorage)().relations.push({
|
|
74
|
-
target:
|
|
84
|
+
target: a.constructor,
|
|
75
85
|
propertyName: i,
|
|
76
86
|
isLazy: n,
|
|
77
87
|
relationType: "one-to-many",
|
|
78
88
|
type: e,
|
|
79
89
|
inverseSideProperty: r,
|
|
80
|
-
options:
|
|
90
|
+
options: o
|
|
81
91
|
});
|
|
82
92
|
};
|
|
83
93
|
}
|
|
84
94
|
|
|
85
|
-
exports.OneToMany = r.OneToMany =
|
|
95
|
+
exports.OneToMany = r.OneToMany = o;
|
|
@@ -32,8 +32,6 @@ import "buffer";
|
|
|
32
32
|
|
|
33
33
|
import "tty";
|
|
34
34
|
|
|
35
|
-
import "string_decoder";
|
|
36
|
-
|
|
37
35
|
import "../../../vendor/Package.6.mjs";
|
|
38
36
|
|
|
39
37
|
import "url";
|
|
@@ -42,7 +40,19 @@ import "util";
|
|
|
42
40
|
|
|
43
41
|
import "../../../vendor/Package.73.mjs";
|
|
44
42
|
|
|
45
|
-
import "
|
|
43
|
+
import "node:url";
|
|
44
|
+
|
|
45
|
+
import "node:path";
|
|
46
|
+
|
|
47
|
+
import "node:fs";
|
|
48
|
+
|
|
49
|
+
import "node:fs/promises";
|
|
50
|
+
|
|
51
|
+
import "node:events";
|
|
52
|
+
|
|
53
|
+
import "node:stream";
|
|
54
|
+
|
|
55
|
+
import "node:string_decoder";
|
|
46
56
|
|
|
47
57
|
var t = {};
|
|
48
58
|
|
|
@@ -52,30 +62,30 @@ Object.defineProperty(t, "__esModule", {
|
|
|
52
62
|
value: true
|
|
53
63
|
});
|
|
54
64
|
|
|
55
|
-
var
|
|
65
|
+
var o = t.OneToMany = void 0;
|
|
56
66
|
|
|
57
|
-
const
|
|
67
|
+
const r = e();
|
|
58
68
|
|
|
59
|
-
function a(e, t,
|
|
69
|
+
function a(e, t, o) {
|
|
60
70
|
return function(a, i) {
|
|
61
|
-
if (!
|
|
62
|
-
let m =
|
|
71
|
+
if (!o) o = {};
|
|
72
|
+
let m = o && o.lazy === true;
|
|
63
73
|
if (!m && Reflect && Reflect.getMetadata) {
|
|
64
74
|
const e = Reflect.getMetadata("design:type", a, i);
|
|
65
75
|
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") m = true;
|
|
66
76
|
}
|
|
67
|
-
(0,
|
|
77
|
+
(0, r.getMetadataArgsStorage)().relations.push({
|
|
68
78
|
target: a.constructor,
|
|
69
79
|
propertyName: i,
|
|
70
80
|
isLazy: m,
|
|
71
81
|
relationType: "one-to-many",
|
|
72
82
|
type: e,
|
|
73
83
|
inverseSideProperty: t,
|
|
74
|
-
options:
|
|
84
|
+
options: o
|
|
75
85
|
});
|
|
76
86
|
};
|
|
77
87
|
}
|
|
78
88
|
|
|
79
|
-
|
|
89
|
+
o = t.OneToMany = a;
|
|
80
90
|
|
|
81
|
-
export {
|
|
91
|
+
export { o as OneToMany };
|
|
@@ -38,8 +38,6 @@ require("buffer");
|
|
|
38
38
|
|
|
39
39
|
require("tty");
|
|
40
40
|
|
|
41
|
-
require("string_decoder");
|
|
42
|
-
|
|
43
41
|
require("../../../vendor/Package.6.cjs");
|
|
44
42
|
|
|
45
43
|
require("url");
|
|
@@ -48,7 +46,19 @@ require("util");
|
|
|
48
46
|
|
|
49
47
|
require("../../../vendor/Package.73.cjs");
|
|
50
48
|
|
|
51
|
-
require("
|
|
49
|
+
require("node:url");
|
|
50
|
+
|
|
51
|
+
require("node:path");
|
|
52
|
+
|
|
53
|
+
require("node:fs");
|
|
54
|
+
|
|
55
|
+
require("node:fs/promises");
|
|
56
|
+
|
|
57
|
+
require("node:events");
|
|
58
|
+
|
|
59
|
+
require("node:stream");
|
|
60
|
+
|
|
61
|
+
require("node:string_decoder");
|
|
52
62
|
|
|
53
63
|
var r = {};
|
|
54
64
|
|
|
@@ -65,11 +75,11 @@ const t = e.requireGlobals();
|
|
|
65
75
|
const o = e.ObjectUtils;
|
|
66
76
|
|
|
67
77
|
function i(e, r, i) {
|
|
68
|
-
let
|
|
78
|
+
let n;
|
|
69
79
|
if (o.ObjectUtils.isObject(r)) {
|
|
70
80
|
i = r;
|
|
71
81
|
} else {
|
|
72
|
-
|
|
82
|
+
n = r;
|
|
73
83
|
}
|
|
74
84
|
return function(r, o) {
|
|
75
85
|
if (!i) i = {};
|
|
@@ -84,7 +94,7 @@ function i(e, r, i) {
|
|
|
84
94
|
isLazy: s,
|
|
85
95
|
relationType: "one-to-one",
|
|
86
96
|
type: e,
|
|
87
|
-
inverseSideProperty:
|
|
97
|
+
inverseSideProperty: n,
|
|
88
98
|
options: i
|
|
89
99
|
});
|
|
90
100
|
};
|
|
@@ -32,8 +32,6 @@ import "buffer";
|
|
|
32
32
|
|
|
33
33
|
import "tty";
|
|
34
34
|
|
|
35
|
-
import "string_decoder";
|
|
36
|
-
|
|
37
35
|
import "../../../vendor/Package.6.mjs";
|
|
38
36
|
|
|
39
37
|
import "url";
|
|
@@ -42,48 +40,60 @@ import "util";
|
|
|
42
40
|
|
|
43
41
|
import "../../../vendor/Package.73.mjs";
|
|
44
42
|
|
|
45
|
-
import "
|
|
43
|
+
import "node:url";
|
|
44
|
+
|
|
45
|
+
import "node:path";
|
|
46
|
+
|
|
47
|
+
import "node:fs";
|
|
48
|
+
|
|
49
|
+
import "node:fs/promises";
|
|
50
|
+
|
|
51
|
+
import "node:events";
|
|
52
|
+
|
|
53
|
+
import "node:stream";
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
import "node:string_decoder";
|
|
56
|
+
|
|
57
|
+
var o = {};
|
|
48
58
|
|
|
49
59
|
"use strict";
|
|
50
60
|
|
|
51
|
-
Object.defineProperty(
|
|
61
|
+
Object.defineProperty(o, "__esModule", {
|
|
52
62
|
value: true
|
|
53
63
|
});
|
|
54
64
|
|
|
55
|
-
var
|
|
65
|
+
var r = o.OneToOne = void 0;
|
|
56
66
|
|
|
57
|
-
const
|
|
67
|
+
const i = e();
|
|
58
68
|
|
|
59
|
-
const
|
|
69
|
+
const a = t;
|
|
60
70
|
|
|
61
|
-
function
|
|
62
|
-
let
|
|
63
|
-
if (
|
|
64
|
-
r = t;
|
|
65
|
-
} else {
|
|
71
|
+
function m(e, t, o) {
|
|
72
|
+
let r;
|
|
73
|
+
if (a.ObjectUtils.isObject(t)) {
|
|
66
74
|
o = t;
|
|
75
|
+
} else {
|
|
76
|
+
r = t;
|
|
67
77
|
}
|
|
68
|
-
return function(t,
|
|
69
|
-
if (!
|
|
70
|
-
let
|
|
71
|
-
if (!
|
|
72
|
-
const e = Reflect.getMetadata("design:type", t,
|
|
73
|
-
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise")
|
|
78
|
+
return function(t, a) {
|
|
79
|
+
if (!o) o = {};
|
|
80
|
+
let m = o && o.lazy === true ? true : false;
|
|
81
|
+
if (!m && Reflect && Reflect.getMetadata) {
|
|
82
|
+
const e = Reflect.getMetadata("design:type", t, a);
|
|
83
|
+
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") m = true;
|
|
74
84
|
}
|
|
75
|
-
(0,
|
|
85
|
+
(0, i.getMetadataArgsStorage)().relations.push({
|
|
76
86
|
target: t.constructor,
|
|
77
|
-
propertyName:
|
|
78
|
-
isLazy:
|
|
87
|
+
propertyName: a,
|
|
88
|
+
isLazy: m,
|
|
79
89
|
relationType: "one-to-one",
|
|
80
90
|
type: e,
|
|
81
|
-
inverseSideProperty:
|
|
82
|
-
options:
|
|
91
|
+
inverseSideProperty: r,
|
|
92
|
+
options: o
|
|
83
93
|
});
|
|
84
94
|
};
|
|
85
95
|
}
|
|
86
96
|
|
|
87
|
-
|
|
97
|
+
r = o.OneToOne = m;
|
|
88
98
|
|
|
89
|
-
export {
|
|
99
|
+
export { r as OneToOne };
|
|
@@ -38,8 +38,6 @@ require("buffer");
|
|
|
38
38
|
|
|
39
39
|
require("tty");
|
|
40
40
|
|
|
41
|
-
require("string_decoder");
|
|
42
|
-
|
|
43
41
|
require("../../../vendor/Package.6.cjs");
|
|
44
42
|
|
|
45
43
|
require("url");
|
|
@@ -48,7 +46,19 @@ require("util");
|
|
|
48
46
|
|
|
49
47
|
require("../../../vendor/Package.73.cjs");
|
|
50
48
|
|
|
51
|
-
require("
|
|
49
|
+
require("node:url");
|
|
50
|
+
|
|
51
|
+
require("node:path");
|
|
52
|
+
|
|
53
|
+
require("node:fs");
|
|
54
|
+
|
|
55
|
+
require("node:fs/promises");
|
|
56
|
+
|
|
57
|
+
require("node:events");
|
|
58
|
+
|
|
59
|
+
require("node:stream");
|
|
60
|
+
|
|
61
|
+
require("node:string_decoder");
|
|
52
62
|
|
|
53
63
|
var r = {};
|
|
54
64
|
|
|
@@ -64,10 +74,10 @@ const t = e.requireGlobals();
|
|
|
64
74
|
|
|
65
75
|
const o = e.requireColumnTypeUndefinedError();
|
|
66
76
|
|
|
67
|
-
const
|
|
77
|
+
const n = e.requirePrimaryColumnCannotBeNullableError();
|
|
68
78
|
|
|
69
|
-
function
|
|
70
|
-
return function(
|
|
79
|
+
function a(e, r) {
|
|
80
|
+
return function(a, i) {
|
|
71
81
|
let u;
|
|
72
82
|
if (typeof e === "string" || e === String || e === Boolean || e === Number) {
|
|
73
83
|
u = e;
|
|
@@ -75,21 +85,21 @@ function n(e, r) {
|
|
|
75
85
|
r = Object.assign({}, e);
|
|
76
86
|
}
|
|
77
87
|
if (!r) r = {};
|
|
78
|
-
const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type",
|
|
88
|
+
const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", a, i) : undefined;
|
|
79
89
|
if (!u && s) u = s;
|
|
80
90
|
if (!r.type && u) r.type = u;
|
|
81
|
-
if (!r.type) throw new o.ColumnTypeUndefinedError(
|
|
82
|
-
if (r.nullable) throw new
|
|
91
|
+
if (!r.type) throw new o.ColumnTypeUndefinedError(a, i);
|
|
92
|
+
if (r.nullable) throw new n.PrimaryColumnCannotBeNullableError(a, i);
|
|
83
93
|
r.primary = true;
|
|
84
94
|
(0, t.getMetadataArgsStorage)().columns.push({
|
|
85
|
-
target:
|
|
95
|
+
target: a.constructor,
|
|
86
96
|
propertyName: i,
|
|
87
97
|
mode: "regular",
|
|
88
98
|
options: r
|
|
89
99
|
});
|
|
90
100
|
if (r.generated) {
|
|
91
101
|
(0, t.getMetadataArgsStorage)().generations.push({
|
|
92
|
-
target:
|
|
102
|
+
target: a.constructor,
|
|
93
103
|
propertyName: i,
|
|
94
104
|
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
95
105
|
});
|
|
@@ -97,4 +107,4 @@ function n(e, r) {
|
|
|
97
107
|
};
|
|
98
108
|
}
|
|
99
109
|
|
|
100
|
-
exports.PrimaryColumn = r.PrimaryColumn =
|
|
110
|
+
exports.PrimaryColumn = r.PrimaryColumn = a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import { r as e,
|
|
3
|
+
import { r as e, C as r, a as t } from "../../../vendor/Package.14.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../vendor/Package.8.mjs";
|
|
6
6
|
|
|
@@ -32,8 +32,6 @@ import "buffer";
|
|
|
32
32
|
|
|
33
33
|
import "tty";
|
|
34
34
|
|
|
35
|
-
import "string_decoder";
|
|
36
|
-
|
|
37
35
|
import "../../../vendor/Package.6.mjs";
|
|
38
36
|
|
|
39
37
|
import "url";
|
|
@@ -42,7 +40,19 @@ import "util";
|
|
|
42
40
|
|
|
43
41
|
import "../../../vendor/Package.73.mjs";
|
|
44
42
|
|
|
45
|
-
import "
|
|
43
|
+
import "node:url";
|
|
44
|
+
|
|
45
|
+
import "node:path";
|
|
46
|
+
|
|
47
|
+
import "node:fs";
|
|
48
|
+
|
|
49
|
+
import "node:fs/promises";
|
|
50
|
+
|
|
51
|
+
import "node:events";
|
|
52
|
+
|
|
53
|
+
import "node:stream";
|
|
54
|
+
|
|
55
|
+
import "node:string_decoder";
|
|
46
56
|
|
|
47
57
|
var o = {};
|
|
48
58
|
|
|
@@ -54,13 +64,13 @@ Object.defineProperty(o, "__esModule", {
|
|
|
54
64
|
|
|
55
65
|
var a = o.PrimaryColumn = void 0;
|
|
56
66
|
|
|
57
|
-
const
|
|
67
|
+
const n = e();
|
|
58
68
|
|
|
59
|
-
const m = r
|
|
69
|
+
const m = r;
|
|
60
70
|
|
|
61
|
-
const
|
|
71
|
+
const i = t();
|
|
62
72
|
|
|
63
|
-
function
|
|
73
|
+
function p(e, r) {
|
|
64
74
|
return function(t, o) {
|
|
65
75
|
let a;
|
|
66
76
|
if (typeof e === "string" || e === String || e === Boolean || e === Number) {
|
|
@@ -69,20 +79,20 @@ function s(e, r) {
|
|
|
69
79
|
r = Object.assign({}, e);
|
|
70
80
|
}
|
|
71
81
|
if (!r) r = {};
|
|
72
|
-
const
|
|
73
|
-
if (!a &&
|
|
82
|
+
const p = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", t, o) : undefined;
|
|
83
|
+
if (!a && p) a = p;
|
|
74
84
|
if (!r.type && a) r.type = a;
|
|
75
85
|
if (!r.type) throw new m.ColumnTypeUndefinedError(t, o);
|
|
76
|
-
if (r.nullable) throw new
|
|
86
|
+
if (r.nullable) throw new i.PrimaryColumnCannotBeNullableError(t, o);
|
|
77
87
|
r.primary = true;
|
|
78
|
-
(0,
|
|
88
|
+
(0, n.getMetadataArgsStorage)().columns.push({
|
|
79
89
|
target: t.constructor,
|
|
80
90
|
propertyName: o,
|
|
81
91
|
mode: "regular",
|
|
82
92
|
options: r
|
|
83
93
|
});
|
|
84
94
|
if (r.generated) {
|
|
85
|
-
(0,
|
|
95
|
+
(0, n.getMetadataArgsStorage)().generations.push({
|
|
86
96
|
target: t.constructor,
|
|
87
97
|
propertyName: o,
|
|
88
98
|
strategy: typeof r.generated === "string" ? r.generated : "increment"
|
|
@@ -91,6 +101,6 @@ function s(e, r) {
|
|
|
91
101
|
};
|
|
92
102
|
}
|
|
93
103
|
|
|
94
|
-
a = o.PrimaryColumn =
|
|
104
|
+
a = o.PrimaryColumn = p;
|
|
95
105
|
|
|
96
106
|
export { a as PrimaryColumn };
|