@queue-it/fastly 5.0.0-beta.0 → 5.0.0-beta.1

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@queue-it/fastly",
3
- "version": "5.0.0-beta.0",
3
+ "version": "5.0.0-beta.1",
4
4
  "description": "Queue-it connector for Fastly",
5
5
  "main": "src/index.ts",
6
6
  "author": "devs@queue-it.com",
7
- "repository": "https://github.com/queueit/KnownUser.V3.Fastly",
7
+ "repository": "https://github.com/queueit/connector-fastly",
8
8
  "license": "MIT",
9
9
  "files": [
10
10
  "package.json",
package/src/helper.ts CHANGED
@@ -2,7 +2,7 @@ export class QueueITHelper {
2
2
  static readonly KUP_VERSION: string = "fastly-5.0.0";
3
3
 
4
4
  static addKUPlatformVersion(redirectQueueUrl: string): string {
5
- return redirectQueueUrl + "&kupver=" + QueueITHelper.KUP_VERSION;
5
+ return `${redirectQueueUrl}&kupver=${QueueITHelper.KUP_VERSION}`;
6
6
  }
7
7
  }
8
8
 
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export {IntegrationDetails, EnqueueTokenProviderFactory, IntegrationEndpointProvider, IntegrationEndpointCacheConfig, resolveIntegrationDetails} from "./integrationConfigProvider"
2
2
  export {onQueueITRequest, onQueueITResponse} from "./requestResponseHandler";
3
3
  export {RequestLogger} from "./helper";
4
- export {FastlyDirectActionProvider, FastlyDirectActionsSettings} from "./fastlyDirectActionProvider";
4
+ export {FastlyDirectActionProvider} from "./fastlyDirectActionProvider";
5
+ export type {FastlyDirectActionsSettings} from "./fastlyDirectActionProvider";
@@ -107,7 +107,7 @@ export function resolveIntegrationDetails(): IntegrationDetails | null {
107
107
  requestBodyEnabled = requestBodyEnabledVal.toLowerCase() === "true";
108
108
  }
109
109
 
110
- let directActionsDisabled = true;
110
+ let directActionsDisabled = false;
111
111
  const directActionsDisabledVal = dict.get(directActionsDisabledKey);
112
112
  if (directActionsDisabledVal !== null) {
113
113
  directActionsDisabled = directActionsDisabledVal.toLowerCase() === "true";
@@ -134,7 +134,7 @@ export function resolveIntegrationDetails(): IntegrationDetails | null {
134
134
 
135
135
  if (!directActionsDisabled && !directActionsProxyKey) {
136
136
  throw new Error(
137
- "directActionsDisabled is set to false but directActionsProxyKey is missing. Provide a proxy key or remove the directActionsDisabled override."
137
+ "Direct Actions are enabled but no proxy key is provided. Set directActionsDisabled to true to disable, or provide directActionsProxyKey."
138
138
  );
139
139
  }
140
140
 
@@ -232,7 +232,7 @@ export class IntegrationDetails {
232
232
  directActionsSettings?: FastlyDirectActionsSettings
233
233
  ) {
234
234
  this.directActionsSettings = directActionsSettings ?? {
235
- disabled: true,
235
+ disabled: false,
236
236
  proxyKey: null,
237
237
  queueItOrigin,
238
238
  };