cloudcms-server 0.9.270 → 0.9.274

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.
Files changed (45) hide show
  1. package/middleware/proxy/proxy.js +5 -9
  2. package/package.json +5 -3
  3. package/temp/http-proxy/.auto-changelog +6 -0
  4. package/temp/http-proxy/.gitattributes +1 -0
  5. package/temp/http-proxy/CHANGELOG.md +1872 -0
  6. package/temp/http-proxy/CODE_OF_CONDUCT.md +74 -0
  7. package/temp/http-proxy/LICENSE +23 -0
  8. package/temp/http-proxy/README.md +568 -0
  9. package/temp/http-proxy/codecov.yml +10 -0
  10. package/temp/http-proxy/index.js +13 -0
  11. package/temp/http-proxy/lib/http-proxy/common.js +220 -0
  12. package/temp/http-proxy/lib/http-proxy/index.js +174 -0
  13. package/temp/http-proxy/lib/http-proxy/passes/web-incoming.js +174 -0
  14. package/temp/http-proxy/lib/http-proxy/passes/web-outgoing.js +135 -0
  15. package/temp/http-proxy/lib/http-proxy/passes/ws-incoming.js +141 -0
  16. package/temp/http-proxy/lib/index.js +13 -0
  17. package/temp/http-proxy/package.json +41 -0
  18. package/temp/http-proxy/renovate.json +19 -0
  19. package/temp/node-http-proxy/.eslintignore +3 -0
  20. package/temp/node-http-proxy/.eslintrc.js +21 -0
  21. package/temp/node-http-proxy/.github/workflows/ci.yml +30 -0
  22. package/temp/node-http-proxy/.prettierrc +7 -0
  23. package/temp/node-http-proxy/CODE_OF_CONDUCT.md +74 -0
  24. package/temp/node-http-proxy/LICENSE +23 -0
  25. package/temp/node-http-proxy/README.md +568 -0
  26. package/temp/node-http-proxy/codecov.yml +10 -0
  27. package/temp/node-http-proxy/dist/http-proxy/common.js +220 -0
  28. package/temp/node-http-proxy/dist/http-proxy/index.js +174 -0
  29. package/temp/node-http-proxy/dist/http-proxy/passes/web-incoming.js +174 -0
  30. package/temp/node-http-proxy/dist/http-proxy/passes/web-outgoing.js +135 -0
  31. package/temp/node-http-proxy/dist/http-proxy/passes/ws-incoming.js +141 -0
  32. package/temp/node-http-proxy/dist/index.js +13 -0
  33. package/temp/node-http-proxy/lib/http-proxy/common.js +265 -0
  34. package/temp/node-http-proxy/lib/http-proxy/index.ts +242 -0
  35. package/temp/node-http-proxy/lib/http-proxy/passes/web-incoming.js +208 -0
  36. package/temp/node-http-proxy/lib/http-proxy/passes/web-outgoing.js +163 -0
  37. package/temp/node-http-proxy/lib/http-proxy/passes/ws-incoming.js +179 -0
  38. package/temp/node-http-proxy/lib/index.ts +13 -0
  39. package/temp/node-http-proxy/lib/types.d.ts +277 -0
  40. package/temp/node-http-proxy/package-lock.json +5028 -0
  41. package/temp/node-http-proxy/package.json +47 -0
  42. package/temp/node-http-proxy/tsconfig.build.json +4 -0
  43. package/temp/node-http-proxy/tsconfig.json +115 -0
  44. package/temp/node-http-proxy/vitest.config.ts +9 -0
  45. package/util/proxy-factory.js +40 -129
@@ -82,20 +82,17 @@ exports = module.exports = function()
82
82
  contentStore.existsFile(filePath, function(exists) {
83
83
 
84
84
  if (!exists) {
85
- callback();
86
- return;
85
+ return callback();
87
86
  }
88
87
 
89
88
  contentStore.fileStats(filePath, function(err, stats) {
90
89
 
91
90
  if (err) {
92
- callback();
93
- return;
91
+ return callback();
94
92
  }
95
93
 
96
- if (stats.size == 0) {
97
- callback();
98
- return;
94
+ if (stats.size === 0) {
95
+ return callback();
99
96
  }
100
97
 
101
98
  var handleGoodStream = function()
@@ -117,8 +114,7 @@ exports = module.exports = function()
117
114
  // check cacheInfo for expireTime
118
115
  contentStore.readFile(filePath + ".cache", function(err, cacheInfoText) {
119
116
 
120
- if (err || !cacheInfoText)
121
- {
117
+ if (err || !cacheInfoText) {
122
118
  return handleBadStream();
123
119
  }
124
120
 
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.270",
9
+ "version": "0.9.274",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git://github.com/gitana/cloudcms-server.git"
@@ -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": "^1.18.1",
48
47
  "install": "^0.13.0",
49
48
  "ioredis": "4.28.5",
50
49
  "json5": "^1.0.1",
@@ -93,7 +92,10 @@
93
92
  "uuid": "^3.3.2",
94
93
  "vm2": "^3.8.4",
95
94
  "watch": "^0.13.0",
96
- "winston": "^3.3.3"
95
+ "winston": "^3.3.3",
96
+ "eventemitter3": "^4.0.0",
97
+ "requires-port": "^1.0.0",
98
+ "follow-redirects": "^1.0.0"
97
99
  },
98
100
  "contributors": [
99
101
  {
@@ -0,0 +1,6 @@
1
+ {
2
+ "output": "CHANGELOG.md",
3
+ "template": "keepachangelog",
4
+ "unreleased": true,
5
+ "commitLimit": false
6
+ }
@@ -0,0 +1 @@
1
+ package-lock.json binary