@node-red/editor-api
Advanced tools
Comparing version 0.20.0-alpha.0 to 0.20.0-beta.1
@@ -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; | ||
} | ||
} |
@@ -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", |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
104127
2542
0
1
+ Added@node-red/editor-client@0.20.0-beta.1(transitive)
+ Added@node-red/util@0.20.0-beta.1(transitive)
+ Addedcors@2.8.5(transitive)
+ Addedi18next@12.1.0(transitive)
+ Addedjsonata@1.5.4(transitive)
+ Addedmime@2.4.0(transitive)
+ Addedmustache@3.0.1(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@node-red/editor-client@4.0.8(transitive)
- Removed@node-red/util@4.0.8(transitive)
- Removedcors@2.8.4(transitive)
- Removedfs-extra@11.2.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedi18next@21.10.0(transitive)
- Removedjsonata@2.0.5(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removedlodash.clonedeep@4.5.0(transitive)
- Removedmoment@2.30.1(transitive)
- Removedmoment-timezone@0.5.46(transitive)
- Removedmustache@2.3.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removeduniversalify@2.0.1(transitive)
Updated@node-red/util@0.20.0-beta.1
Updatedcors@2.8.5
Updatedmime@2.4.0
Updatedmustache@3.0.1