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.51 to 0.0.52

lib/config/settings/application.d.ts

7

lib/config/QPQConfig.d.ts

@@ -7,7 +7,12 @@ export declare enum QPQCoreConfigSettingType {

parameter = "@quidproquo-core/config/parameter",
actionProcessors = "@quidproquo-core/config/actionProcessors"
actionProcessors = "@quidproquo-core/config/actionProcessors",
buildPath = "@quidproquo-core/config/buildPath"
}
export interface QPQConfigSetting {
configSettingType: string;
uniqueKey: string;
}
export interface QPQConfigAdvancedSettings {
deprecated?: boolean;
}
export type QPQConfig = QPQConfigSetting[];

@@ -12,2 +12,3 @@ "use strict";

QPQCoreConfigSettingType["actionProcessors"] = "@quidproquo-core/config/actionProcessors";
QPQCoreConfigSettingType["buildPath"] = "@quidproquo-core/config/buildPath";
})(QPQCoreConfigSettingType = exports.QPQCoreConfigSettingType || (exports.QPQCoreConfigSettingType = {}));

2

lib/config/settings/actionProcessors.d.ts

@@ -5,2 +5,2 @@ import { QPQConfigSetting } from '../QPQConfig';

}
export declare const defineActionProcessors: (src: string) => ActionProcessorsQPQConfigSetting;
export declare const defineActionProcessors: (name: string, src: string) => ActionProcessorsQPQConfigSetting;

@@ -5,6 +5,7 @@ "use strict";

const QPQConfig_1 = require("../QPQConfig");
const defineActionProcessors = (src) => ({
const defineActionProcessors = (name, src) => ({
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.actionProcessors,
uniqueKey: name,
src,
});
exports.defineActionProcessors = defineActionProcessors;
export * from './actionProcessors';
export * from './appName';
export * from './application';
export * from './buildPath';
export * from './parameter';

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

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

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

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

@@ -7,2 +7,3 @@ "use strict";

configSettingType: QPQConfig_1.QPQCoreConfigSettingType.parameter,
uniqueKey: key,
key,

@@ -9,0 +10,0 @@ value,

@@ -10,3 +10,4 @@ import { QPQConfigSetting } from '../QPQConfig';

cronExpression: string;
buildPath: string;
}
export declare const defineRecurringSchedule: (cronExpression: string, src: string, runtime: string) => ScheduleQPQConfigSetting;
export declare const defineRecurringSchedule: (cronExpression: string, src: string, runtime: string, buildPath: string) => ScheduleQPQConfigSetting;

@@ -9,4 +9,5 @@ "use strict";

})(ScheduleTypeEnum = exports.ScheduleTypeEnum || (exports.ScheduleTypeEnum = {}));
const defineRecurringSchedule = (cronExpression, src, runtime) => ({
const defineRecurringSchedule = (cronExpression, src, runtime, buildPath) => ({
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.schedule,
uniqueKey: runtime,
scheduleType: ScheduleTypeEnum.Recurring,

@@ -16,3 +17,4 @@ src,

cronExpression,
buildPath,
});
exports.defineRecurringSchedule = defineRecurringSchedule;

@@ -7,2 +7,3 @@ "use strict";

configSettingType: QPQConfig_1.QPQCoreConfigSettingType.secret,
uniqueKey: key,
key,

@@ -9,0 +10,0 @@ value,

@@ -7,4 +7,5 @@ "use strict";

configSettingType: QPQConfig_1.QPQCoreConfigSettingType.storageDrive,
uniqueKey: storageDrive,
storageDrive,
});
exports.defineStorageDrive = defineStorageDrive;

@@ -7,2 +7,4 @@ import { QPQConfig, QPQConfigSetting } from './config/QPQConfig';

export declare const getAppFeature: (configs: QPQConfig) => string;
export declare const getDeployRegion: (configs: QPQConfig) => string;
export declare const getConfigRoot: (configs: QPQConfig) => string;
export declare const getStorageDriveNames: (configs: QPQConfig) => string[];

@@ -15,1 +17,4 @@ export declare const getActionProcessorSources: (configs: QPQConfig) => string[];

export declare const getSharedSecrets: (configs: QPQConfig) => SecretQPQConfigSetting[];
export declare const getBuildPath: (configs: QPQConfig) => string;
export declare const getUniqueKeyForSetting: (setting: QPQConfigSetting) => string;
export declare const getScheduleEntryFullPath: (qpqConfig: QPQConfig, scheduleConfig: ScheduleQPQConfigSetting) => string;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSharedSecrets = exports.getOwnedParameters = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getScheduleEvents = exports.getActionProcessorSources = exports.getStorageDriveNames = 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.getAppFeature = exports.getAppName = exports.getConfigSetting = exports.getConfigSettings = void 0;
const path = __importStar(require("path"));
const QPQConfig_1 = require("./config/QPQConfig");

@@ -18,3 +42,3 @@ const getConfigSettings = (configs, configSettingType) => {

if (!appName) {
throw new Error('please use defineAppName in your QPQ config');
throw new Error('please use defineApplication in your QPQ config');
}

@@ -30,2 +54,17 @@ return appName;

exports.getAppFeature = getAppFeature;
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.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.getConfigRoot = getConfigRoot;
const getStorageDriveNames = (configs) => {

@@ -66,1 +105,20 @@ const storageDriveNames = (0, exports.getConfigSettings)(configs, QPQConfig_1.QPQCoreConfigSettingType.storageDrive).map((sd) => sd.storageDrive);

exports.getSharedSecrets = getSharedSecrets;
const getBuildPath = (configs) => {
var _a;
const buildPath = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.buildPath)) === null || _a === void 0 ? void 0 : _a.buildPath;
if (!buildPath) {
throw new Error('please use defineBuildPath in your QPQ config');
}
return buildPath;
};
exports.getBuildPath = getBuildPath;
const getUniqueKeyForSetting = (setting) => {
const type = setting.configSettingType.split('/').pop();
const key = setting.uniqueKey;
return `${type}${key}`;
};
exports.getUniqueKeyForSetting = getUniqueKeyForSetting;
const getScheduleEntryFullPath = (qpqConfig, scheduleConfig) => {
return path.join((0, exports.getConfigRoot)(qpqConfig), scheduleConfig.buildPath);
};
exports.getScheduleEntryFullPath = getScheduleEntryFullPath;
{
"name": "quidproquo-core",
"version": "0.0.51",
"version": "0.0.52",
"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