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.58 to 0.0.59

11

lib/config/settings/seo.d.ts

@@ -1,3 +0,5 @@

import { QPQConfigSetting } from 'quidproquo-core';
export type SeoOptions = {};
import { QPQConfigSetting, QPQConfigAdvancedSettings } from 'quidproquo-core';
export interface QPQConfigAdvancedSeoSettings extends QPQConfigAdvancedSettings {
webEntry?: string;
}
export interface SeoQPQWebServerConfigSetting extends QPQConfigSetting {

@@ -7,4 +9,5 @@ path: string;

runtime: string;
options: SeoOptions;
deprecated: boolean;
webEntry?: string;
}
export declare const defineSeo: (path: string, src: string, runtime: string, options?: SeoOptions) => SeoQPQWebServerConfigSetting;
export declare const defineSeo: (path: string, src: string, runtime: string, options?: QPQConfigAdvancedSeoSettings) => SeoQPQWebServerConfigSetting;

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

const QPQConfig_1 = require("../QPQConfig");
const defineSeo = (path, src, runtime, options = {}) => ({
const defineSeo = (path, src, runtime, options) => ({
configSettingType: QPQConfig_1.QPQWebServerConfigSettingType.Seo,

@@ -12,4 +12,4 @@ uniqueKey: runtime,

runtime,
options,
deprecated: (options === null || options === void 0 ? void 0 : options.deprecated) || false,
});
exports.defineSeo = defineSeo;

@@ -1,7 +0,25 @@

import { QPQConfigSetting } from 'quidproquo-core';
import { QPQConfigSetting, QPQConfigAdvancedSettings } from 'quidproquo-core';
export interface WebDomainOptions {
subDomainName?: string;
onRootDomain: boolean;
}
export interface StorageDriveOptions {
sourceStorageDrive?: string;
autoUpload: boolean;
}
export interface QPQConfigAdvancedWebEntrySettings extends QPQConfigAdvancedSettings {
buildPath?: string;
seoBuildPath?: string;
storageDrive?: StorageDriveOptions;
domain?: WebDomainOptions;
indexRoot?: string;
}
export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
name: string;
buildPath: string;
indexRoot: string;
storageDrive: StorageDriveOptions;
domain: WebDomainOptions;
buildPath?: string;
seoBuildPath?: string;
}
export declare const defineWebEntry: (name: string, buildPath: string, seoBuildPath?: string) => WebEntryQPQWebServerConfigSetting;
export declare const defineWebEntry: (name: string, options?: QPQConfigAdvancedWebEntrySettings) => WebEntryQPQWebServerConfigSetting;

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

const QPQConfig_1 = require("../QPQConfig");
const defineWebEntry = (name, buildPath, seoBuildPath) => ({
const defineWebEntry = (name, options) => ({
configSettingType: QPQConfig_1.QPQWebServerConfigSettingType.WebEntry,
uniqueKey: name,
name,
buildPath,
seoBuildPath,
indexRoot: (options === null || options === void 0 ? void 0 : options.indexRoot) || 'index.html',
storageDrive: (options === null || options === void 0 ? void 0 : options.storageDrive) || {
autoUpload: true,
},
domain: (options === null || options === void 0 ? void 0 : options.domain) || {
onRootDomain: true,
},
buildPath: options === null || options === void 0 ? void 0 : options.buildPath,
seoBuildPath: options === null || options === void 0 ? void 0 : options.seoBuildPath,
});
exports.defineWebEntry = defineWebEntry;

@@ -70,7 +70,9 @@ "use strict";

const getWebEntryFullPath = (qpqConfig, webEntryQPQWebServerConfigSetting) => {
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), webEntryQPQWebServerConfigSetting.buildPath);
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), webEntryQPQWebServerConfigSetting.buildPath || '');
};
exports.getWebEntryFullPath = getWebEntryFullPath;
const getWebEntrySeoFullPath = (qpqConfig, webEntryQPQWebServerConfigSetting) => {
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), webEntryQPQWebServerConfigSetting.seoBuildPath || webEntryQPQWebServerConfigSetting.buildPath);
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), webEntryQPQWebServerConfigSetting.seoBuildPath ||
webEntryQPQWebServerConfigSetting.buildPath ||
'');
};

@@ -77,0 +79,0 @@ exports.getWebEntrySeoFullPath = getWebEntrySeoFullPath;

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