@cenk1cenk2/oclif-common 6.4.12 → 6.4.14
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/_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js +10 -0
- package/dist/_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js +7 -0
- package/dist/_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateParam.js +9 -0
- package/dist/hooks/not-found.hook.js +2 -4
- package/dist/lib/config/config.module.js +2 -2
- package/dist/lib/config/config.service.js +17 -21
- package/dist/lib/fs/filesystem.module.js +2 -2
- package/dist/lib/fs/filesystem.service.js +5 -7
- package/dist/lib/locker/locker.module.js +2 -2
- package/dist/lib/locker/locker.service.js +3 -3
- package/dist/lib/logger/logger.module.js +2 -2
- package/dist/lib/logger/logger.service.js +3 -3
- package/dist/lib/logger/winston.service.js +6 -6
- package/dist/lib/logo/logo.module.js +2 -2
- package/dist/lib/logo/logo.service.js +3 -3
- package/dist/lib/parser/fts/env-parser.service.js +3 -3
- package/dist/lib/parser/fts/json-parser.service.js +3 -3
- package/dist/lib/parser/fts/yaml-parser.service.js +3 -3
- package/dist/lib/parser/parser.module.js +2 -2
- package/dist/lib/parser/parser.service.js +3 -3
- package/dist/lib/validator/validator.module.js +2 -2
- package/dist/lib/validator/validator.service.js +3 -3
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.89.0/helpers/decorate.js
|
|
2
|
+
function __decorate(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { __decorate };
|
|
@@ -5,12 +5,10 @@ import { Help } from "@oclif/core";
|
|
|
5
5
|
|
|
6
6
|
//#region src/hooks/not-found.hook.ts
|
|
7
7
|
const notFoundHook = async (opts) => {
|
|
8
|
-
const
|
|
9
|
-
const logger = await app.resolve(LoggerService);
|
|
8
|
+
const logger = await (await CliModule.create(CliModule.forMinimum())).resolve(LoggerService);
|
|
10
9
|
logger.error("Command not found. Take a look at help. You can also use --[h]elp flag for subcommands.");
|
|
11
10
|
logger.direct("");
|
|
12
|
-
|
|
13
|
-
await help.showHelp(["--all"]);
|
|
11
|
+
await new Help(opts.config).showHelp(["--all"]);
|
|
14
12
|
opts.context.exit(127);
|
|
15
13
|
};
|
|
16
14
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { ConfigService } from "./config.service.js";
|
|
2
3
|
import { ParserModule } from "../parser/parser.module.js";
|
|
3
4
|
import { Global, Module } from "@nestjs/common";
|
|
4
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
5
5
|
|
|
6
6
|
//#region src/lib/config/config.module.ts
|
|
7
7
|
let ConfigModule = class ConfigModule$1 {};
|
|
8
|
-
ConfigModule =
|
|
8
|
+
ConfigModule = __decorate([Global(), Module({
|
|
9
9
|
imports: [ParserModule],
|
|
10
10
|
providers: [ConfigService],
|
|
11
11
|
exports: [ConfigService]
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { FileConstants } from "../../constants/file.constants.js";
|
|
2
2
|
import { ConfigEnvKeys, TOKEN_CONFIG_MODULE_OPTIONS } from "./config.constants.js";
|
|
3
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
4
|
+
import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateParam.js";
|
|
5
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
3
6
|
import { LoggerService } from "../logger/logger.service.js";
|
|
4
7
|
import "../logger/index.js";
|
|
5
8
|
import { ParserService } from "../parser/parser.service.js";
|
|
@@ -10,9 +13,6 @@ import "../../utils/index.js";
|
|
|
10
13
|
import { Inject, Injectable } from "@nestjs/common";
|
|
11
14
|
import op from "object-path-immutable";
|
|
12
15
|
import { join } from "path";
|
|
13
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
14
|
-
import _decorateParam from "@oxc-project/runtime/helpers/decorateParam";
|
|
15
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
16
16
|
|
|
17
17
|
//#region src/lib/config/config.service.ts
|
|
18
18
|
var _ref, _ref2;
|
|
@@ -73,7 +73,7 @@ let ConfigService = class ConfigService$1 {
|
|
|
73
73
|
const env = typeof definition === "string" ? await this.parser.read(definition) : definition;
|
|
74
74
|
this.logger.trace("Environment variable extensions read: %o", definition);
|
|
75
75
|
const iter = async (obj, parent) => {
|
|
76
|
-
|
|
76
|
+
return (await Promise.all(Object.entries(obj).map(async ([key, value]) => {
|
|
77
77
|
const location = [...parent ?? [], key];
|
|
78
78
|
if (typeof value === "string") return [{
|
|
79
79
|
key: location,
|
|
@@ -85,18 +85,15 @@ let ConfigService = class ConfigService$1 {
|
|
|
85
85
|
extensions = await iter(value[ConfigEnvKeys.ELEMENT], [...location, ConfigEnvKeys.ELEMENT]);
|
|
86
86
|
this.logger.trace("Expanding location to elements: %s -> %s", location, extensions.map((extension) => extension.key.join(".")).join(", "));
|
|
87
87
|
}
|
|
88
|
-
if (ConfigEnvKeys.NAME in value && ConfigEnvKeys.PARSER in value) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return variable;
|
|
96
|
-
} else return iter(value, location);
|
|
88
|
+
if (ConfigEnvKeys.NAME in value && ConfigEnvKeys.PARSER in value) return [{
|
|
89
|
+
key: location,
|
|
90
|
+
env: value[ConfigEnvKeys.NAME],
|
|
91
|
+
parser: value[ConfigEnvKeys.PARSER],
|
|
92
|
+
extensions
|
|
93
|
+
}];
|
|
94
|
+
else return iter(value, location);
|
|
97
95
|
}
|
|
98
|
-
}));
|
|
99
|
-
return data.flatMap((d) => d).filter(Boolean);
|
|
96
|
+
}))).flatMap((d) => d).filter(Boolean);
|
|
100
97
|
};
|
|
101
98
|
const parsed = await iter(env);
|
|
102
99
|
const cb = (config$1, variable, data) => {
|
|
@@ -118,7 +115,7 @@ let ConfigService = class ConfigService$1 {
|
|
|
118
115
|
const startedAt = Date.now();
|
|
119
116
|
for (let i = 0; i < Infinity; i++) {
|
|
120
117
|
if (Date.now() - startedAt > timeout) throw new Error(`Timed-out in ${timeout}ms while looking for element environment variables.`);
|
|
121
|
-
|
|
118
|
+
if (variable.extensions.map((extension) => {
|
|
122
119
|
const clone = JSON.parse(JSON.stringify(extension));
|
|
123
120
|
clone.env = clone.env.replace(ConfigEnvKeys.ELEMENT_REPLACER, i.toString());
|
|
124
121
|
clone.key[clone.key.findIndex((value) => value === ConfigEnvKeys.ELEMENT)] = i.toString();
|
|
@@ -129,8 +126,7 @@ let ConfigService = class ConfigService$1 {
|
|
|
129
126
|
}
|
|
130
127
|
config = cb(config, clone, data);
|
|
131
128
|
return true;
|
|
132
|
-
}).filter(Boolean)
|
|
133
|
-
if (extensions.length === 0) {
|
|
129
|
+
}).filter(Boolean).length === 0) {
|
|
134
130
|
this.logger.trace("No more extensions for environment variables: %s -> %d", variable.key.join("."), i);
|
|
135
131
|
break;
|
|
136
132
|
}
|
|
@@ -143,10 +139,10 @@ let ConfigService = class ConfigService$1 {
|
|
|
143
139
|
return this.parser.write(path, data);
|
|
144
140
|
}
|
|
145
141
|
};
|
|
146
|
-
ConfigService =
|
|
142
|
+
ConfigService = __decorate([
|
|
147
143
|
Injectable(),
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
__decorateParam(2, Inject(TOKEN_CONFIG_MODULE_OPTIONS)),
|
|
145
|
+
__decorateMetadata("design:paramtypes", [
|
|
150
146
|
typeof (_ref = typeof ParserService !== "undefined" && ParserService) === "function" ? _ref : Object,
|
|
151
147
|
typeof (_ref2 = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref2 : Object,
|
|
152
148
|
Object
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { FileSystemService } from "./filesystem.service.js";
|
|
2
3
|
import { Global, Module } from "@nestjs/common";
|
|
3
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/fs/filesystem.module.ts
|
|
6
6
|
let FilesystemModule = class FilesystemModule$1 {};
|
|
7
|
-
FilesystemModule =
|
|
7
|
+
FilesystemModule = __decorate([Global(), Module({
|
|
8
8
|
providers: [FileSystemService],
|
|
9
9
|
exports: [FileSystemService]
|
|
10
10
|
})], FilesystemModule);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../logger/logger.service.js";
|
|
2
4
|
import "../logger/index.js";
|
|
3
5
|
import { Injectable } from "@nestjs/common";
|
|
4
6
|
import { dirname, extname } from "path";
|
|
5
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
6
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
7
7
|
import fs from "fs-extra";
|
|
8
8
|
|
|
9
9
|
//#region src/lib/fs/filesystem.service.ts
|
|
@@ -30,16 +30,14 @@ let FileSystemService = class FileSystemService$1 {
|
|
|
30
30
|
}
|
|
31
31
|
async read(file) {
|
|
32
32
|
try {
|
|
33
|
-
|
|
34
|
-
return raw;
|
|
33
|
+
return await this.extra.readFile(file, "utf-8");
|
|
35
34
|
} catch (e) {
|
|
36
35
|
throw new Error(`Error while reading file from "${file}": ${e.message}`);
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
readSync(file) {
|
|
40
39
|
try {
|
|
41
|
-
|
|
42
|
-
return raw;
|
|
40
|
+
return this.extra.readFileSync(file, "utf-8");
|
|
43
41
|
} catch (e) {
|
|
44
42
|
throw new Error(`Error while reading file from "${file}": ${e.message}`);
|
|
45
43
|
}
|
|
@@ -135,7 +133,7 @@ let FileSystemService = class FileSystemService$1 {
|
|
|
135
133
|
}
|
|
136
134
|
}
|
|
137
135
|
};
|
|
138
|
-
FileSystemService =
|
|
136
|
+
FileSystemService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object])], FileSystemService);
|
|
139
137
|
|
|
140
138
|
//#endregion
|
|
141
139
|
export { FileSystemService };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { LoggerService } from "../logger/logger.service.js";
|
|
2
3
|
import "../logger/index.js";
|
|
3
4
|
import { FileSystemService } from "../fs/filesystem.service.js";
|
|
@@ -6,7 +7,6 @@ import { ParserService } from "../parser/parser.service.js";
|
|
|
6
7
|
import "../parser/index.js";
|
|
7
8
|
import { LockerService } from "./locker.service.js";
|
|
8
9
|
import { Module } from "@nestjs/common";
|
|
9
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
10
10
|
|
|
11
11
|
//#region src/lib/locker/locker.module.ts
|
|
12
12
|
var _LockerModule;
|
|
@@ -27,7 +27,7 @@ let LockerModule = _LockerModule = class LockerModule$1 {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
LockerModule = _LockerModule =
|
|
30
|
+
LockerModule = _LockerModule = __decorate([Module({})], LockerModule);
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { LockerModule };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../logger/logger.service.js";
|
|
2
4
|
import "../logger/index.js";
|
|
3
5
|
import { FileSystemService } from "../fs/filesystem.service.js";
|
|
@@ -8,8 +10,6 @@ import "../../utils/index.js";
|
|
|
8
10
|
import "../parser/index.js";
|
|
9
11
|
import { Injectable } from "@nestjs/common";
|
|
10
12
|
import op from "object-path-immutable";
|
|
11
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
12
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
13
13
|
|
|
14
14
|
//#region src/lib/locker/locker.service.ts
|
|
15
15
|
var _ref, _ref2, _ref3;
|
|
@@ -159,7 +159,7 @@ let LockerService = class LockerService$1 {
|
|
|
159
159
|
return [];
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
-
LockerService =
|
|
162
|
+
LockerService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [
|
|
163
163
|
typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object,
|
|
164
164
|
typeof (_ref2 = typeof FileSystemService !== "undefined" && FileSystemService) === "function" ? _ref2 : Object,
|
|
165
165
|
typeof (_ref3 = typeof ParserService !== "undefined" && ParserService) === "function" ? _ref3 : Object,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { WinstonService } from "./winston.service.js";
|
|
2
3
|
import { LoggerService } from "./logger.service.js";
|
|
3
4
|
import { ConfigModule } from "../config/config.module.js";
|
|
4
5
|
import "../config/index.js";
|
|
5
6
|
import { Global, Module } from "@nestjs/common";
|
|
6
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/logger/logger.module.ts
|
|
9
9
|
let LoggerModule = class LoggerModule$1 {};
|
|
10
|
-
LoggerModule =
|
|
10
|
+
LoggerModule = __decorate([Global(), Module({
|
|
11
11
|
imports: [ConfigModule],
|
|
12
12
|
providers: [WinstonService, LoggerService],
|
|
13
13
|
exports: [LoggerService]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LogFieldStatus, LogLevels } from "./logger.constants.js";
|
|
2
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
3
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
2
4
|
import { WinstonService } from "./winston.service.js";
|
|
3
5
|
import { Injectable, Scope } from "@nestjs/common";
|
|
4
6
|
import { splat } from "listr2";
|
|
5
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
6
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/logger/logger.service.ts
|
|
9
9
|
var _ref;
|
|
@@ -65,7 +65,7 @@ let LoggerService = class LoggerService$1 {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
LoggerService =
|
|
68
|
+
LoggerService = __decorate([Injectable({ scope: Scope.TRANSIENT }), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof WinstonService !== "undefined" && WinstonService) === "function" ? _ref : Object])], LoggerService);
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
71
|
export { LoggerService };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TOKEN_CONFIG_MODULE_OPTIONS } from "../config/config.constants.js";
|
|
2
2
|
import { LogLevels } from "./logger.constants.js";
|
|
3
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
4
|
+
import { __decorateParam } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateParam.js";
|
|
5
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
3
6
|
import { Inject, Injectable } from "@nestjs/common";
|
|
4
7
|
import { color, figures } from "listr2";
|
|
5
8
|
import { EOL } from "os";
|
|
6
9
|
import winston, { format, transports } from "winston";
|
|
7
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
8
|
-
import _decorateParam from "@oxc-project/runtime/helpers/decorateParam";
|
|
9
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
10
10
|
|
|
11
11
|
//#region src/lib/logger/winston.service.ts
|
|
12
12
|
let WinstonService = class WinstonService$1 {
|
|
@@ -82,10 +82,10 @@ let WinstonService = class WinstonService$1 {
|
|
|
82
82
|
return `${coloring(icon)}${context ? " " + coloring(`[${context}]`) : ""}${status ? " " + coloring(`[${status}]`) : ""} ${msgColoring(message)}`;
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
WinstonService =
|
|
85
|
+
WinstonService = __decorate([
|
|
86
86
|
Injectable(),
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
__decorateParam(0, Inject(TOKEN_CONFIG_MODULE_OPTIONS)),
|
|
88
|
+
__decorateMetadata("design:paramtypes", [Object])
|
|
89
89
|
], WinstonService);
|
|
90
90
|
|
|
91
91
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { LogoService } from "./logo.service.js";
|
|
2
3
|
import { Module } from "@nestjs/common";
|
|
3
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/logo/logo.module.ts
|
|
6
6
|
let LogoModule = class LogoModule$1 {};
|
|
7
|
-
LogoModule =
|
|
7
|
+
LogoModule = __decorate([Module({
|
|
8
8
|
providers: [LogoService],
|
|
9
9
|
exports: [LogoService]
|
|
10
10
|
})], LogoModule);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { ConfigService } from "../config/config.service.js";
|
|
2
4
|
import "../config/index.js";
|
|
3
5
|
import { TOKEN_LOGO_GENERATOR } from "./logo.constants.js";
|
|
4
6
|
import { Injectable } from "@nestjs/common";
|
|
5
7
|
import { EOL } from "os";
|
|
6
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
7
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
8
8
|
import { ModuleRef } from "@nestjs/core";
|
|
9
9
|
|
|
10
10
|
//#region src/lib/logo/logo.service.ts
|
|
@@ -37,7 +37,7 @@ let LogoService = class LogoService$1 {
|
|
|
37
37
|
process.stdout.write(data.join(" ") + EOL);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
LogoService =
|
|
40
|
+
LogoService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof ConfigService !== "undefined" && ConfigService) === "function" ? _ref : Object, typeof (_ref2 = typeof ModuleRef !== "undefined" && ModuleRef) === "function" ? _ref2 : Object])], LogoService);
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
43
|
export { LogoService };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../../logger/logger.service.js";
|
|
2
4
|
import "../../logger/index.js";
|
|
3
5
|
import { Injectable } from "@nestjs/common";
|
|
4
6
|
import { EOL } from "os";
|
|
5
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
6
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/parser/fts/env-parser.service.ts
|
|
9
9
|
var _ref;
|
|
@@ -36,7 +36,7 @@ let EnvironmentVariableParser = class EnvironmentVariableParser$1 {
|
|
|
36
36
|
return Object.entries(data).map(([k, v]) => `${k}=${v}`).join(EOL) + EOL;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
EnvironmentVariableParser =
|
|
39
|
+
EnvironmentVariableParser = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object])], EnvironmentVariableParser);
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
export { EnvironmentVariableParser };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../../logger/logger.service.js";
|
|
2
4
|
import "../../logger/index.js";
|
|
3
5
|
import { Injectable } from "@nestjs/common";
|
|
4
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
5
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/parser/fts/json-parser.service.ts
|
|
8
8
|
var _ref;
|
|
@@ -26,7 +26,7 @@ let JsonParser = class JsonParser$1 {
|
|
|
26
26
|
return JSON.stringify(data, null, 2);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
JsonParser =
|
|
29
|
+
JsonParser = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object])], JsonParser);
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
export { JsonParser };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../../logger/logger.service.js";
|
|
2
4
|
import "../../logger/index.js";
|
|
3
5
|
import { Injectable } from "@nestjs/common";
|
|
4
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
5
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
6
6
|
import { parse, stringify } from "yaml";
|
|
7
7
|
|
|
8
8
|
//#region src/lib/parser/fts/yaml-parser.service.ts
|
|
@@ -27,7 +27,7 @@ let YamlParser = class YamlParser$1 {
|
|
|
27
27
|
return stringify(data, { prettyErrors: true });
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
YamlParser =
|
|
30
|
+
YamlParser = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object])], YamlParser);
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { YamlParser };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { FilesystemModule } from "../fs/filesystem.module.js";
|
|
2
3
|
import "../fs/index.js";
|
|
3
4
|
import { ParserService } from "./parser.service.js";
|
|
4
5
|
import { Global, Module } from "@nestjs/common";
|
|
5
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
6
6
|
|
|
7
7
|
//#region src/lib/parser/parser.module.ts
|
|
8
8
|
let ParserModule = class ParserModule$1 {};
|
|
9
|
-
ParserModule =
|
|
9
|
+
ParserModule = __decorate([Global(), Module({
|
|
10
10
|
imports: [FilesystemModule],
|
|
11
11
|
providers: [ParserService],
|
|
12
12
|
exports: [ParserService]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../logger/logger.service.js";
|
|
2
4
|
import "../logger/index.js";
|
|
3
5
|
import { FileSystemService } from "../fs/filesystem.service.js";
|
|
4
6
|
import "../fs/index.js";
|
|
5
7
|
import { Injectable } from "@nestjs/common";
|
|
6
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
7
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
8
8
|
import { ModuleRef } from "@nestjs/core";
|
|
9
9
|
|
|
10
10
|
//#region src/lib/parser/parser.service.ts
|
|
@@ -66,7 +66,7 @@ let ParserService = class ParserService$1 {
|
|
|
66
66
|
return parser.stringify(data);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
ParserService =
|
|
69
|
+
ParserService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [
|
|
70
70
|
typeof (_ref = typeof ModuleRef !== "undefined" && ModuleRef) === "function" ? _ref : Object,
|
|
71
71
|
typeof (_ref2 = typeof FileSystemService !== "undefined" && FileSystemService) === "function" ? _ref2 : Object,
|
|
72
72
|
typeof (_ref3 = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref3 : Object
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
2
|
import { ValidatorService } from "./validator.service.js";
|
|
2
3
|
import { Global, Module } from "@nestjs/common";
|
|
3
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
4
4
|
|
|
5
5
|
//#region src/lib/validator/validator.module.ts
|
|
6
6
|
let ValidatorModule = class ValidatorModule$1 {};
|
|
7
|
-
ValidatorModule =
|
|
7
|
+
ValidatorModule = __decorate([Global(), Module({
|
|
8
8
|
providers: [ValidatorService],
|
|
9
9
|
exports: [ValidatorService]
|
|
10
10
|
})], ValidatorModule);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { __decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorateMetadata.js";
|
|
2
|
+
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.89.0/helpers/decorate.js";
|
|
1
3
|
import { LoggerService } from "../logger/logger.service.js";
|
|
2
4
|
import "../logger/index.js";
|
|
3
5
|
import { TOKEN_VALIDATOR_SERVICE_OPTIONS } from "./validator.constants.js";
|
|
4
6
|
import { Injectable } from "@nestjs/common";
|
|
5
|
-
import _decorateMetadata from "@oxc-project/runtime/helpers/decorateMetadata";
|
|
6
|
-
import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
7
7
|
import { ModuleRef } from "@nestjs/core";
|
|
8
8
|
import { plainToClass } from "class-transformer";
|
|
9
9
|
import { validate, validateSync } from "class-validator";
|
|
@@ -71,7 +71,7 @@ let ValidatorService = class ValidatorService$1 {
|
|
|
71
71
|
if (err.children) err.children.forEach((children) => this.logValidationError(children));
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
ValidatorService =
|
|
74
|
+
ValidatorService = __decorate([Injectable(), __decorateMetadata("design:paramtypes", [typeof (_ref = typeof LoggerService !== "undefined" && LoggerService) === "function" ? _ref : Object, typeof (_ref2 = typeof ModuleRef !== "undefined" && ModuleRef) === "function" ? _ref2 : Object])], ValidatorService);
|
|
75
75
|
|
|
76
76
|
//#endregion
|
|
77
77
|
export { ValidatorService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenk1cenk2/oclif-common",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.14",
|
|
4
4
|
"description": "Oclif common package for oclif2 projects.",
|
|
5
5
|
"repository": "https://gitlab.kilic.dev/libraries/oclif-tools",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@nestjs/common": "^11.1.6",
|
|
51
51
|
"@nestjs/core": "^11.1.6",
|
|
52
|
-
"@oxc-project/runtime": "^0.
|
|
52
|
+
"@oxc-project/runtime": "^0.89.0",
|
|
53
53
|
"deepmerge": "^4.3.1",
|
|
54
54
|
"object-path-immutable": "^4.1.2",
|
|
55
55
|
"reflect-metadata": "^0.2.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@listr2/manager": "^3.0.3",
|
|
60
|
-
"@oclif/core": "^4.5.
|
|
60
|
+
"@oclif/core": "^4.5.3",
|
|
61
61
|
"@types/fs-extra": "^11.0.4",
|
|
62
62
|
"@types/through": "^0.0.33",
|
|
63
63
|
"@types/update-notifier": "^6.0.8",
|