Nick O'Leary
95a51aafdc
Add path property to debug messages
...
Fixes #2358
This property can be used to identify the full path to the node that
logged a given message. If the node is inside a subflow (and maybe
nested many levels deep), this path can be used to help find the
node, rather than just the top-level subflow instance node.
A side-effect of this change is the Debug sidebar is now able to
show the message tools for a message coming from a deeply nested
subflow
2020-01-17 16:56:30 +00:00
TJKoury
cb8deab1f9
Update packages/node_modules/@node-red/runtime/lib/nodes/Node.js
...
Co-Authored-By: Nick O'Leary <nick.oleary@gmail.com>
2019-10-17 07:42:11 -04:00
TJKoury
e5c27d0236
Remove msg
...
`msg` not defined in scope.
2019-10-16 20:00:11 -04:00
Nick O'Leary
c1c694035d
Allow node.status() to be passed number/bool types
...
Adds to the existing support for string types. Also
adds unit tests for all three cases
2019-10-14 13:06:59 +01:00
Nick O'Leary
547e7a1b21
Allow node emitted events to have multiple arguments
...
This is fixing a regression introduced in 1.0 where a custom
`Node.emit` function was added that could only handle a single
argument.
2019-10-10 16:35:12 +01:00
Nick O'Leary
b734097d16
Merge pull request #2227 from node-red/node-done
...
Adds Done callback to Input event handler
2019-08-21 11:15:00 +01:00
Nick O'Leary
e5255b0c7c
Ensure 2nd arg to node.error is an object
...
Fixes #2228
2019-08-12 14:36:26 +01:00
Nick O'Leary
fb9828badc
Update Function node to add node.done
2019-08-06 14:27:56 +01:00
Nick O'Leary
f52289b2c3
Add send to input handler signature
2019-07-09 11:40:55 +01:00
Nick O'Leary
3b5ea0f15f
Add node done API
2019-07-08 23:23:33 +01:00
Dave Conway-Jones
0c13603185
let status be simple text if wanted
2019-04-07 16:23:17 +01:00
Nick O'Leary
85de227003
Make Node._flow a writeable property
...
This is needed so an existing node constructor that does:
Object.assign(this,config);
works when it tries to replace this._flow with config._flow.
2019-01-30 10:50:29 +00:00
Nick O'Leary
54c863d48f
Make Node._flow non-enumerable to avoid circular refs
2019-01-21 14:19:19 +00:00
Nick O'Leary
490903ca25
Tidy up when usage in Flow and Node
2019-01-17 13:18:26 +00:00
Nick O'Leary
81f4e0de56
Refactor Subflow logic into own class
2019-01-16 16:27:19 +00:00
Nick O'Leary
e57d8ba0ef
pull out editor-client and editor-api
2018-08-17 22:10:54 +01:00