@astro-api/n8n-nodes-astrology 0.8.2 → 0.8.3
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/nodes/Astrology/Astrology.node.js +4 -1
- package/dist/nodes/Astrology/handlers/charts.handler.js +2 -1
- package/dist/nodes/Astrology/handlers/horoscope.handler.js +2 -1
- package/dist/nodes/Astrology/handlers/humanDesign.handler.js +2 -1
- package/dist/nodes/Astrology/handlers/numerology.handler.js +2 -1
- package/dist/nodes/Astrology/handlers/tarot.handler.js +2 -1
- package/dist/nodes/Astrology/shared/helpers.js +11 -5
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleChartsResource = handleChartsResource;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const shared_1 = require("../shared");
|
|
5
6
|
/**
|
|
6
7
|
* Endpoint mapping for chart operations
|
|
@@ -159,7 +160,7 @@ async function handleChartsResource(context, operation) {
|
|
|
159
160
|
case "directions":
|
|
160
161
|
return handleDirectionsChart(context);
|
|
161
162
|
default:
|
|
162
|
-
throw new
|
|
163
|
+
throw new n8n_workflow_1.NodeOperationError(context.executeFunctions.getNode(), `The operation '${operation}' is not supported for the charts resource`, { itemIndex: context.itemIndex });
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleHoroscopeResource = handleHoroscopeResource;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const shared_1 = require("../shared");
|
|
5
6
|
/**
|
|
6
7
|
* Handles all horoscope resource operations
|
|
@@ -22,7 +23,7 @@ async function handleHoroscopeResource(context, operation) {
|
|
|
22
23
|
if (operation === "chineseBazi") {
|
|
23
24
|
return await handleChineseBaziOperation(context);
|
|
24
25
|
}
|
|
25
|
-
throw new
|
|
26
|
+
throw new n8n_workflow_1.NodeOperationError(context.executeFunctions.getNode(), `The operation '${operation}' is not supported for the horoscope resource`, { itemIndex: context.itemIndex });
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Handles sign-based horoscope operations
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleHumanDesignResource = handleHumanDesignResource;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const shared_1 = require("../shared");
|
|
5
6
|
/**
|
|
6
7
|
* Endpoint mapping for Human Design operations
|
|
@@ -42,7 +43,7 @@ async function handleHumanDesignResource(context, operation) {
|
|
|
42
43
|
case "typeOnly":
|
|
43
44
|
return handleTypeOnly(context);
|
|
44
45
|
default:
|
|
45
|
-
throw new
|
|
46
|
+
throw new n8n_workflow_1.NodeOperationError(context.executeFunctions.getNode(), `The operation '${operation}' is not supported for the humanDesign resource`, { itemIndex: context.itemIndex });
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleNumerologyResource = handleNumerologyResource;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const shared_1 = require("../shared");
|
|
5
6
|
/**
|
|
6
7
|
* Endpoint mapping for Numerology operations
|
|
@@ -27,7 +28,7 @@ async function handleNumerologyResource(context, operation) {
|
|
|
27
28
|
case "compatibility":
|
|
28
29
|
return handleCompatibility(context);
|
|
29
30
|
default:
|
|
30
|
-
throw new
|
|
31
|
+
throw new n8n_workflow_1.NodeOperationError(context.executeFunctions.getNode(), `The operation '${operation}' is not supported for the numerology resource`, { itemIndex: context.itemIndex });
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.handleTarotResource = handleTarotResource;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const shared_1 = require("../shared");
|
|
5
6
|
/**
|
|
6
7
|
* Endpoint mapping for Tarot operations
|
|
@@ -73,7 +74,7 @@ async function handleTarotResource(context, operation) {
|
|
|
73
74
|
case "analysisNatalReport":
|
|
74
75
|
return handleAnalysisNatalReport(context);
|
|
75
76
|
default:
|
|
76
|
-
throw new
|
|
77
|
+
throw new n8n_workflow_1.NodeOperationError(context.executeFunctions.getNode(), `The operation '${operation}' is not supported for the tarot resource`, { itemIndex: context.itemIndex });
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
/**
|
|
@@ -9,6 +9,7 @@ exports.buildSecondSubjectBirthData = buildSecondSubjectBirthData;
|
|
|
9
9
|
exports.buildTransitTime = buildTransitTime;
|
|
10
10
|
exports.buildReturnLocation = buildReturnLocation;
|
|
11
11
|
exports.buildDateTimeLocation = buildDateTimeLocation;
|
|
12
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
12
13
|
/**
|
|
13
14
|
* Builds birth data object from node parameters
|
|
14
15
|
*
|
|
@@ -60,12 +61,17 @@ async function makeApiRequest(executeFunctions, method, baseUrl, endpoint, apiKe
|
|
|
60
61
|
if (body) {
|
|
61
62
|
options.body = body;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
try {
|
|
65
|
+
const response = await executeFunctions.helpers.httpRequest(options);
|
|
66
|
+
// Ensure we return only serializable data (no circular references)
|
|
67
|
+
if (typeof response === "object" && response !== null) {
|
|
68
|
+
return JSON.parse(JSON.stringify(response));
|
|
69
|
+
}
|
|
70
|
+
return response;
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
throw new n8n_workflow_1.NodeApiError(executeFunctions.getNode(), error);
|
|
67
74
|
}
|
|
68
|
-
return response;
|
|
69
75
|
}
|
|
70
76
|
/**
|
|
71
77
|
* Creates a subject request body wrapper
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astro-api/n8n-nodes-astrology",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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": {
|