@node-red/editor-api
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -103,3 +103,6 @@ /** | ||
var urlPrefix = (settings.httpAdminRoot==='/')?"":settings.httpAdminRoot; | ||
var urlPrefix = (settings.httpAdminRoot||"").replace(/\/$/,""); | ||
if (urlPrefix.length > 0) { | ||
urlPrefix += "/"; | ||
} | ||
response = { | ||
@@ -106,0 +109,0 @@ "type":"strategy", |
@@ -91,3 +91,3 @@ /** | ||
locales.init(runtimeAPI); | ||
editorApp.get(/locales\/(.+)\/?$/,locales.get,apiUtil.errorHandler); | ||
editorApp.get(/^\/locales\/(.+)\/?$/,locales.get,apiUtil.errorHandler); | ||
@@ -97,4 +97,4 @@ // Library | ||
library.init(runtimeAPI); | ||
editorApp.get(/library\/([^\/]+)\/([^\/]+)(?:$|\/(.*))/,needsPermission("library.read"),library.getEntry); | ||
editorApp.post(/library\/([^\/]+)\/([^\/]+)\/(.*)/,needsPermission("library.write"),library.saveEntry); | ||
editorApp.get(/^\/library\/([^\/]+)\/([^\/]+)(?:$|\/(.*))/,needsPermission("library.read"),library.getEntry); | ||
editorApp.post(/^\/library\/([^\/]+)\/([^\/]+)\/(.*)/,needsPermission("library.write"),library.saveEntry); | ||
@@ -101,0 +101,0 @@ |
{ | ||
"name": "@node-red/editor-api", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@node-red/util": "1.0.3", | ||
"@node-red/editor-client": "1.0.3", | ||
"@node-red/util": "1.0.4", | ||
"@node-red/editor-client": "1.0.4", | ||
"bcryptjs": "2.4.3", | ||
@@ -28,9 +28,9 @@ "body-parser": "1.19.0", | ||
"express": "4.17.1", | ||
"memorystore": "1.6.1", | ||
"memorystore": "1.6.2", | ||
"mime": "2.4.4", | ||
"mustache": "3.0.2", | ||
"mustache": "4.0.0", | ||
"oauth2orize": "1.11.0", | ||
"passport-http-bearer": "1.0.1", | ||
"passport-oauth2-client-password": "0.1.2", | ||
"passport": "0.4.0", | ||
"passport": "0.4.1", | ||
"when": "3.7.8", | ||
@@ -37,0 +37,0 @@ "ws": "6.2.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110290
2685
+ Added@node-red/editor-client@1.0.4(transitive)
+ Added@node-red/util@1.0.4(transitive)
+ Addedjsonata@1.8.1(transitive)
+ Addedmemorystore@1.6.2(transitive)
+ Addedmustache@4.0.0(transitive)
+ Addedpassport@0.4.1(transitive)
- Removed@node-red/editor-client@1.0.3(transitive)
- Removed@node-red/util@1.0.3(transitive)
- Removedjsonata@1.7.0(transitive)
- Removedmemorystore@1.6.1(transitive)
- Removedmustache@3.0.2(transitive)
- Removedpassport@0.4.0(transitive)
Updated@node-red/util@1.0.4
Updatedmemorystore@1.6.2
Updatedmustache@4.0.0
Updatedpassport@0.4.1