Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@node-red/editor-api

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-red/editor-api - npm Package Compare versions

Comparing version 0.20.0-alpha.0 to 0.20.0-beta.1

15

lib/admin/context.js

@@ -40,3 +40,18 @@ /**

})
},
delete: function(req,res) {
var opts = {
user: req.user,
scope: req.params.scope,
id: req.params.id,
key: req.params[0],
store: req.query['store']
}
runtimeAPI.context.delete(opts).then(function(result) {
res.status(204).end();
}).catch(function(err) {
apiUtils.rejectHandler(req,res,err);
})
}
}

@@ -65,4 +65,9 @@ /**

// adminApp.delete("/context/:scope(global)",needsPermission("context.write"),context.delete,apiUtil.errorHandler);
adminApp.delete("/context/:scope(global)/*",needsPermission("context.write"),context.delete,apiUtil.errorHandler);
// adminApp.delete("/context/:scope(node|flow)/:id",needsPermission("context.write"),context.delete,apiUtil.errorHandler);
adminApp.delete("/context/:scope(node|flow)/:id/*",needsPermission("context.write"),context.delete,apiUtil.errorHandler);
return adminApp;
}
}

2

lib/editor/ui.js

@@ -60,3 +60,3 @@ /**

if (data) {
var contentType = mime.lookup(icon);
var contentType = mime.getType(icon);
res.set("Content-Type", contentType);

@@ -63,0 +63,0 @@ res.send(data);

@@ -31,3 +31,3 @@ /**

function init(_server,settings,storage,runtimeAPI) {
function init(settings,_server,storage,runtimeAPI) {
server = _server;

@@ -104,4 +104,3 @@ if (settings.httpAdminRoot !== false) {

},
get adminApp() { return adminApp; },
get server() { return server; }
get httpAdmin() { return adminApp; }
};
{
"name": "@node-red/editor-api",
"version": "0.20.0-alpha.0",
"version": "0.20.0-beta.1",
"license": "Apache-2.0",

@@ -11,17 +11,21 @@ "main": "./lib/index.js",

"contributors": [
{ "name": "Nick O'Leary" },
{ "name": "Dave Conway-Jones"}
{
"name": "Nick O'Leary"
},
{
"name": "Dave Conway-Jones"
}
],
"dependencies": {
"@node-red/util": "*",
"@node-red/editor-client": "*",
"@node-red/util": "0.20.0-beta.1",
"@node-red/editor-client": "0.20.0-beta.1",
"bcryptjs": "2.4.3",
"body-parser": "1.18.3",
"clone": "2.1.2",
"cors": "2.8.4",
"cors": "2.8.5",
"express-session": "1.15.6",
"express": "4.16.4",
"memorystore": "1.6.0",
"mime": "1.4.1",
"mustache": "2.3.2",
"mime": "2.4.0",
"mustache": "3.0.1",
"oauth2orize": "1.11.0",

@@ -28,0 +32,0 @@ "passport-http-bearer": "1.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc