@arcblock/ux 1.15.24 → 1.15.25
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 +12 -1
- package/package.json +4 -4
package/lib/Util/index.js
CHANGED
|
@@ -32,6 +32,13 @@ function parseQuery(str) {
|
|
|
32
32
|
return memo;
|
|
33
33
|
}, {});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @param {number} opts.expireInDays
|
|
37
|
+
* @param {string} opts.path
|
|
38
|
+
* @param {domain} opts.domain
|
|
39
|
+
* @param {boolean} opts.returnDomain if === false, opts.domain will be skipped
|
|
40
|
+
*/
|
|
41
|
+
|
|
35
42
|
|
|
36
43
|
function getCookieOptions() {
|
|
37
44
|
let expireInDays = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
@@ -57,7 +64,11 @@ function getCookieOptions() {
|
|
|
57
64
|
domain: opts.domain || ''
|
|
58
65
|
};
|
|
59
66
|
|
|
60
|
-
if (typeof window === 'undefined' || opts.domain) {
|
|
67
|
+
if (typeof window === 'undefined' || opts.domain || opts.returnDomain === false) {
|
|
68
|
+
if (opts.returnDomain === false) {
|
|
69
|
+
delete options.domain;
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
return options;
|
|
62
73
|
}
|
|
63
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.25",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"react": ">=16.12.0",
|
|
53
53
|
"react-ga": "^2.7.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "2ed5c5f32f4d1065109e18a3ccfc04a559595835",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@arcblock/icons": "^1.15.
|
|
58
|
-
"@arcblock/react-hooks": "^1.15.
|
|
57
|
+
"@arcblock/icons": "^1.15.25",
|
|
58
|
+
"@arcblock/react-hooks": "^1.15.25",
|
|
59
59
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
60
60
|
"@material-ui/core": "^4.12.3",
|
|
61
61
|
"@material-ui/icons": "4.11.2",
|