n8n-nodes-bgos 1.0.4 → 1.0.6
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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BgosTrigger = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const stubs_1 = require("./stubs");
|
|
6
5
|
const RATE_WINDOW_MS = 1000;
|
|
7
6
|
const RATE_MAX_EVENTS = 10;
|
|
8
7
|
const GLOBAL_KEY = '__bgosRateLimiter';
|
|
@@ -76,13 +75,10 @@ class BgosTrigger {
|
|
|
76
75
|
const workflowId = String(this.getWorkflow().id ?? 'default');
|
|
77
76
|
if (isRateLimited(workflowId))
|
|
78
77
|
return { workflowData: [] };
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
eventData = rawBody;
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
eventData = (0, stubs_1.getMockEventData)('message');
|
|
78
|
+
if (!rawBody || !rawBody.event_type) {
|
|
79
|
+
return { workflowData: [] };
|
|
85
80
|
}
|
|
81
|
+
const eventData = rawBody;
|
|
86
82
|
const eventType = String(eventData.event_type || '');
|
|
87
83
|
if (!updates.includes('*') && !updates.includes(eventType))
|
|
88
84
|
return { workflowData: [] };
|
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-bgos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "n8n community nodes for BGOS (Brand Growth OS) - AI assistant chat platform",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"n8n-community-node-package",
|
|
7
|
-
"n8n",
|
|
8
|
-
"bgos",
|
|
9
|
-
"chat",
|
|
10
|
-
"assistant",
|
|
11
|
-
"ai"
|
|
12
|
-
],
|
|
5
|
+
"keywords": ["n8n-community-node-package", "n8n", "bgos", "chat", "assistant", "ai"],
|
|
13
6
|
"license": "MIT",
|
|
14
7
|
"homepage": "https://github.com/BrandGrowthOS/bgos-n8n-nodes",
|
|
15
8
|
"author": {
|
|
@@ -25,7 +18,18 @@
|
|
|
25
18
|
"node": ">=18.10",
|
|
26
19
|
"pnpm": ">=9.1"
|
|
27
20
|
},
|
|
21
|
+
"packageManager": "pnpm@9.1.4",
|
|
28
22
|
"main": "dist/nodes/Bgos/Bgos.node.js",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"preinstall": "npx only-allow pnpm",
|
|
25
|
+
"build": "tsc && gulp build:icons",
|
|
26
|
+
"dev": "tsc --watch",
|
|
27
|
+
"format": "prettier nodes credentials --write",
|
|
28
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs .",
|
|
29
|
+
"lintfix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs . --fix",
|
|
30
|
+
"prepack": "pnpm build",
|
|
31
|
+
"prepublishOnly": "pnpm build"
|
|
32
|
+
},
|
|
29
33
|
"files": [
|
|
30
34
|
"dist",
|
|
31
35
|
"README.md",
|
|
@@ -55,13 +59,5 @@
|
|
|
55
59
|
},
|
|
56
60
|
"peerDependencies": {
|
|
57
61
|
"n8n-workflow": "*"
|
|
58
|
-
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"preinstall": "npx only-allow pnpm",
|
|
61
|
-
"build": "tsc && gulp build:icons",
|
|
62
|
-
"dev": "tsc --watch",
|
|
63
|
-
"format": "prettier nodes credentials --write",
|
|
64
|
-
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs .",
|
|
65
|
-
"lintfix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.cjs . --fix"
|
|
66
62
|
}
|
|
67
|
-
}
|
|
63
|
+
}
|