zmdms-utils 0.0.94 → 0.0.95

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/dist/es/common.js CHANGED
@@ -138,6 +138,9 @@ function parseQueryParams(url) {
138
138
  * @returns 转换过后的结果
139
139
  */
140
140
  function unescapeString(input) {
141
+ if (typeof input !== "string") {
142
+ return input;
143
+ }
141
144
  if (!input) {
142
145
  return "";
143
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/common.ts CHANGED
@@ -142,6 +142,9 @@ export function parseQueryParams(url: string): { [key: string]: string } {
142
142
  * @returns 转换过后的结果
143
143
  */
144
144
  export function unescapeString(input: string): string {
145
+ if (typeof input !== "string") {
146
+ return input;
147
+ }
145
148
  if (!input) {
146
149
  return "";
147
150
  }