@arcblock/ux 2.1.2 → 2.1.3
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 +6 -0
- package/package.json +4 -4
- package/src/Util/index.js +4 -0
package/lib/Util/index.js
CHANGED
|
@@ -15,6 +15,7 @@ exports.openWebWallet = openWebWallet;
|
|
|
15
15
|
exports.parseQuery = parseQuery;
|
|
16
16
|
exports.setDateTool = setDateTool;
|
|
17
17
|
exports.str2color = void 0;
|
|
18
|
+
exports.stringifyQuery = stringifyQuery;
|
|
18
19
|
|
|
19
20
|
var _padStart = _interopRequireDefault(require("lodash/padStart"));
|
|
20
21
|
|
|
@@ -34,6 +35,11 @@ function parseQuery(str) {
|
|
|
34
35
|
return memo;
|
|
35
36
|
}, {});
|
|
36
37
|
}
|
|
38
|
+
|
|
39
|
+
function stringifyQuery() {
|
|
40
|
+
let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
41
|
+
return new URLSearchParams(params).toString();
|
|
42
|
+
}
|
|
37
43
|
/**
|
|
38
44
|
* @param {number} opts.expireInDays
|
|
39
45
|
* @param {string} opts.path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"react": ">=18.1.0",
|
|
53
53
|
"react-ga": "^2.7.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "b0ec8ebbd525abe7035465e2c75dc042e6637ba6",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@arcblock/icons": "^2.1.
|
|
58
|
-
"@arcblock/react-hooks": "^2.1.
|
|
57
|
+
"@arcblock/icons": "^2.1.3",
|
|
58
|
+
"@arcblock/react-hooks": "^2.1.3",
|
|
59
59
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
60
60
|
"@emotion/react": "^11.9.0",
|
|
61
61
|
"@emotion/styled": "^11.8.1",
|
package/src/Util/index.js
CHANGED