@queue-it/fastly 5.0.1 → 5.0.3-beta.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@queue-it/fastly",
3
- "version": "5.0.1",
3
+ "version": "5.0.3-beta.0",
4
4
  "description": "Queue-it connector for Fastly",
5
5
  "main": "src/index.ts",
6
6
  "author": "devs@queue-it.com",
package/src/helper.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export class QueueITHelper {
2
- static readonly KUP_VERSION: string = "fastly-5.0.1";
2
+ static readonly KUP_VERSION: string = "fastly-5.0.3";
3
3
 
4
4
  static addKUPlatformVersion(redirectQueueUrl: string): string {
5
5
  return `${redirectQueueUrl}&kupver=${QueueITHelper.KUP_VERSION}`;
@@ -67,8 +67,10 @@ const integrationCustomerId = "customerId",
67
67
  directPassTimeoutKey = "directPassTimeout",
68
68
  isTestEnvironmentKey = "isTestEnvironment";
69
69
 
70
- export function resolveIntegrationDetails(): IntegrationDetails | null {
71
- const dict = new ConfigStore(integrationDictionary);
70
+ export function resolveIntegrationDetails(
71
+ configStoreName: string = integrationDictionary
72
+ ): IntegrationDetails | null {
73
+ const dict = new ConfigStore(configStoreName);
72
74
  if (
73
75
  dict.get(integrationCustomerId) === null ||
74
76
  dict.get(integrationApiKey) === null ||