node-red/packages/node_modules/@node-red/nodes
Dennis Bosmans 96bef841a0 fix: prevent uncaught exceptions in core node event handlers
Added try-catch blocks and null checks to event handlers in core nodes
to prevent uncaught exceptions from crashing the Node-RED runtime.

Changes per node:

**TCP (31-tcpin.js)**
- Wrapped all `on('data')` handlers in try-catch (TcpIn client/server, TcpGet)

**UDP (32-udp.js)**
- Wrapped `on('message')` handler in try-catch

**Exec (90-exec.js)**
- Wrapped stdout/stderr `on('data')` handlers in try-catch

**WebSocket (22-websocket.js)**
- Wrapped send() loop in handleEvent() with try-catch

**MQTT (10-mqtt.js)**
- Added null check for packet parameter in subscriptionHandler()
- Wrapped subscription handler callback in try-catch
- Added null check for mpacket.properties

Without these protections, malformed data or unexpected errors in async
event handlers could cause uncaught exceptions that crash the entire
Node-RED process.
2026-01-16 22:22:11 +01:00
..
core fix: prevent uncaught exceptions in core node event handlers 2026-01-16 22:22:11 +01:00
examples Merge pull request #4854 from kazuhitoyokoi/master-fixexample 2024-09-17 13:49:05 +01:00
icons Add svg icons for nodes 2023-08-16 19:21:31 +09:00
locales i18n(NodeRed) update ES translation files to latest code base 2025-10-09 17:12:38 +02:00
.npmignore Add pack-modules grunt task 2018-10-25 11:18:13 +01:00
99-sample.html.demo Change icon path from png to svg 2022-05-05 20:38:55 +09:00
99-sample.js.demo WIP: move all the code 2018-08-04 22:23:06 +01:00
LICENSE Update package readmes and licenses 2022-01-27 12:49:48 +00:00
README.md Add README files to each package 2018-08-21 13:43:11 +01:00
index.js pull out editor-client and editor-api 2018-08-17 22:10:54 +01:00
package.json Bump for 4.1.3 2026-01-07 16:17:17 +00:00

README.md

@node-red/nodes

Node-RED core nodes module.

This provides all of the core Node-RED nodes.

Source

The main Node-RED modules are maintained as a monorepo on GitHub.