cloudcms-server 3.2.299 → 3.2.302

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/index.js CHANGED
@@ -7,8 +7,8 @@ var async = require("async");
7
7
 
8
8
  var util = require("./util/util");
9
9
 
10
- var http = require("http");
11
- var https = require("https");
10
+ var http = require('http');
11
+ var https = require('https');
12
12
 
13
13
  var cluster = require("cluster");
14
14
 
@@ -11,8 +11,8 @@ exports = module.exports = function()
11
11
  {
12
12
  var logger = logFactory("AWARENESS");
13
13
  var provider = null;
14
- var REAP_FREQUENCY_MS = 3000; // three seconds
15
- var REAP_MAX_AGE_MS = 5000; // five seconds
14
+ var REAP_FREQUENCY_MS = 5000; // five seconds
15
+ var REAP_MAX_AGE_MS = 120000; // two minutes
16
16
 
17
17
  var pluginPaths = ["./plugins/editorial"];
18
18
  var plugins = {};
@@ -382,6 +382,7 @@ exports = module.exports = function()
382
382
 
383
383
  if (!err && success)
384
384
  {
385
+ console.log("REAPING, channel: " + channelId + ", user: " + userId);
385
386
  io.sockets.in(channelId).emit("lockReleased", channelId, userId);
386
387
  }
387
388
 
@@ -462,13 +462,7 @@ exports = module.exports = function()
462
462
  }
463
463
 
464
464
  // get the cloud cms application
465
- console.log("RETRIEVE APP CONFIG START");
466
-
467
465
  retrieveConfigApplication(req, configuration, function(err, application) {
468
- console.log("RETRIEVE APP CONFIG DONE: " + err);
469
- if (err) {
470
- console.log("RET ERR: " + JSON.stringify(err, null, 2));
471
- }
472
466
 
473
467
  // find any settings for the given user or the project (if provided)
474
468
  var q = {
@@ -528,9 +522,6 @@ exports = module.exports = function()
528
522
  }
529
523
 
530
524
  var uiConfigIds = [];
531
-
532
- console.log("APP ID: " + application._doc);
533
- console.log("SETTINGS QUERY: " + JSON.stringify(q, null, 2));
534
525
 
535
526
  // find the settings for the given user id
536
527
  var settingsList = [];
@@ -542,8 +533,6 @@ exports = module.exports = function()
542
533
  settingsList.push(this);
543
534
  }
544
535
  }).then(function() {
545
-
546
- console.log("SETTINGS DONE");
547
536
 
548
537
  if (projectId)
549
538
  {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "cloudcms-server",
8
8
  "description": "Cloud CMS Application Server Module",
9
- "version": "3.2.299",
9
+ "version": "3.2.302",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -43,7 +43,7 @@
43
43
  "express-useragent": "^1.0.15",
44
44
  "extend-with-super": "^2.0.0",
45
45
  "fast-proxy": "^2.2.0",
46
- "gitana": "^1.0.324",
46
+ "gitana": "^1.0.325",
47
47
  "handlebars": "^4.4.2",
48
48
  "hbs": "^4.0.5",
49
49
  "helmet": "^4.6.0",
@@ -76,9 +76,9 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
76
76
  {
77
77
  const { proxy, close } = require('fast-proxy')({
78
78
  base: proxyTarget,
79
- cacheURLs: 500,
80
- undici: true
81
- //http2: true
79
+ cacheURLs: 0,
80
+ //http2: true,
81
+ //undici: true
82
82
  });
83
83
 
84
84
  var proxyOptions = {};