@deboxsoft/module-core
Advanced tools
Comparing version 2.6.6 to 2.6.7
@@ -476,3 +476,3 @@ import { z, ZodType } from 'zod'; | ||
declare const getConfig: () => Config; | ||
declare const getAppConfig: () => AppConfig; | ||
declare const getAppConfig: () => AppConfig | Config; | ||
@@ -479,0 +479,0 @@ interface LogFn { |
@@ -279,3 +279,9 @@ var __defProp = Object.defineProperty; | ||
var getConfig = () => Container.get(CONFIG_KEY); | ||
var getAppConfig = () => getConfig().get("app") || AppConfigDefault; | ||
var getAppConfig = () => { | ||
const config = getConfig(); | ||
if (typeof config.get === "function") { | ||
return getConfig().get("app") || AppConfigDefault; | ||
} | ||
return config || AppConfigDefault; | ||
}; | ||
@@ -282,0 +288,0 @@ // src/logger/index.ts |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.6.6", | ||
"version": "2.6.7", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -21,3 +21,4 @@ "maintainers": [ | ||
"import": "./libs/index.js", | ||
"require": "./libs/index.cjs" | ||
"require": "./libs/index.cjs", | ||
"types": "./libs/index.d.ts" | ||
} | ||
@@ -24,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70173
2144