@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 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.2",
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": "a73064aaab5cde4fa378672c9c037cf427022123",
55
+ "gitHead": "b0ec8ebbd525abe7035465e2c75dc042e6637ba6",
56
56
  "dependencies": {
57
- "@arcblock/icons": "^2.1.2",
58
- "@arcblock/react-hooks": "^2.1.2",
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
@@ -17,6 +17,10 @@ export function parseQuery(str) {
17
17
  }, {});
18
18
  }
19
19
 
20
+ export function stringifyQuery(params = {}) {
21
+ return new URLSearchParams(params).toString();
22
+ }
23
+
20
24
  /**
21
25
  * @param {number} opts.expireInDays
22
26
  * @param {string} opts.path