@deboxsoft/module-core
Advanced tools
Comparing version 2.6.31 to 2.6.32
@@ -20,4 +20,4 @@ import { f as Config } from '../types-e8266c98.js'; | ||
declare const getConfigService: () => ConfigService; | ||
declare const getConfig: <C = unknown>(key: string) => C; | ||
declare const getConfig: <C = unknown>(key?: string) => C; | ||
export { CONFIG_KEY, ConfigOptions, ConfigService, createConfig, createConfigService, getConfig, getConfigService, getHomePath }; |
@@ -61,4 +61,8 @@ import { | ||
var getConfig = (key) => { | ||
const config = getConfigService(); | ||
return getConfigService().get(key); | ||
if (key) { | ||
const config = getConfigService(); | ||
return getConfigService().get(key); | ||
} else { | ||
return Container.get(CONFIG_KEY); | ||
} | ||
}; | ||
@@ -65,0 +69,0 @@ export { |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.6.31", | ||
"version": "2.6.32", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
47579
1485
0