@hylid/custom-jsapi 0.0.90011451928-dev.2 → 0.0.90011451928-dev.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.
@@ -9,7 +9,6 @@ var __assign = this && this.__assign || function () {
9
9
  return __assign.apply(this, arguments);
10
10
  };
11
11
  import { stringify } from 'qs-es5';
12
- import { removeEmptyKeys } from "../../utils/removeEmptyKeys";
13
12
  export var getCallAppLink = function getCallAppLink(opt) {
14
13
  var _a = opt || {},
15
14
  appId = _a.appId,
@@ -41,9 +40,9 @@ export var getCallAppLink = function getCallAppLink(opt) {
41
40
  if (destinationPath) {
42
41
  url.searchParams.set('destinationPath', destinationPath);
43
42
  }
44
- if (extendedInfo && Object.keys(removeEmptyKeys(extendedInfo)).length > 0) {
43
+ if (extendedInfo && Object.keys(extendedInfo).length > 0) {
45
44
  url.searchParams.set('extendedInfo', JSON.stringify({
46
- query: new URLSearchParams(removeEmptyKeys(extendedInfo)).toString()
45
+ query: new URLSearchParams(extendedInfo).toString()
47
46
  }));
48
47
  }
49
48
  return url.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/custom-jsapi",
3
- "version": "0.0.90011451928-dev.2",
3
+ "version": "0.0.90011451928-dev.3",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"
@@ -9,9 +9,9 @@
9
9
  "access": "public"
10
10
  },
11
11
  "dependencies": {
12
- "@hylid/call": "^0.0.90011451928-dev.2",
13
- "@hylid/env": "^0.0.90011451928-dev.2",
14
- "@hylid/types": "^0.0.90011451928-dev.2",
12
+ "@hylid/call": "^0.0.90011451928-dev.3",
13
+ "@hylid/env": "^0.0.90011451928-dev.3",
14
+ "@hylid/types": "^0.0.90011451928-dev.3",
15
15
  "qs-es5": "^6.8.4"
16
16
  },
17
17
  "license": "MIT",
@@ -1 +0,0 @@
1
- export declare const removeEmptyKeys: <T extends Record<string, string | undefined>>(v?: T | undefined) => Record<string, string>;
@@ -1,13 +0,0 @@
1
- export var removeEmptyKeys = function removeEmptyKeys(v) {
2
- if (!v) {
3
- return {};
4
- }
5
- var result = {};
6
- Object.keys(v).forEach(function (key) {
7
- var value = v[key];
8
- if (value) {
9
- result[key] = value;
10
- }
11
- });
12
- return result;
13
- };