@rpcbase/server 0.157.0 → 0.159.0

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.
@@ -21,6 +21,8 @@ if (typeof SESSION_STORE_PORT === "string" && !validator.isPort(SESSION_STORE_PO
21
21
 
22
22
  const hostname = CONTAINER_MODE === "native" ? "localhost" : "session-store"
23
23
 
24
+ console.log("session-store hostname", hostname, "port", SESSION_STORE_PORT)
25
+
24
26
  let session_middleware = null
25
27
 
26
28
  // extreme warning: docker issue
@@ -75,16 +77,17 @@ setTimeout(async() => {
75
77
 
76
78
  // WARNING: apparently doesn't work on localhost or .local domains
77
79
  // https://stackoverflow.com/questions/1134290/cookies-on-localhost-with-explicit-domain
78
- if (CONTAINER_MODE !== "native" && typeof APP_DOMAIN === "string" && APP_DOMAIN.trim() !== "") {
79
- log("\n\n")
80
- log("SETTING COOKIE DOMAIN TO", APP_DOMAIN)
81
- log("SETTING secure", APP_DOMAIN)
82
- log("TRUST PROXY TRUE")
83
- log("\n\n")
84
- session_config.cookie.domain = APP_DOMAIN
85
- // session_config.cookie.secure = true
86
- session_config.cookie.sameSite = false
87
- }
80
+ // TODO: WTF IS THIS
81
+ // if (CONTAINER_MODE !== "native" && typeof APP_DOMAIN === "string" && APP_DOMAIN.trim() !== "") {
82
+ // log("\n\n")
83
+ // log("SETTING COOKIE DOMAIN TO", APP_DOMAIN)
84
+ // log("SETTING secure", APP_DOMAIN)
85
+ // log("TRUST PROXY TRUE")
86
+ // log("\n\n")
87
+ // session_config.cookie.domain = APP_DOMAIN
88
+ // // session_config.cookie.secure = true
89
+ // session_config.cookie.sameSite = false
90
+ // }
88
91
 
89
92
 
90
93
  session_middleware = session(session_config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.157.0",
3
+ "version": "0.159.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {