@arcblock/ux 2.10.22 → 2.10.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Util/index.js +3 -1
- package/package.json +5 -5
- package/src/Util/index.js +3 -1
package/lib/Util/index.js
CHANGED
@@ -38,7 +38,9 @@ export function getCookieOptions(expireInDays = 1) {
|
|
38
38
|
expires: opts.expireInDays,
|
39
39
|
path: opts.path,
|
40
40
|
domain: opts.domain || '',
|
41
|
-
sameSite: opts.sameSite || '
|
41
|
+
sameSite: opts.sameSite || 'Lax',
|
42
|
+
// 允许自定义设置为 false,默认是 true
|
43
|
+
secure: opts.secure !== false
|
42
44
|
};
|
43
45
|
if (typeof window === 'undefined' || opts.domain || opts.returnDomain === false) {
|
44
46
|
if (opts.returnDomain === false) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.24",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -54,12 +54,12 @@
|
|
54
54
|
"react": ">=18.2.0",
|
55
55
|
"react-router-dom": ">=6.22.3"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "c443aa19b7b47cc26623e770fd297efbb5d1611a",
|
58
58
|
"dependencies": {
|
59
59
|
"@arcblock/did-motif": "^1.1.13",
|
60
|
-
"@arcblock/icons": "^2.10.
|
61
|
-
"@arcblock/nft-display": "^2.10.
|
62
|
-
"@arcblock/react-hooks": "^2.10.
|
60
|
+
"@arcblock/icons": "^2.10.24",
|
61
|
+
"@arcblock/nft-display": "^2.10.24",
|
62
|
+
"@arcblock/react-hooks": "^2.10.24",
|
63
63
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
64
64
|
"@fontsource/inter": "^5.0.16",
|
65
65
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
package/src/Util/index.js
CHANGED
@@ -47,7 +47,9 @@ export function getCookieOptions(expireInDays = 1) {
|
|
47
47
|
expires: opts.expireInDays,
|
48
48
|
path: opts.path,
|
49
49
|
domain: opts.domain || '',
|
50
|
-
sameSite: opts.sameSite || '
|
50
|
+
sameSite: opts.sameSite || 'Lax',
|
51
|
+
// 允许自定义设置为 false,默认是 true
|
52
|
+
secure: opts.secure !== false,
|
51
53
|
};
|
52
54
|
if (typeof window === 'undefined' || opts.domain || opts.returnDomain === false) {
|
53
55
|
if (opts.returnDomain === false) {
|