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

quidproquo-webserver

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quidproquo-webserver - npm Package Compare versions

Comparing version 0.0.52 to 0.0.53

3

lib/qpqWebServerUtils.d.ts

@@ -19,3 +19,4 @@ import { QPQConfig } from 'quidproquo-core';

export declare const getSubdomainRedirects: (configs: QPQConfig) => SubdomainRedirectQPQWebServerConfigSetting[];
export declare const getFeatureDomainName: (configs: QPQConfig) => string;
export declare const getEnvironmentDomainName: (configs: QPQConfig) => string;
export declare const getBaseDomainName: (qpqConfig: QPQConfig) => string;
export declare const getServiceDomainName: (qpqConfig: QPQConfig) => string;

@@ -22,0 +23,0 @@ export declare const getHeaderValue: (header: string, headers: HttpEventHeaders) => string | null;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.toJsonEventResponse = exports.fromJsonEventRequest = exports.getCorsHeaders = exports.getAllowedOrigins = exports.getHeaderValue = exports.getServiceDomainName = exports.getFeatureDomainName = exports.getSubdomainRedirects = exports.getApiEntryFullPath = exports.getWebEntrySeoFullPath = exports.getWebEntryFullPath = exports.getWebEntry = exports.getDomainName = exports.getAllSrcEntries = exports.getAllOpenApiSpecs = exports.getAllSeo = exports.getAllRoutes = void 0;
exports.toJsonEventResponse = exports.fromJsonEventRequest = exports.getCorsHeaders = exports.getAllowedOrigins = exports.getHeaderValue = exports.getServiceDomainName = exports.getBaseDomainName = exports.getEnvironmentDomainName = exports.getSubdomainRedirects = exports.getApiEntryFullPath = exports.getWebEntrySeoFullPath = exports.getWebEntryFullPath = exports.getWebEntry = exports.getDomainName = exports.getAllSrcEntries = exports.getAllOpenApiSpecs = exports.getAllSeo = exports.getAllRoutes = void 0;
const path = __importStar(require("path"));

@@ -91,15 +91,24 @@ const quidproquo_core_1 = require("quidproquo-core");

exports.getSubdomainRedirects = getSubdomainRedirects;
const getFeatureDomainName = (configs) => {
const feature = (0, qpqCoreUtils_1.getAppFeature)(configs);
const getEnvironmentDomainName = (configs) => {
const environment = (0, qpqCoreUtils_1.getApplicationEnvironment)(configs);
const apexDomainName = (0, exports.getDomainName)(configs);
if (feature === 'production') {
if (environment === 'production') {
return apexDomainName;
}
return `${feature}.${apexDomainName}`;
return `${environment}.${apexDomainName}`;
};
exports.getFeatureDomainName = getFeatureDomainName;
exports.getEnvironmentDomainName = getEnvironmentDomainName;
const getBaseDomainName = (qpqConfig) => {
const environmentDomain = (0, exports.getEnvironmentDomainName)(qpqConfig);
const feature = quidproquo_core_1.qpqCoreUtils.getApplicationFeature(qpqConfig);
if (feature) {
return `${feature}.${environmentDomain}`;
}
return environmentDomain;
};
exports.getBaseDomainName = getBaseDomainName;
const getServiceDomainName = (qpqConfig) => {
const appName = quidproquo_core_1.qpqCoreUtils.getAppName(qpqConfig);
const featureDomain = (0, exports.getFeatureDomainName)(qpqConfig);
return `${appName}.${featureDomain}`;
const service = quidproquo_core_1.qpqCoreUtils.getAppName(qpqConfig);
const domainBase = (0, exports.getBaseDomainName)(qpqConfig);
return `${service}.${domainBase}`;
};

@@ -118,3 +127,3 @@ exports.getServiceDomainName = getServiceDomainName;

// Root domain
const rootDomain = `https://${(0, exports.getFeatureDomainName)(configs)}`;
const rootDomain = `https://${(0, exports.getBaseDomainName)(configs)}`;
// generic settings

@@ -121,0 +130,0 @@ const defaultRouteSettings = quidproquo_core_1.qpqCoreUtils.getConfigSettings(configs, QPQConfig_1.QPQWebServerConfigSettingType.DefaultRouteOptions) || [];

{
"name": "quidproquo-webserver",
"version": "0.0.52",
"version": "0.0.53",
"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