ddan-js 2.8.8 → 2.8.10

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,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Mapping = exports.KValue = exports.Event = exports.dLogger = exports.dTracker = exports.dJoker = exports.dStore = exports.dCdn = exports.dMini = exports.dWeb = exports.dHook = exports.dUtil = void 0;
4
+ const gbk_1 = require("./modules/gbk");
5
+ const time_1 = require("./modules/time");
6
+ const hook_1 = require("./modules/hook");
7
+ const math_1 = require("./modules/math");
8
+ const util_1 = require("./util");
9
+ const list_1 = require("./modules/list");
10
+ const mini_1 = require("./modules/mini");
11
+ const qs_1 = require("./modules/qs");
12
+ const rule_1 = require("./modules/rule");
13
+ const regex_1 = require("./modules/regex");
14
+ const string_1 = require("./modules/string");
15
+ const obj_1 = require("./modules/obj");
16
+ const crypto_1 = require("./modules/crypto");
17
+ const css_1 = require("./modules/css");
18
+ const html_1 = require("./modules/html");
19
+ const cdn_1 = require("./modules/cdn");
20
+ const convert_1 = require("./modules/convert");
21
+ const http_1 = require("./modules/http");
22
+ const logger_1 = require("./modules/logger");
23
+ const fetch_1 = require("./modules/fetch");
24
+ const icon_1 = require("./class/icon");
25
+ const event_1 = require("./class/event");
26
+ exports.Event = event_1.default;
27
+ const store_1 = require("./class/store");
28
+ const persist_1 = require("./class/persist");
29
+ const watermark_1 = require("./class/watermark");
30
+ const joker_1 = require("./class/joker");
31
+ const tracker_1 = require("./class/tracker");
32
+ const rsa_1 = require("./modules/rsa");
33
+ const browser_1 = require("./modules/browser");
34
+ const kvalue_1 = require("./class/kvalue");
35
+ exports.KValue = kvalue_1.default;
36
+ const mapping_1 = require("./class/mapping");
37
+ exports.Mapping = mapping_1.default;
38
+ const dUtil = {
39
+ gbk: gbk_1.default,
40
+ math: math_1.default,
41
+ list: list_1.default,
42
+ string: string_1.default,
43
+ time: time_1.default,
44
+ obj: obj_1.default,
45
+ rule: rule_1.default,
46
+ regex: regex_1.default,
47
+ ...convert_1.default,
48
+ ...crypto_1.default,
49
+ ...util_1.default,
50
+ Event: event_1.default,
51
+ };
52
+ exports.dUtil = dUtil;
53
+ const singleton = util_1.default.singleton;
54
+ const dHook = {
55
+ ...convert_1.default,
56
+ ...crypto_1.default,
57
+ ...hook_1.default,
58
+ ...string_1.default,
59
+ ...math_1.default,
60
+ qs: qs_1.default,
61
+ singleton,
62
+ };
63
+ exports.dHook = dHook;
64
+ const dMini = { mini: mini_1.default, css: css_1.default, qs: qs_1.default, icon: icon_1.default, html: html_1.default };
65
+ exports.dMini = dMini;
66
+ const dCdn = { cdn: cdn_1.default, watermark: watermark_1.default };
67
+ exports.dCdn = dCdn;
68
+ const dStore = { Store: store_1.default, storeRef: store_1.storeRef, Persist: persist_1.default, persistConfig: persist_1.persistConfig };
69
+ exports.dStore = dStore;
70
+ const dJoker = joker_1.default;
71
+ exports.dJoker = dJoker;
72
+ const dTracker = tracker_1.default;
73
+ exports.dTracker = dTracker;
74
+ const dLogger = logger_1.default;
75
+ exports.dLogger = dLogger;
76
+ const dWeb = { fetch: fetch_1.default, Http: http_1.default, css: css_1.default, qs: qs_1.default, icon: icon_1.default, html: html_1.default, rsa: rsa_1.default, ...browser_1.default };
77
+ exports.dWeb = dWeb;
78
+ exports.default = {
79
+ gbk: gbk_1.default,
80
+ time: time_1.default,
81
+ hook: hook_1.default,
82
+ math: math_1.default,
83
+ util: util_1.default,
84
+ list: list_1.default,
85
+ string: string_1.default,
86
+ obj: obj_1.default,
87
+ crypto: crypto_1.default,
88
+ mini: mini_1.default,
89
+ qs: qs_1.default,
90
+ css: css_1.default,
91
+ cdn: cdn_1.default,
92
+ html: html_1.default,
93
+ icon: icon_1.default,
94
+ rule: rule_1.default,
95
+ regex: regex_1.default,
96
+ convert: convert_1.default,
97
+ KValue: kvalue_1.default,
98
+ Mapping: mapping_1.default,
99
+ Event: event_1.default,
100
+ Http: http_1.default,
101
+ Store: store_1.default,
102
+ storeRef: store_1.storeRef,
103
+ Persist: persist_1.default,
104
+ persistConfig: persist_1.persistConfig,
105
+ watermark: watermark_1.default,
106
+ joker: joker_1.default,
107
+ tracker: tracker_1.default,
108
+ logger: logger_1.default,
109
+ fetch: fetch_1.default,
110
+ rsa: rsa_1.default,
111
+ };
package/bin/lib/index.js CHANGED
@@ -36,13 +36,6 @@ const kvalue_1 = require("./class/kvalue");
36
36
  exports.KValue = kvalue_1.default;
37
37
  const mapping_1 = require("./class/mapping");
38
38
  exports.Mapping = mapping_1.default;
39
- let _dNode;
40
- if (typeof window !== 'undefined') {
41
- _dNode = node_1.default;
42
- }
43
- else {
44
- _dNode = {};
45
- }
46
39
  const dUtil = {
47
40
  gbk: gbk_1.default,
48
41
  math: math_1.default,
@@ -83,7 +76,7 @@ const dLogger = logger_1.default;
83
76
  exports.dLogger = dLogger;
84
77
  const dWeb = { fetch: fetch_1.default, Http: http_1.default, css: css_1.default, qs: qs_1.default, icon: icon_1.default, html: html_1.default, rsa: rsa_1.default, ...browser_1.default };
85
78
  exports.dWeb = dWeb;
86
- const dNode = _dNode;
79
+ const dNode = { ...node_1.default };
87
80
  exports.dNode = dNode;
88
81
  exports.default = {
89
82
  gbk: gbk_1.default,