@knocklabs/node 0.4.1 → 0.4.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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/node",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Library for interacting with the Knock API",
5
5
  "homepage": "https://github.com/knocklabs/knock-node",
6
6
  "author": "@knocklabs",
@@ -16,8 +16,8 @@ class Workflows {
16
16
  }
17
17
  trigger(workflowKey, { actor, recipients, cancellationKey, tenant, data: notifyData, }) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
- if (!workflowKey && !actor && !recipients) {
20
- throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey', 'actor', and 'recipients'.`);
19
+ if (!workflowKey && !recipients) {
20
+ throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey' and 'recipients'.`);
21
21
  }
22
22
  const { data } = yield this.knock.post(`/v1/workflows/${workflowKey}/trigger`, {
23
23
  actor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/node",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Library for interacting with the Knock API",
5
5
  "homepage": "https://github.com/knocklabs/knock-node",
6
6
  "author": "@knocklabs",