lunel-cli 0.1.28 → 0.1.29

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1539,6 +1539,19 @@ async function processMessage(message) {
1539
1539
  error: { code: "EPROTO", message: `Unsupported protocol version: ${v}` },
1540
1540
  };
1541
1541
  }
1542
+ // Validate required fields
1543
+ if (!ns || !action) {
1544
+ console.warn("[router] Ignoring message with missing ns/action:", JSON.stringify(message).substring(0, 300));
1545
+ return {
1546
+ v: 1,
1547
+ id,
1548
+ ns,
1549
+ action,
1550
+ ok: false,
1551
+ payload: {},
1552
+ error: { code: "EINVAL", message: `Missing namespace or action` },
1553
+ };
1554
+ }
1542
1555
  try {
1543
1556
  let result;
1544
1557
  switch (ns) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lunel-cli",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "author": [
5
5
  {
6
6
  "name": "Soham Bharambe",