mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'dev' into function-modules
This commit is contained in:
@@ -70,6 +70,17 @@ function createNodeApi(node) {
|
||||
})
|
||||
}
|
||||
},
|
||||
plugins: {
|
||||
registerPlugin: function(id,definition) {
|
||||
return runtime.plugins.registerPlugin(node.id,id,definition);
|
||||
},
|
||||
get: function(id) {
|
||||
return runtime.plugins.getPlugin(id);
|
||||
},
|
||||
getByType: function(type) {
|
||||
return runtime.plugins.getPluginsByType(type);
|
||||
}
|
||||
},
|
||||
library: {
|
||||
register: function(type) {
|
||||
return runtime.library.register(node.id,type);
|
||||
|
Reference in New Issue
Block a user