@queue-it/fastly 2.0.0-beta.1 → 2.0.0-beta.2

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/README.md CHANGED
@@ -40,13 +40,16 @@ There are two methods of installation:
40
40
  You need to edit the Host and name it **origin**.
41
41
  - Create a second host that has the hostname of `{yourCustomerId}.queue-it.net` and name it **queue-it**.
42
42
  Edit the host, go to advanced options and fill in the same hostname in **Override host**
43
- - Go to **Dictionaries** and create a new dictionary named `IntegrationConfiguration`.
44
- Add the following items in the dictionary:
43
+ - Go to **Resources -> Config stores** and create a new config store named `IntegrationConfiguration`.
44
+ - Add the following items in the config store (you can find these values in the Go Queue-It self-service platform):
45
45
  - customerId: Your customer ID
46
46
  - apiKey: The API key for your account
47
47
  - secret: Your KnownUserV3 secret
48
48
  - queueItOrigin: The name of the queue-it host, in this case it's `queue-it`
49
- You can find these values in the Go Queue-It self-service platform.
49
+ - Go to **Linked Services** and click on `Link Service`
50
+ - Select your service and click `Next`
51
+ - Click `Link and activate` to link the `Config store` to your service. It should generate a new version
52
+ - You can verify that the `Config store` has been linked by going to your service and see it in the section `Config stores`
50
53
  - Download the latest package from the releases page and unarchive it.
51
54
  - Edit the `fastly.toml` file and copy the ID of your service (you can see this by opening up the service in Fastly) and
52
55
  replace __{YourServiceId}__ with it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queue-it/fastly",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
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
@@ -2,7 +2,7 @@ import { Utils } from "./sdk/QueueITHelpers";
2
2
  import { hmacString } from "./sdk/helpers/crypto";
3
3
 
4
4
  export class QueueITHelper {
5
- static readonly KUP_VERSION: string = "fastly-1.1.0";
5
+ static readonly KUP_VERSION: string = "fastly-2.0.0";
6
6
 
7
7
  static configureKnownUserHashing(): void {
8
8
  Utils.generateSHA256Hash = hmacString;
@@ -1,3 +1,4 @@
1
+ import { ConfigStore } from "fastly:config-store";
1
2
  import { RequestLogger } from "./helper";
2
3
 
3
4
  export async function getIntegrationConfig(