@astro-api/n8n-nodes-astrology 0.8.0 → 0.8.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.
@@ -113,20 +113,23 @@ class Astrology {
113
113
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The resource '${resource}' is not supported`, { itemIndex });
114
114
  }
115
115
  const responseData = await handler(context, operation);
116
- returnData.push(responseData);
116
+ returnData.push({
117
+ json: responseData,
118
+ pairedItem: { item: itemIndex },
119
+ });
117
120
  }
118
121
  catch (error) {
119
122
  if (this.continueOnFail()) {
120
123
  returnData.push({
121
- error: error.message,
122
- itemIndex,
124
+ json: { error: error.message },
125
+ pairedItem: { item: itemIndex },
123
126
  });
124
127
  continue;
125
128
  }
126
129
  throw error;
127
130
  }
128
131
  }
129
- return [this.helpers.returnJsonArray(returnData)];
132
+ return [returnData];
130
133
  }
131
134
  }
132
135
  exports.Astrology = Astrology;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astro-api/n8n-nodes-astrology",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "n8n community node for Astrology API - professional astrological calculations, charts, horoscopes, and interpretations",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -70,7 +70,7 @@
70
70
  ]
71
71
  },
72
72
  "peerDependencies": {
73
- "n8n-workflow": "1.120.7"
73
+ "n8n-workflow": "*"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@changesets/cli": "^2.29.8",