lakutata 2.0.10 → 2.0.12
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/README.md +36 -0
- package/com/docker.d.ts +10 -0
- package/orm.mjs +30 -30
- package/package.json +1 -1
- package/src/components/docker/Docker.cjs +2 -0
- package/src/components/docker/Docker.mjs +2 -0
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +4 -0
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +4 -0
- package/src/decorators/orm/Column.mjs +2 -2
- package/src/decorators/orm/PrimaryColumn.mjs +2 -2
- package/vendor/Package.14.mjs +19 -17
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div align="center">
|
|
8
|
+
|
|
9
|
+
)
|
|
10
|
+
)
|
|
11
|
+
)
|
|
12
|
+
)
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
## 💫 Description
|
|
18
|
+
|
|
19
|
+
Lakutata is a generic development framework written in TypeScript and designed with IoC principles. Its main objective
|
|
20
|
+
is to provide a universal, efficient, and stable development framework. The design goals of Lakutata are not limited to
|
|
21
|
+
web application development; it aims to serve as a foundational framework for desktop applications, embedded systems
|
|
22
|
+
applications, and web applications. The framework primarily adopts an OOP (Object-Oriented Programming) approach and
|
|
23
|
+
encapsulates functionalities such as subprocesses, threads, permission management, and database ORM, enabling the
|
|
24
|
+
framework to be used out of the box.
|
|
25
|
+
|
|
26
|
+
In addition, Lakutata also supports the integration of third-party libraries into the application, allowing developers
|
|
27
|
+
to freely encapsulate and call third-party modules using Lakutata's dependency injection.
|
|
28
|
+
|
|
29
|
+
## ✨ Getting started
|
|
30
|
+
|
|
31
|
+
- 👉 To check out the **[guide](http://docs.lakutata.com)**, visit **[docs.lakutata.com](http://docs.lakutata.com)**.
|
|
32
|
+
- 👉 To see usage **[examples](http://examples.lakutata.com)**, visit **[examples.lakutata.com](http://examples.lakutata.com)**.
|
|
33
|
+
|
|
34
|
+
## 🌎 License
|
|
35
|
+
|
|
36
|
+
Lakutata is [MIT licensed](LICENSE).
|
package/com/docker.d.ts
CHANGED
|
@@ -3072,6 +3072,16 @@ declare class ContainerSettingOptions extends DTO {
|
|
|
3072
3072
|
* "host": use the host's PID namespace inside the container
|
|
3073
3073
|
*/
|
|
3074
3074
|
pidMode?: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Command to run specified as a string or an array of strings.
|
|
3077
|
+
*/
|
|
3078
|
+
cmd?: string[];
|
|
3079
|
+
/**
|
|
3080
|
+
* The entry point for the container as a string or an array of strings.
|
|
3081
|
+
* If the array consists of exactly one empty string ([""]) then the entry point is reset to system default
|
|
3082
|
+
* (i.e., the entry point used by docker when there is no ENTRYPOINT instruction in the Dockerfile).
|
|
3083
|
+
*/
|
|
3084
|
+
entrypoint?: string[];
|
|
3075
3085
|
}
|
|
3076
3086
|
|
|
3077
3087
|
type ContainerState = {
|
package/orm.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import "./vendor/Package.4.mjs";
|
|
|
2
2
|
|
|
3
3
|
import { g as e } from "./vendor/Package.5.mjs";
|
|
4
4
|
|
|
5
|
-
import { r, F as a,
|
|
5
|
+
import { r, F as a, c, d, O as f, P as O, B as _, f as b, R as P, D as E, e as R } from "./vendor/Package.14.mjs";
|
|
6
6
|
|
|
7
|
-
export { A as AbstractLogger, w as AdvancedConsoleLogger, i as Brackets,
|
|
7
|
+
export { A as AbstractLogger, w as AdvancedConsoleLogger, i as Brackets, C as ConnectionOptionsReader, o as DefaultNamingStrategy, g as DeleteQueryBuilder, l as DeleteResult, z as EntityMetadata, y as FileLogger, t as FindOperator, v as FindOptionsUtils, s as In, I as InsertQueryBuilder, j as InsertResult, p as InstanceChecker, M as Migration, n as MigrationExecutor, J as MongoRepository, Z as MssqlParameter, Q as QueryBuilder, m as QueryResult, h as RelationQueryBuilder, G as Repository, S as SelectQueryBuilder, x as SimpleConsoleLogger, Y as Table, K as TableCheck, L as TableColumn, N as TableExclusion, V as TableForeignKey, W as TableIndex, X as TableUnique, H as TreeRepository, T as TreeRepositoryUtils, U as UpdateQueryBuilder, k as UpdateResult, q as getFromContainer, u as useContainer } from "./vendor/Package.14.mjs";
|
|
8
8
|
|
|
9
|
-
import { D as
|
|
9
|
+
import { D as B } from "./vendor/Package.15.mjs";
|
|
10
10
|
|
|
11
11
|
import "./vendor/Package.8.mjs";
|
|
12
12
|
|
|
@@ -50,9 +50,9 @@ import "./vendor/Package.73.mjs";
|
|
|
50
50
|
|
|
51
51
|
import "fs/promises";
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var F = r();
|
|
54
54
|
|
|
55
|
-
const D = e(
|
|
55
|
+
const D = e(F);
|
|
56
56
|
|
|
57
57
|
var $ = {};
|
|
58
58
|
|
|
@@ -194,15 +194,15 @@ function ge(e) {
|
|
|
194
194
|
|
|
195
195
|
me = Oe.Any = ge;
|
|
196
196
|
|
|
197
|
-
var
|
|
197
|
+
var he = {};
|
|
198
198
|
|
|
199
199
|
"use strict";
|
|
200
200
|
|
|
201
|
-
Object.defineProperty(
|
|
201
|
+
Object.defineProperty(he, "__esModule", {
|
|
202
202
|
value: true
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
-
var
|
|
205
|
+
var be = he.ArrayContainedBy = void 0;
|
|
206
206
|
|
|
207
207
|
const je = a;
|
|
208
208
|
|
|
@@ -210,7 +210,7 @@ function Pe(e) {
|
|
|
210
210
|
return new je.FindOperator("arrayContainedBy", e);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
be = he.ArrayContainedBy = Pe;
|
|
214
214
|
|
|
215
215
|
var Me = {};
|
|
216
216
|
|
|
@@ -443,21 +443,21 @@ var _t = mt.Not = void 0;
|
|
|
443
443
|
|
|
444
444
|
const gt = a;
|
|
445
445
|
|
|
446
|
-
function
|
|
446
|
+
function ht(e) {
|
|
447
447
|
return new gt.FindOperator("not", e);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
_t = mt.Not =
|
|
450
|
+
_t = mt.Not = ht;
|
|
451
451
|
|
|
452
|
-
var
|
|
452
|
+
var bt = {};
|
|
453
453
|
|
|
454
454
|
"use strict";
|
|
455
455
|
|
|
456
|
-
Object.defineProperty(
|
|
456
|
+
Object.defineProperty(bt, "__esModule", {
|
|
457
457
|
value: true
|
|
458
458
|
});
|
|
459
459
|
|
|
460
|
-
var jt =
|
|
460
|
+
var jt = bt.Raw = void 0;
|
|
461
461
|
|
|
462
462
|
const Pt = a;
|
|
463
463
|
|
|
@@ -468,7 +468,7 @@ function Mt(e, t) {
|
|
|
468
468
|
return new Pt.FindOperator("raw", [], true, true, e, t);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
jt =
|
|
471
|
+
jt = bt.Raw = Mt;
|
|
472
472
|
|
|
473
473
|
var Et = {};
|
|
474
474
|
|
|
@@ -602,7 +602,7 @@ Object.defineProperty(zt, "__esModule", {
|
|
|
602
602
|
|
|
603
603
|
var Zt = zt.BaseEntity = void 0;
|
|
604
604
|
|
|
605
|
-
const Jt =
|
|
605
|
+
const Jt = f;
|
|
606
606
|
|
|
607
607
|
class BaseEntity {
|
|
608
608
|
hasId() {
|
|
@@ -950,7 +950,7 @@ var or = ar.BSON = void 0;
|
|
|
950
950
|
return t.serialize;
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
|
-
const r =
|
|
953
|
+
const r = O;
|
|
954
954
|
})(nr);
|
|
955
955
|
|
|
956
956
|
const ir = e(nr);
|
|
@@ -989,7 +989,7 @@ Object.defineProperty(lr, "__esModule", {
|
|
|
989
989
|
|
|
990
990
|
var yr = lr.NotBrackets = void 0;
|
|
991
991
|
|
|
992
|
-
const pr =
|
|
992
|
+
const pr = _;
|
|
993
993
|
|
|
994
994
|
class NotBrackets extends pr.Brackets {
|
|
995
995
|
constructor() {
|
|
@@ -1000,7 +1000,7 @@ class NotBrackets extends pr.Brackets {
|
|
|
1000
1000
|
|
|
1001
1001
|
yr = lr.NotBrackets = NotBrackets;
|
|
1002
1002
|
|
|
1003
|
-
var vr =
|
|
1003
|
+
var vr = b();
|
|
1004
1004
|
|
|
1005
1005
|
const fr = e(vr);
|
|
1006
1006
|
|
|
@@ -1014,11 +1014,11 @@ Object.defineProperty(Or, "__esModule", {
|
|
|
1014
1014
|
|
|
1015
1015
|
var mr = Or.LegacyOracleNamingStrategy = void 0;
|
|
1016
1016
|
|
|
1017
|
-
const _r =
|
|
1017
|
+
const _r = P;
|
|
1018
1018
|
|
|
1019
|
-
const gr =
|
|
1019
|
+
const gr = E;
|
|
1020
1020
|
|
|
1021
|
-
const
|
|
1021
|
+
const hr = R;
|
|
1022
1022
|
|
|
1023
1023
|
class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
|
|
1024
1024
|
constructor(e = "hash") {
|
|
@@ -1034,12 +1034,12 @@ class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
|
|
|
1034
1034
|
} else if (this.shortenStrategy === "hash") {
|
|
1035
1035
|
return this.hashIdentifier(s, this.DEFAULT_COLUMN_PREFIX);
|
|
1036
1036
|
} else {
|
|
1037
|
-
throw new
|
|
1037
|
+
throw new hr.TypeORMError(`Invalid shortenStrategy`);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
hashIdentifier(e, t) {
|
|
1041
1041
|
if (t.length >= this.IDENTIFIER_MAX_SIZE) {
|
|
1042
|
-
throw new
|
|
1042
|
+
throw new hr.TypeORMError(`Prefix must be shorter than IDENTIFIER_MAX_SIZE`);
|
|
1043
1043
|
}
|
|
1044
1044
|
return t + _r.RandomGenerator.sha1(e).substring(0, this.IDENTIFIER_MAX_SIZE - t.length);
|
|
1045
1045
|
}
|
|
@@ -1054,15 +1054,15 @@ class LegacyOracleNamingStrategy extends gr.DefaultNamingStrategy {
|
|
|
1054
1054
|
|
|
1055
1055
|
mr = Or.LegacyOracleNamingStrategy = LegacyOracleNamingStrategy;
|
|
1056
1056
|
|
|
1057
|
-
var
|
|
1057
|
+
var br = {};
|
|
1058
1058
|
|
|
1059
1059
|
"use strict";
|
|
1060
1060
|
|
|
1061
|
-
Object.defineProperty(
|
|
1061
|
+
Object.defineProperty(br, "__esModule", {
|
|
1062
1062
|
value: true
|
|
1063
1063
|
});
|
|
1064
1064
|
|
|
1065
|
-
var jr =
|
|
1065
|
+
var jr = br.EntitySchema = void 0;
|
|
1066
1066
|
|
|
1067
1067
|
class EntitySchema {
|
|
1068
1068
|
constructor(e) {
|
|
@@ -1071,7 +1071,7 @@ class EntitySchema {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
|
-
jr =
|
|
1074
|
+
jr = br.EntitySchema = EntitySchema;
|
|
1075
1075
|
|
|
1076
1076
|
var Pr = {};
|
|
1077
1077
|
|
|
@@ -1101,8 +1101,8 @@ class EntitySchemaOptions {}
|
|
|
1101
1101
|
|
|
1102
1102
|
Rr = Er.EntitySchemaOptions = EntitySchemaOptions;
|
|
1103
1103
|
|
|
1104
|
-
const Br =
|
|
1104
|
+
const Br = B.DataSource;
|
|
1105
1105
|
|
|
1106
1106
|
const Ir = vr.MongoEntityManager;
|
|
1107
1107
|
|
|
1108
|
-
export { pe as And, me as Any,
|
|
1108
|
+
export { pe as And, me as Any, be as ArrayContainedBy, Ee as ArrayContains, Se as ArrayOverlap, Zt as BaseEntity, we as Between, Br as DataSource, jr as EntitySchema, Mr as EntitySchemaEmbeddedColumnOptions, Rr as EntitySchemaOptions, xe as Equal, De as EqualOperator, rt as ILike, Ke as IsNull, Rt as JsonContains, mr as LegacyOracleNamingStrategy, Ge as LessThan, Ye as LessThanOrEqual, ot as Like, Ir as MongoEntityManager, dt as MoreThan, vt as MoreThanOrEqual, _t as Not, yr as NotBrackets, jt as Raw };
|
package/package.json
CHANGED
|
@@ -2750,6 +2750,8 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2750
2750
|
Hostname: r.hostname,
|
|
2751
2751
|
Tty: r.tty,
|
|
2752
2752
|
Env: Object.keys(u).map((e => `${e}=${u[e]}`)),
|
|
2753
|
+
Cmd: r.cmd,
|
|
2754
|
+
Entrypoint: r.entrypoint,
|
|
2753
2755
|
HostConfig: {
|
|
2754
2756
|
Memory: r.memoryLimit,
|
|
2755
2757
|
CpusetCpus: r.cpuSet ? r.cpuSet.join(",") : undefined,
|
|
@@ -2746,6 +2746,8 @@ let qr = class Docker extends i {
|
|
|
2746
2746
|
Hostname: i.hostname,
|
|
2747
2747
|
Tty: i.tty,
|
|
2748
2748
|
Env: Object.keys(l).map((t => `${t}=${l[t]}`)),
|
|
2749
|
+
Cmd: i.cmd,
|
|
2750
|
+
Entrypoint: i.entrypoint,
|
|
2749
2751
|
HostConfig: {
|
|
2750
2752
|
Memory: i.memoryLimit,
|
|
2751
2753
|
CpusetCpus: i.cpuSet ? i.cpuSet.join(",") : undefined,
|
|
@@ -120,4 +120,8 @@ e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type",
|
|
|
120
120
|
|
|
121
121
|
e.__decorate([ r.Expect(t.DTO.String().optional()), e.__metadata("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
|
|
122
122
|
|
|
123
|
+
e.__decorate([ r.Expect(t.DTO.Array(t.DTO.String()).optional()), e.__metadata("design:type", Array) ], ContainerSettingOptions.prototype, "cmd", void 0);
|
|
124
|
+
|
|
125
|
+
e.__decorate([ r.Expect(t.DTO.Array(t.DTO.String()).optional()), e.__metadata("design:type", Array) ], ContainerSettingOptions.prototype, "entrypoint", void 0);
|
|
126
|
+
|
|
123
127
|
exports.ContainerSettingOptions = ContainerSettingOptions;
|
|
@@ -114,4 +114,8 @@ t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOption
|
|
|
114
114
|
|
|
115
115
|
t([ e(i.String().optional()), o("design:type", String) ], ContainerSettingOptions.prototype, "pidMode", void 0);
|
|
116
116
|
|
|
117
|
+
t([ e(i.Array(i.String()).optional()), o("design:type", Array) ], ContainerSettingOptions.prototype, "cmd", void 0);
|
|
118
|
+
|
|
119
|
+
t([ e(i.Array(i.String()).optional()), o("design:type", Array) ], ContainerSettingOptions.prototype, "entrypoint", void 0);
|
|
120
|
+
|
|
117
121
|
export { ContainerSettingOptions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import { r as e,
|
|
3
|
+
import { r as e, a as t } from "../../../vendor/Package.14.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../vendor/Package.8.mjs";
|
|
6
6
|
|
|
@@ -56,7 +56,7 @@ var o = r.Column = void 0;
|
|
|
56
56
|
|
|
57
57
|
const a = e();
|
|
58
58
|
|
|
59
|
-
const i = t;
|
|
59
|
+
const i = t();
|
|
60
60
|
|
|
61
61
|
function n(e, t) {
|
|
62
62
|
return function(r, o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../vendor/Package.5.mjs";
|
|
2
2
|
|
|
3
|
-
import { r as e,
|
|
3
|
+
import { r as e, a as r, b as t } from "../../../vendor/Package.14.mjs";
|
|
4
4
|
|
|
5
5
|
import "../../../vendor/Package.8.mjs";
|
|
6
6
|
|
|
@@ -56,7 +56,7 @@ var a = o.PrimaryColumn = void 0;
|
|
|
56
56
|
|
|
57
57
|
const i = e();
|
|
58
58
|
|
|
59
|
-
const m = r;
|
|
59
|
+
const m = r();
|
|
60
60
|
|
|
61
61
|
const n = t();
|
|
62
62
|
|
package/vendor/Package.14.mjs
CHANGED
|
@@ -29620,24 +29620,26 @@ function bE() {
|
|
|
29620
29620
|
|
|
29621
29621
|
var NE = {};
|
|
29622
29622
|
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
|
-
Object.defineProperty(NE, "__esModule", {
|
|
29626
|
-
value: true
|
|
29627
|
-
});
|
|
29623
|
+
var CE;
|
|
29628
29624
|
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29633
|
-
|
|
29634
|
-
|
|
29635
|
-
|
|
29636
|
-
|
|
29625
|
+
function AE() {
|
|
29626
|
+
if (CE) return NE;
|
|
29627
|
+
CE = 1;
|
|
29628
|
+
"use strict";
|
|
29629
|
+
Object.defineProperty(NE, "__esModule", {
|
|
29630
|
+
value: true
|
|
29631
|
+
});
|
|
29632
|
+
NE.ColumnTypeUndefinedError = void 0;
|
|
29633
|
+
const e = pp;
|
|
29634
|
+
let t = class ColumnTypeUndefinedError extends e.TypeORMError {
|
|
29635
|
+
constructor(e, t) {
|
|
29636
|
+
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.`);
|
|
29637
|
+
}
|
|
29638
|
+
};
|
|
29639
|
+
NE.ColumnTypeUndefinedError = t;
|
|
29640
|
+
return NE;
|
|
29637
29641
|
}
|
|
29638
29642
|
|
|
29639
|
-
CE = NE.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
|
|
29640
|
-
|
|
29641
29643
|
var RE = {};
|
|
29642
29644
|
|
|
29643
29645
|
var OE;
|
|
@@ -29808,7 +29810,7 @@ function $E() {
|
|
|
29808
29810
|
t.__exportStar(EE(), e);
|
|
29809
29811
|
t.__exportStar(TE(), e);
|
|
29810
29812
|
t.__exportStar(bE(), e);
|
|
29811
|
-
t.__exportStar(
|
|
29813
|
+
t.__exportStar(AE(), e);
|
|
29812
29814
|
t.__exportStar(vE(), e);
|
|
29813
29815
|
t.__exportStar(IE, e);
|
|
29814
29816
|
t.__exportStar(PE(), e);
|
|
@@ -72363,4 +72365,4 @@ function cF() {
|
|
|
72363
72365
|
return S;
|
|
72364
72366
|
}
|
|
72365
72367
|
|
|
72366
|
-
export { EB as A, wg as B,
|
|
72368
|
+
export { EB as A, wg as B, xf as C, mb as D, iU as E, Lg as F, EN as G, NN as H, iy as I, fN as J, wb as K, Sb as L, Qb as M, Lb as N, ah as O, O as P, Vg as Q, pb as R, iS as S, bN as T, VS as U, Ab as V, Nb as W, Ib as X, Pb as Y, Hb as Z, rF as _, AE as a, Ah as b, TA as c, kN as d, dp as e, CA as f, rT as g, Ay as h, Dg as i, ty as j, PS as k, aT as l, XA as m, Yb as n, _b as o, sh as p, Ok as q, cF as r, $g as s, kg as t, Dk as u, tS as v, SB as w, gB as x, AB as y, _C as z };
|