@hg-ts/config-loader 0.5.5 → 0.5.7
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/config.module.d.ts +3 -0
- package/dist/config.module.d.ts.map +1 -0
- package/dist/config.module.js +26 -0
- package/dist/config.module.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +12 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.module.d.ts","sourceRoot":"","sources":["../src/config.module.ts"],"names":[],"mappings":"AAQA,qBAgBa,YAAY;CAAG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Global, Module, } from '@nestjs/common';
|
|
3
|
+
import { ConfigLoader } from './config-loader.js';
|
|
4
|
+
import { FileConfigLoader } from './file.config-loader.js';
|
|
5
|
+
let ConfigModule = class ConfigModule {
|
|
6
|
+
};
|
|
7
|
+
ConfigModule = __decorate([
|
|
8
|
+
Global(),
|
|
9
|
+
Module({
|
|
10
|
+
providers: [
|
|
11
|
+
{
|
|
12
|
+
provide: ConfigLoader,
|
|
13
|
+
useFactory(env) {
|
|
14
|
+
return new FileConfigLoader({
|
|
15
|
+
envBuilder: true,
|
|
16
|
+
configDir: 'config',
|
|
17
|
+
overrideEnv: env,
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
exports: [ConfigLoader],
|
|
23
|
+
})
|
|
24
|
+
], ConfigModule);
|
|
25
|
+
export { ConfigModule };
|
|
26
|
+
//# sourceMappingURL=config.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.module.js","sourceRoot":"","sources":["../src/config.module.ts"],"names":[],"mappings":";AACA,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAkBpD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IAhBxB,MAAM,EAAE;IACR,MAAM,CAAC;QACP,SAAS,EAAE;YACV;gBACC,OAAO,EAAE,YAAY;gBACrB,UAAU,CAAC,GAAkB;oBAC5B,OAAO,IAAI,gBAAgB,CAAC;wBAC3B,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,QAAQ;wBACnB,WAAW,EAAE,GAAG;qBAChB,CAAC,CAAC;gBACJ,CAAC;aACD;SACD;QACD,OAAO,EAAE,CAAC,YAAY,CAAC;KACvB,CAAC;GACW,YAAY,CAAG"}
|
package/dist/index.d.ts
CHANGED
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,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/config-loader",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"test:dev": "HG_ENV=test vitest watch"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@hg-ts-config/typescript": "0.5.
|
|
22
|
-
"@hg-ts/exception": "0.5.
|
|
23
|
-
"@hg-ts/execution-mode": "0.5.
|
|
24
|
-
"@hg-ts/linter": "0.5.
|
|
25
|
-
"@hg-ts/tests": "0.5.
|
|
26
|
-
"@hg-ts/types": "0.5.
|
|
21
|
+
"@hg-ts-config/typescript": "0.5.7",
|
|
22
|
+
"@hg-ts/exception": "0.5.7",
|
|
23
|
+
"@hg-ts/execution-mode": "0.5.7",
|
|
24
|
+
"@hg-ts/linter": "0.5.7",
|
|
25
|
+
"@hg-ts/tests": "0.5.7",
|
|
26
|
+
"@hg-ts/types": "0.5.7",
|
|
27
|
+
"@nestjs/common": "11.1.0",
|
|
27
28
|
"@types/node": "22.19.1",
|
|
28
29
|
"@vitest/coverage-v8": "4.0.14",
|
|
29
30
|
"eslint": "9.18.0",
|
|
@@ -36,14 +37,15 @@
|
|
|
36
37
|
"vitest": "4.0.14"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@hg-ts/exception": "0.5.
|
|
40
|
-
"@hg-ts/execution-mode": "0.5.
|
|
40
|
+
"@hg-ts/exception": "0.5.7",
|
|
41
|
+
"@hg-ts/execution-mode": "0.5.7",
|
|
42
|
+
"@nestjs/common": "*",
|
|
41
43
|
"reflect-metadata": "*",
|
|
42
44
|
"rxjs": "*",
|
|
43
45
|
"tslib": "*",
|
|
44
46
|
"vitest": "*"
|
|
45
47
|
},
|
|
46
48
|
"dependencies": {
|
|
47
|
-
"@hg-ts/validation": "0.5.
|
|
49
|
+
"@hg-ts/validation": "0.5.7"
|
|
48
50
|
}
|
|
49
51
|
}
|