@arcblock/ux 2.5.49 → 2.5.50
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/lib/Util/index.js +0 -21
- package/package.json +4 -4
- package/src/Util/index.js +0 -16
package/lib/Util/index.js
CHANGED
@@ -82,27 +82,6 @@ function getCookieOptions() {
|
|
82
82
|
return options;
|
83
83
|
}
|
84
84
|
|
85
|
-
const {
|
86
|
-
host
|
87
|
-
} = window.location;
|
88
|
-
|
89
|
-
if (/^[.:0-9]+$/.test(host)) {
|
90
|
-
options.domain = '';
|
91
|
-
} else {
|
92
|
-
const parts = host.split('.');
|
93
|
-
|
94
|
-
if (parts.length === 1) {
|
95
|
-
options.domain = '';
|
96
|
-
} else {
|
97
|
-
// Remember the cookie on all sub domains.
|
98
|
-
while (parts.length > 2) {
|
99
|
-
parts.shift();
|
100
|
-
}
|
101
|
-
|
102
|
-
options.domain = ".".concat(parts.join('.'));
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
85
|
return options;
|
107
86
|
}
|
108
87
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.50",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -47,11 +47,11 @@
|
|
47
47
|
"peerDependencies": {
|
48
48
|
"react": ">=18.1.0"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "8969051be94b3e5107e3f25034661a60fd3da6bb",
|
51
51
|
"dependencies": {
|
52
52
|
"@arcblock/did-motif": "^1.1.10",
|
53
|
-
"@arcblock/icons": "^2.5.
|
54
|
-
"@arcblock/react-hooks": "^2.5.
|
53
|
+
"@arcblock/icons": "^2.5.50",
|
54
|
+
"@arcblock/react-hooks": "^2.5.50",
|
55
55
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
56
56
|
"@emotion/react": "^11.10.4",
|
57
57
|
"@emotion/styled": "^11.10.4",
|
package/src/Util/index.js
CHANGED
@@ -54,22 +54,6 @@ export function getCookieOptions(expireInDays = 1) {
|
|
54
54
|
return options;
|
55
55
|
}
|
56
56
|
|
57
|
-
const { host } = window.location;
|
58
|
-
if (/^[.:0-9]+$/.test(host)) {
|
59
|
-
options.domain = '';
|
60
|
-
} else {
|
61
|
-
const parts = host.split('.');
|
62
|
-
if (parts.length === 1) {
|
63
|
-
options.domain = '';
|
64
|
-
} else {
|
65
|
-
// Remember the cookie on all sub domains.
|
66
|
-
while (parts.length > 2) {
|
67
|
-
parts.shift();
|
68
|
-
}
|
69
|
-
options.domain = `.${parts.join('.')}`;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
57
|
return options;
|
74
58
|
}
|
75
59
|
|