n8n-nodes-moca 0.2.0 → 0.2.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.
- package/LICENSE.md +1 -1
- package/README.md +158 -37
- package/dist/credentials/MocaApi.credentials.js +1 -1
- package/dist/credentials/MocaApi.credentials.js.map +1 -1
- package/dist/package.json +19 -7
- package/package.json +19 -7
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -4,7 +4,9 @@ An [n8n](https://n8n.io) community node for **MOCA** — the command server behi
|
|
|
4
4
|
|
|
5
5
|
It connects to a MOCA service over the `application/moca-xml` protocol and runs MOCA syntax commands, including MOCA **local syntax** (native SQL in square brackets), with credentials managed by n8n.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
No runtime dependencies.
|
|
8
|
+
|
|
9
|
+
[Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) · [Result shape](#result-shape) · [Status codes](#status-codes) · [Examples](#examples) · [How it works](#how-it-works)
|
|
8
10
|
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
@@ -15,6 +17,12 @@ It connects to a MOCA service over the `application/moca-xml` protocol and runs
|
|
|
15
17
|
3. Enter `n8n-nodes-moca` and confirm that you understand the risks of installing community nodes.
|
|
16
18
|
4. Select **Install**.
|
|
17
19
|
|
|
20
|
+
To use the node as an AI Agent tool, the instance also needs:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
|
|
24
|
+
```
|
|
25
|
+
|
|
18
26
|
### Manual install
|
|
19
27
|
|
|
20
28
|
```bash
|
|
@@ -42,7 +50,7 @@ Create a **MOCA API** credential:
|
|
|
42
50
|
| Password | yes | Password for that user |
|
|
43
51
|
| Warehouse ID | no | Sent as `WH_ID` with every command |
|
|
44
52
|
| Device | no | Sent as `DEVCOD` with every command |
|
|
45
|
-
| Locale | no | Sent as `LOCALE_ID`. Leave empty to use the locale returned at login. |
|
|
53
|
+
| Locale | no | Sent as `LOCALE_ID`, e.g. `US_ENGLISH`. Leave empty to use the locale returned at login. |
|
|
46
54
|
| Ignore SSL Issues | no | Accept self-signed certificates |
|
|
47
55
|
| Request Timeout (Ms) | no | Defaults to 300000 |
|
|
48
56
|
| Reuse Session | no | Reuse a MOCA session across executions instead of logging in every time. On by default. |
|
|
@@ -50,7 +58,10 @@ Create a **MOCA API** credential:
|
|
|
50
58
|
|
|
51
59
|
Use the credential's **Test** button to verify the connection: the node performs a real `login user` call and reports the MOCA error message if it fails.
|
|
52
60
|
|
|
53
|
-
|
|
61
|
+
Warehouse, Device and Locale are sent with every command and can be read back inside one as
|
|
62
|
+
[`@@` globals](#credential-values-in-a-command).
|
|
63
|
+
|
|
64
|
+
The password is only ever used for the login command. Every later command authenticates with the session key MOCA returns, and that session key never reaches workflow data.
|
|
54
65
|
|
|
55
66
|
## Operations
|
|
56
67
|
|
|
@@ -59,29 +70,37 @@ The password is only ever used for the login command. Every later command authen
|
|
|
59
70
|
Runs a MOCA syntax command and returns one item per result row.
|
|
60
71
|
|
|
61
72
|
```
|
|
62
|
-
list warehouses
|
|
73
|
+
list warehouses
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
list orders where ordnum = @ordnum
|
|
63
78
|
```
|
|
64
79
|
|
|
65
80
|
### Local syntax (native SQL)
|
|
66
81
|
|
|
67
|
-
MOCA local syntax is native SQL in square brackets, written inside
|
|
68
|
-
separate operation for it - put the brackets in the command text:
|
|
82
|
+
MOCA local syntax is native SQL in square brackets, written inside an ordinary command. There is no separate operation for it — put the brackets in the command text:
|
|
69
83
|
|
|
70
84
|
```
|
|
71
|
-
[select
|
|
85
|
+
[select ordnum, ordtyp from ord where wh_id = @wh_id]
|
|
72
86
|
```
|
|
73
87
|
|
|
74
|
-
Commands and SQL compose in one pipeline, which is the point of MOCA syntax:
|
|
88
|
+
Commands and SQL compose in one pipeline, which is the point of MOCA syntax. `@name` refers to a column produced by the previous step:
|
|
75
89
|
|
|
76
90
|
```
|
|
77
91
|
[select ship_id from shipment_line where ordnum = @ordnum]
|
|
78
92
|
|
|
|
79
|
-
|
|
93
|
+
list shipments where ship_id = @ship_id
|
|
80
94
|
```
|
|
81
95
|
|
|
96
|
+
> **A MOCA command and its underlying table are not the same thing.** Commands join in
|
|
97
|
+
> descriptions, localisation and related records, so they return columns the base table does not
|
|
98
|
+
> have. `list warehouses` returns `lngdsc`, `short_dsc` and `longdsc`; the `wh` table itself has
|
|
99
|
+
> none of them. Check the command output before assuming a column exists in SQL.
|
|
100
|
+
|
|
82
101
|
### Test Connection
|
|
83
102
|
|
|
84
|
-
Logs in and returns the session details (user, name, warehouse, locale). Useful as a health check at the top of a workflow.
|
|
103
|
+
Logs in and returns the session details (user, name, warehouse, locale). Useful as a health check at the top of a workflow, and it always contacts the server rather than reporting a cached session.
|
|
85
104
|
|
|
86
105
|
### Arguments
|
|
87
106
|
|
|
@@ -104,39 +123,115 @@ publish data
|
|
|
104
123
|
list warehouses where wh_id = @wh_id
|
|
105
124
|
```
|
|
106
125
|
|
|
107
|
-
Single quotes inside values are doubled, so a value
|
|
126
|
+
Single quotes inside values are doubled, so a value containing an apostrophe — `O'Brien`, or a
|
|
127
|
+
crafted string designed to close the literal early and append its own clause — cannot break out
|
|
128
|
+
of it. **Use this for anything arriving from a webhook or an AI agent**, rather than building the
|
|
129
|
+
command with expressions.
|
|
130
|
+
|
|
131
|
+
### Credential values in a command
|
|
132
|
+
|
|
133
|
+
Credential fields are sent as MOCA environment variables, so a command can read them directly
|
|
134
|
+
as `@@` globals. Nothing needs to be passed in:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
list orders where wh_id = @@wh_id
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
[select ordnum from ord where wh_id = @@wh_id]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
| Credential field | Sent as | Reference as |
|
|
145
|
+
| --- | --- | --- |
|
|
146
|
+
| User ID | `USR_ID` | `@@usr_id` |
|
|
147
|
+
| Warehouse ID | `WH_ID` | `@@wh_id` |
|
|
148
|
+
| Device | `DEVCOD` | `@@devcod` |
|
|
149
|
+
| Locale | `LOCALE_ID` | `@@locale_id` |
|
|
150
|
+
| *(session, managed by the node)* | `SESSION_KEY` | `@@session_key` |
|
|
151
|
+
|
|
152
|
+
The password is never sent as an environment variable; it is only used by the login command.
|
|
153
|
+
|
|
154
|
+
**`@@name` and `@name` are different things**, and mixing them up is the most common cause of a
|
|
155
|
+
confusing `511` error:
|
|
156
|
+
|
|
157
|
+
| | Source | Scope |
|
|
158
|
+
| --- | --- | --- |
|
|
159
|
+
| `@@name` | Credential, as an environment variable | The whole request, including after a `\|` |
|
|
160
|
+
| `@name` | A column published by the previous pipeline step, which is what **Arguments** generates | From that step onward |
|
|
161
|
+
|
|
162
|
+
So credential constants use `@@`, and per-execution values use Arguments and `@`:
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
[select ordnum from ord where wh_id = @@wh_id and ordnum = @ordnum]
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Two things to watch:
|
|
169
|
+
|
|
170
|
+
- **Do not quote it.** `'@@wh_id'` is the literal string `@@wh_id`, not the warehouse — inside a
|
|
171
|
+
SQL string literal it is just text.
|
|
172
|
+
- **An unset variable is `null`, not an error.** Leaving *Device* empty makes `@@devcod` null and
|
|
173
|
+
the command still succeeds, so a misspelt name such as `@@wh_di` fails silently rather than
|
|
174
|
+
loudly. If a filtered query returns no rows unexpectedly, check the spelling first.
|
|
108
175
|
|
|
109
176
|
### Options
|
|
110
177
|
|
|
111
178
|
| Option | Default | Description |
|
|
112
179
|
| --- | --- | --- |
|
|
113
|
-
| Autocommit | `true` | Whether MOCA commits when the command succeeds. Turning it off does **not** roll back
|
|
180
|
+
| Autocommit | `true` | Whether MOCA commits when the command succeeds. Turning it off does **not** roll back — see [Transactions](#transactions). |
|
|
114
181
|
| Convert Numeric Columns | `false` | Convert columns the server reports as numeric into numbers. Off by default so identifiers such as `0042` keep their leading zeros. |
|
|
115
182
|
| Simplify | `true` | One item per row. Turn off to get a single item with `status`, `message`, `columns` and `rows`. |
|
|
116
183
|
| Treat Empty Result as Error | `false` | Whether MOCA status `510` (no rows found) should fail the node |
|
|
117
184
|
|
|
185
|
+
## Result shape
|
|
186
|
+
|
|
187
|
+
With **Simplify** on (the default), each result row becomes one n8n item.
|
|
188
|
+
|
|
189
|
+
- **Values are strings**, matching what MOCA sends, unless *Convert Numeric Columns* is on. Dates arrive in MOCA's own format, e.g. `20250429045411`.
|
|
190
|
+
- **Empty fields become `null`**, not empty strings.
|
|
191
|
+
- **Repeated column names get a numeric suffix.** MOCA joins can return the same column twice — `list warehouses` returns `is_purged` twice — so the second occurrence becomes `is_purged_2`. Without this the first value would be silently overwritten.
|
|
192
|
+
- **Nested result sets** become nested objects with their own `columns` and `rows`.
|
|
193
|
+
- **No rows** produces a single item with `status`, `message`, `command` and `rowCount: 0`, so downstream nodes can tell "nothing matched" from "never ran".
|
|
194
|
+
|
|
195
|
+
With **Simplify** off, one item is returned holding `status`, `message`, `command`, `rowCount`, `columns` (with each column's MOCA `type`) and `rows`.
|
|
196
|
+
|
|
197
|
+
## Status codes
|
|
198
|
+
|
|
199
|
+
| Status | Meaning | What the node does |
|
|
200
|
+
| --- | --- | --- |
|
|
201
|
+
| `0` | Success | Returns the rows |
|
|
202
|
+
| `510` | No rows found | Returns an empty result. Not an error unless *Treat Empty Result as Error* is on. |
|
|
203
|
+
| `523` | Session expired | Logs in again and retries once, transparently |
|
|
204
|
+
| anything else | Server or database error | Fails the node with MOCA's own `message`, e.g. `501 - Command (...) not found` or `511 - Invalid column name '...'.` |
|
|
205
|
+
|
|
118
206
|
## Examples
|
|
119
207
|
|
|
120
|
-
**Look up inventory
|
|
208
|
+
**Look up inventory from an incoming webhook**
|
|
121
209
|
|
|
122
|
-
Operation `Execute Command`, argument `
|
|
210
|
+
Operation `Execute Command`, argument `prtnum` → `{{ $json.body.sku }}`:
|
|
123
211
|
|
|
124
212
|
```
|
|
125
|
-
list inventory where
|
|
213
|
+
list inventory where prtnum = @prtnum
|
|
126
214
|
```
|
|
127
215
|
|
|
128
216
|
**Read straight from the database**
|
|
129
217
|
|
|
130
218
|
```
|
|
131
|
-
[select
|
|
219
|
+
[select ordnum, ordtyp, client_id
|
|
132
220
|
from ord
|
|
133
|
-
where wh_id = @wh_id
|
|
134
|
-
|
|
221
|
+
where wh_id = @wh_id]
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**Chain SQL into a command**
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
[select ship_id from shipment_line where ordnum = @ordnum]
|
|
228
|
+
|
|
|
229
|
+
list shipments where ship_id = @ship_id
|
|
135
230
|
```
|
|
136
231
|
|
|
137
232
|
**Use it as an AI agent tool**
|
|
138
233
|
|
|
139
|
-
The node has `usableAsTool` enabled, so it can be attached to an AI Agent to let the agent query the WMS.
|
|
234
|
+
The node has `usableAsTool` enabled, so it can be attached to an AI Agent to let the agent query the WMS. Give the agent a MOCA user whose database grants are read-only — a system prompt telling it to avoid writes is not a security control.
|
|
140
235
|
|
|
141
236
|
### Running the local MOCA client (`msql`)
|
|
142
237
|
|
|
@@ -148,7 +243,7 @@ msql -c "list warehouses"
|
|
|
148
243
|
|
|
149
244
|
## How it works
|
|
150
245
|
|
|
151
|
-
Each
|
|
246
|
+
Each command posts a `moca-request` document to the service URL with the `application/moca-xml` content type:
|
|
152
247
|
|
|
153
248
|
```xml
|
|
154
249
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -157,36 +252,44 @@ Each execution posts a `moca-request` document to the service URL with the `appl
|
|
|
157
252
|
<var name="USR_ID" value="SUPER"/>
|
|
158
253
|
<var name="SESSION_KEY" value="..."/>
|
|
159
254
|
<var name="WH_ID" value="WMD1"/>
|
|
255
|
+
<var name="LOCALE_ID" value="US_ENGLISH"/>
|
|
160
256
|
</environment>
|
|
161
257
|
<query>list warehouses</query>
|
|
162
258
|
</moca-request>
|
|
163
259
|
```
|
|
164
260
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
- Any other status fails the node with the `message` the server returned.
|
|
170
|
-
- Result values are returned as strings, matching what MOCA sends, unless *Convert Numeric Columns* is enabled. Empty fields become `null`, and nested result sets are returned as nested objects.
|
|
261
|
+
Those `var` entries are what a command reads as [`@@` globals](#credential-values-in-a-command).
|
|
262
|
+
Empty credential fields are omitted from the document entirely.
|
|
263
|
+
|
|
264
|
+
The XML is built and parsed in-package, so **n8n-nodes-moca has no runtime dependencies**.
|
|
171
265
|
|
|
172
266
|
### Session handling
|
|
173
267
|
|
|
174
|
-
Logging in costs a full round trip, so the session key is cached in memory and shared by every
|
|
175
|
-
|
|
176
|
-
|
|
268
|
+
Logging in costs a full round trip, so the session key is cached in memory and shared by every MOCA node in the n8n process, keyed by service URL, user and password. Changing any of those starts a new session.
|
|
269
|
+
|
|
270
|
+
The cache never has to be right, only usually right. A session the server has already dropped comes back as status 523, which triggers a fresh login and a retry, so a stale entry costs one extra round trip — exactly what happens with no cache at all. When several executions start at once against a cold cache they share a single login rather than one each.
|
|
177
271
|
|
|
178
|
-
|
|
179
|
-
comes back as status 523, which triggers a fresh login and a retry, so a stale entry costs one
|
|
180
|
-
extra round trip - exactly what happens with no cache at all. When several executions start at
|
|
181
|
-
once against a cold cache they share a single login rather than one each.
|
|
272
|
+
Measured against a real MOCA server, three executions cost 4 HTTP round trips instead of 6, and five concurrent executions made one login instead of five.
|
|
182
273
|
|
|
183
|
-
Sessions are held **in memory only**. A session key is a live credential, so it is never written
|
|
184
|
-
to workflow static data, which n8n persists to its database. It is also stripped from the
|
|
185
|
-
Test Connection output.
|
|
274
|
+
Sessions are held **in memory only**. A session key is a live credential, so it is never written to workflow static data, which n8n persists to its database. It is also stripped from the Test Connection output.
|
|
186
275
|
|
|
187
276
|
Turn it off per credential with **Reuse Session** if a server needs a fresh login every time.
|
|
188
277
|
|
|
189
|
-
|
|
278
|
+
### Transactions
|
|
279
|
+
|
|
280
|
+
A session lasts for one node execution, so **a transaction cannot span two MOCA nodes**. Turning *Autocommit* off does not roll anything back either — the node sends no `commit` and no `rollback`, so an uncommitted write may hold database locks until the session ends, and nothing can reach back to commit it.
|
|
281
|
+
|
|
282
|
+
If you want a dry run, say so explicitly in the command:
|
|
283
|
+
|
|
284
|
+
```
|
|
285
|
+
[select ship_id from shipment_line where ordnum = @ordnum]
|
|
286
|
+
|
|
|
287
|
+
change shipment where ship_id = @ship_id and early_dlvdte = @expected_date
|
|
288
|
+
|
|
|
289
|
+
rollback
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
For write protection, use a MOCA user without write grants. That is the only control that holds.
|
|
190
293
|
|
|
191
294
|
## Compatibility
|
|
192
295
|
|
|
@@ -202,6 +305,24 @@ npm run build
|
|
|
202
305
|
npm run dev # runs a local n8n with this node linked in
|
|
203
306
|
```
|
|
204
307
|
|
|
308
|
+
### Releasing
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
npm run release # patch, e.g. 0.2.0 -> 0.2.1
|
|
312
|
+
npm run release:minor # breaking or new operations
|
|
313
|
+
npm run release:major
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
Each one builds, lints, tests and verifies the package first, then bumps the version, commits,
|
|
317
|
+
tags and pushes. Pushing the tag is what triggers the GitHub Actions publish, so that single
|
|
318
|
+
command is the whole release. The tag carries no `v` prefix; that is set in `.npmrc` rather than
|
|
319
|
+
as a flag, because npm scripts run through `cmd.exe` on Windows where `''` is not quoting and
|
|
320
|
+
would end up inside the tag name.
|
|
321
|
+
|
|
322
|
+
`npm version` refuses to run with uncommitted changes, so commit first.
|
|
323
|
+
|
|
324
|
+
`npm run live-check` exercises the compiled transport against a real MOCA server — login, a command, local syntax, the no-rows path, an error path and argument binding. Configure it with `moca.local.json` (gitignored) or `MOCA_URL` / `MOCA_USER` / `MOCA_PASSWORD`. Passwords and session keys are masked in its output.
|
|
325
|
+
|
|
205
326
|
## Resources
|
|
206
327
|
|
|
207
328
|
- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MocaApi.credentials.js","sourceRoot":"","sources":["../../credentials/MocaApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QAEjB,gBAAW,GAAG,UAAU,CAAC;QAEzB,SAAI,GAAS,EAAE,KAAK,EAAE,6BAA6B,EAAE,IAAI,EAAE,kCAAkC,EAAE,CAAC;QAEhG,qBAAgB,GAAG,mDAAmD,CAAC;QAEvE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,uCAAuC;gBACpD,WAAW,EACV,iFAAiF;aAClF;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4BAA4B;aACzC;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,MAAM;gBACnB,WAAW,EAAE,6DAA6D;aAC1E;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,I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|
4
|
-
"description": "n8n community node to connect to a MOCA server (Blue Yonder / RedPrairie WMS) and run MOCA syntax commands
|
|
3
|
+
"version": "0.2.6",
|
|
4
|
+
"description": "n8n community node to connect to a MOCA server (Blue Yonder / RedPrairie WMS) and run MOCA syntax commands and native (local) SQL",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/rnsaway/n8n-nodes-moca#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rnsaway/n8n-nodes-moca.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/rnsaway/n8n-nodes-moca/issues"
|
|
13
|
+
},
|
|
6
14
|
"keywords": [
|
|
7
15
|
"n8n-community-node-package",
|
|
8
16
|
"n8n",
|
|
@@ -14,8 +22,8 @@
|
|
|
14
22
|
"warehouse"
|
|
15
23
|
],
|
|
16
24
|
"author": {
|
|
17
|
-
"name": "
|
|
18
|
-
"email": "
|
|
25
|
+
"name": "Nick Saway",
|
|
26
|
+
"email": "rnsaway@gmail.com"
|
|
19
27
|
},
|
|
20
28
|
"engines": {
|
|
21
29
|
"node": ">=20.19"
|
|
@@ -26,10 +34,14 @@
|
|
|
26
34
|
"lint": "n8n-node lint",
|
|
27
35
|
"lint:fix": "n8n-node lint --fix",
|
|
28
36
|
"test": "vitest run",
|
|
29
|
-
"
|
|
37
|
+
"verify": "node scripts/verify-package.js",
|
|
38
|
+
"preversion": "npm run build && npm run lint && npm test && npm run verify",
|
|
39
|
+
"postversion": "git push origin main --follow-tags",
|
|
40
|
+
"release": "npm version patch",
|
|
41
|
+
"release:minor": "npm version minor",
|
|
42
|
+
"release:major": "npm version major",
|
|
30
43
|
"prepublishOnly": "npm run build && npm test && npm run verify && n8n-node prerelease",
|
|
31
|
-
"live-check": "node scripts/live-check.js"
|
|
32
|
-
"verify": "node scripts/verify-package.js"
|
|
44
|
+
"live-check": "node scripts/live-check.js"
|
|
33
45
|
},
|
|
34
46
|
"files": [
|
|
35
47
|
"dist"
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-moca",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "n8n community node to connect to a MOCA server (Blue Yonder / RedPrairie WMS) and run MOCA syntax commands
|
|
3
|
+
"version": "0.2.6",
|
|
4
|
+
"description": "n8n community node to connect to a MOCA server (Blue Yonder / RedPrairie WMS) and run MOCA syntax commands and native (local) SQL",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/rnsaway/n8n-nodes-moca#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rnsaway/n8n-nodes-moca.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/rnsaway/n8n-nodes-moca/issues"
|
|
13
|
+
},
|
|
6
14
|
"keywords": [
|
|
7
15
|
"n8n-community-node-package",
|
|
8
16
|
"n8n",
|
|
@@ -14,8 +22,8 @@
|
|
|
14
22
|
"warehouse"
|
|
15
23
|
],
|
|
16
24
|
"author": {
|
|
17
|
-
"name": "
|
|
18
|
-
"email": "
|
|
25
|
+
"name": "Nick Saway",
|
|
26
|
+
"email": "rnsaway@gmail.com"
|
|
19
27
|
},
|
|
20
28
|
"engines": {
|
|
21
29
|
"node": ">=20.19"
|
|
@@ -26,10 +34,14 @@
|
|
|
26
34
|
"lint": "n8n-node lint",
|
|
27
35
|
"lint:fix": "n8n-node lint --fix",
|
|
28
36
|
"test": "vitest run",
|
|
29
|
-
"
|
|
37
|
+
"verify": "node scripts/verify-package.js",
|
|
38
|
+
"preversion": "npm run build && npm run lint && npm test && npm run verify",
|
|
39
|
+
"postversion": "git push origin main --follow-tags",
|
|
40
|
+
"release": "npm version patch",
|
|
41
|
+
"release:minor": "npm version minor",
|
|
42
|
+
"release:major": "npm version major",
|
|
30
43
|
"prepublishOnly": "npm run build && npm test && npm run verify && n8n-node prerelease",
|
|
31
|
-
"live-check": "node scripts/live-check.js"
|
|
32
|
-
"verify": "node scripts/verify-package.js"
|
|
44
|
+
"live-check": "node scripts/live-check.js"
|
|
33
45
|
},
|
|
34
46
|
"files": [
|
|
35
47
|
"dist"
|