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
|
@@ -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
|
|
|
@@ -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 e = {};
|
|
48
58
|
|
|
@@ -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,18 +72,18 @@ exports.Index = r.Index = void 0;
|
|
|
62
72
|
|
|
63
73
|
const t = e.requireGlobals();
|
|
64
74
|
|
|
65
|
-
const
|
|
75
|
+
const u = e.ObjectUtils;
|
|
66
76
|
|
|
67
|
-
function
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
let a =
|
|
71
|
-
if (!a) a =
|
|
77
|
+
function s(e, r, s) {
|
|
78
|
+
const n = typeof e === "string" ? e : undefined;
|
|
79
|
+
const i = typeof e === "string" ? r : e;
|
|
80
|
+
let a = u.ObjectUtils.isObject(e) && !Array.isArray(e) ? e : s;
|
|
81
|
+
if (!a) a = u.ObjectUtils.isObject(r) && !Array.isArray(r) ? r : s;
|
|
72
82
|
return function(e, r) {
|
|
73
83
|
(0, t.getMetadataArgsStorage)().indices.push({
|
|
74
84
|
target: r ? e.constructor : e,
|
|
75
|
-
name:
|
|
76
|
-
columns: r ? [ r ] :
|
|
85
|
+
name: n,
|
|
86
|
+
columns: r ? [ r ] : i,
|
|
77
87
|
synchronize: a && a.synchronize === false ? false : true,
|
|
78
88
|
where: a ? a.where : undefined,
|
|
79
89
|
unique: a && a.unique ? true : false,
|
|
@@ -89,4 +99,4 @@ function u(e, r, u) {
|
|
|
89
99
|
};
|
|
90
100
|
}
|
|
91
101
|
|
|
92
|
-
exports.Index = r.Index =
|
|
102
|
+
exports.Index = r.Index = s;
|
|
@@ -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
|
|
|
@@ -56,29 +66,29 @@ var o = t.Index = void 0;
|
|
|
56
66
|
|
|
57
67
|
const s = e();
|
|
58
68
|
|
|
59
|
-
const
|
|
69
|
+
const n = r;
|
|
60
70
|
|
|
61
71
|
function i(e, r, t) {
|
|
62
72
|
const o = typeof e === "string" ? e : undefined;
|
|
63
73
|
const i = typeof e === "string" ? r : e;
|
|
64
|
-
let
|
|
65
|
-
if (!
|
|
74
|
+
let a = n.ObjectUtils.isObject(e) && !Array.isArray(e) ? e : t;
|
|
75
|
+
if (!a) a = n.ObjectUtils.isObject(r) && !Array.isArray(r) ? r : t;
|
|
66
76
|
return function(e, r) {
|
|
67
77
|
(0, s.getMetadataArgsStorage)().indices.push({
|
|
68
78
|
target: r ? e.constructor : e,
|
|
69
79
|
name: o,
|
|
70
80
|
columns: r ? [ r ] : i,
|
|
71
|
-
synchronize:
|
|
72
|
-
where:
|
|
73
|
-
unique:
|
|
74
|
-
spatial:
|
|
75
|
-
fulltext:
|
|
76
|
-
nullFiltered:
|
|
77
|
-
parser:
|
|
78
|
-
sparse:
|
|
79
|
-
background:
|
|
80
|
-
concurrent:
|
|
81
|
-
expireAfterSeconds:
|
|
81
|
+
synchronize: a && a.synchronize === false ? false : true,
|
|
82
|
+
where: a ? a.where : undefined,
|
|
83
|
+
unique: a && a.unique ? true : false,
|
|
84
|
+
spatial: a && a.spatial ? true : false,
|
|
85
|
+
fulltext: a && a.fulltext ? true : false,
|
|
86
|
+
nullFiltered: a && a.nullFiltered ? true : false,
|
|
87
|
+
parser: a ? a.parser : undefined,
|
|
88
|
+
sparse: a && a.sparse ? true : false,
|
|
89
|
+
background: a && a.background ? true : false,
|
|
90
|
+
concurrent: a && a.concurrent ? true : false,
|
|
91
|
+
expireAfterSeconds: a ? a.expireAfterSeconds : undefined
|
|
82
92
|
});
|
|
83
93
|
};
|
|
84
94
|
}
|
|
@@ -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,13 +72,13 @@ exports.JoinColumn = r.JoinColumn = void 0;
|
|
|
62
72
|
|
|
63
73
|
const o = e.requireGlobals();
|
|
64
74
|
|
|
65
|
-
function
|
|
66
|
-
return function(r,
|
|
67
|
-
const
|
|
68
|
-
|
|
75
|
+
function n(e) {
|
|
76
|
+
return function(r, n) {
|
|
77
|
+
const u = Array.isArray(e) ? e : [ e || {} ];
|
|
78
|
+
u.forEach((e => {
|
|
69
79
|
(0, o.getMetadataArgsStorage)().joinColumns.push({
|
|
70
80
|
target: r.constructor,
|
|
71
|
-
propertyName:
|
|
81
|
+
propertyName: n,
|
|
72
82
|
name: e.name,
|
|
73
83
|
referencedColumnName: e.referencedColumnName,
|
|
74
84
|
foreignKeyConstraintName: e.foreignKeyConstraintName
|
|
@@ -77,4 +87,4 @@ function u(e) {
|
|
|
77
87
|
};
|
|
78
88
|
}
|
|
79
89
|
|
|
80
|
-
exports.JoinColumn = r.JoinColumn =
|
|
90
|
+
exports.JoinColumn = r.JoinColumn = n;
|
|
@@ -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,35 +40,47 @@ 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 e =
|
|
65
|
+
var e = r.JoinColumn = void 0;
|
|
56
66
|
|
|
57
|
-
const t =
|
|
67
|
+
const t = o();
|
|
58
68
|
|
|
59
|
-
function m(
|
|
60
|
-
return function(
|
|
61
|
-
const m = Array.isArray(
|
|
62
|
-
m.forEach((
|
|
69
|
+
function m(o) {
|
|
70
|
+
return function(r, e) {
|
|
71
|
+
const m = Array.isArray(o) ? o : [ o || {} ];
|
|
72
|
+
m.forEach((o => {
|
|
63
73
|
(0, t.getMetadataArgsStorage)().joinColumns.push({
|
|
64
|
-
target:
|
|
74
|
+
target: r.constructor,
|
|
65
75
|
propertyName: e,
|
|
66
|
-
name:
|
|
67
|
-
referencedColumnName:
|
|
68
|
-
foreignKeyConstraintName:
|
|
76
|
+
name: o.name,
|
|
77
|
+
referencedColumnName: o.referencedColumnName,
|
|
78
|
+
foreignKeyConstraintName: o.foreignKeyConstraintName
|
|
69
79
|
});
|
|
70
80
|
}));
|
|
71
81
|
};
|
|
72
82
|
}
|
|
73
83
|
|
|
74
|
-
e =
|
|
84
|
+
e = r.JoinColumn = m;
|
|
75
85
|
|
|
76
86
|
export { e as JoinColumn };
|
|
@@ -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 as
|
|
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,36 +40,48 @@ 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 e = {};
|
|
48
58
|
|
|
49
59
|
"use strict";
|
|
50
60
|
|
|
51
|
-
Object.defineProperty(
|
|
61
|
+
Object.defineProperty(e, "__esModule", {
|
|
52
62
|
value: true
|
|
53
63
|
});
|
|
54
64
|
|
|
55
|
-
var r =
|
|
65
|
+
var r = e.JoinTable = void 0;
|
|
56
66
|
|
|
57
|
-
const n =
|
|
67
|
+
const n = o();
|
|
58
68
|
|
|
59
|
-
function t(
|
|
60
|
-
return function(
|
|
61
|
-
|
|
69
|
+
function t(o) {
|
|
70
|
+
return function(e, r) {
|
|
71
|
+
o = o || {};
|
|
62
72
|
(0, n.getMetadataArgsStorage)().joinTables.push({
|
|
63
|
-
target:
|
|
73
|
+
target: e.constructor,
|
|
64
74
|
propertyName: r,
|
|
65
|
-
name:
|
|
66
|
-
joinColumns:
|
|
67
|
-
inverseJoinColumns:
|
|
68
|
-
schema:
|
|
69
|
-
database:
|
|
70
|
-
synchronize: !(
|
|
75
|
+
name: o.name,
|
|
76
|
+
joinColumns: o && o.joinColumn ? [ o.joinColumn ] : o.joinColumns,
|
|
77
|
+
inverseJoinColumns: o && o.inverseJoinColumn ? [ o.inverseJoinColumn ] : o.inverseJoinColumns,
|
|
78
|
+
schema: o && o.schema ? o.schema : undefined,
|
|
79
|
+
database: o && o.database ? o.database : undefined,
|
|
80
|
+
synchronize: !(o && o.synchronize === false)
|
|
71
81
|
});
|
|
72
82
|
};
|
|
73
83
|
}
|
|
74
84
|
|
|
75
|
-
r =
|
|
85
|
+
r = e.JoinTable = t;
|
|
76
86
|
|
|
77
87
|
export { r as JoinTable };
|
|
@@ -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,30 +74,30 @@ const t = e.requireGlobals();
|
|
|
64
74
|
|
|
65
75
|
const a = e.ObjectUtils;
|
|
66
76
|
|
|
67
|
-
function
|
|
68
|
-
let
|
|
77
|
+
function o(e, r, o) {
|
|
78
|
+
let i;
|
|
69
79
|
if (a.ObjectUtils.isObject(r)) {
|
|
70
|
-
i = r;
|
|
71
|
-
} else {
|
|
72
80
|
o = r;
|
|
81
|
+
} else {
|
|
82
|
+
i = r;
|
|
73
83
|
}
|
|
74
84
|
return function(r, a) {
|
|
75
|
-
if (!
|
|
76
|
-
let
|
|
77
|
-
if (!
|
|
85
|
+
if (!o) o = {};
|
|
86
|
+
let n = o.lazy === true;
|
|
87
|
+
if (!n && Reflect && Reflect.getMetadata) {
|
|
78
88
|
const e = Reflect.getMetadata("design:type", r, a);
|
|
79
|
-
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise")
|
|
89
|
+
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") n = true;
|
|
80
90
|
}
|
|
81
91
|
(0, t.getMetadataArgsStorage)().relations.push({
|
|
82
92
|
target: r.constructor,
|
|
83
93
|
propertyName: a,
|
|
84
94
|
relationType: "many-to-many",
|
|
85
|
-
isLazy:
|
|
95
|
+
isLazy: n,
|
|
86
96
|
type: e,
|
|
87
|
-
inverseSideProperty:
|
|
88
|
-
options:
|
|
97
|
+
inverseSideProperty: i,
|
|
98
|
+
options: o
|
|
89
99
|
});
|
|
90
100
|
};
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
exports.ManyToMany = r.ManyToMany =
|
|
103
|
+
exports.ManyToMany = r.ManyToMany = 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,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.ManyToMany = 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.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-many",
|
|
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.ManyToMany = m;
|
|
88
98
|
|
|
89
|
-
export {
|
|
99
|
+
export { r as ManyToMany };
|
|
@@ -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,29 +72,29 @@ exports.ManyToOne = r.ManyToOne = void 0;
|
|
|
62
72
|
|
|
63
73
|
const t = e.requireGlobals();
|
|
64
74
|
|
|
65
|
-
const
|
|
75
|
+
const o = e.ObjectUtils;
|
|
66
76
|
|
|
67
77
|
function i(e, r, i) {
|
|
68
|
-
let
|
|
69
|
-
if (
|
|
78
|
+
let a;
|
|
79
|
+
if (o.ObjectUtils.isObject(r)) {
|
|
70
80
|
i = r;
|
|
71
81
|
} else {
|
|
72
|
-
|
|
82
|
+
a = r;
|
|
73
83
|
}
|
|
74
|
-
return function(r,
|
|
84
|
+
return function(r, o) {
|
|
75
85
|
if (!i) i = {};
|
|
76
|
-
let
|
|
77
|
-
if (!
|
|
78
|
-
const e = Reflect.getMetadata("design:type", r,
|
|
79
|
-
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise")
|
|
86
|
+
let n = i && i.lazy === true;
|
|
87
|
+
if (!n && Reflect && Reflect.getMetadata) {
|
|
88
|
+
const e = Reflect.getMetadata("design:type", r, o);
|
|
89
|
+
if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") n = true;
|
|
80
90
|
}
|
|
81
91
|
(0, t.getMetadataArgsStorage)().relations.push({
|
|
82
92
|
target: r.constructor,
|
|
83
|
-
propertyName:
|
|
93
|
+
propertyName: o,
|
|
84
94
|
relationType: "many-to-one",
|
|
85
|
-
isLazy:
|
|
95
|
+
isLazy: n,
|
|
86
96
|
type: e,
|
|
87
|
-
inverseSideProperty:
|
|
97
|
+
inverseSideProperty: a,
|
|
88
98
|
options: i
|
|
89
99
|
});
|
|
90
100
|
};
|