diff --git a/packages/node_modules/@node-red/registry/lib/registry.js b/packages/node_modules/@node-red/registry/lib/registry.js index 36a8d8d4f..1dba541e5 100644 --- a/packages/node_modules/@node-red/registry/lib/registry.js +++ b/packages/node_modules/@node-red/registry/lib/registry.js @@ -68,7 +68,8 @@ function filterNodeInfo(n) { r.plugins = n.plugins.map(p => { return { id: p.id, - type: p.type + type: p.type, + module: p.module } }); } diff --git a/test/unit/@node-red/registry/lib/plugins_spec.js b/test/unit/@node-red/registry/lib/plugins_spec.js index b1888b3c8..fa42f5c0c 100644 --- a/test/unit/@node-red/registry/lib/plugins_spec.js +++ b/test/unit/@node-red/registry/lib/plugins_spec.js @@ -115,38 +115,7 @@ test-module-config`) let pluginList = plugins.getPluginList(); JSON.stringify(pluginList).should.eql(JSON.stringify( - [ - { - "id": "test-module/test-set", - "enabled": true, - "local": false, - "user": false, - "plugins": [ - { - "type": "foo", - "id": "a-plugin", - "module": "test-module" - }, - { - "type": "bar", - "id": "a-plugin2", - "module": "test-module" - }, - { - "type": "foo", - "id": "a-plugin3", - "module": "test-module" - } - ] - }, - { - "id": "test-module/test-disabled-set", - "enabled": false, - "local": false, - "user": false, - "plugins": [] - } - ] + [{"id":"test-module/test-set","enabled":true,"local":false,"user":false,"plugins":[{"id":"a-plugin","type":"foo","module":"test-module"},{"id":"a-plugin2","type":"bar","module":"test-module"},{"id":"a-plugin3","type":"foo","module":"test-module"}]},{"id":"test-module/test-disabled-set","enabled":false,"local":false,"user":false,"plugins":[]}] )) }) })