@open-wa/node-red 5.13.0 → 5.14.0
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 +3 -3
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @open-wa/node-red
|
|
2
2
|
|
|
3
|
-
`@open-wa/node-red` connects Node-RED flows to an existing open-wa Easy API session.
|
|
3
|
+
`@open-wa/node-red` connects Node-RED flows to an existing open-wa Easy API session. It registers three node types: `owa-server`, `cmd`, and `listen`.
|
|
4
4
|
|
|
5
5
|
The integration keeps the Node-RED palette small and maps commands and events to the Easy API metadata endpoints. It uses `@open-wa/socket-client` as the compatibility client; v5 commands travel over HTTP RPC and runtime events use the client event stream.
|
|
6
6
|
|
|
@@ -9,13 +9,13 @@ The integration keeps the Node-RED palette small and maps commands and events to
|
|
|
9
9
|
Start Easy API separately, then install the package into Node-RED's user directory:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx @open-wa/wa-automate@
|
|
12
|
+
npx @open-wa/wa-automate@latest \
|
|
13
13
|
--session-id sales \
|
|
14
14
|
--port 8080 \
|
|
15
15
|
--api-key "$OPENWA_API_KEY"
|
|
16
16
|
|
|
17
17
|
cd ~/.node-red
|
|
18
|
-
npm install @open-wa/node-red@
|
|
18
|
+
npm install @open-wa/node-red@latest
|
|
19
19
|
node-red
|
|
20
20
|
```
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-wa/node-red",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0",
|
|
4
4
|
"description": "Official @open-wa node-red integration.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,32 +32,32 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rollup/plugin-swc": "^0.4.1",
|
|
35
|
-
"@swc/core": "^1.16.
|
|
35
|
+
"@swc/core": "^1.16.22",
|
|
36
36
|
"@types/express": "^5.0.6",
|
|
37
|
-
"@types/node": "^26.6.
|
|
37
|
+
"@types/node": "^26.6.6",
|
|
38
38
|
"@types/node-red": "^1.3.5",
|
|
39
39
|
"@types/node-red-node-test-helper": "^0.3.5",
|
|
40
|
-
"@types/sinon": "^22.0.
|
|
40
|
+
"@types/sinon": "^22.0.2",
|
|
41
41
|
"@types/supertest": "^7.2.1",
|
|
42
42
|
"colorette": "^2.0.20",
|
|
43
|
-
"concurrently": "^10.0.
|
|
43
|
+
"concurrently": "^10.0.7",
|
|
44
44
|
"copyfiles": "^2.4.1",
|
|
45
|
-
"glob": "^
|
|
45
|
+
"glob": "^14.0.6",
|
|
46
46
|
"mustache": "^4.2.0",
|
|
47
|
-
"node-red": "^5.0.
|
|
47
|
+
"node-red": "^5.0.10",
|
|
48
48
|
"node-red-node-test-helper": "^0.3.6",
|
|
49
49
|
"onchange": "^7.1.0",
|
|
50
|
-
"prettier": "^3.
|
|
51
|
-
"rollup": "^4.
|
|
52
|
-
"type-fest": "^
|
|
50
|
+
"prettier": "^3.10.1",
|
|
51
|
+
"rollup": "^4.68.8",
|
|
52
|
+
"type-fest": "^6.0.3",
|
|
53
53
|
"typescript": "^7.0.2",
|
|
54
|
-
"vitest": "5.
|
|
54
|
+
"vitest": "5.1.1",
|
|
55
55
|
"yarpm": "^1.2.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@open-wa/schema": "5.
|
|
59
|
-
"@open-wa/socket-client": "5.
|
|
60
|
-
"@open-wa/wa-automate-types-only": "5.
|
|
58
|
+
"@open-wa/schema": "5.14.0",
|
|
59
|
+
"@open-wa/socket-client": "5.14.0",
|
|
60
|
+
"@open-wa/wa-automate-types-only": "5.14.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"add-node": "node ./utils/add-node.js",
|