cloudcms-server 0.9.272 → 0.9.276

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.
@@ -211,7 +211,7 @@ exports = module.exports = function()
211
211
  contentStore.writeFile(filePath + ".cache", JSON.stringify(cacheInfo), function() {
212
212
  _end.call(res, data, encoding);
213
213
  });
214
- `` };
214
+ };
215
215
 
216
216
  callback();
217
217
  });
@@ -235,16 +235,16 @@ exports = module.exports = function()
235
235
  }
236
236
 
237
237
  // caching scenario
238
- _handleCacheRead(req, function (err, readStream) {
238
+ // _handleCacheRead(req, function (err, readStream) {
239
+ //
240
+ // if (!err && readStream)
241
+ // {
242
+ // return util.sendFile(res, readStream, function (err) {
243
+ // // done!
244
+ // });
245
+ // }
239
246
 
240
- if (!err && readStream)
241
- {
242
- return util.sendFile(res, readStream, function (err) {
243
- // done!
244
- });
245
- }
246
-
247
- _handleWrapCacheWriter(req, res, function(err) {
247
+ // _handleWrapCacheWriter(req, res, function(err) {
248
248
 
249
249
  // acquire the proxy handler
250
250
  var proxyTarget = req.gitanaConfig.baseURL;
@@ -261,8 +261,8 @@ exports = module.exports = function()
261
261
 
262
262
  proxyHandler(req, res);
263
263
  });
264
- });
265
- });
264
+ // });
265
+ //});
266
266
  }
267
267
  else
268
268
  {
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": "0.9.272",
9
+ "version": "0.9.276",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -33,8 +33,8 @@
33
33
  "consolidate": "^0.14.5",
34
34
  "cookie-parser": "^1.4.4",
35
35
  "debug": "^2.6.9",
36
- "dustjs-helpers": "^1.7.4",
37
- "dustjs-linkedin": "^3.0.1",
36
+ "dustjs-helpers": "1.7.4",
37
+ "dustjs-linkedin": "3.0.1",
38
38
  "errorhandler": "^1.5.1",
39
39
  "express": "^4.17.1",
40
40
  "express-session": "^1.17.3",
@@ -44,7 +44,6 @@
44
44
  "handlebars": "^4.4.2",
45
45
  "hbs": "^4.0.5",
46
46
  "helmet": "^4.6.0",
47
- "http-proxy": "file:./temp/http-proxy",
48
47
  "install": "^0.13.0",
49
48
  "ioredis": "4.28.5",
50
49
  "json5": "^1.0.1",
@@ -80,7 +79,7 @@
80
79
  "request": "^2.88.0",
81
80
  "request-param": "^1.0.1",
82
81
  "response-time": "^2.3.2",
83
- "semver": "^5.7.1",
82
+ "semver": "^7.3.7",
84
83
  "serve-favicon": "^2.5.0",
85
84
  "session-file-store": "^0.2.2",
86
85
  "sha1": "^1.1.1",
@@ -94,9 +93,9 @@
94
93
  "vm2": "^3.8.4",
95
94
  "watch": "^0.13.0",
96
95
  "winston": "^3.3.3",
97
- "eventemitter3": "^4.0.0",
96
+ "eventemitter3": "^4.0.7",
98
97
  "requires-port": "^1.0.0",
99
- "follow-redirects": "^1.0.0"
98
+ "follow-redirects": "^1.15.1"
100
99
  },
