@live-change/server 0.6.11 → 0.6.14

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 (2) hide show
  1. package/lib/SsrServer.js +2 -1
  2. package/package.json +7 -7
package/lib/SsrServer.js CHANGED
@@ -96,6 +96,7 @@ class SsrServer {
96
96
  })
97
97
  this.express.use('*', async (req, res) => {
98
98
  const url = req.originalUrl
99
+ const host = req.get('host')
99
100
  const clientIp = getIp(req)
100
101
 
101
102
  const credentials = readCredentials(req)
@@ -109,7 +110,7 @@ class SsrServer {
109
110
 
110
111
  for(let retry = 0; retry < 3; retry ++) {
111
112
  try {
112
- html = await this.renderer.renderPage({ url, dao, clientIp, credentials, windowId, version })
113
+ html = await this.renderer.renderPage({ url, host, dao, clientIp, credentials, windowId, version })
113
114
  break
114
115
  } catch(e) {
115
116
  error = e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/server",
3
- "version": "0.6.11",
3
+ "version": "0.6.14",
4
4
  "description": "Live Change Framework - server",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "homepage": "https://github.com/live-change/live-change-framework",
23
23
  "dependencies": {
24
- "@live-change/dao": "0.5.4",
25
- "@live-change/dao-sockjs": "0.5.1",
26
- "@live-change/db-server": "0.5.13",
27
- "@live-change/framework": "^0.6.11",
24
+ "@live-change/dao": "0.5.6",
25
+ "@live-change/dao-sockjs": "0.5.6",
26
+ "@live-change/db-server": "0.5.17",
27
+ "@live-change/framework": "^0.6.14",
28
28
  "@live-change/sockjs": "0.4.1",
29
- "@live-change/uid": "^0.6.11",
29
+ "@live-change/uid": "^0.6.14",
30
30
  "dotenv": "^16.0.1",
31
31
  "express": "^4.18.1",
32
32
  "express-static-gzip": "2.1.7",
@@ -39,5 +39,5 @@
39
39
  "websocket": "^1.0.34",
40
40
  "yargs": "^17.5.1"
41
41
  },
42
- "gitHead": "99d448214c2df44f42e5d25a08fa50ae79e5bdbe"
42
+ "gitHead": "44cec669125b2af3f0b9318cb70c5cf4647c28c6"
43
43
  }