quidproquo-webserver 0.0.66 → 0.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,3 +8,8 @@ export declare enum QPQWebServerConfigSettingType {
8
8
  WebEntry = "@quidproquo-webserver/config/WebEntry",
9
9
  Api = "@quidproquo-webserver/config/Api"
10
10
  }
11
+ export interface CacheSettings {
12
+ minTTLInSeconds: number;
13
+ maxTTLInSeconds: number;
14
+ defaultTTLInSeconds: number;
15
+ }
@@ -1,6 +1,11 @@
1
1
  import { QPQConfigSetting, QPQConfigAdvancedSettings } from 'quidproquo-core';
2
+ import { CacheSettings } from '../QPQConfig';
3
+ export interface SeoCacheSettings extends CacheSettings {
4
+ headers: string[];
5
+ }
2
6
  export interface QPQConfigAdvancedSeoSettings extends QPQConfigAdvancedSettings {
3
7
  webEntry?: string;
8
+ cache?: SeoCacheSettings;
4
9
  }
5
10
  export interface SeoQPQWebServerConfigSetting extends QPQConfigSetting {
6
11
  path: string;
@@ -8,5 +13,6 @@ export interface SeoQPQWebServerConfigSetting extends QPQConfigSetting {
8
13
  runtime: string;
9
14
  deprecated: boolean;
10
15
  webEntry?: string;
16
+ cache: SeoCacheSettings;
11
17
  }
12
18
  export declare const defineSeo: (path: string, src: string, runtime: string, options?: QPQConfigAdvancedSeoSettings) => SeoQPQWebServerConfigSetting;
@@ -10,5 +10,11 @@ const defineSeo = (path, src, runtime, options) => ({
10
10
  runtime,
11
11
  webEntry: options === null || options === void 0 ? void 0 : options.webEntry,
12
12
  deprecated: (options === null || options === void 0 ? void 0 : options.deprecated) || false,
13
+ cache: (options === null || options === void 0 ? void 0 : options.cache) || {
14
+ defaultTTLInSeconds: 86400,
15
+ minTTLInSeconds: 900,
16
+ maxTTLInSeconds: 172800,
17
+ headers: [],
18
+ },
13
19
  });
14
20
  exports.defineSeo = defineSeo;
@@ -1,4 +1,5 @@
1
1
  import { QPQConfigSetting, QPQConfigAdvancedSettings } from 'quidproquo-core';
2
+ import { CacheSettings } from '../QPQConfig';
2
3
  export interface WebDomainOptions {
3
4
  subDomainName?: string;
4
5
  onRootDomain: boolean;
@@ -7,10 +8,13 @@ export interface StorageDriveOptions {
7
8
  sourceStorageDrive?: string;
8
9
  autoUpload: boolean;
9
10
  }
11
+ export interface CacheOptions extends CacheSettings {
12
+ }
10
13
  export interface QPQConfigAdvancedWebEntrySettings extends QPQConfigAdvancedSettings {
11
14
  buildPath?: string;
12
15
  seoBuildPath?: string;
13
16
  storageDrive?: StorageDriveOptions;
17
+ cache?: CacheOptions;
14
18
  domain?: WebDomainOptions;
15
19
  indexRoot?: string;
16
20
  }
@@ -19,6 +23,7 @@ export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
19
23
  indexRoot: string;
20
24
  storageDrive: StorageDriveOptions;
21
25
  domain: WebDomainOptions;
26
+ cache: CacheOptions;
22
27
  buildPath?: string;
23
28
  seoBuildPath?: string;
24
29
  }
@@ -13,6 +13,11 @@ const defineWebEntry = (name, options) => ({
13
13
  domain: (options === null || options === void 0 ? void 0 : options.domain) || {
14
14
  onRootDomain: true,
15
15
  },
16
+ cache: (options === null || options === void 0 ? void 0 : options.cache) || {
17
+ defaultTTLInSeconds: 86400,
18
+ minTTLInSeconds: 900,
19
+ maxTTLInSeconds: 172800,
20
+ },
16
21
  buildPath: options === null || options === void 0 ? void 0 : options.buildPath,
17
22
  seoBuildPath: options === null || options === void 0 ? void 0 : options.seoBuildPath,
18
23
  });
@@ -0,0 +1 @@
1
+ export declare const qpqHeaderIsBot = "x-qpq-is-bot";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.qpqHeaderIsBot = void 0;
4
+ exports.qpqHeaderIsBot = 'x-qpq-is-bot';
@@ -1,2 +1,3 @@
1
1
  export * from './HTTPEvent';
2
2
  export * from './SEOEvent';
3
+ export * from './constants';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./HTTPEvent"), exports);
18
18
  __exportStar(require("./SEOEvent"), exports);
19
+ __exportStar(require("./constants"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-webserver",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",