Alexandre Alapetite
e55cbb3e3d
Fix bug in debug node due to msg.hasOwnProperty construct
...
`msg.hasOwnProperty("status")` might make the debug node crash/produce an error if the payload was created with `Object.create(null)`.
This is the case e.g. for `ini` (to parse INI files), an official NPM node:
4f289946b3/lib/ini.js (L63)
My Node-RED node `node-red-contrib-parser-ini`, which is using that library, was hit by this bug and I had to ship a workaround
fe6b1eb4b1/parser-ini.js (L14)
The `msg.hasOwnProperty("xxx")` construct should not be used since ECMAScript 5.1.
ESLint advises in the same direction https://eslint.org/docs/rules/no-prototype-builtins
This patch was produced using the following regex:
Search: `\b([\w.]+).hasOwnProperty\(`
Replace: `Object.prototype.hasOwnProperty.call($1, `
This could be applied more gobally if desired.
2022-02-03 02:01:22 +01:00
Nick O'Leary
b7bae18849
Update inner package dependency
2022-01-27 12:58:43 +00:00
Nick O'Leary
fbde247c72
Update node-red-admin dependency
2022-01-27 12:57:32 +00:00
Nick O'Leary
3a69af9034
Merge pull request #3383 from node-red/dev
...
Merge dev to master for 2.2.0
2022-01-27 12:50:45 +00:00
Nick O'Leary
5c87a6cb76
Update package readmes and licenses
2022-01-27 12:49:48 +00:00
Nick O'Leary
9c6bb434e8
Update contributing guide for new cla
2022-01-27 12:44:22 +00:00
Nick O'Leary
d1bd303dfa
Update version for 2.2.0
2022-01-27 10:13:28 +00:00
Nick O'Leary
3813c32454
Update marked to latest
2022-01-27 10:12:55 +00:00
Nick O'Leary
3b00a692ee
Update changelog
2022-01-27 10:12:06 +00:00
Nick O'Leary
3304ebe9d3
Merge pull request #3382 from node-red-hitachi/fix-subflow-update
...
fix opening/closing subflow template not to make subflow changed
2022-01-27 09:30:26 +00:00
Nick O'Leary
513120cbfe
Merge pull request #3381 from kazuhitoyokoi/dev-addjpn
...
Add Japanese translations for v2.2.0
2022-01-27 09:28:29 +00:00
Hiroyasu Nishiyama
b06049d5a3
fix opening/closing subflow template not to make subflow changed
2022-01-27 12:57:37 +09:00
Kazuhito Yokoi
0f50355deb
Add Japanese translations for v2.2.0
2022-01-27 11:14:24 +09:00
Nick O'Leary
bd6e35fea2
Merge branch 'dev' of github.com:node-red/node-red into dev
2022-01-26 17:46:47 +00:00
Nick O'Leary
a4fd63cd44
Merge pull request #3380 from Steve-Mcl/search-find-filenode
...
Pallet Label (if different to type) should be indexed for search
2022-01-26 17:00:47 +00:00
Steve-Mcl
fdc4219b68
palletLabel (if different) should be indexed
...
for search - fixes #3297
2022-01-26 16:14:34 +00:00
Nick O'Leary
5b428bb8e6
Merge pull request #3379 from node-red-hitachi/nr_node_path-support
...
add NR_NODE_PATH path support
2022-01-26 14:29:03 +00:00
Hiroyasu Nishiyama
c948ff88a5
add support of NR_NODE_PATH
2022-01-26 21:24:48 +09:00
Nick O'Leary
9b9a0d7060
Update dependencies
2022-01-26 12:20:45 +00:00
Nick O'Leary
16578e3677
Update changelog
2022-01-26 12:07:04 +00:00
Nick O'Leary
be7f84bc67
Merge pull request #3377 from Steve-Mcl/function-node-decs
...
Update `node` declarations in func.d.ts
2022-01-26 12:03:56 +00:00
Nick O'Leary
033d26f2cb
Merge pull request #3378 from node-red/tour-update
...
Update tour for 2.2.0
2022-01-26 12:03:40 +00:00
Nick O'Leary
4c0826b1c4
Update tour for 2.2.0
2022-01-26 12:00:30 +00:00
Steve-Mcl
c4cc204c94
Add static declerations to func ts. fixes #3376
2022-01-26 11:40:05 +00:00
Nick O'Leary
3747db18b1
Update changelog
2022-01-26 11:34:32 +00:00
Nick O'Leary
4173625fca
Merge pull request #3243 from node-red/delete-global-context
...
Clear context contents when switching projects
2022-01-26 11:28:34 +00:00
Nick O'Leary
0e7863a6fb
Merge pull request #3375 from node-red/settings-update
...
Add editorTheme.tours property to default settings file
2022-01-26 11:21:55 +00:00
Nick O'Leary
207ba00ad2
Add editorTheme.tours property to default settings file
2022-01-26 11:21:11 +00:00
Nick O'Leary
87c89586a5
Merge pull request #3356 from node-red-hitachi/node-prop-env-var
...
Add support for accessing node id & name as environment variable
2022-01-26 11:11:02 +00:00
Nick O'Leary
1cea1ced82
Merge pull request #3371 from node-red/node-alias
...
Add _path property to nodes and expose as node.path in Function node
2022-01-26 11:10:43 +00:00
Nick O'Leary
08732bac0f
Merge pull request #3374 from Steve-Mcl/mqtt-reconnect-fix
...
Mqtt reconnect fix
2022-01-26 11:03:20 +00:00
Nick O'Leary
283e8d3c08
Merge pull request #3373 from Steve-Mcl/merge-fix
...
bug: merge issue. fixes #3364
2022-01-26 11:01:35 +00:00
Nick O'Leary
42a7165596
Merge pull request #3372 from Steve-Mcl/use-paletteLabel-in-help
...
Use a nodes palette label in help tree
2022-01-26 11:00:53 +00:00
Hiroyasu Nishiyama
aa3f5001d5
additional update of test for NR_ prefix addition
2022-01-26 10:52:41 +09:00
Hiroyasu Nishiyama
56580c4005
add test for NR_ prefix addition
2022-01-26 09:26:05 +09:00
Hiroyasu Nishiyama
ba304c9651
add NR_ prefix to special environment variables
2022-01-26 09:25:30 +09:00
Nick O'Leary
703c5adba7
Add _path property to nodes and expose as node.path in Function node
2022-01-25 21:32:28 +00:00
Steve-Mcl
8b85f6e0a6
ensure help search is case insensitive
2022-01-25 18:27:47 +00:00
Nick O'Leary
c136d22382
Merge pull request #3370 from node-red/fix-vertical-align-subflow-port
...
Fix vertical align subflow port
2022-01-25 17:09:05 +00:00
Nick O'Leary
42358419ad
Fix vertical align of subflow port labels
2022-01-25 17:08:04 +00:00
Nick O'Leary
ab2ced5c37
Merge pull request #3352 from ralphwetzel/dev
...
Subflow: Add labels to OUTPUT nodes
2022-01-25 17:07:12 +00:00
Steve-Mcl
faf31be0dc
Ensure label is shown in help tree
2022-01-25 16:30:30 +00:00
Nick O'Leary
ff4c67d068
Merge pull request #3353 from kazuhitoyokoi/dev-addjpn
...
Add Japanese translations for v2.2.0-beta.1
2022-01-25 16:02:29 +00:00
Steve-Mcl
10b133db02
bug: merge issue. fixes #3364
2022-01-25 14:47:36 +00:00
Nick O'Leary
f0bf607b43
Merge pull request #3359 from node-red-hitachi/fix-action-list-i18n
...
fix to make actions list i18n ready and Japanese translation
2022-01-25 14:47:18 +00:00
Steve-Mcl
8948ca5323
Merge branch 'dev' into mqtt-reconnect-fix
2022-01-25 12:32:49 +00:00
Steve-Mcl
9c3be51fe9
Improve MQTT broker disconnect situation
...
* Ensure topic is sane to prevent error 129
* Ensure a log entry is made
* Update node status
2022-01-25 12:29:51 +00:00
Hiroyasu Nishiyama
2da9161f29
Update packages/node_modules/@node-red/editor-client/src/js/ui/actions.js
...
Oh, I'm sorry about this.
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2022-01-25 21:21:39 +09:00
Hiroyasu Nishiyama
983dad5b53
add test for env var access of GROUP_ID & GROUP_NAME
2022-01-25 21:07:38 +09:00
Hiroyasu Nishiyama
8b23d341b4
add support for env var access of GROUP_ID & GROUP_NAME
2022-01-25 21:04:43 +09:00