@queue-it/fastly 1.0.2 → 1.0.3

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.
@@ -1,18 +1,18 @@
1
- import {Utils} from "./sdk/QueueITHelpers";
2
- import {hmacString} from "./sdk/helpers/crypto";
1
+ import { Utils } from "./sdk/QueueITHelpers";
2
+ import { hmacString } from "./sdk/helpers/crypto";
3
3
 
4
4
  export class QueueITHelper {
5
- static readonly KUP_VERSION: string = "fastly-1.0.0";
5
+ static readonly KUP_VERSION: string = "fastly-1.0.3";
6
6
 
7
- static configureKnownUserHashing(): void {
8
- Utils.generateSHA256Hash = hmacString;
9
- }
7
+ static configureKnownUserHashing(): void {
8
+ Utils.generateSHA256Hash = hmacString;
9
+ }
10
10
 
11
- static addKUPlatformVersion(redirectQueueUrl: string): string {
12
- return redirectQueueUrl + "&kupver=" + QueueITHelper.KUP_VERSION;
13
- }
11
+ static addKUPlatformVersion(redirectQueueUrl: string): string {
12
+ return redirectQueueUrl + "&kupver=" + QueueITHelper.KUP_VERSION;
13
+ }
14
14
  }
15
15
 
16
16
  export interface RequestLogger {
17
- log(message: string): void;
17
+ log(message: string): void;
18
18
  }
@@ -131,6 +131,6 @@ export function onQueueITResponse(res: Response): void {
131
131
  if (contextHeaderKeys[i].length == 0) continue;
132
132
  let value = contextHeaders.get(contextHeaderKeys[i]);
133
133
  if (value != null && value!.length > 0)
134
- res.headers.set(contextHeaderKeys[i], value!);
134
+ res.headers.append(contextHeaderKeys[i], value!);
135
135
  }
136
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queue-it/fastly",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Queue-it connector for Fastly",
5
5
  "main": "assembly/index.ts",
6
6
  "ascMain": "assembly/index.ts",