quidproquo-core
Advanced tools
Comparing version 0.0.52 to 0.0.53
@@ -5,5 +5,6 @@ import { QPQConfigSetting } from '../QPQConfig'; | ||
configRoot: string; | ||
featureName?: string; | ||
environment?: string; | ||
deployRegion?: string; | ||
feature?: string; | ||
} | ||
export declare const defineApplication: (appName: string, configRoot: string, featureName?: string, deployRegion?: string) => AppNameQPQConfigSetting; | ||
export declare const defineApplication: (appName: string, environment: string, configRoot: string, deployRegion?: string, feature?: string) => AppNameQPQConfigSetting; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const QPQConfig_1 = require("../QPQConfig"); | ||
const defineApplication = (appName, configRoot, featureName, deployRegion) => ({ | ||
const defineApplication = (appName, environment, configRoot, deployRegion, feature) => ({ | ||
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.appName, | ||
@@ -11,5 +11,6 @@ uniqueKey: appName, | ||
configRoot, | ||
featureName, | ||
environment, | ||
deployRegion, | ||
feature, | ||
}); | ||
exports.defineApplication = defineApplication; |
@@ -6,3 +6,4 @@ import { QPQConfig, QPQConfigSetting } from './config/QPQConfig'; | ||
export declare const getAppName: (configs: QPQConfig) => string; | ||
export declare const getAppFeature: (configs: QPQConfig) => string; | ||
export declare const getApplicationEnvironment: (configs: QPQConfig) => string; | ||
export declare const getApplicationFeature: (configs: QPQConfig) => string | undefined; | ||
export declare const getDeployRegion: (configs: QPQConfig) => string; | ||
@@ -9,0 +10,0 @@ export declare const getConfigRoot: (configs: QPQConfig) => string; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getBuildPath = exports.getSharedSecrets = exports.getOwnedParameters = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getScheduleEvents = exports.getActionProcessorSources = exports.getStorageDriveNames = exports.getConfigRoot = exports.getDeployRegion = exports.getAppFeature = exports.getAppName = exports.getConfigSetting = exports.getConfigSettings = void 0; | ||
exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getBuildPath = exports.getSharedSecrets = exports.getOwnedParameters = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getScheduleEvents = exports.getActionProcessorSources = exports.getStorageDriveNames = exports.getConfigRoot = exports.getDeployRegion = exports.getApplicationFeature = exports.getApplicationEnvironment = exports.getAppName = exports.getConfigSetting = exports.getConfigSettings = void 0; | ||
const path = __importStar(require("path")); | ||
@@ -48,8 +48,14 @@ const QPQConfig_1 = require("./config/QPQConfig"); | ||
exports.getAppName = getAppName; | ||
const getAppFeature = (configs) => { | ||
const getApplicationEnvironment = (configs) => { | ||
var _a; | ||
const featureName = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.featureName) || 'production'; | ||
return featureName; | ||
const environment = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.environment) || 'production'; | ||
return environment; | ||
}; | ||
exports.getAppFeature = getAppFeature; | ||
exports.getApplicationEnvironment = getApplicationEnvironment; | ||
const getApplicationFeature = (configs) => { | ||
var _a; | ||
const feature = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.feature; | ||
return feature; | ||
}; | ||
exports.getApplicationFeature = getApplicationFeature; | ||
const getDeployRegion = (configs) => { | ||
@@ -56,0 +62,0 @@ var _a; |
{ | ||
"name": "quidproquo-core", | ||
"version": "0.0.52", | ||
"version": "0.0.53", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
97498
1976
15
0