ddan-js 3.6.0 → 3.6.2

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.
@@ -0,0 +1,11 @@
1
+ declare function stringify(map: Map<any, any>): string | undefined;
2
+ declare function parse(json: string): Map<any, any> | undefined;
3
+ declare function deepStringify(map: Map<any, any>): string | undefined;
4
+ declare function deepParse(json: string): Map<any, any> | undefined;
5
+ declare const _default: {
6
+ stringify: typeof stringify;
7
+ parse: typeof parse;
8
+ deepStringify: typeof deepStringify;
9
+ deepParse: typeof deepParse;
10
+ };
11
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  import { Ddan } from '../../typings';
2
2
  /**
3
3
  * 安全可靠的 URL 拼接函数
4
- * 支持协议域名、相对路径、绝对路径 (macOS/Unix) 等场景
4
+ * 支持协议域名、相对路径、绝对路径等场景
5
5
  * @param parts URL 各个部分
6
6
  * @returns 拼接后的完整 URL 字符串
7
7
  */
@@ -1,6 +1,12 @@
1
1
  import Event from '../class/event';
2
2
  declare const dUtil: {
3
3
  Event: typeof Event;
4
+ map: {
5
+ stringify: (map: Map<any, any>) => string | undefined;
6
+ parse: (json: string) => Map<any, any> | undefined;
7
+ deepStringify: (map: Map<any, any>) => string | undefined;
8
+ deepParse: (json: string) => Map<any, any> | undefined;
9
+ };
4
10
  includes: typeof import("../util/includes").default;
5
11
  forof: (source: any, cb: (key: any, val: any) => void) => void;
6
12
  singleton: <T>() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "3.6.0",
3
+ "version": "3.6.2",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",