Commit Graph

68 Commits

Author SHA1 Message Date
Nick O'Leary 20dbf7c5f4
Merge pull request #3346 from node-red/fix-stack-capture
Handle reporting error location when stack is truncated
2022-01-12 22:54:25 +00:00
Nick O'Leary 82ae2e7118
Handle reporting error location when stack is truncated
Fixes #3292
2022-01-12 22:07:44 +00:00
Nick O'Leary 0cf9b5f3df
Improve jsonata legacy mode detection regex
Fixes #3290
2022-01-12 21:56:38 +00:00
Nick O'Leary 33af5cd7c6
Apply i18n namespace fix to runtime component 2021-12-01 15:15:08 +00:00
Hiroyasu Nishiyama c331da7323 fix env var access using $env for groups 2021-11-27 19:29:57 +09:00
Nick O'Leary b6570a16b8
Handle RegExp types in Debug sidebar
Fixes #3245
2021-11-08 20:24:10 +00:00
Nick O'Leary 8042fe4e2b
Merge branch 'master' into dev 2021-10-06 09:12:16 +01:00
Nick O'Leary a27ce375db
Update package dependencies 2021-10-06 09:11:20 +01:00
Dave Conway-Jones 2fe78cf971
Update packages/node_modules/@node-red/util/lib/i18n.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-09-25 14:51:47 +01:00
Dave Conway-Jones bbf066f030
Fixes to fs promises so that electron version runs 2021-09-10 08:33:07 +01:00
Hiroyasu Nishiyama d78e5932f9 update according to PR comments 2021-08-30 08:00:58 +09:00
Hiroyasu Nishiyama 6aecc3915c add support of environtment variable for tab & group 2021-08-19 21:15:13 +09:00
Nick O'Leary 48ac50e1c9
Add support for Map/Set property types on Debug 2021-06-29 11:09:30 +01:00
Nick O'Leary 8bbed2c831
Change node id generation to give fixed length values without '.' 2021-05-18 11:32:17 +01:00
Nick O'Leary 79a142fb19
Fix error log in runtime hooks module 2021-05-13 13:40:42 +01:00
Nick O'Leary 4ff991764e
Updates to encode/decode message when passed over debug comms link 2021-05-13 13:38:34 +01:00
Nick O'Leary f7210effec
Rework hooks structure to be a linkedlist
Allows for safe removal of hooks whilst they are being invoked
2021-04-26 21:14:42 +01:00
Nick O'Leary 22df59e229
Update hooks api to support promise api 2021-04-15 15:12:35 +01:00
Nick O'Leary ed351eee54
Move hooks to util package 2021-04-15 15:12:30 +01:00
Nick O'Leary 3a0074d96e
Merge branch 'master' into dev 2021-01-27 23:28:19 +00:00
Nick O'Leary 438d51d26e
Allow nested msg properties in msg/flow/global expressions (#2822)
* Allow nested msg properties in msg/flow/global expressions

* Remove typo in RED.utils

Co-authored-by: Nick O'Leary <knolleary@users.noreply.github.com>
2021-01-27 20:32:52 +00:00
Nick O'Leary a0f736bb88
Validate user-provided language parameter before passing to i18n 2021-01-25 17:06:27 +00:00
fellinga b36e7e172e add settings to init 2020-12-27 14:44:32 +01:00
fellinga 4943bde3d4 add optional lang select 2020-12-27 12:59:12 +01:00
Nick O'Leary 6fb96fa3c1
Move exec and events components to util module
The exec and events components are common components that
are used by both runtime and registry. It makes sense to
move them into the util package.

This also adds some docs to the registry module
2020-12-07 11:49:01 +00:00
Nick O'Leary 5992ed1fab
Fully remove when.js dependency 2020-12-07 11:49:01 +00:00
Nick O'Leary 545dda166f
Support bigint types in Debug sidebar 2020-11-17 20:50:29 +00:00
Nick O'Leary b595e84c30
Update jsdoc of util.getMessageProperty 2020-09-28 14:26:20 +01:00
Nick O'Leary 6e5f115bd5
Improve jsdoc of util.getObjectProperty to clarify thrown error
See #2703
2020-09-28 14:23:23 +01:00
Nick O'Leary baffe4861c
Handle undefined value in Debug view of Array and Object
Fixes #2696
2020-09-07 21:05:27 +01:00
Nick O'Leary 4b54a81dfd
Add test cases for setMessageProperty with non-object properties 2020-06-01 13:13:14 +01:00
Nick O'Leary 132254b3a5
Merge branch 'dev' into pr_2439 2020-06-01 11:56:19 +01:00
Nick O'Leary e9104df047
Merge branch 'dev' into pr_2583 2020-06-01 10:20:40 +01:00
dxdc fdda29f048
Support for moment-timezone 2020-05-28 01:20:10 -05:00
dxdc effff3405b
Add support for moment in jsonata expressions, based on elasticio/jsonata-moment 2020-05-27 23:26:57 -05:00
Nick O'Leary a3b0448f53
Handle clone of null in utils
Fixes #2536
2020-04-24 13:54:49 +01:00
Dave Conway-Jones 3f1bb6771a
Dont try and clone properties of a null object 2020-04-21 11:14:11 +01:00
Nick O'Leary e0f3e94e2b
Merge branch 'dev' into master 2020-04-01 20:22:25 +01:00
Nick O'Leary 1018c0e8a5
Handle false values in $env() properly
Fixes 2517
2020-03-27 09:05:58 +00:00
tilleul b78ef006ec
Support for context stores using JSONata and evaluateNodeProperty()
The function prepareJSONataExpression() does not take context store into account.
This causes problems when using typedInput fields and getting the value of a property based on its type using evaluateNodeProperty().
2020-03-09 11:22:20 +01:00
Nick O'Leary 0f1ca1c7cf
cloneMessage should handle undefined without throwing err
Fixes #2399
2020-02-06 10:05:32 +00:00
Dave Conway-Jones d5d9ac5c76
let setMessageProperty return success flag
so calling node can warn if operation tries to overwrite primitive type
2020-01-26 18:20:25 +00:00
Amo DelBello d017dd75cd Remove 'clone' from util 2019-11-29 20:15:56 -07:00
Amo DelBello 021df83c3f Replace 'clone' with 'lodash.clonedeep' 2019-11-29 18:50:30 -07:00
Nick O'Leary 64580237d5
Remove rogue debug 2019-11-21 11:08:15 +00:00
Nick O'Leary 3088115aba
Avoid unnecessary i18n catalog load if base lng provided 2019-11-21 10:42:40 +00:00
Nick O'Leary fc93e502b8
Merge pull request #2376 from tt92/master
I18n - language fallback behaviour
2019-11-21 10:38:21 +00:00
tot92 683c6a748e switched loading order 2019-11-18 20:45:48 +01:00
tot92 4d6828ec14 typo 2019-11-09 22:09:02 +01:00
tot92 dae1d6057e fixed i18n language fallback behaviour 2019-11-09 22:07:06 +01:00