lakutata 2.0.79 → 2.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/core/Application.cjs +18 -14
- package/src/lib/core/Application.mjs +16 -12
- package/vendor/Package.17.cjs +184 -195
- package/vendor/Package.17.mjs +176 -187
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ const _ = require("../base/EventEmitter.cjs");
|
|
|
58
58
|
|
|
59
59
|
const w = require("../base/internal/DatabaseSymbol.cjs");
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const A = require("../../decorators/di/Inject.cjs");
|
|
62
62
|
|
|
63
63
|
require("../base/async-constructor/AsyncConstructor.cjs");
|
|
64
64
|
|
|
@@ -294,15 +294,15 @@ require("assert");
|
|
|
294
294
|
|
|
295
295
|
require("string_decoder");
|
|
296
296
|
|
|
297
|
-
const
|
|
297
|
+
const O = e => e && e.__esModule ? e : {
|
|
298
298
|
default: e
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
-
const S =
|
|
301
|
+
const S = O(n);
|
|
302
302
|
|
|
303
|
-
const C =
|
|
303
|
+
const C = O(u);
|
|
304
304
|
|
|
305
|
-
const D =
|
|
305
|
+
const D = O(x);
|
|
306
306
|
|
|
307
307
|
var I = {};
|
|
308
308
|
|
|
@@ -322,29 +322,29 @@ const k = P.__importDefault(S.default);
|
|
|
322
322
|
|
|
323
323
|
const R = o.error;
|
|
324
324
|
|
|
325
|
-
const
|
|
325
|
+
const L = o.InstanceChecker;
|
|
326
326
|
|
|
327
|
-
const
|
|
327
|
+
const B = o.requireImportUtils();
|
|
328
328
|
|
|
329
329
|
class CommandUtils {
|
|
330
330
|
static async loadDataSource(e) {
|
|
331
331
|
let t;
|
|
332
332
|
try {
|
|
333
|
-
[t] = await (0,
|
|
333
|
+
[t] = await (0, B.importOrRequireFile)(e);
|
|
334
334
|
} catch (t) {
|
|
335
335
|
throw new Error(`Unable to open file: "${e}". ${t.message}`);
|
|
336
336
|
}
|
|
337
337
|
if (!t || typeof t !== "object") {
|
|
338
338
|
throw new Error(`Given data source file must contain export of a DataSource instance`);
|
|
339
339
|
}
|
|
340
|
-
if (
|
|
340
|
+
if (L.InstanceChecker.isDataSource(t)) {
|
|
341
341
|
return t;
|
|
342
342
|
}
|
|
343
343
|
const r = [];
|
|
344
344
|
for (const e in t) {
|
|
345
345
|
const i = t[e];
|
|
346
346
|
const n = await i;
|
|
347
|
-
if (
|
|
347
|
+
if (L.InstanceChecker.isDataSource(n)) {
|
|
348
348
|
r.push(n);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -390,11 +390,11 @@ class CommandUtils {
|
|
|
390
390
|
|
|
391
391
|
M = I.CommandUtils = CommandUtils;
|
|
392
392
|
|
|
393
|
-
var
|
|
393
|
+
var N = o.requireAnsis();
|
|
394
394
|
|
|
395
|
-
const G = s.getDefaultExportFromCjs(
|
|
395
|
+
const G = s.getDefaultExportFromCjs(N);
|
|
396
396
|
|
|
397
|
-
const {Ansis: F, ansi256: $, fg: U, bgAnsi256: Q, bg: J, rgb: V, bgRgb: H, hex: z, bgHex: W, reset: K, inverse: X, hidden: Y, visible: Z, bold: ee, dim: te, italic: re, underline: ie, strikethrough: ne, strike: ae, black: oe, red: se, green: ce, yellow: ue, blue: pe, magenta: le, cyan: de, white: he, grey: ge, gray: me, blackBright: qe, redBright: ye, greenBright: je, yellowBright: fe, blueBright: be, magentaBright: xe, cyanBright: ve, whiteBright: Ee, bgBlack: _e, bgRed: we, bgGreen:
|
|
397
|
+
const {Ansis: F, ansi256: $, fg: U, bgAnsi256: Q, bg: J, rgb: V, bgRgb: H, hex: z, bgHex: W, reset: K, inverse: X, hidden: Y, visible: Z, bold: ee, dim: te, italic: re, underline: ie, strikethrough: ne, strike: ae, black: oe, red: se, green: ce, yellow: ue, blue: pe, magenta: le, cyan: de, white: he, grey: ge, gray: me, blackBright: qe, redBright: ye, greenBright: je, yellowBright: fe, blueBright: be, magentaBright: xe, cyanBright: ve, whiteBright: Ee, bgBlack: _e, bgRed: we, bgGreen: Ae, bgYellow: Oe, bgBlue: Se, bgMagenta: Ce, bgCyan: De, bgWhite: Ie, bgGrey: Me, bgGray: Pe, bgBlackBright: Te, bgRedBright: ke, bgGreenBright: Re, bgYellowBright: Le, bgBlueBright: Be, bgMagentaBright: Ne, bgCyanBright: Ge, bgWhiteBright: Fe} = G;
|
|
398
398
|
|
|
399
399
|
var $e;
|
|
400
400
|
|
|
@@ -537,6 +537,10 @@ exports.Application = class Application extends l.Module {
|
|
|
537
537
|
switch (e.toUpperCase()) {
|
|
538
538
|
case "MIGRATION_GENERATE":
|
|
539
539
|
{
|
|
540
|
+
this.eventEmitter.removeAllListeners(exports.ApplicationState.Launched);
|
|
541
|
+
this.eventEmitter.removeAllListeners(exports.ApplicationState.Done);
|
|
542
|
+
this.eventEmitter.removeAllListeners(exports.ApplicationState.UncaughtException);
|
|
543
|
+
this.eventEmitter.removeAllListeners(exports.ApplicationState.FatalException);
|
|
540
544
|
const r = process.env[e];
|
|
541
545
|
const i = e => {
|
|
542
546
|
const t = [];
|
|
@@ -732,7 +736,7 @@ exports.GenerateMigration = Ue = class GenerateMigration extends t.Provider {
|
|
|
732
736
|
}
|
|
733
737
|
};
|
|
734
738
|
|
|
735
|
-
e.__decorate([
|
|
739
|
+
e.__decorate([ A.Inject(exports.Application), e.__metadata("design:type", exports.Application) ], exports.GenerateMigration.prototype, "app", void 0);
|
|
736
740
|
|
|
737
741
|
e.__decorate([ r.Configurable(i.DTO.String().required()), e.__metadata("design:type", String) ], exports.GenerateMigration.prototype, "path", void 0);
|
|
738
742
|
|
|
@@ -38,9 +38,9 @@ import { Entrypoint as S } from "../../components/entrypoint/Entrypoint.mjs";
|
|
|
38
38
|
|
|
39
39
|
import { L as k } from "../../../vendor/Package.14.mjs";
|
|
40
40
|
|
|
41
|
-
import { Accept as
|
|
41
|
+
import { Accept as A } from "../../decorators/dto/Accept.mjs";
|
|
42
42
|
|
|
43
|
-
import { mkdirSync as
|
|
43
|
+
import { mkdirSync as I } from "fs";
|
|
44
44
|
|
|
45
45
|
import D from "node:path";
|
|
46
46
|
|
|
@@ -52,7 +52,7 @@ import { EventEmitter as B } from "../base/EventEmitter.mjs";
|
|
|
52
52
|
|
|
53
53
|
import { DatabaseSymbol as M } from "../base/internal/DatabaseSymbol.mjs";
|
|
54
54
|
|
|
55
|
-
import { Inject as
|
|
55
|
+
import { Inject as L } from "../../decorators/di/Inject.mjs";
|
|
56
56
|
|
|
57
57
|
import "../base/async-constructor/AsyncConstructor.mjs";
|
|
58
58
|
|
|
@@ -288,15 +288,15 @@ import "assert";
|
|
|
288
288
|
|
|
289
289
|
import "string_decoder";
|
|
290
290
|
|
|
291
|
-
var
|
|
291
|
+
var T = {};
|
|
292
292
|
|
|
293
293
|
"use strict";
|
|
294
294
|
|
|
295
|
-
Object.defineProperty(
|
|
295
|
+
Object.defineProperty(T, "__esModule", {
|
|
296
296
|
value: true
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
-
var q =
|
|
299
|
+
var q = T.CommandUtils = void 0;
|
|
300
300
|
|
|
301
301
|
const F = g;
|
|
302
302
|
|
|
@@ -372,13 +372,13 @@ class CommandUtils {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
q =
|
|
375
|
+
q = T.CommandUtils = CommandUtils;
|
|
376
376
|
|
|
377
377
|
var J = m();
|
|
378
378
|
|
|
379
379
|
const V = d(J);
|
|
380
380
|
|
|
381
|
-
const {Ansis: H, ansi256: z, fg: W, bgAnsi256: K, bg: X, rgb: Y, bgRgb: Z, hex: tt, bgHex: et, reset: ot, inverse: rt, hidden: it, visible: nt, bold: st, dim: at, italic: ct, underline: pt, strikethrough: mt, strike: lt, black: ut, red: ht, green: dt, yellow: gt, blue: jt, magenta: ft, cyan: yt, white: bt, grey: vt, gray: xt, blackBright: Et, redBright: wt, greenBright: Ot, yellowBright: Pt, blueBright: Ct, magentaBright: St, cyanBright: kt, whiteBright:
|
|
381
|
+
const {Ansis: H, ansi256: z, fg: W, bgAnsi256: K, bg: X, rgb: Y, bgRgb: Z, hex: tt, bgHex: et, reset: ot, inverse: rt, hidden: it, visible: nt, bold: st, dim: at, italic: ct, underline: pt, strikethrough: mt, strike: lt, black: ut, red: ht, green: dt, yellow: gt, blue: jt, magenta: ft, cyan: yt, white: bt, grey: vt, gray: xt, blackBright: Et, redBright: wt, greenBright: Ot, yellowBright: Pt, blueBright: Ct, magentaBright: St, cyanBright: kt, whiteBright: At, bgBlack: It, bgRed: Dt, bgGreen: Rt, bgYellow: Nt, bgBlue: Bt, bgMagenta: Mt, bgCyan: Lt, bgWhite: Tt, bgGrey: qt, bgGray: Ft, bgBlackBright: $t, bgRedBright: Ut, bgGreenBright: Gt, bgYellowBright: Qt, bgBlueBright: _t, bgMagentaBright: Jt, bgCyanBright: Vt, bgWhiteBright: Ht} = V;
|
|
382
382
|
|
|
383
383
|
var zt;
|
|
384
384
|
|
|
@@ -510,7 +510,7 @@ let Kt = class Application extends b {
|
|
|
510
510
|
t.set(e, o[e]);
|
|
511
511
|
if (r) {
|
|
512
512
|
const t = D.resolve(e);
|
|
513
|
-
if (!R(t))
|
|
513
|
+
if (!R(t)) I(D.resolve(e), {
|
|
514
514
|
recursive: true
|
|
515
515
|
});
|
|
516
516
|
}
|
|
@@ -521,6 +521,10 @@ let Kt = class Application extends b {
|
|
|
521
521
|
switch (t.toUpperCase()) {
|
|
522
522
|
case "MIGRATION_GENERATE":
|
|
523
523
|
{
|
|
524
|
+
this.eventEmitter.removeAllListeners(Wt.Launched);
|
|
525
|
+
this.eventEmitter.removeAllListeners(Wt.Done);
|
|
526
|
+
this.eventEmitter.removeAllListeners(Wt.UncaughtException);
|
|
527
|
+
this.eventEmitter.removeAllListeners(Wt.FatalException);
|
|
524
528
|
const o = process.env[t];
|
|
525
529
|
const r = t => {
|
|
526
530
|
const e = [];
|
|
@@ -595,9 +599,9 @@ let Kt = class Application extends b {
|
|
|
595
599
|
}
|
|
596
600
|
};
|
|
597
601
|
|
|
598
|
-
t([
|
|
602
|
+
t([ A(i.Object().pattern(i.String(), i.String()).required()), e("design:type", Function), e("design:paramtypes", [ Object ]), e("design:returntype", Object) ], Kt, "env", null);
|
|
599
603
|
|
|
600
|
-
t([
|
|
604
|
+
t([ A(i.Object().pattern(i.String(), i.String()).required(), i.Boolean().optional().default(false)), e("design:type", Function), e("design:paramtypes", [ Object, Boolean ]), e("design:returntype", Object) ], Kt, "alias", null);
|
|
601
605
|
|
|
602
606
|
Kt = zt = t([ f(true) ], Kt);
|
|
603
607
|
|
|
@@ -716,7 +720,7 @@ let Yt = Xt = class GenerateMigration extends o {
|
|
|
716
720
|
}
|
|
717
721
|
};
|
|
718
722
|
|
|
719
|
-
t([
|
|
723
|
+
t([ L(Kt), e("design:type", Kt) ], Yt.prototype, "app", void 0);
|
|
720
724
|
|
|
721
725
|
t([ r(i.String().required()), e("design:type", String) ], Yt.prototype, "path", void 0);
|
|
722
726
|
|