@knocklabs/node 0.4.24 → 0.4.25
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/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/node",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "Library for interacting with the Knock API",
|
|
5
5
|
"homepage": "https://github.com/knocklabs/knock-node",
|
|
6
6
|
"author": "@knocklabs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/jsonwebtoken": "^9.0.1",
|
|
36
36
|
"@types/node": "^15.0.1",
|
|
37
37
|
"@types/pluralize": "0.0.29",
|
|
38
|
-
"axios-mock-adapter": "1.
|
|
38
|
+
"axios-mock-adapter": "^1.22.0",
|
|
39
39
|
"jest": "26.6.3",
|
|
40
40
|
"prettier": "2.2.1",
|
|
41
41
|
"supertest": "6.1.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typescript": "4.2.4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"axios": "
|
|
47
|
+
"axios": "1.6",
|
|
48
48
|
"jsonwebtoken": "^9.0.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -19,7 +19,9 @@ class Workflows {
|
|
|
19
19
|
if (!workflowKey && !recipients) {
|
|
20
20
|
throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey' and 'recipients'.`);
|
|
21
21
|
}
|
|
22
|
-
const options = idempotencyKey
|
|
22
|
+
const options = idempotencyKey
|
|
23
|
+
? { headers: { "Idempotency-Key": idempotencyKey } }
|
|
24
|
+
: {};
|
|
23
25
|
const { data } = yield this.knock.post(`/v1/workflows/${workflowKey}/trigger`, {
|
|
24
26
|
actor,
|
|
25
27
|
recipients,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/node",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "Library for interacting with the Knock API",
|
|
5
5
|
"homepage": "https://github.com/knocklabs/knock-node",
|
|
6
6
|
"author": "@knocklabs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/jsonwebtoken": "^9.0.1",
|
|
36
36
|
"@types/node": "^15.0.1",
|
|
37
37
|
"@types/pluralize": "0.0.29",
|
|
38
|
-
"axios-mock-adapter": "1.
|
|
38
|
+
"axios-mock-adapter": "^1.22.0",
|
|
39
39
|
"jest": "26.6.3",
|
|
40
40
|
"prettier": "2.2.1",
|
|
41
41
|
"supertest": "6.1.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typescript": "4.2.4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"axios": "
|
|
47
|
+
"axios": "1.6",
|
|
48
48
|
"jsonwebtoken": "^9.0.0"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|