n8n-nodes-kapacity 0.1.1 → 0.1.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
@@ -101,6 +101,10 @@ The API has a monthly quota per workspace. Each call counts, so prefer the trigg
101
101
 
102
102
  ## Version history
103
103
 
104
+ ### 0.1.2
105
+
106
+ Kapacity Trigger: replacing an outdated webhook no longer hides a failed deletion. Only a 404 is ignored, so an event can never fire the workflow twice.
107
+
104
108
  ### 0.1.1
105
109
 
106
110
  Kapacity Trigger: each webhook gets its own secret header, checked on every call on top of the signature. A webhook created by 0.1.0 is recreated with it the next time the workflow is activated. The event names are shown under the node.
@@ -88,8 +88,14 @@ class KapacityTrigger {
88
88
  !!data.headerKey) {
89
89
  return true;
90
90
  }
91
- if (hook)
92
- await transport_1.kapacityApiRequest.call(this, 'DELETE', `/webhooks/${data.webhookId}`).catch(() => undefined);
91
+ if (hook) {
92
+ await transport_1.kapacityApiRequest
93
+ .call(this, 'DELETE', `/webhooks/${data.webhookId}`)
94
+ .catch((error) => {
95
+ if (error.httpCode !== '404')
96
+ throw error;
97
+ });
98
+ }
93
99
  delete data.webhookId;
94
100
  delete data.secret;
95
101
  delete data.headerKey;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-kapacity",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "n8n nodes for Kapacity, the all-in-one sales CRM: contacts, CRM tables, contracts with e-signature, appointments, forms, payments and real-time webhooks.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/kapacity-saas/n8n-nodes-kapacity#readme",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-kapacity",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "n8n nodes for Kapacity, the all-in-one sales CRM: contacts, CRM tables, contracts with e-signature, appointments, forms, payments and real-time webhooks.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/kapacity-saas/n8n-nodes-kapacity#readme",