Commit Graph

102 Commits

Author SHA1 Message Date
Ben Hardill ca44af0625
Prevent crash when coreNodesDir is empty (#2831)
* Fix for HTTP-Request not sending body for GET

Background in SO question:
https://stackoverflow.com/q/60356824/504554

* Prevent crash when coreNodesDir points to empty dir

This should prevent a crash when you point to an empty core nodes
directory.

* Matching upstream master
2021-01-25 10:56:23 +00:00
Nick O'Leary 9f71dbb006
Fixup merge 2021-01-18 16:25:41 +00:00
Nick O'Leary a006b52052
Initial plugin runtime api implementation 2021-01-18 16:25:40 +00:00
Hiroyasu Nishiyama d51aefa156 initial support for npm module installation 2021-01-11 19:32:16 +09:00
Nick O'Leary d5cc5b2574
Use subflow.info for help text and meta.type for node type 2021-01-07 15:34:27 +00:00
Nick O'Leary da96c85d32
Handle subflow modules with their own npm dependencies 2021-01-07 11:26:20 +00:00
Nick O'Leary 9a660f3fe9
Support npm subflow modules 2021-01-07 11:10:33 +00:00
Nick O'Leary 8a87f93741
Use npm info to check pending install version 2021-01-06 20:03:22 +00:00
Nick O'Leary af19536222
Better logging when deprecated editorTheme.palette.* settings used 2021-01-06 17:36:59 +00:00
Nick O'Leary aacb92a7ae
Implement allow/denyList when loading/installing modules 2020-12-27 12:49:17 +00:00
Nick O'Leary fc459be531
Deprecate editorTheme.palette.editable for externalModules.palette.allowInstall
Also deprecates editorTheme.palette.editable for externalModules.palette.allowUpload
2020-12-23 23:29:07 +00:00
Nick O'Leary 3151502a3f
Deprecate autoInstallModules for externalModules.autoInstall 2020-12-23 22:05:58 +00:00
Nick O'Leary fca21ac126
Rename paletteEditorEnabled to installerEnabled 2020-12-07 11:49:01 +00: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 3999690062
Support Windows paths when installing tarball by path name
Fixes #2769
2020-11-25 21:04:24 +00:00
Dave Conway-Jones a58f4c2ec2
remove " from npm install prefix option
to fix npm 7
2020-11-05 09:19:47 +00:00
Nick O'Leary ff0be73b1f
Migrate to nyc instead of istanbul for code coverage 2020-10-19 21:10:34 +01:00
Nick O'Leary bdd736315a
Add RED.hooks engine 2020-09-29 12:19:27 +01:00
Nick O'Leary a33cf6b532
Merge branch 'master' into dev 2020-09-25 11:53:37 +01:00
t.kawamorita 785561a0cc fix getModuleFiles function 2020-09-25 11:58:03 +09:00
Nick O'Leary 2f2a6367c2
Merge pull request #2684 from node-red/skip-html
Avoid loading node html if disableEditor set
2020-09-03 15:02:09 +01:00
Nick O'Leary 33855bcb8b
Skip loading node html if disableEditor set 2020-08-14 00:20:44 +01:00
Nick O'Leary 6f1ed76b4c
Add support for file upload in /nodes api 2020-08-13 15:54:54 +01:00
Nick O'Leary b6b3ceef4d
Add some proper validation of module/url properties in install api 2020-06-03 10:45:28 +01:00
Dave Conway-Jones cbf1afc9fe
turn off installer funding messages 2020-05-31 11:21:53 +01:00
Hiroyasu Nishiyama 36bf2a3c38 add support for examples of core nodes 2020-02-03 12:59:12 +09:00
KAZUHIRO ITO ff96773295 Add node installation from other than public site 2019-11-11 18:25:36 +09:00
Nick O'Leary f1855174f0
Merge branch 'dev' into pr_2165 2019-07-10 09:30:48 +01:00
Dave Conway-Jones c4f4115bcb
better handle example file at any depth 2019-06-29 01:16:02 +01:00
Dave Conway-Jones d918bb568c
Ignore empty examples directories (don't add to import menu) 2019-06-23 12:09:43 +01:00
Nick O'Leary d623848c87
Update all node icons to SVG
When listing icons provided by a module, if there is a png and svg
with the same name, only the svg will be listed.

If a node asks for a png icon which is not known, but there is a
corresponding svg, that will be used instead.
2019-06-21 12:36:20 +01:00
Dave Conway-Jones 877260a243
Remove pi gpi, twitter, email and feedparser nodes from core 2019-05-17 14:08:51 +01:00
Nick O'Leary b581e33611
Update runtime apis to support multiple libraries 2019-04-25 11:32:09 +01:00
Dave Conway-Jones 3b11195caa
Add --no-update-notifier flag to npm calls to speedup processing. 2019-03-07 09:03:25 +00:00
Nick O'Leary a046b357da
Tidy up registry/loader api used by unit tests
Fixes #2073
2019-03-05 13:25:44 +00:00
Nick O'Leary c3b9982c44
Add --no-audit flag to npm commands to reduce overhead 2019-03-05 10:17:30 +00:00
Nick O'Leary e0bb03a53f
More api documentation updates 2019-01-28 14:40:42 +00:00
Nick O'Leary 19eb8e9a6d
Update palette manager properly when module updated 2019-01-07 14:54:35 +00:00
Hiroyasu Nishiyama cc7e3b0c26 fix failure of RED.require 2018-12-21 14:39:51 +09:00
Nick O'Leary fd20cd524e
Add senitment and tail nodes to deprecated list
Partof #1904
2018-12-07 11:25:09 +00:00
Nick O'Leary d9aadf9d98
Merge pull request #1979 from node-red/better-npm-check
refuse to enable palette if npm too old
2018-12-05 14:52:28 +00:00
Nick O'Leary ee47646cf7
Fix up unit tests 2018-12-04 15:59:43 +00:00
Nick O'Leary 0b5e4f2dd7
Documentation updates for node-red and runtime modules 2018-11-30 23:01:09 +00:00
Dave Conway-Jones 514e31aef9
refuse to enable palette if npm too old 2018-11-14 18:29:27 +00:00
Nick O'Leary b2516117f5
Add event log to editor
Shows output from git pull/push and npm install in the editor
2018-10-18 23:49:47 +01:00
Nick O'Leary d6211af5bd
Cache node locales by language 2018-09-28 16:58:06 +01:00
Nick O'Leary ef114e31c2
Look for core-node language files in the right location 2018-09-28 16:48:25 +01:00
Nick O'Leary 51373f59e2
Merge branch 'dev' into repackage 2018-09-04 11:41:03 +01:00
Nick O'Leary 18b5b4901f
Merge branch 'dev' into repackage 2018-08-31 21:18:23 +01:00
Nick O'Leary 546f07156f
Move node locales and tidy up package.json files 2018-08-20 20:31:29 +01:00
Nick O'Leary e57d8ba0ef
pull out editor-client and editor-api 2018-08-17 22:10:54 +01:00