n8n-nodes-cribops 0.2.0 → 0.2.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": "n8n-nodes-cribops",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "n8n community node for reliable webhook processing with Cribops",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
@@ -38,7 +38,10 @@ class HiveClient {
38
38
  async execute(operation, payload) {
39
39
  const jsonPayload = JSON.stringify(payload);
40
40
  const result = await this.redis.call('HIVE.EXEC', operation, jsonPayload);
41
- return JSON.parse(result);
41
+ if (result === null || result === undefined) {
42
+ throw new Error(`HIVE.EXEC ${operation} returned null - is Hive running and responding?`);
43
+ }
44
+ return JSON.parse(String(result));
42
45
  }
43
46
  async ping() {
44
47
  return this.execute('ping', {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-cribops",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "n8n community node for reliable webhook processing with Cribops",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"