@men-mvc/config
Advanced tools
Comparing version 0.53.0 to 0.54.0
@@ -15,3 +15,3 @@ "use strict"; | ||
let config; | ||
if ((0, utilities_1.isRunningCoreTests)()) { | ||
if ((0, utilities_1.isRunningFrameworkTests)()) { | ||
config = new frameworkTestConfig_1.FrameworkTestConfig(); | ||
@@ -18,0 +18,0 @@ } |
import { BaseConfig } from './types/baseConfig'; | ||
export declare const config: BaseConfig; | ||
export declare const baseConfig: BaseConfig; | ||
export * from './types'; | ||
@@ -4,0 +4,0 @@ export * from './config'; |
@@ -17,6 +17,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.config = void 0; | ||
exports.baseConfig = void 0; | ||
const config_1 = require("./config"); | ||
// TODO: rename this to baseConfig? | ||
exports.config = config_1.Config.getConfig(); | ||
exports.baseConfig = config_1.Config.getConfig(); | ||
__exportStar(require("./types"), exports); | ||
@@ -23,0 +22,0 @@ __exportStar(require("./config"), exports); |
@@ -10,3 +10,3 @@ import { EnvVarDeclaration } from './types/envVarDeclaration'; | ||
*/ | ||
export declare const isRunningCoreTests: () => boolean; | ||
export declare const isRunningFrameworkTests: () => boolean; | ||
/** | ||
@@ -13,0 +13,0 @@ * return the list of config key from a given env-specific JSON config file.. eg, app.name, auth.secretKey, etc |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAppProjectConfigDirectory = exports.getConfigKeyEnvVarNameMappings = exports.getConfigKeyList = exports.isRunningCoreTests = exports.setEnvVariable = exports.getEnvVariable = exports.getEnvVariables = exports.getAppEnv = void 0; | ||
exports.getAppProjectConfigDirectory = exports.getConfigKeyEnvVarNameMappings = exports.getConfigKeyList = exports.isRunningFrameworkTests = exports.setEnvVariable = exports.getEnvVariable = exports.getEnvVariables = exports.getAppEnv = void 0; | ||
const findup_sync_1 = __importDefault(require("findup-sync")); | ||
@@ -38,4 +38,4 @@ const globals_1 = require("./globals"); | ||
*/ | ||
const isRunningCoreTests = () => process.env.CORE_TEST ? true : false; | ||
exports.isRunningCoreTests = isRunningCoreTests; | ||
const isRunningFrameworkTests = () => process.env.CORE_TEST ? true : false; | ||
exports.isRunningFrameworkTests = isRunningFrameworkTests; | ||
/** | ||
@@ -42,0 +42,0 @@ * return the list of config key from a given env-specific JSON config file.. eg, app.name, auth.secretKey, etc |
{ | ||
"name": "@men-mvc/config", | ||
"version": "0.53.0", | ||
"version": "0.54.0", | ||
"description": "Config package for Men MVC framework.", | ||
@@ -49,3 +49,3 @@ "private": false, | ||
"license": "MIT", | ||
"gitHead": "3c9d319e0a231fec153b173464ca266c4d63b61c" | ||
"gitHead": "be1ea9947fe520c6b654fd094c90cb40c61c3bd1" | ||
} |
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
27513
661