@next-core/brick-container 3.20.12 → 3.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/brick-container",
3
- "version": "3.20.12",
3
+ "version": "3.20.14",
4
4
  "description": "Brick Container Server",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/brick-container",
6
6
  "license": "GPL-3.0",
@@ -53,16 +53,16 @@
53
53
  "@next-api-sdk/api-gateway-sdk": "^1.2.2",
54
54
  "@next-api-sdk/micro-app-standalone-sdk": "^1.1.0",
55
55
  "@next-core/build-next-bricks": "^1.23.12",
56
- "@next-core/easyops-runtime": "^0.13.7",
56
+ "@next-core/easyops-runtime": "^0.13.9",
57
57
  "@next-core/http": "^1.2.12",
58
- "@next-core/i18n": "^1.0.75",
58
+ "@next-core/i18n": "^1.0.76",
59
59
  "@next-core/loader": "^1.6.15",
60
- "@next-core/preview": "^0.7.55",
61
- "@next-core/runtime": "^1.60.0",
60
+ "@next-core/preview": "^0.7.57",
61
+ "@next-core/runtime": "^1.61.1",
62
62
  "@next-core/test-next": "^1.1.9",
63
63
  "@next-core/theme": "^1.5.4",
64
64
  "@next-core/types": "^1.14.0",
65
- "@next-core/utils": "^1.7.33",
65
+ "@next-core/utils": "^1.7.34",
66
66
  "broadcast-channel": "^7.0.0",
67
67
  "copy-webpack-plugin": "^13.0.0",
68
68
  "core-js": "^3.41.0",
@@ -75,5 +75,5 @@
75
75
  "@next-core/runtime": "*",
76
76
  "@next-core/utils": "*"
77
77
  },
78
- "gitHead": "90ddc3c042b10fff8deb37c1ba21f5a5b0e58f45"
78
+ "gitHead": "aaacaa0ed0524039ee547da458adbd5ed0bc49dd"
79
79
  }
package/serve/getProxy.js CHANGED
@@ -116,19 +116,16 @@ export default function getProxy(env, getRawIndexHtml) {
116
116
  req.path === "/next/api/auth/login/v2" &&
117
117
  Array.isArray(setCookies)
118
118
  ) {
119
- // - If the server is https, but the local is http, clear the secure cookie flags;
120
- // - Otherwise, if the local is localhost and cookieSameSiteNone is enabled (default),
119
+ // - If the local is localhost and cookieSameSiteNone is enabled (default),
121
120
  // add the secure cookie flags;
122
121
  // - Otherwise, if the local is https, do nothing;
123
122
  // - Otherwise, clear the secure cookie flags;
124
123
  const strategy =
125
- env.server.startsWith("https:") && !env.https
126
- ? "clear"
127
- : env.cookieSameSiteNone && env.host === "localhost"
128
- ? "add"
129
- : env.https
130
- ? null
131
- : "clear";
124
+ env.cookieSameSiteNone && env.host === "localhost"
125
+ ? "add"
126
+ : env.https
127
+ ? null
128
+ : "clear";
132
129
  if (strategy) {
133
130
  // Note: it seems that now Chrome (v107) requires `SameSite=None` even for localhost.
134
131
  // However, `Secure` can use used with non-http for localhost.