101
100
  "contributors": [
102
101
  {
@@ -17,25 +17,30 @@
17
17
  "follow-redirects": "^1.0.0"
18
18
  },
19
19
  "devDependencies": {
20
- "async": "^3.0.0",
21
- "auto-changelog": "^1.15.0",
20
+ "@types/follow-redirects": "^1.14.1",
21
+ "@types/node": "^18.0.0",
22
+ "@typescript-eslint/eslint-plugin": "^5.31.0",
23
+ "@typescript-eslint/parser": "^5.31.0",
24
+ "async": "^3.2.3",
22
25
  "concat-stream": "^2.0.0",
23
- "expect.js": "~0.3.1",
24
- "mocha": "^3.5.3",
25
- "nyc": "^14.0.0",
26
- "semver": "^5.0.3",
27
- "socket.io": "^2.1.0",
28
- "socket.io-client": "^2.1.0",
26
+ "eslint": "^8.21.0",
27
+ "eslint-config-prettier": "^8.5.0",
28
+ "prettier": "^2.7.1",
29
+ "semver": "^7.0.0",
30
+ "socket.io": "^4.5.1",
31
+ "socket.io-client": "^4.5.1",
29
32
  "sse": "0.0.8",
30
- "ws": "^3.0.0"
33
+ "typescript": "^4.8.2",
34
+ "vitest": "^0.20.3",
35
+ "ws": "^8.8.1"
31
36
  },
32
37
  "scripts": {
33
- "mocha": "mocha test/*-test.js",
34
- "test": "nyc --reporter=text --reporter=lcov npm run mocha",
35
- "version": "auto-changelog -p && git add CHANGELOG.md"
38
+ "format": "prettier --write ./lib",
39
+ "lint": "eslint --fix ./lib",
40
+ "test": "vitest run"
36
41
  },
37
42
  "engines": {
38
- "node": ">=8.0.0"
43
+ "node": ">=14.0.0"
39
44
  },
40
45
  "license": "MIT"
41
46
  }
@@ -12,8 +12,8 @@
12
12
  ],
13
13
  "main": "lib/index.js",
14
14
  "dependencies": {
15
- "eventemitter3": "^4.0.0",
16
- "follow-redirects": "^1.0.0",
15
+ "eventemitter3": "^4.0.7",
16
+ "follow-redirects": "^1.15.1",
17
17
  "requires-port": "^1.0.0"
18
18
  },
19
19
  "devDependencies": {
@@ -21,18 +21,18 @@
21
21
  "@types/node": "^18.0.0",
22
22
  "@typescript-eslint/eslint-plugin": "^5.31.0",
23
23
  "@typescript-eslint/parser": "^5.31.0",
24
- "async": "^3.0.0",
24
+ "async": "^3.2.3",
25
25
  "concat-stream": "^2.0.0",
26
26
  "eslint": "^8.21.0",
27
27
  "eslint-config-prettier": "^8.5.0",
28
28
  "prettier": "^2.7.1",
29
29
  "semver": "^7.0.0",
30
- "socket.io": "^4.0.0",
31
- "socket.io-client": "^4.0.0",
30
+ "socket.io": "^4.5.1",
31
+ "socket.io-client": "^4.5.1",
32
32
  "sse": "0.0.8",
33
33
  "typescript": "^4.8.2",
34
34
  "vitest": "^0.20.3",
35
- "ws": "^8.0.0"
35
+ "ws": "^8.8.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "npx tsc -p ./tsconfig.build.json",
@@ -2,7 +2,7 @@ var http = require("http");
2
2
  var https = require("https");
3
3
  var path = require("path");
4
4
 
5
- var httpProxy = require("http-proxy");
5
+ var httpProxy = require("../temp/http-proxy");
6
6
 
7
7
  var auth = require("./auth");
8
8
  var util = require("./util");
@@ -87,6 +87,7 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
87
87
  "agent": http.globalAgent,
88
88
  "xfwd": false,
89
89
  "proxyTimeout": process.defaultHttpTimeoutMs,
90
+ "timeout": process.defaultHttpTimeoutMs,
90
91
  //"changeOrigin": true
91
92
  "headers": {
92
93
  "host": proxyHost
@@ -102,12 +103,15 @@ var createProxyHandler = function(proxyTarget, pathPrefix)
102
103
  "agent": https.globalAgent,
103
104
  "xfwd": false,
104
105
  "proxyTimeout": process.defaultHttpTimeoutMs,
106
+ "timeout": process.defaultHttpTimeoutMs,
105
107
  "headers": {
106
108
  "host": proxyHost
107
109
  },
108
110
  "cookieDomainRewrite": true
109
111
  };
110
112
  }
113
+
114
+ console.log("Using proxy config: " + proxyConfig);
111
115
 
112
116
  // create proxy server instance
113
117
  var proxyServer = new httpProxy.createProxyServer(proxyConfig);