@node-red/editor-api 2.1.6 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright JS Foundation and other contributors, http://js.foundation
1
+ Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2
2
 
3
3
  Apache License
4
4
  Version 2.0, January 2004
@@ -122,6 +122,7 @@ module.exports = {
122
122
  }
123
123
 
124
124
  if (req.body.active) {
125
+ opts.clearContext = req.body.hasOwnProperty('clearContext')?req.body.clearContext:true
125
126
  runtimeAPI.projects.setActiveProject(opts).then(function() {
126
127
  listProjects(req,res);
127
128
  }).catch(function(err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/editor-api",
3
- "version": "2.1.6",
3
+ "version": "2.2.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./lib/index.js",
6
6
  "repository": {
@@ -16,23 +16,23 @@
16
16
  }
17
17
  ],
18
18
  "dependencies": {
19
- "@node-red/util": "2.1.6",
20
- "@node-red/editor-client": "2.1.6",
19
+ "@node-red/util": "2.2.2",
20
+ "@node-red/editor-client": "2.2.2",
21
21
  "bcryptjs": "2.4.3",
22
22
  "body-parser": "1.19.1",
23
23
  "clone": "2.1.2",
24
24
  "cors": "2.8.5",
25
25
  "express-session": "1.17.2",
26
26
  "express": "4.17.2",
27
- "memorystore": "1.6.6",
28
- "mime": "2.5.2",
29
- "multer": "1.4.3",
27
+ "memorystore": "1.6.7",
28
+ "mime": "3.0.0",
29
+ "multer": "1.4.4",
30
30
  "mustache": "4.2.0",
31
31
  "oauth2orize": "1.11.1",
32
32
  "passport-http-bearer": "1.0.1",
33
33
  "passport-oauth2-client-password": "0.1.2",
34
34
  "passport": "0.5.2",
35
- "ws": "7.5.1"
35
+ "ws": "7.5.6"
36
36
  },
37
37
  "optionalDependencies": {
38
38
  "bcrypt": "5.0.1"