lakutata 2.0.64 → 2.0.66
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 +0 -2
- package/com/database.d.ts +2 -2
- package/com/database.mjs +0 -2
- package/com/docker.mjs +1 -1
- package/com/logger.mjs +1 -1
- package/decorator/orm.cjs +86 -88
- package/decorator/orm.d.ts +50 -74
- package/decorator/orm.mjs +44 -46
- package/helper.mjs +2 -2
- package/lakutata.mjs +2 -2
- package/orm.cjs +1075 -112
- package/orm.d.ts +4 -4
- package/orm.mjs +1015 -17
- package/package.json +1 -1
- package/provider/database.cjs +0 -2
- package/provider/database.d.ts +2 -2
- package/provider/database.mjs +0 -2
- package/src/components/Database.cjs +0 -2
- package/src/components/Database.mjs +2 -4
- package/src/components/Logger.mjs +1 -1
- package/src/components/cacher/Cacher.mjs +10 -10
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +3 -3
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +21 -21
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +8 -8
- package/src/components/cacher/options/FileCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MongoCacheOptions.mjs +2 -2
- package/src/components/cacher/options/MysqlCacheOptions.mjs +2 -2
- package/src/components/cacher/options/PostgresCacheOptions.mjs +2 -2
- package/src/components/cacher/options/RedisCacheOptions.mjs +2 -2
- package/src/components/cacher/options/SqliteCacheOptions.mjs +2 -2
- package/src/components/docker/Docker.mjs +5 -5
- package/src/components/docker/lib/DockerContainer.mjs +3 -3
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/docker/lib/DockerImage.mjs +2 -2
- package/src/components/docker/options/DockerPruneOptions.mjs +2 -2
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExecOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerKillOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerStopOptions.mjs +2 -2
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageBuildOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageExportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageImportOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePullOptions.mjs +2 -2
- package/src/components/docker/options/image/ImagePushOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +2 -2
- package/src/components/docker/options/image/ImageTagOptions.mjs +2 -2
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +2 -2
- package/src/components/entrypoint/Entrypoint.mjs +3 -3
- package/src/components/entrypoint/lib/AccessControl.mjs +21 -21
- package/src/components/entrypoint/lib/AccessControlRule.mjs +2 -2
- package/src/components/entrypoint/lib/Controller.mjs +3 -3
- package/src/components/monitor/AliveMonitor.mjs +2 -2
- package/src/components/monitor/CpuMonitor.mjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.mjs +14 -14
- package/src/components/monitor/MemoryMonitor.mjs +1 -1
- package/src/decorators/di/Configurable.mjs +1 -1
- package/src/decorators/dto/Expect.mjs +1 -1
- package/src/decorators/dto/IndexSignature.mjs +1 -1
- package/src/decorators/orm/AfterInsert.cjs +27 -7
- package/src/decorators/orm/AfterInsert.mjs +28 -6
- package/src/decorators/orm/AfterLoad.cjs +27 -7
- package/src/decorators/orm/AfterLoad.mjs +28 -6
- package/src/decorators/orm/AfterRecover.cjs +27 -7
- package/src/decorators/orm/AfterRecover.mjs +28 -6
- package/src/decorators/orm/AfterRemove.cjs +27 -7
- package/src/decorators/orm/AfterRemove.mjs +28 -6
- package/src/decorators/orm/AfterSoftRemove.cjs +27 -7
- package/src/decorators/orm/AfterSoftRemove.mjs +28 -6
- package/src/decorators/orm/AfterUpdate.cjs +27 -7
- package/src/decorators/orm/AfterUpdate.mjs +28 -6
- package/src/decorators/orm/BeforeInsert.cjs +27 -7
- package/src/decorators/orm/BeforeInsert.mjs +28 -6
- package/src/decorators/orm/BeforeRecover.cjs +27 -7
- package/src/decorators/orm/BeforeRecover.mjs +28 -6
- package/src/decorators/orm/BeforeRemove.cjs +27 -7
- package/src/decorators/orm/BeforeRemove.mjs +28 -6
- package/src/decorators/orm/BeforeSoftRemove.cjs +27 -7
- package/src/decorators/orm/BeforeSoftRemove.mjs +28 -6
- package/src/decorators/orm/BeforeUpdate.cjs +27 -7
- package/src/decorators/orm/BeforeUpdate.mjs +28 -6
- package/src/decorators/orm/Check.cjs +30 -7
- package/src/decorators/orm/Check.mjs +31 -6
- package/src/decorators/orm/ChildEntity.cjs +30 -7
- package/src/decorators/orm/ChildEntity.mjs +31 -6
- package/src/decorators/orm/Column.cjs +62 -7
- package/src/decorators/orm/Column.mjs +63 -6
- package/src/decorators/orm/CreateDateColumn.cjs +26 -7
- package/src/decorators/orm/CreateDateColumn.mjs +27 -6
- package/src/decorators/orm/DeleteDateColumn.cjs +26 -7
- package/src/decorators/orm/DeleteDateColumn.mjs +27 -6
- package/src/decorators/orm/Entity.cjs +36 -7
- package/src/decorators/orm/Entity.mjs +37 -6
- package/src/decorators/orm/EventSubscriber.cjs +23 -7
- package/src/decorators/orm/EventSubscriber.mjs +24 -6
- package/src/decorators/orm/Exclusion.cjs +30 -7
- package/src/decorators/orm/Exclusion.mjs +31 -6
- package/src/decorators/orm/Generated.cjs +25 -7
- package/src/decorators/orm/Generated.mjs +26 -6
- package/src/decorators/orm/Index.cjs +42 -7
- package/src/decorators/orm/Index.mjs +43 -6
- package/src/decorators/orm/JoinColumn.cjs +30 -7
- package/src/decorators/orm/JoinColumn.mjs +31 -6
- package/src/decorators/orm/JoinTable.cjs +31 -7
- package/src/decorators/orm/JoinTable.mjs +32 -6
- package/src/decorators/orm/ManyToMany.cjs +43 -7
- package/src/decorators/orm/ManyToMany.mjs +44 -6
- package/src/decorators/orm/ManyToOne.cjs +43 -7
- package/src/decorators/orm/ManyToOne.mjs +44 -6
- package/src/decorators/orm/ObjectIdColumn.cjs +29 -7
- package/src/decorators/orm/ObjectIdColumn.mjs +30 -6
- package/src/decorators/orm/OneToMany.cjs +35 -7
- package/src/decorators/orm/OneToMany.mjs +36 -6
- package/src/decorators/orm/OneToOne.cjs +43 -7
- package/src/decorators/orm/OneToOne.mjs +44 -6
- package/src/decorators/orm/PrimaryColumn.cjs +50 -7
- package/src/decorators/orm/PrimaryColumn.mjs +51 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +55 -7
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +56 -6
- package/src/decorators/orm/RelationId.cjs +27 -7
- package/src/decorators/orm/RelationId.mjs +28 -6
- package/src/decorators/orm/TableInheritance.cjs +27 -7
- package/src/decorators/orm/TableInheritance.mjs +28 -6
- package/src/decorators/orm/Tree.cjs +25 -7
- package/src/decorators/orm/Tree.mjs +26 -6
- package/src/decorators/orm/TreeChildren.cjs +32 -7
- package/src/decorators/orm/TreeChildren.mjs +33 -6
- package/src/decorators/orm/TreeLevelColumn.cjs +26 -7
- package/src/decorators/orm/TreeLevelColumn.mjs +27 -6
- package/src/decorators/orm/TreeParent.cjs +32 -7
- package/src/decorators/orm/TreeParent.mjs +33 -6
- package/src/decorators/orm/Unique.cjs +45 -7
- package/src/decorators/orm/Unique.mjs +46 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +26 -7
- package/src/decorators/orm/UpdateDateColumn.mjs +27 -6
- package/src/decorators/orm/VersionColumn.cjs +26 -7
- package/src/decorators/orm/VersionColumn.mjs +27 -6
- package/src/decorators/orm/ViewColumn.cjs +26 -7
- package/src/decorators/orm/ViewColumn.mjs +27 -6
- package/src/decorators/orm/ViewEntity.cjs +35 -7
- package/src/decorators/orm/ViewEntity.mjs +36 -6
- package/src/decorators/orm/VirtualColumn.cjs +43 -7
- package/src/decorators/orm/VirtualColumn.mjs +44 -6
- package/src/lib/base/BaseObject.mjs +1 -1
- package/src/lib/base/Context.mjs +10 -10
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.mjs +2 -2
- package/src/lib/base/internal/BasicInfo.mjs +10 -10
- package/src/lib/base/internal/DataValidator.mjs +2 -2
- package/src/lib/base/internal/FlexibleDTO.mjs +2 -2
- package/src/lib/base/internal/MethodValidation.mjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
- package/src/lib/base/internal/ObjectType.mjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/context/CLIContext.mjs +5 -5
- package/src/lib/context/HTTPContext.mjs +2 -2
- package/src/lib/context/ServiceContext.mjs +2 -2
- package/src/lib/core/Application.mjs +10 -10
- package/src/lib/core/Component.mjs +2 -2
- package/src/lib/core/Container.mjs +1 -1
- package/src/lib/core/DTO.mjs +1 -1
- package/src/lib/core/Module.mjs +2 -2
- package/src/lib/core/Provider.mjs +5 -5
- package/src/lib/core/Time.mjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +5 -5
- package/src/lib/helpers/IsSymbol.mjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/helpers/SHA1.mjs +3 -3
- package/src/lib/helpers/SHA256.mjs +3 -3
- package/src/lib/helpers/SortArray.mjs +14 -14
- package/src/lib/helpers/Statistics.mjs +59 -59
- package/src/lib/helpers/URLBuilder.mjs +34 -34
- package/src/lib/ioc/Errors.mjs +8 -8
- package/src/lib/ioc/ListModules.mjs +2 -2
- package/src/lib/ioc/Utils.mjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/options/ApplicationOptions.mjs +2 -2
- package/src/options/LoadAnonymousObjectOptions.mjs +3 -3
- package/src/options/LoadNamedObjectOptions.mjs +3 -3
- package/src/options/LoadObjectOptions.mjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +3 -3
- package/src/options/ModuleOptions.mjs +3 -3
- package/src/options/OverridableNamedObjectOptions.mjs +2 -2
- package/src/options/OverridableObjectOptions.mjs +3 -3
- package/src/providers/Database.cjs +0 -2
- package/src/providers/Database.mjs +2 -4
- package/src/providers/PasswordHash.mjs +19 -19
- package/vendor/Package.1.mjs +1 -1
- package/vendor/Package.12.mjs +5 -5
- package/vendor/Package.122.cjs +13223 -16706
- package/vendor/Package.122.mjs +15550 -18933
- package/vendor/Package.13.mjs +4 -4
- package/vendor/Package.132.mjs +1 -1
- package/vendor/Package.16.mjs +1 -1
- package/vendor/Package.17.mjs +5 -5
- package/vendor/Package.19.cjs +1 -1
- package/vendor/Package.19.mjs +194 -183
- package/vendor/Package.2.mjs +114 -114
- package/vendor/Package.3.mjs +30 -30
- package/vendor/Package.4.mjs +1 -1
- package/vendor/Package.5.mjs +1 -1
- package/vendor/Package.6.mjs +3 -3
- package/vendor/Package.610.mjs +1 -1
- package/vendor/Package.611.mjs +11 -11
- package/vendor/Package.62.mjs +148 -148
- package/vendor/Package.63.mjs +43 -43
- package/vendor/Package.64.mjs +1 -1
- package/vendor/Package.65.mjs +3 -3
- package/vendor/Package.66.mjs +1 -1
- package/vendor/Package.67.mjs +1 -1
- package/vendor/Package.68.mjs +1 -1
- package/vendor/Package.7.mjs +1 -1
- package/vendor/Package.9.mjs +36 -36
- package/vendor/TypeDef.internal.4.d.ts +181 -347
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
const e = require("../../../vendor/Package.122.cjs");
|
|
8
|
-
|
|
9
7
|
require("../../../vendor/Package.5.cjs");
|
|
10
8
|
|
|
9
|
+
const e = require("../../../vendor/Package.122.cjs");
|
|
10
|
+
|
|
11
11
|
require("../../../vendor/Package.13.cjs");
|
|
12
12
|
|
|
13
13
|
require("../../../vendor/Package.1.cjs");
|
|
@@ -52,10 +52,6 @@ require("../../../vendor/Package.11.cjs");
|
|
|
52
52
|
|
|
53
53
|
require("url");
|
|
54
54
|
|
|
55
|
-
require("node:util");
|
|
56
|
-
|
|
57
|
-
require("../../../vendor/Package.4.cjs");
|
|
58
|
-
|
|
59
55
|
require("../../../vendor/Package.63.cjs");
|
|
60
56
|
|
|
61
57
|
require("node:url");
|
|
@@ -72,4 +68,27 @@ require("node:stream");
|
|
|
72
68
|
|
|
73
69
|
require("node:string_decoder");
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
var r = {};
|
|
72
|
+
|
|
73
|
+
"use strict";
|
|
74
|
+
|
|
75
|
+
Object.defineProperty(r, "__esModule", {
|
|
76
|
+
value: true
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var u = r.ViewColumn = i;
|
|
80
|
+
|
|
81
|
+
const o = e.requireGlobals();
|
|
82
|
+
|
|
83
|
+
function i(e) {
|
|
84
|
+
return function(r, u) {
|
|
85
|
+
(0, o.getMetadataArgsStorage)().columns.push({
|
|
86
|
+
target: r.constructor,
|
|
87
|
+
propertyName: u,
|
|
88
|
+
mode: "regular",
|
|
89
|
+
options: e || {}
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
exports.ViewColumn = u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ViewColumn_2 as ViewColumn } from "../../../vendor/Package.122.mjs";
|
|
2
|
-
|
|
3
1
|
import "../../../vendor/Package.5.mjs";
|
|
4
2
|
|
|
3
|
+
import { a as o } from "../../../vendor/Package.122.mjs";
|
|
4
|
+
|
|
5
5
|
import "../../../vendor/Package.13.mjs";
|
|
6
6
|
|
|
7
7
|
import "../../../vendor/Package.1.mjs";
|
|
@@ -46,10 +46,6 @@ import "../../../vendor/Package.11.mjs";
|
|
|
46
46
|
|
|
47
47
|
import "url";
|
|
48
48
|
|
|
49
|
-
import "node:util";
|
|
50
|
-
|
|
51
|
-
import "../../../vendor/Package.4.mjs";
|
|
52
|
-
|
|
53
49
|
import "../../../vendor/Package.63.mjs";
|
|
54
50
|
|
|
55
51
|
import "node:url";
|
|
@@ -65,3 +61,28 @@ import "node:events";
|
|
|
65
61
|
import "node:stream";
|
|
66
62
|
|
|
67
63
|
import "node:string_decoder";
|
|
64
|
+
|
|
65
|
+
var r = {};
|
|
66
|
+
|
|
67
|
+
"use strict";
|
|
68
|
+
|
|
69
|
+
Object.defineProperty(r, "__esModule", {
|
|
70
|
+
value: true
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
var e = r.ViewColumn = m;
|
|
74
|
+
|
|
75
|
+
const t = o();
|
|
76
|
+
|
|
77
|
+
function m(o) {
|
|
78
|
+
return function(r, e) {
|
|
79
|
+
(0, t.getMetadataArgsStorage)().columns.push({
|
|
80
|
+
target: r.constructor,
|
|
81
|
+
propertyName: e,
|
|
82
|
+
mode: "regular",
|
|
83
|
+
options: o || {}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { e as ViewColumn };
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
const e = require("../../../vendor/Package.122.cjs");
|
|
8
|
-
|
|
9
7
|
require("../../../vendor/Package.5.cjs");
|
|
10
8
|
|
|
9
|
+
const e = require("../../../vendor/Package.122.cjs");
|
|
10
|
+
|
|
11
11
|
require("../../../vendor/Package.13.cjs");
|
|
12
12
|
|
|
13
13
|
require("../../../vendor/Package.1.cjs");
|
|
@@ -52,10 +52,6 @@ require("../../../vendor/Package.11.cjs");
|
|
|
52
52
|
|
|
53
53
|
require("url");
|
|
54
54
|
|
|
55
|
-
require("node:util");
|
|
56
|
-
|
|
57
|
-
require("../../../vendor/Package.4.cjs");
|
|
58
|
-
|
|
59
55
|
require("../../../vendor/Package.63.cjs");
|
|
60
56
|
|
|
61
57
|
require("node:url");
|
|
@@ -72,4 +68,36 @@ require("node:stream");
|
|
|
72
68
|
|
|
73
69
|
require("node:string_decoder");
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
var r = {};
|
|
72
|
+
|
|
73
|
+
"use strict";
|
|
74
|
+
|
|
75
|
+
Object.defineProperty(r, "__esModule", {
|
|
76
|
+
value: true
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var i = r.ViewEntity = n;
|
|
80
|
+
|
|
81
|
+
const s = e.requireGlobals();
|
|
82
|
+
|
|
83
|
+
const a = e.ObjectUtils;
|
|
84
|
+
|
|
85
|
+
function n(e, r) {
|
|
86
|
+
const i = (a.ObjectUtils.isObject(e) ? e : r) || {};
|
|
87
|
+
const n = typeof e === "string" ? e : i.name;
|
|
88
|
+
return function(e) {
|
|
89
|
+
(0, s.getMetadataArgsStorage)().tables.push({
|
|
90
|
+
target: e,
|
|
91
|
+
name: n,
|
|
92
|
+
expression: i.expression,
|
|
93
|
+
dependsOn: i.dependsOn ? new Set(i.dependsOn) : undefined,
|
|
94
|
+
type: "view",
|
|
95
|
+
database: i.database ? i.database : undefined,
|
|
96
|
+
schema: i.schema ? i.schema : undefined,
|
|
97
|
+
synchronize: i.synchronize === false ? false : true,
|
|
98
|
+
materialized: !!i.materialized
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
exports.ViewEntity = i;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ViewEntity_2 as ViewEntity } from "../../../vendor/Package.122.mjs";
|
|
2
|
-
|
|
3
1
|
import "../../../vendor/Package.5.mjs";
|
|
4
2
|
|
|
3
|
+
import { a as e, O as t } from "../../../vendor/Package.122.mjs";
|
|
4
|
+
|
|
5
5
|
import "../../../vendor/Package.13.mjs";
|
|
6
6
|
|
|
7
7
|
import "../../../vendor/Package.1.mjs";
|
|
@@ -46,10 +46,6 @@ import "../../../vendor/Package.11.mjs";
|
|
|
46
46
|
|
|
47
47
|
import "url";
|
|
48
48
|
|
|
49
|
-
import "node:util";
|
|
50
|
-
|
|
51
|
-
import "../../../vendor/Package.4.mjs";
|
|
52
|
-
|
|
53
49
|
import "../../../vendor/Package.63.mjs";
|
|
54
50
|
|
|
55
51
|
import "node:url";
|
|
@@ -65,3 +61,37 @@ import "node:events";
|
|
|
65
61
|
import "node:stream";
|
|
66
62
|
|
|
67
63
|
import "node:string_decoder";
|
|
64
|
+
|
|
65
|
+
var r = {};
|
|
66
|
+
|
|
67
|
+
"use strict";
|
|
68
|
+
|
|
69
|
+
Object.defineProperty(r, "__esModule", {
|
|
70
|
+
value: true
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
var o = r.ViewEntity = i;
|
|
74
|
+
|
|
75
|
+
const a = e();
|
|
76
|
+
|
|
77
|
+
const s = t;
|
|
78
|
+
|
|
79
|
+
function i(e, t) {
|
|
80
|
+
const r = (s.ObjectUtils.isObject(e) ? e : t) || {};
|
|
81
|
+
const o = typeof e === "string" ? e : r.name;
|
|
82
|
+
return function(e) {
|
|
83
|
+
(0, a.getMetadataArgsStorage)().tables.push({
|
|
84
|
+
target: e,
|
|
85
|
+
name: o,
|
|
86
|
+
expression: r.expression,
|
|
87
|
+
dependsOn: r.dependsOn ? new Set(r.dependsOn) : undefined,
|
|
88
|
+
type: "view",
|
|
89
|
+
database: r.database ? r.database : undefined,
|
|
90
|
+
schema: r.schema ? r.schema : undefined,
|
|
91
|
+
synchronize: r.synchronize === false ? false : true,
|
|
92
|
+
materialized: !!r.materialized
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { o as ViewEntity };
|
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, {
|
|
|
4
4
|
value: "Module"
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
const e = require("../../../vendor/Package.122.cjs");
|
|
8
|
-
|
|
9
7
|
require("../../../vendor/Package.5.cjs");
|
|
10
8
|
|
|
9
|
+
const e = require("../../../vendor/Package.122.cjs");
|
|
10
|
+
|
|
11
11
|
require("../../../vendor/Package.13.cjs");
|
|
12
12
|
|
|
13
13
|
require("../../../vendor/Package.1.cjs");
|
|
@@ -52,10 +52,6 @@ require("../../../vendor/Package.11.cjs");
|
|
|
52
52
|
|
|
53
53
|
require("url");
|
|
54
54
|
|
|
55
|
-
require("node:util");
|
|
56
|
-
|
|
57
|
-
require("../../../vendor/Package.4.cjs");
|
|
58
|
-
|
|
59
55
|
require("../../../vendor/Package.63.cjs");
|
|
60
56
|
|
|
61
57
|
require("node:url");
|
|
@@ -72,4 +68,44 @@ require("node:stream");
|
|
|
72
68
|
|
|
73
69
|
require("node:string_decoder");
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
var r = {};
|
|
72
|
+
|
|
73
|
+
"use strict";
|
|
74
|
+
|
|
75
|
+
Object.defineProperty(r, "__esModule", {
|
|
76
|
+
value: true
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var t = r.VirtualColumn = i;
|
|
80
|
+
|
|
81
|
+
const o = e.error;
|
|
82
|
+
|
|
83
|
+
const u = e.requireGlobals();
|
|
84
|
+
|
|
85
|
+
function i(e, r) {
|
|
86
|
+
return function(t, i) {
|
|
87
|
+
let n;
|
|
88
|
+
if (typeof e === "string") {
|
|
89
|
+
n = e;
|
|
90
|
+
} else {
|
|
91
|
+
r = e;
|
|
92
|
+
n = r.type;
|
|
93
|
+
}
|
|
94
|
+
if (!r?.query) {
|
|
95
|
+
throw new Error("Column options must be defined for calculated columns.");
|
|
96
|
+
}
|
|
97
|
+
const s = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", t, i) : undefined;
|
|
98
|
+
if (!n && s) n = s;
|
|
99
|
+
if (n) r.type = n;
|
|
100
|
+
if (r.type === "hstore" && !r.hstoreType) r.hstoreType = s === Object ? "object" : "string";
|
|
101
|
+
if (!r.type) throw new o.ColumnTypeUndefinedError(t, i);
|
|
102
|
+
(0, u.getMetadataArgsStorage)().columns.push({
|
|
103
|
+
target: t.constructor,
|
|
104
|
+
propertyName: i,
|
|
105
|
+
mode: "virtual-property",
|
|
106
|
+
options: r || {}
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.VirtualColumn = t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { VirtualColumn_2 as VirtualColumn } from "../../../vendor/Package.122.mjs";
|
|
2
|
-
|
|
3
1
|
import "../../../vendor/Package.5.mjs";
|
|
4
2
|
|
|
3
|
+
import { e, a as t } from "../../../vendor/Package.122.mjs";
|
|
4
|
+
|
|
5
5
|
import "../../../vendor/Package.13.mjs";
|
|
6
6
|
|
|
7
7
|
import "../../../vendor/Package.1.mjs";
|
|
@@ -46,10 +46,6 @@ import "../../../vendor/Package.11.mjs";
|
|
|
46
46
|
|
|
47
47
|
import "url";
|
|
48
48
|
|
|
49
|
-
import "node:util";
|
|
50
|
-
|
|
51
|
-
import "../../../vendor/Package.4.mjs";
|
|
52
|
-
|
|
53
49
|
import "../../../vendor/Package.63.mjs";
|
|
54
50
|
|
|
55
51
|
import "node:url";
|
|
@@ -65,3 +61,45 @@ import "node:events";
|
|
|
65
61
|
import "node:stream";
|
|
66
62
|
|
|
67
63
|
import "node:string_decoder";
|
|
64
|
+
|
|
65
|
+
var o = {};
|
|
66
|
+
|
|
67
|
+
"use strict";
|
|
68
|
+
|
|
69
|
+
Object.defineProperty(o, "__esModule", {
|
|
70
|
+
value: true
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
var r = o.VirtualColumn = p;
|
|
74
|
+
|
|
75
|
+
const m = e;
|
|
76
|
+
|
|
77
|
+
const i = t();
|
|
78
|
+
|
|
79
|
+
function p(e, t) {
|
|
80
|
+
return function(o, r) {
|
|
81
|
+
let p;
|
|
82
|
+
if (typeof e === "string") {
|
|
83
|
+
p = e;
|
|
84
|
+
} else {
|
|
85
|
+
t = e;
|
|
86
|
+
p = t.type;
|
|
87
|
+
}
|
|
88
|
+
if (!t?.query) {
|
|
89
|
+
throw new Error("Column options must be defined for calculated columns.");
|
|
90
|
+
}
|
|
91
|
+
const a = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", o, r) : undefined;
|
|
92
|
+
if (!p && a) p = a;
|
|
93
|
+
if (p) t.type = p;
|
|
94
|
+
if (t.type === "hstore" && !t.hstoreType) t.hstoreType = a === Object ? "object" : "string";
|
|
95
|
+
if (!t.type) throw new m.ColumnTypeUndefinedError(o, r);
|
|
96
|
+
(0, i.getMetadataArgsStorage)().columns.push({
|
|
97
|
+
target: o.constructor,
|
|
98
|
+
propertyName: r,
|
|
99
|
+
mode: "virtual-property",
|
|
100
|
+
options: t || {}
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { r as VirtualColumn };
|
|
@@ -6,7 +6,7 @@ import "../../decorators/di/Lifetime.mjs";
|
|
|
6
6
|
|
|
7
7
|
import "../../exceptions/MethodNotFoundException.mjs";
|
|
8
8
|
|
|
9
|
-
export { BaseObject, __destroy, __init, anonymousId } from "../../../vendor/Package.3.mjs";
|
|
9
|
+
export { B as BaseObject, a as __destroy, _ as __init, d as anonymousId } from "../../../vendor/Package.3.mjs";
|
|
10
10
|
|
|
11
11
|
import "node:crypto";
|
|
12
12
|
|
package/src/lib/base/Context.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as r } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as e } from "../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as o } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
7
|
-
import { IndexSignature as
|
|
7
|
+
import { IndexSignature as s } from "../../decorators/dto/IndexSignature.mjs";
|
|
8
8
|
|
|
9
9
|
import "./internal/DataValidator.mjs";
|
|
10
10
|
|
|
@@ -60,24 +60,24 @@ import "../helpers/ObjectParentConstructor.mjs";
|
|
|
60
60
|
|
|
61
61
|
import "../helpers/ObjectPrototype.mjs";
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var m;
|
|
64
64
|
|
|
65
65
|
(function(t) {
|
|
66
66
|
t["CLI"] = "CLI";
|
|
67
67
|
t["HTTP"] = "HTTP";
|
|
68
68
|
t["SERVICE"] = "SERVICE";
|
|
69
|
-
})(
|
|
69
|
+
})(m || (m = {}));
|
|
70
70
|
|
|
71
|
-
let
|
|
71
|
+
let a = class BaseContext extends e {
|
|
72
72
|
constructor(t) {
|
|
73
73
|
super(t);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
t([ o(e.String().valid(
|
|
77
|
+
t([ o(e.String().valid(m.CLI, m.HTTP, m.SERVICE)), r("design:type", String) ], a.prototype, "type", void 0);
|
|
78
78
|
|
|
79
|
-
t([ o(e.Object().pattern(e.String(), e.Any()).required()), r("design:type", Object) ],
|
|
79
|
+
t([ o(e.Object().pattern(e.String(), e.Any()).required()), r("design:type", Object) ], a.prototype, "data", void 0);
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
a = t([ s(e.Any()), r("design:paramtypes", [ Object ]) ], a);
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { a as BaseContext, m as ContextType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as o, a as t } from "../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as e } from "../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { As as e } from "../../helpers/As.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { M as o } from "../../../../vendor/Package.6.mjs";
|
|
4
4
|
|
|
5
5
|
import { ThrowWarning as n } from "./ThrowWarning.mjs";
|
|
6
6
|
|
|
@@ -8,21 +8,21 @@ import "../../../../vendor/Package.5.mjs";
|
|
|
8
8
|
|
|
9
9
|
import "../../../../vendor/Package.7.mjs";
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
15
|
-
n(`The passed time zone "${e}" is invalid, use the default time zone "${
|
|
16
|
-
return
|
|
11
|
+
function s(e) {
|
|
12
|
+
const s = [ ...o.tz.names() ];
|
|
13
|
+
const p = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
14
|
+
if (!s.map((e => e.toLowerCase())).includes(e.toLowerCase())) {
|
|
15
|
+
n(`The passed time zone "${e}" is invalid, use the default time zone "${p}"`);
|
|
16
|
+
return p;
|
|
17
17
|
}
|
|
18
18
|
return e;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function
|
|
21
|
+
function p(e) {
|
|
22
22
|
process.env.appId = e.appId;
|
|
23
23
|
process.env.appName = e.appName;
|
|
24
24
|
const o = e.timezone === "auto" ? Intl.DateTimeFormat().resolvedOptions().timeZone : e.timezone;
|
|
25
|
-
process.env.TZ =
|
|
25
|
+
process.env.TZ = s(o);
|
|
26
26
|
process.env.NODE_ENV = e.mode ? e.mode : "development";
|
|
27
27
|
return r();
|
|
28
28
|
}
|
|
@@ -36,4 +36,4 @@ function r() {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export { r as GetBasicInfo,
|
|
39
|
+
export { r as GetBasicInfo, p as SetBasicInfo };
|
|
@@ -2,13 +2,13 @@ import "../../../../vendor/Package.4.mjs";
|
|
|
2
2
|
|
|
3
3
|
import { isAsyncFunction as r } from "node:util/types";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { c as t } from "../../../../vendor/Package.5.mjs";
|
|
6
6
|
|
|
7
7
|
import { VLD as n } from "../../validation/VLD.mjs";
|
|
8
8
|
|
|
9
9
|
import { As as e } from "../../helpers/As.mjs";
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { I as a } from "../../../../vendor/Package.9.mjs";
|
|
12
12
|
|
|
13
13
|
import { IsHtml as i } from "../../helpers/IsHtml.mjs";
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as r } from "../../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as t } from "../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { IndexSignature as e } from "../../../decorators/dto/IndexSignature.mjs";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as o, O as t, G as e, B as s } from "../../../../vendor/Package.3.mjs";
|
|
2
2
|
|
|
3
3
|
import { OverridableObjectTargetConfigNotFoundException as r } from "../../../exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DI_TARGET_CONSTRUCTOR_CONFIGURABLE_PROPERTIES as t } from "../../../constants/DIMetadataKey.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as e } from "../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { ObjectConstructor as a } from "../../helpers/ObjectConstructor.mjs";
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ import "../../helpers/ObjectParentConstructors.mjs";
|
|
|
8
8
|
|
|
9
9
|
import "../../helpers/ObjectPrototype.mjs";
|
|
10
10
|
|
|
11
|
-
export { DefineObjectAsDTO, GetObjectIndexSignatureSchemaByConstructor, GetObjectIndexSignatureSchemaByPrototype, GetObjectPropertySchemas, GetObjectSchemaByConstructor, GetObjectSchemaByPrototype, IsDTO, SetObjectIndexSignatureSchema, SetObjectPropertySchema } from "../../../../vendor/Package.2.mjs";
|
|
11
|
+
export { c as DefineObjectAsDTO, d as GetObjectIndexSignatureSchemaByConstructor, G as GetObjectIndexSignatureSchemaByPrototype, e as GetObjectPropertySchemas, g as GetObjectSchemaByConstructor, f as GetObjectSchemaByPrototype, b as IsDTO, a as SetObjectIndexSignatureSchema, S as SetObjectPropertySchema } from "../../../../vendor/Package.2.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../helpers/As.mjs";
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@ import "../../helpers/ObjectParentConstructors.mjs";
|
|
|
2
2
|
|
|
3
3
|
import "../../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
|
-
export { DefineObjectType, GetObjectType, ObjectType, SetObjectType } from "../../../../vendor/Package.3.mjs";
|
|
5
|
+
export { D as DefineObjectType, G as GetObjectType, O as ObjectType, S as SetObjectType } from "../../../../vendor/Package.3.mjs";
|
|
6
6
|
|
|
7
7
|
import "../../helpers/ObjectParentConstructor.mjs";
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
3
|
import { BaseContext as r, ContextType as o } from "../base/Context.mjs";
|
|
4
4
|
|
|
5
|
-
import { Expect as
|
|
5
|
+
import { Expect as s } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { D as m } from "../../../vendor/Package.2.mjs";
|
|
8
8
|
|
|
9
9
|
import "../../decorators/dto/IndexSignature.mjs";
|
|
10
10
|
|
|
@@ -68,8 +68,8 @@ class CLIContext extends r {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
t([ m
|
|
71
|
+
t([ s(m.String().valid(o.CLI).default(o.CLI)), e("design:type", String) ], CLIContext.prototype, "type", void 0);
|
|
72
72
|
|
|
73
|
-
t([ m
|
|
73
|
+
t([ s(m.String().required()), e("design:type", String) ], CLIContext.prototype, "command", void 0);
|
|
74
74
|
|
|
75
75
|
export { CLIContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as o } from "../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as r } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { D as r } from "../../../vendor/Package.2.mjs";
|
|
4
4
|
|
|
5
5
|
import { Expect as o } from "../../decorators/dto/Expect.mjs";
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as t, a as e } from "../../../vendor/Package.1.mjs";
|
|
2
2
|
|
|
3
|
-
import { Module as o, MODULE_INITIALIZED as i, MODULE_INITIALIZE_ERROR as
|
|
3
|
+
import { Module as o, MODULE_INITIALIZED as i, MODULE_INITIALIZE_ERROR as s } from "./Module.mjs";
|
|
4
4
|
|
|
5
|
-
import { Singleton as
|
|
5
|
+
import { Singleton as r } from "../../decorators/di/Lifetime.mjs";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { C as n } from "../../../vendor/Package.3.mjs";
|
|
8
8
|
|
|
9
9
|
import { ApplicationConfigLoader as a } from "../base/internal/ApplicationConfigLoader.mjs";
|
|
10
10
|
|
|
@@ -16,11 +16,11 @@ import { GetBasicInfo as c } from "../base/internal/BasicInfo.mjs";
|
|
|
16
16
|
|
|
17
17
|
import { Entrypoint as l } from "../../components/entrypoint/Entrypoint.mjs";
|
|
18
18
|
|
|
19
|
-
import {
|
|
19
|
+
import { L as j } from "../../../vendor/Package.17.mjs";
|
|
20
20
|
|
|
21
21
|
import { Accept as h } from "../../decorators/dto/Accept.mjs";
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { D as u } from "../../../vendor/Package.2.mjs";
|
|
24
24
|
|
|
25
25
|
import { mkdirSync as d } from "fs";
|
|
26
26
|
|
|
@@ -404,7 +404,7 @@ let v = class Application extends o {
|
|
|
404
404
|
}));
|
|
405
405
|
const e = typeof this.launchOptions === "object" ? this.launchOptions : await this.launchOptions();
|
|
406
406
|
const o = new n;
|
|
407
|
-
return new Promise(((t,
|
|
407
|
+
return new Promise(((t, r) => {
|
|
408
408
|
p.validateAsync(e).then((e => {
|
|
409
409
|
e.bootstrap?.push((async t => {
|
|
410
410
|
const e = function() {
|
|
@@ -416,8 +416,8 @@ let v = class Application extends o {
|
|
|
416
416
|
}));
|
|
417
417
|
o.set(y, {
|
|
418
418
|
options: e
|
|
419
|
-
}).then((e => e.once(i, (() => t(e))).once(
|
|
420
|
-
})).catch(
|
|
419
|
+
}).then((e => e.once(i, (() => t(e))).once(s, (t => this.processFatalException(t))))).catch(r);
|
|
420
|
+
})).catch(r);
|
|
421
421
|
}));
|
|
422
422
|
}
|
|
423
423
|
get alias() {
|
|
@@ -448,6 +448,6 @@ t([ h(u.Object().pattern(u.String(), u.String()).required()), e("design:type", F
|
|
|
448
448
|
|
|
449
449
|
t([ h(u.Object().pattern(u.String(), u.String()).required(), u.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], v, "alias", null);
|
|
450
450
|
|
|
451
|
-
v = y = t([
|
|
451
|
+
v = y = t([ r(true) ], v);
|
|
452
452
|
|
|
453
453
|
export { v as Application, f as ApplicationState };
|