Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quidproquo-core

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quidproquo-core - npm Package Compare versions

Comparing version 0.0.53 to 0.0.54

lib/config/settings/applicationModule.d.ts

2

lib/config/settings/index.d.ts
export * from './actionProcessors';
export * from './application';
export * from './applicationModule';
export * from './buildPath';

@@ -4,0 +4,0 @@ export * from './parameter';

@@ -18,3 +18,3 @@ "use strict";

__exportStar(require("./actionProcessors"), exports);
__exportStar(require("./application"), exports);
__exportStar(require("./applicationModule"), exports);
__exportStar(require("./buildPath"), exports);

@@ -21,0 +21,0 @@ __exportStar(require("./parameter"), exports);

import { QPQConfig, QPQConfigSetting } from './config/QPQConfig';
import { ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings';
import { ApplicationModuleQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings';
export declare const getConfigSettings: <T extends QPQConfigSetting>(configs: QPQConfig, configSettingType: string) => T[];
export declare const getConfigSetting: <T extends QPQConfigSetting>(configs: QPQConfig, serviceInfrastructureConfigType: string) => T | undefined;
export declare const getAppName: (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;
export declare const getConfigRoot: (configs: QPQConfig) => string;
export declare const getApplicationModuleSetting: (qpqConfig: QPQConfig) => ApplicationModuleQPQConfigSetting;
export declare const getApplicationName: (qpqConfig: QPQConfig) => string;
export declare const getApplicationModuleName: (qpqConfig: QPQConfig) => string;
export declare const getApplicationModuleFeature: (qpqConfig: QPQConfig) => string | undefined;
export declare const getConfigRoot: (qpqConfig: QPQConfig) => string;
export declare const getApplicationModuleEnvironment: (qpqConfig: QPQConfig) => string;
export declare const getApplicationModuleDeployRegion: (qpqConfig: QPQConfig) => string;
export declare const getStorageDriveNames: (configs: QPQConfig) => string[];

@@ -11,0 +13,0 @@ export declare const getActionProcessorSources: (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.getApplicationFeature = exports.getApplicationEnvironment = 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.getApplicationModuleDeployRegion = exports.getApplicationModuleEnvironment = exports.getConfigRoot = exports.getApplicationModuleFeature = exports.getApplicationModuleName = exports.getApplicationName = exports.getApplicationModuleSetting = exports.getConfigSetting = exports.getConfigSettings = void 0;
const path = __importStar(require("path"));

@@ -39,38 +39,34 @@ const QPQConfig_1 = require("./config/QPQConfig");

exports.getConfigSetting = getConfigSetting;
const getAppName = (configs) => {
var _a;
const appName = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.appName;
if (!appName) {
throw new Error('please use defineApplication in your QPQ config');
const getApplicationModuleSetting = (qpqConfig) => {
const applicationModuleSetting = (0, exports.getConfigSetting)(qpqConfig, QPQConfig_1.QPQCoreConfigSettingType.appName);
if (!applicationModuleSetting) {
throw new Error('please use defineApplicationModule in your QPQ config');
}
return appName;
return applicationModuleSetting;
};
exports.getAppName = getAppName;
const getApplicationEnvironment = (configs) => {
var _a;
const environment = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.environment) || 'production';
return environment;
exports.getApplicationModuleSetting = getApplicationModuleSetting;
const getApplicationName = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).applicationName;
};
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.getApplicationName = getApplicationName;
const getApplicationModuleName = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).moduleName;
};
exports.getApplicationFeature = getApplicationFeature;
const getDeployRegion = (configs) => {
var _a;
const deployRegion = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.deployRegion) || 'us-east-1';
return deployRegion;
exports.getApplicationModuleName = getApplicationModuleName;
const getApplicationModuleFeature = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).feature;
};
exports.getDeployRegion = getDeployRegion;
const getConfigRoot = (configs) => {
var _a;
const configRoot = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.configRoot;
if (!configRoot) {
throw new Error('please use defineApplication in your QPQ config');
}
return configRoot;
exports.getApplicationModuleFeature = getApplicationModuleFeature;
const getConfigRoot = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).configRoot;
};
exports.getConfigRoot = getConfigRoot;
const getApplicationModuleEnvironment = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).environment || 'production';
};
exports.getApplicationModuleEnvironment = getApplicationModuleEnvironment;
const getApplicationModuleDeployRegion = (qpqConfig) => {
return (0, exports.getApplicationModuleSetting)(qpqConfig).deployRegion || 'us-east-1';
};
exports.getApplicationModuleDeployRegion = getApplicationModuleDeployRegion;
const getStorageDriveNames = (configs) => {

@@ -77,0 +73,0 @@ const storageDriveNames = (0, exports.getConfigSettings)(configs, QPQConfig_1.QPQCoreConfigSettingType.storageDrive).map((sd) => sd.storageDrive);

{
"name": "quidproquo-core",
"version": "0.0.53",
"version": "0.0.54",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc