@hg-ts/execution-mode 0.3.4 → 0.4.0
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/dist/execution-mode.js +3 -7
- package/dist/execution-mode.js.map +1 -1
- package/dist/execution-mode.module.js +11 -14
- package/dist/execution-mode.module.js.map +1 -1
- package/dist/hg.execution-mode.d.ts +1 -1
- package/dist/hg.execution-mode.d.ts.map +1 -1
- package/dist/hg.execution-mode.js +3 -7
- package/dist/hg.execution-mode.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/dist/mock.execution-mode.d.ts +1 -1
- package/dist/mock.execution-mode.d.ts.map +1 -1
- package/dist/mock.execution-mode.js +2 -6
- package/dist/mock.execution-mode.js.map +1 -1
- package/package.json +5 -4
- package/tsconfig.json +1 -1
package/dist/execution-mode.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExecutionMode = exports.ExecutionModeVariants = void 0;
|
|
4
|
-
var ExecutionModeVariants;
|
|
1
|
+
export var ExecutionModeVariants;
|
|
5
2
|
(function (ExecutionModeVariants) {
|
|
6
3
|
ExecutionModeVariants["DEBUG"] = "debug";
|
|
7
4
|
ExecutionModeVariants["DEV"] = "dev";
|
|
@@ -9,8 +6,8 @@ var ExecutionModeVariants;
|
|
|
9
6
|
ExecutionModeVariants["QA"] = "qa";
|
|
10
7
|
ExecutionModeVariants["DEMO"] = "demo";
|
|
11
8
|
ExecutionModeVariants["PROD"] = "prod";
|
|
12
|
-
})(ExecutionModeVariants || (
|
|
13
|
-
class ExecutionMode {
|
|
9
|
+
})(ExecutionModeVariants || (ExecutionModeVariants = {}));
|
|
10
|
+
export class ExecutionMode {
|
|
14
11
|
value;
|
|
15
12
|
projectName;
|
|
16
13
|
defaultValue;
|
|
@@ -65,5 +62,4 @@ class ExecutionMode {
|
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
|
-
exports.ExecutionMode = ExecutionMode;
|
|
69
65
|
//# sourceMappingURL=execution-mode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-mode.js","sourceRoot":"","sources":["../src/execution-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execution-mode.js","sourceRoot":"","sources":["../src/execution-mode.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,kCAAS,CAAA;IACT,sCAAa,CAAA;IACb,sCAAa,CAAA;AACd,CAAC,EAPW,qBAAqB,KAArB,qBAAqB,QAOhC;AAED,MAAM,OAAO,aAAa;IACjB,KAAK,CAAY;IACR,WAAW,CAAS;IACpB,YAAY,CAAY;IAEzC,YAAmB,WAAmB,EAAE,YAAuB;QAC9D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,SAAS,EAAE,CAAC;IAClB,CAAC;IAEM,OAAO;QACb,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,KAAK,CAAC;IACnD,CAAC;IAEM,KAAK;QACX,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,GAAG,CAAC;IACjD,CAAC;IAEM,MAAM;QACZ,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,IAAI,CAAC;IAClD,CAAC;IAEM,IAAI;QACV,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,EAAE,CAAC;IAChD,CAAC;IAEM,MAAM;QACZ,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,IAAI,CAAC;IAClD,CAAC;IAEM,MAAM;QACZ,OAAO,IAAI,CAAC,KAAK,KAAK,qBAAqB,CAAC,IAAI,CAAC;IAClD,CAAC;IAEM,QAAQ;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAEM,SAAS,CAAC,QAAqB;QACrC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAEM,EAAE,CAAC,QAAmB;QAC5B,OAAO,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IAES,UAAU;QACnB,OAAO,GAAG,IAAI,CAAC,WAAW,MAAM,CAAC;IAClC,CAAC;IAES,YAAY,CAAC,KAAc;QACpC,OAAO,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,KAAY,CAAC,CAAC;IACpE,CAAC;IAES,WAAW;QACpB,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACvC,CAAC;IAEO,SAAS;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAEjC,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;QAChC,CAAC;IACF,CAAC;CACD"}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const execution_mode_1 = require("./execution-mode");
|
|
7
|
-
const hg_execution_mode_1 = require("./hg.execution-mode");
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Global, Module, } from '@nestjs/common';
|
|
3
|
+
import { ExecutionMode } from './execution-mode.js';
|
|
4
|
+
import { HgExecutionMode } from './hg.execution-mode.js';
|
|
8
5
|
let ExecutionModeModule = class ExecutionModeModule {
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
(
|
|
13
|
-
(0, common_1.Module)({
|
|
7
|
+
ExecutionModeModule = __decorate([
|
|
8
|
+
Global(),
|
|
9
|
+
Module({
|
|
14
10
|
providers: [
|
|
15
11
|
{
|
|
16
|
-
provide:
|
|
17
|
-
useClass:
|
|
12
|
+
provide: ExecutionMode,
|
|
13
|
+
useClass: HgExecutionMode,
|
|
18
14
|
},
|
|
19
15
|
],
|
|
20
|
-
exports: [
|
|
16
|
+
exports: [ExecutionMode],
|
|
21
17
|
})
|
|
22
18
|
], ExecutionModeModule);
|
|
19
|
+
export { ExecutionModeModule };
|
|
23
20
|
//# sourceMappingURL=execution-mode.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-mode.module.js","sourceRoot":"","sources":["../src/execution-mode.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execution-mode.module.js","sourceRoot":"","sources":["../src/execution-mode.module.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAYlD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,mBAAmB;IAV/B,MAAM,EAAE;IACR,MAAM,CAAC;QACP,SAAS,EAAE;YACV;gBACC,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,eAAe;aACzB;SACD;QACD,OAAO,EAAE,CAAC,aAAa,CAAC;KACxB,CAAC;GACW,mBAAmB,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hg.execution-mode.d.ts","sourceRoot":"","sources":["../src/hg.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EAEb,MAAM,
|
|
1
|
+
{"version":3,"file":"hg.execution-mode.d.ts","sourceRoot":"","sources":["../src/hg.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EAEb,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,eAAgB,SAAQ,aAAa;;CAIjD"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.HgExecutionMode = void 0;
|
|
4
|
-
const execution_mode_1 = require("./execution-mode");
|
|
5
|
-
class HgExecutionMode extends execution_mode_1.ExecutionMode {
|
|
1
|
+
import { ExecutionMode, ExecutionModeVariants, } from './execution-mode.js';
|
|
2
|
+
export class HgExecutionMode extends ExecutionMode {
|
|
6
3
|
constructor() {
|
|
7
|
-
super('HG',
|
|
4
|
+
super('HG', ExecutionModeVariants.PROD);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.HgExecutionMode = HgExecutionMode;
|
|
11
7
|
//# sourceMappingURL=hg.execution-mode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hg.execution-mode.js","sourceRoot":"","sources":["../src/hg.execution-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hg.execution-mode.js","sourceRoot":"","sources":["../src/hg.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,qBAAqB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,eAAgB,SAAQ,aAAa;IACjD;QACC,KAAK,CAAC,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './execution-mode';
|
|
2
|
-
export * from './hg.execution-mode';
|
|
3
|
-
export * from './mock.execution-mode';
|
|
4
|
-
export * from './execution-mode.module';
|
|
1
|
+
export * from './execution-mode.js';
|
|
2
|
+
export * from './hg.execution-mode.js';
|
|
3
|
+
export * from './mock.execution-mode.js';
|
|
4
|
+
export * from './execution-mode.module.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./hg.execution-mode"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./mock.execution-mode"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./execution-mode.module"), exports);
|
|
1
|
+
export * from './execution-mode.js';
|
|
2
|
+
export * from './hg.execution-mode.js';
|
|
3
|
+
export * from './mock.execution-mode.js';
|
|
4
|
+
export * from './execution-mode.module.js';
|
|
8
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExecutionMode, ExecutionModeVariants } from './execution-mode';
|
|
1
|
+
import { ExecutionMode, ExecutionModeVariants } from './execution-mode.js';
|
|
2
2
|
export declare class MockExecutionMode<ValueType extends ExecutionModeVariants = ExecutionModeVariants> extends ExecutionMode<ValueType> {
|
|
3
3
|
constructor(value: ValueType);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.execution-mode.d.ts","sourceRoot":"","sources":["../src/mock.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,qBAAqB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"mock.execution-mode.d.ts","sourceRoot":"","sources":["../src/mock.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,qBAAqB,EACrB,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,iBAAiB,CAAC,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC7F,SAAQ,aAAa,CAAC,SAAS,CAAC;gBACb,KAAK,EAAE,SAAS;CAGnC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.MockExecutionMode = void 0;
|
|
4
|
-
const execution_mode_1 = require("./execution-mode");
|
|
5
|
-
class MockExecutionMode extends execution_mode_1.ExecutionMode {
|
|
1
|
+
import { ExecutionMode, } from './execution-mode.js';
|
|
2
|
+
export class MockExecutionMode extends ExecutionMode {
|
|
6
3
|
constructor(value) {
|
|
7
4
|
super('NEVER_USED', value);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.MockExecutionMode = MockExecutionMode;
|
|
11
7
|
//# sourceMappingURL=mock.execution-mode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.execution-mode.js","sourceRoot":"","sources":["../src/mock.execution-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mock.execution-mode.js","sourceRoot":"","sources":["../src/mock.execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,GAEb,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,iBACZ,SAAQ,aAAwB;IAChC,YAAmB,KAAgB;QAClC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/execution-mode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"exports": {
|
|
6
7
|
".": "./dist/index.js"
|
|
7
8
|
},
|
|
@@ -15,9 +16,9 @@
|
|
|
15
16
|
"lint:ts:fix": "lint-ts --fix"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@hg-ts-config/typescript": "0.
|
|
19
|
-
"@hg-ts/linter": "0.
|
|
20
|
-
"@hg-ts/types": "0.
|
|
19
|
+
"@hg-ts-config/typescript": "0.4.0",
|
|
20
|
+
"@hg-ts/linter": "0.4.0",
|
|
21
|
+
"@hg-ts/types": "0.4.0",
|
|
21
22
|
"@nestjs/common": "11.1.0",
|
|
22
23
|
"@types/node": "22.19.1",
|
|
23
24
|
"eslint": "9.18.0",
|
package/tsconfig.json
CHANGED