@queue-it/fastly 2.0.3-beta.0 → 2.0.3-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 +2 -1
- package/src/fastlyCryptoProvider.ts +8 -0
- package/src/helper.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@queue-it/fastly",
|
|
3
|
-
"version": "2.0.3-beta.
|
|
3
|
+
"version": "2.0.3-beta.1",
|
|
4
4
|
"description": "Queue-it connector for Fastly",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"author": "devs@queue-it.com",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"package.json",
|
|
11
11
|
"README.md",
|
|
12
12
|
"src/helpers",
|
|
13
|
+
"src/fastlyCryptoProvider.ts",
|
|
13
14
|
"src/contextProvider.ts",
|
|
14
15
|
"src/helper.ts",
|
|
15
16
|
"src/integrationConfigProvider.ts",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICryptoProvider } from '@queue-it/connector-javascript';
|
|
2
|
+
import { hmacString } from './helpers/crypto';
|
|
3
|
+
|
|
4
|
+
export class FastlyCryptoProvider implements ICryptoProvider {
|
|
5
|
+
getSha256Hash(secretKey: string, plaintext: string): string {
|
|
6
|
+
return hmacString(secretKey, plaintext);
|
|
7
|
+
}
|
|
8
|
+
}
|
package/src/helper.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class QueueITHelper {
|
|
2
|
-
static readonly KUP_VERSION: string = "fastly-2.0.3-beta.
|
|
2
|
+
static readonly KUP_VERSION: string = "fastly-2.0.3-beta.1";
|
|
3
3
|
|
|
4
4
|
static addKUPlatformVersion(redirectQueueUrl: string): string {
|
|
5
5
|
return redirectQueueUrl + "&kupver=" + QueueITHelper.KUP_VERSION;
|