@daysnap/utils 0.1.9 → 0.1.11
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/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +202 -133
- package/es/chunk-3IKNCOC3.js +18 -0
- package/es/chunk-ZI7MCCMB.js +22 -0
- package/es/getMonthBounds.d.ts +7 -0
- package/es/getMonthBounds.js +9 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +28 -20
- package/es/withCache.d.ts +6 -0
- package/es/withCache.js +6 -0
- package/lib/chunk-2XXFQQUM.cjs +22 -0
- package/lib/chunk-ELDXB7BZ.cjs +18 -0
- package/lib/getMonthBounds.cjs +9 -0
- package/lib/getMonthBounds.d.cts +7 -0
- package/lib/index.cjs +24 -16
- package/lib/index.d.cts +2 -0
- package/lib/withCache.cjs +6 -0
- package/lib/withCache.d.cts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatDate
|
|
3
|
+
} from "./chunk-I65EJPPI.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeDate
|
|
6
|
+
} from "./chunk-NOT3VNHC.js";
|
|
7
|
+
|
|
8
|
+
// src/getMonthBounds.ts
|
|
9
|
+
function getMonthBounds(value, fmt) {
|
|
10
|
+
const now = normalizeDate(value);
|
|
11
|
+
const start = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
12
|
+
const end = new Date(now.getFullYear(), now.getMonth() + 1, 0);
|
|
13
|
+
return fmt ? [formatDate(start, fmt), formatDate(end, fmt)] : [start, end];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
getMonthBounds
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/withCache.ts
|
|
2
|
+
function withCache(fn) {
|
|
3
|
+
const cache = {};
|
|
4
|
+
return function(...args) {
|
|
5
|
+
const key = JSON.stringify(args);
|
|
6
|
+
const hit = cache[key];
|
|
7
|
+
if (hit) {
|
|
8
|
+
return hit;
|
|
9
|
+
}
|
|
10
|
+
const res = fn(...args);
|
|
11
|
+
if (res instanceof Promise) {
|
|
12
|
+
return res.then((res2) => {
|
|
13
|
+
return cache[key] = res2;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return cache[key] = res;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
withCache
|
|
22
|
+
};
|
package/es/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { formatPathParams } from './formatPathParams.js';
|
|
|
39
39
|
export { getBlobByUrl } from './getBlobByUrl.js';
|
|
40
40
|
export { getDayMillisecond } from './getDayMillisecond.js';
|
|
41
41
|
export { getImageInfo } from './getImageInfo.js';
|
|
42
|
+
export { getMonthBounds } from './getMonthBounds.js';
|
|
42
43
|
export { getRandom } from './getRandom.js';
|
|
43
44
|
export { getRandomColor } from './getRandomColor.js';
|
|
44
45
|
export { getRandomNumber } from './getRandomNumber.js';
|
|
@@ -119,6 +120,7 @@ export { toCDB } from './toCDB.js';
|
|
|
119
120
|
export { toDBC } from './toDBC.js';
|
|
120
121
|
export { Trap, createTrapInstance, trap } from './trap.js';
|
|
121
122
|
export { typeOf } from './typeOf.js';
|
|
123
|
+
export { withCache } from './withCache.js';
|
|
122
124
|
export { withPreventConsecutiveClicks } from './withPreventConsecutiveClicks.js';
|
|
123
125
|
export { StorageManager, factory } from './storage/factory.js';
|
|
124
126
|
import '@daysnap/types';
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createTrapInstance,
|
|
3
|
+
trap
|
|
4
|
+
} from "./chunk-LOPD7SSH.js";
|
|
1
5
|
import {
|
|
2
6
|
typeOf
|
|
3
7
|
} from "./chunk-MTF3ACKC.js";
|
|
8
|
+
import {
|
|
9
|
+
withCache
|
|
10
|
+
} from "./chunk-ZI7MCCMB.js";
|
|
4
11
|
import {
|
|
5
12
|
withPreventConsecutiveClicks
|
|
6
13
|
} from "./chunk-S6UH3LMW.js";
|
|
@@ -11,6 +18,9 @@ import {
|
|
|
11
18
|
import {
|
|
12
19
|
factory
|
|
13
20
|
} from "./chunk-M6B3UGFI.js";
|
|
21
|
+
import {
|
|
22
|
+
sleep
|
|
23
|
+
} from "./chunk-TNIIDDN4.js";
|
|
14
24
|
import {
|
|
15
25
|
splitArray
|
|
16
26
|
} from "./chunk-BNF4U7EJ.js";
|
|
@@ -35,9 +45,8 @@ import {
|
|
|
35
45
|
toDBC
|
|
36
46
|
} from "./chunk-ONTP5SDE.js";
|
|
37
47
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./chunk-LOPD7SSH.js";
|
|
48
|
+
pick
|
|
49
|
+
} from "./chunk-IPAT3N4P.js";
|
|
41
50
|
import {
|
|
42
51
|
replaceCrlf
|
|
43
52
|
} from "./chunk-GNGSV7F7.js";
|
|
@@ -60,8 +69,8 @@ import {
|
|
|
60
69
|
setScrollTop
|
|
61
70
|
} from "./chunk-BULTIEJG.js";
|
|
62
71
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
72
|
+
padding
|
|
73
|
+
} from "./chunk-CCZL3GEW.js";
|
|
65
74
|
import {
|
|
66
75
|
parseDate
|
|
67
76
|
} from "./chunk-DWT2WM6H.js";
|
|
@@ -81,8 +90,8 @@ import {
|
|
|
81
90
|
pascalCase
|
|
82
91
|
} from "./chunk-S7PUCGCQ.js";
|
|
83
92
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
93
|
+
kebabCase
|
|
94
|
+
} from "./chunk-IPIA4Z65.js";
|
|
86
95
|
import {
|
|
87
96
|
makePhoneCall
|
|
88
97
|
} from "./chunk-GYOXULKV.js";
|
|
@@ -98,9 +107,6 @@ import {
|
|
|
98
107
|
import {
|
|
99
108
|
omit
|
|
100
109
|
} from "./chunk-6GTFQZL4.js";
|
|
101
|
-
import {
|
|
102
|
-
padding
|
|
103
|
-
} from "./chunk-CCZL3GEW.js";
|
|
104
110
|
import {
|
|
105
111
|
isType
|
|
106
112
|
} from "./chunk-5EVWQVDV.js";
|
|
@@ -121,8 +127,8 @@ import {
|
|
|
121
127
|
isWindow
|
|
122
128
|
} from "./chunk-QYCMY2T4.js";
|
|
123
129
|
import {
|
|
124
|
-
|
|
125
|
-
} from "./chunk-
|
|
130
|
+
isMobile
|
|
131
|
+
} from "./chunk-L52JSZDZ.js";
|
|
126
132
|
import {
|
|
127
133
|
isNativeFunction
|
|
128
134
|
} from "./chunk-4N33UIAB.js";
|
|
@@ -138,6 +144,9 @@ import {
|
|
|
138
144
|
import {
|
|
139
145
|
isRegExp
|
|
140
146
|
} from "./chunk-Y4V5R7XA.js";
|
|
147
|
+
import {
|
|
148
|
+
isError
|
|
149
|
+
} from "./chunk-6UGTRW2S.js";
|
|
141
150
|
import {
|
|
142
151
|
isIE
|
|
143
152
|
} from "./chunk-QTKWJHHW.js";
|
|
@@ -156,9 +165,6 @@ import {
|
|
|
156
165
|
import {
|
|
157
166
|
isLicenseCode
|
|
158
167
|
} from "./chunk-576ZRCUO.js";
|
|
159
|
-
import {
|
|
160
|
-
isMobile
|
|
161
|
-
} from "./chunk-L52JSZDZ.js";
|
|
162
168
|
import {
|
|
163
169
|
isBoolean
|
|
164
170
|
} from "./chunk-ZWXX326Y.js";
|
|
@@ -172,8 +178,8 @@ import {
|
|
|
172
178
|
isEmail
|
|
173
179
|
} from "./chunk-JMUWQLHE.js";
|
|
174
180
|
import {
|
|
175
|
-
|
|
176
|
-
} from "./chunk-
|
|
181
|
+
getWeekday
|
|
182
|
+
} from "./chunk-KG436SDV.js";
|
|
177
183
|
import {
|
|
178
184
|
inBrowser
|
|
179
185
|
} from "./chunk-ZDRIUWKX.js";
|
|
@@ -195,6 +201,9 @@ import {
|
|
|
195
201
|
import {
|
|
196
202
|
getImageInfo
|
|
197
203
|
} from "./chunk-ANF3VZYM.js";
|
|
204
|
+
import {
|
|
205
|
+
getMonthBounds
|
|
206
|
+
} from "./chunk-3IKNCOC3.js";
|
|
198
207
|
import {
|
|
199
208
|
getRandomColor
|
|
200
209
|
} from "./chunk-D7OBO7J6.js";
|
|
@@ -216,9 +225,6 @@ import {
|
|
|
216
225
|
import {
|
|
217
226
|
getVideoInfo
|
|
218
227
|
} from "./chunk-3ZZPPKM3.js";
|
|
219
|
-
import {
|
|
220
|
-
getWeekday
|
|
221
|
-
} from "./chunk-KG436SDV.js";
|
|
222
228
|
import {
|
|
223
229
|
formatAmount
|
|
224
230
|
} from "./chunk-KDND6GRD.js";
|
|
@@ -420,6 +426,7 @@ export {
|
|
|
420
426
|
getDayMillisecond,
|
|
421
427
|
getImageInfo,
|
|
422
428
|
getLocal,
|
|
429
|
+
getMonthBounds,
|
|
423
430
|
getRandom,
|
|
424
431
|
getRandomColor,
|
|
425
432
|
getRandomNumber,
|
|
@@ -502,5 +509,6 @@ export {
|
|
|
502
509
|
toDBC,
|
|
503
510
|
trap,
|
|
504
511
|
typeOf,
|
|
512
|
+
withCache,
|
|
505
513
|
withPreventConsecutiveClicks
|
|
506
514
|
};
|
package/es/withCache.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/withCache.ts
|
|
2
|
+
function withCache(fn) {
|
|
3
|
+
const cache = {};
|
|
4
|
+
return function(...args) {
|
|
5
|
+
const key = JSON.stringify(args);
|
|
6
|
+
const hit = cache[key];
|
|
7
|
+
if (hit) {
|
|
8
|
+
return hit;
|
|
9
|
+
}
|
|
10
|
+
const res = fn(...args);
|
|
11
|
+
if (res instanceof Promise) {
|
|
12
|
+
return res.then((res2) => {
|
|
13
|
+
return cache[key] = res2;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return cache[key] = res;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.withCache = withCache;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkBPNPYUBRcjs = require('./chunk-BPNPYUBR.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkRTTG26O5cjs = require('./chunk-RTTG26O5.cjs');
|
|
7
|
+
|
|
8
|
+
// src/getMonthBounds.ts
|
|
9
|
+
function getMonthBounds(value, fmt) {
|
|
10
|
+
const now = _chunkRTTG26O5cjs.normalizeDate.call(void 0, value);
|
|
11
|
+
const start = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
12
|
+
const end = new Date(now.getFullYear(), now.getMonth() + 1, 0);
|
|
13
|
+
return fmt ? [_chunkBPNPYUBRcjs.formatDate.call(void 0, start, fmt), _chunkBPNPYUBRcjs.formatDate.call(void 0, end, fmt)] : [start, end];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.getMonthBounds = getMonthBounds;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkELDXB7BZcjs = require('./chunk-ELDXB7BZ.cjs');
|
|
4
|
+
require('./chunk-BPNPYUBR.cjs');
|
|
5
|
+
require('./chunk-RTTG26O5.cjs');
|
|
6
|
+
require('./chunk-T5JI3MEC.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.getMonthBounds = _chunkELDXB7BZcjs.getMonthBounds;
|
package/lib/index.cjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
var _chunkMPVUIHAGcjs = require('./chunk-MPVUIHAG.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
var _chunkKU2JNLWGcjs = require('./chunk-KU2JNLWG.cjs');
|
|
4
8
|
|
|
5
9
|
|
|
10
|
+
var _chunk2XXFQQUMcjs = require('./chunk-2XXFQQUM.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
var _chunkLTSAC5DKcjs = require('./chunk-LTSAC5DK.cjs');
|
|
7
14
|
|
|
8
15
|
|
|
@@ -13,6 +20,9 @@ var _chunkC522WKFYcjs = require('./chunk-C522WKFY.cjs');
|
|
|
13
20
|
var _chunk4YOKT62Rcjs = require('./chunk-4YOKT62R.cjs');
|
|
14
21
|
|
|
15
22
|
|
|
23
|
+
var _chunkXL3QSME6cjs = require('./chunk-XL3QSME6.cjs');
|
|
24
|
+
|
|
25
|
+
|
|
16
26
|
var _chunkDLFVAWQEcjs = require('./chunk-DLFVAWQE.cjs');
|
|
17
27
|
|
|
18
28
|
|
|
@@ -36,8 +46,7 @@ var _chunk7CGDZ7SUcjs = require('./chunk-7CGDZ7SU.cjs');
|
|
|
36
46
|
var _chunkEE6TAHREcjs = require('./chunk-EE6TAHRE.cjs');
|
|
37
47
|
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
var _chunkMPVUIHAGcjs = require('./chunk-MPVUIHAG.cjs');
|
|
49
|
+
var _chunkG4WAYEDTcjs = require('./chunk-G4WAYEDT.cjs');
|
|
41
50
|
|
|
42
51
|
|
|
43
52
|
var _chunkE6II5N2Qcjs = require('./chunk-E6II5N2Q.cjs');
|
|
@@ -61,7 +70,7 @@ var _chunkIOIAYNDBcjs = require('./chunk-IOIAYNDB.cjs');
|
|
|
61
70
|
var _chunkU6NQZGBGcjs = require('./chunk-U6NQZGBG.cjs');
|
|
62
71
|
|
|
63
72
|
|
|
64
|
-
var
|
|
73
|
+
var _chunkGDDKMJAIcjs = require('./chunk-GDDKMJAI.cjs');
|
|
65
74
|
|
|
66
75
|
|
|
67
76
|
var _chunkJGIFNIG6cjs = require('./chunk-JGIFNIG6.cjs');
|
|
@@ -82,7 +91,7 @@ var _chunk5R3HPYN2cjs = require('./chunk-5R3HPYN2.cjs');
|
|
|
82
91
|
var _chunkSGFZYTKRcjs = require('./chunk-SGFZYTKR.cjs');
|
|
83
92
|
|
|
84
93
|
|
|
85
|
-
var
|
|
94
|
+
var _chunkM23T6OXJcjs = require('./chunk-M23T6OXJ.cjs');
|
|
86
95
|
|
|
87
96
|
|
|
88
97
|
var _chunkZZZLASMIcjs = require('./chunk-ZZZLASMI.cjs');
|
|
@@ -100,9 +109,6 @@ var _chunkZGX4PSUDcjs = require('./chunk-ZGX4PSUD.cjs');
|
|
|
100
109
|
var _chunkSN4K47PZcjs = require('./chunk-SN4K47PZ.cjs');
|
|
101
110
|
|
|
102
111
|
|
|
103
|
-
var _chunkGDDKMJAIcjs = require('./chunk-GDDKMJAI.cjs');
|
|
104
|
-
|
|
105
|
-
|
|
106
112
|
var _chunkSGXWZSMScjs = require('./chunk-SGXWZSMS.cjs');
|
|
107
113
|
|
|
108
114
|
|
|
@@ -122,7 +128,7 @@ var _chunkASLPGL5Kcjs = require('./chunk-ASLPGL5K.cjs');
|
|
|
122
128
|
var _chunkM6IV2L5Ccjs = require('./chunk-M6IV2L5C.cjs');
|
|
123
129
|
|
|
124
130
|
|
|
125
|
-
var
|
|
131
|
+
var _chunk6RAOGPVDcjs = require('./chunk-6RAOGPVD.cjs');
|
|
126
132
|
|
|
127
133
|
|
|
128
134
|
var _chunkUEATWSR2cjs = require('./chunk-UEATWSR2.cjs');
|
|
@@ -140,6 +146,9 @@ var _chunkKZ4FXD7Xcjs = require('./chunk-KZ4FXD7X.cjs');
|
|
|
140
146
|
var _chunk6U7TWPFKcjs = require('./chunk-6U7TWPFK.cjs');
|
|
141
147
|
|
|
142
148
|
|
|
149
|
+
var _chunkDZOWS2MAcjs = require('./chunk-DZOWS2MA.cjs');
|
|
150
|
+
|
|
151
|
+
|
|
143
152
|
var _chunkKXUFBNO6cjs = require('./chunk-KXUFBNO6.cjs');
|
|
144
153
|
|
|
145
154
|
|
|
@@ -158,9 +167,6 @@ var _chunkC2J6KM7Acjs = require('./chunk-C2J6KM7A.cjs');
|
|
|
158
167
|
var _chunk7PO2RFTNcjs = require('./chunk-7PO2RFTN.cjs');
|
|
159
168
|
|
|
160
169
|
|
|
161
|
-
var _chunk6RAOGPVDcjs = require('./chunk-6RAOGPVD.cjs');
|
|
162
|
-
|
|
163
|
-
|
|
164
170
|
var _chunk6NGVHTCIcjs = require('./chunk-6NGVHTCI.cjs');
|
|
165
171
|
|
|
166
172
|
|
|
@@ -173,7 +179,7 @@ var _chunk2UG6AKMUcjs = require('./chunk-2UG6AKMU.cjs');
|
|
|
173
179
|
var _chunkRMH4RB2Dcjs = require('./chunk-RMH4RB2D.cjs');
|
|
174
180
|
|
|
175
181
|
|
|
176
|
-
var
|
|
182
|
+
var _chunkP3BVNREAcjs = require('./chunk-P3BVNREA.cjs');
|
|
177
183
|
|
|
178
184
|
|
|
179
185
|
var _chunkMWTRB6PBcjs = require('./chunk-MWTRB6PB.cjs');
|
|
@@ -197,6 +203,9 @@ var _chunk4AORUEO2cjs = require('./chunk-4AORUEO2.cjs');
|
|
|
197
203
|
var _chunkPLAR2CBQcjs = require('./chunk-PLAR2CBQ.cjs');
|
|
198
204
|
|
|
199
205
|
|
|
206
|
+
var _chunkELDXB7BZcjs = require('./chunk-ELDXB7BZ.cjs');
|
|
207
|
+
|
|
208
|
+
|
|
200
209
|
var _chunk3DLBDFKUcjs = require('./chunk-3DLBDFKU.cjs');
|
|
201
210
|
|
|
202
211
|
|
|
@@ -218,9 +227,6 @@ var _chunkXSHZO4H7cjs = require('./chunk-XSHZO4H7.cjs');
|
|
|
218
227
|
var _chunkHS5BXXAPcjs = require('./chunk-HS5BXXAP.cjs');
|
|
219
228
|
|
|
220
229
|
|
|
221
|
-
var _chunkP3BVNREAcjs = require('./chunk-P3BVNREA.cjs');
|
|
222
|
-
|
|
223
|
-
|
|
224
230
|
var _chunkGPBXHPDAcjs = require('./chunk-GPBXHPDA.cjs');
|
|
225
231
|
|
|
226
232
|
|
|
@@ -503,4 +509,6 @@ var _chunkOP4R4DYKcjs = require('./chunk-OP4R4DYK.cjs');
|
|
|
503
509
|
|
|
504
510
|
|
|
505
511
|
|
|
506
|
-
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
exports.ato = _chunkJM2YJOLHcjs.ato; exports.atob = _chunkFHNJXQ7Ccjs.atob; exports.base64ToBlob = _chunkAPR56HNVcjs.base64ToBlob; exports.blobToBase64 = _chunkYIW4PW4Qcjs.blobToBase64; exports.btoa = _chunkFHNJXQ7Ccjs.btoa; exports.cached = _chunkT5HZJXJZcjs.cached; exports.camelCase = _chunkKVFFHAG5cjs.camelCase; exports.canvasToBlob = _chunkXEH7QVTCcjs.canvasToBlob; exports.capitalize = _chunk3PWVY4SHcjs.capitalize; exports.chooseMedia = _chunkOP4R4DYKcjs.chooseMedia; exports.clamp = _chunk7OZ5UUVBcjs.clamp; exports.clone = _chunkCFV6PO5Ecjs.clone; exports.cloneSimple = _chunkWOIBXERDcjs.cloneSimple; exports.colorGenByHash = _chunk5ARDICATcjs.colorGenByHash; exports.compareVersion = _chunkFSSKYWRTcjs.compareVersion; exports.compressImage = _chunkL5KGR7MEcjs.compressImage; exports.createFactory = _chunk5NP37CWOcjs.createFactory; exports.createLinearFunction = _chunk3TP6R4WAcjs.createLinearFunction; exports.createTrapInstance = _chunkMPVUIHAGcjs.createTrapInstance; exports.createWithLoading = _chunk74PINGFKcjs.createWithLoading; exports.debounce = _chunkHFUAXSGVcjs.debounce; exports.downloadFile = _chunkHGSEX5HQcjs.downloadFile; exports.each = _chunkUR2ABWZ4cjs.each; exports.eventBus = _chunkNSZPG5NOcjs.eventBus; exports.exitFullscreen = _chunkLG44HBZ4cjs.exitFullscreen; exports.factory = _chunk4YOKT62Rcjs.factory; exports.filterBankCardNo = _chunkH4CB6RZ5cjs.filterBankCardNo; exports.filterCRLF = _chunkCXDOHSIFcjs.filterCRLF; exports.filterEmoji = _chunkPRWCT37Dcjs.filterEmoji; exports.filterEmptyValue = _chunk6LOBB2KWcjs.filterEmptyValue; exports.filterIdCard = _chunkIS7BS4UCcjs.filterIdCard; exports.filterName = _chunkPQTXZSTUcjs.filterName; exports.filterPhone = _chunk5KTUK4SScjs.filterPhone; exports.filterString = _chunkXK4UPPRRcjs.filterString; exports.formatAmount = _chunkGPBXHPDAcjs.formatAmount; exports.formatDate = _chunkBPNPYUBRcjs.formatDate; exports.formatDateStr = _chunkHJFHIODBcjs.formatDateStr; exports.formatDateToZN = _chunkCANF5KF5cjs.formatDateToZN; exports.formatFileSize = _chunkEDVQTNLJcjs.formatFileSize; exports.formatMessage = _chunk22FM4HKFcjs.formatMessage; exports.formatPathParams = _chunkE7MIER2Tcjs.formatPathParams; exports.getBlobByUrl = _chunkFJDQPA7Acjs.getBlobByUrl; exports.getCache = _chunkC522WKFYcjs.getCache; exports.getDayMillisecond = _chunkEZJIAA6Bcjs.getDayMillisecond; exports.getImageInfo = _chunkPLAR2CBQcjs.getImageInfo; exports.getLocal = _chunkC522WKFYcjs.getLocal; exports.getMonthBounds = _chunkELDXB7BZcjs.getMonthBounds; exports.getRandom = _chunkGLLD74FCcjs.getRandom; exports.getRandomColor = _chunk3DLBDFKUcjs.getRandomColor; exports.getRandomNumber = _chunkEJV6YDGCcjs.getRandomNumber; exports.getRangeDate = _chunk2DCEWABWcjs.getRangeDate; exports.getScrollTop = _chunkXSHZO4H7cjs.getScrollTop; exports.getVideoInfo = _chunkHS5BXXAPcjs.getVideoInfo; exports.getWeekday = _chunkP3BVNREAcjs.getWeekday; exports.inBrowser = _chunkMWTRB6PBcjs.inBrowser; exports.insertLink = _chunkYSJISFDDcjs.insertLink; exports.insertScript = _chunkA5V2JWRFcjs.insertScript; exports.insertStyle = _chunkY65BJOJJcjs.insertStyle; exports.isAmount = _chunkFALWMHVNcjs.isAmount; exports.isAndroid = _chunk4AORUEO2cjs.isAndroid; exports.isArray = _chunk5PB5B4HHcjs.isArray; exports.isBoolean = _chunk6NGVHTCIcjs.isBoolean; exports.isChinese = _chunkEWEGXHJQcjs.isChinese; exports.isDate = _chunk2UG6AKMUcjs.isDate; exports.isEmail = _chunkRMH4RB2Dcjs.isEmail; exports.isEmpty = _chunkA2J34A3Kcjs.isEmpty; exports.isEmptyArray = _chunkX3A4TUQLcjs.isEmptyArray; exports.isEmptyObject = _chunk5XVQSGWZcjs.isEmptyObject; exports.isError = _chunkDZOWS2MAcjs.isError; exports.isFunction = _chunkOHDNJMMWcjs.isFunction; exports.isIE = _chunkKXUFBNO6cjs.isIE; exports.isIOS = _chunkGPSJ6TVVcjs.isIOS; exports.isIdCard = _chunkZIZGHVWBcjs.isIdCard; exports.isJSONString = _chunkE2DCMX7Ecjs.isJSONString; exports.isLan = _chunkC2J6KM7Acjs.isLan; exports.isLicenseCode = _chunk7PO2RFTNcjs.isLicenseCode; exports.isMobile = _chunk6RAOGPVDcjs.isMobile; exports.isNativeFunction = _chunkUEATWSR2cjs.isNativeFunction; exports.isNull = _chunkHILUSXLZcjs.isNull; exports.isNumber = _chunkOWRVHVPVcjs.isNumber; exports.isObject = _chunkOSEQ7XR6cjs.isObject; exports.isPhone = _chunk25SIHWQPcjs.isPhone; exports.isPromise = _chunkKZ4FXD7Xcjs.isPromise; exports.isRegExp = _chunk6U7TWPFKcjs.isRegExp; exports.isString = _chunkT5JI3MECcjs.isString; exports.isType = _chunkSGXWZSMScjs.isType; exports.isUndefined = _chunkFV6ZXO2Bcjs.isUndefined; exports.isUrl = _chunkI6VB2D7Ccjs.isUrl; exports.isValidDate = _chunkLJYE7HITcjs.isValidDate; exports.isWeChat = _chunkYRGRWQ7Lcjs.isWeChat; exports.isWeChatMiniProgram = _chunkASLPGL5Kcjs.isWeChatMiniProgram; exports.isWeixin = _chunkYRGRWQ7Lcjs.isWeixin; exports.isWindow = _chunkM6IV2L5Ccjs.isWindow; exports.kebabCase = _chunkM23T6OXJcjs.kebabCase; exports.listGenerator = _chunkXJIRG4ULcjs.listGenerator; exports.makePhoneCall = _chunkZZZLASMIcjs.makePhoneCall; exports.mousewheel = _chunkODAKGDKHcjs.mousewheel; exports.nf = _chunkJEUL7IDUcjs.nf; exports.normalizeDate = _chunkRTTG26O5cjs.normalizeDate; exports.normalizePath = _chunkZGX4PSUDcjs.normalizePath; exports.omit = _chunkSN4K47PZcjs.omit; exports.padding = _chunkGDDKMJAIcjs.padding; exports.parseDate = _chunkJGIFNIG6cjs.parseDate; exports.parseError = _chunkSYJEN3G6cjs.parseError; exports.parseObject = _chunkOZ4OLVHRcjs.parseObject; exports.parsePath = _chunkKWKJUVO6cjs.parsePath; exports.parseQuery = _chunkBMT7LU53cjs.parseQuery; exports.parseQueryString = _chunk5R3HPYN2cjs.parseQueryString; exports.pascalCase = _chunkSGFZYTKRcjs.pascalCase; exports.pick = _chunkG4WAYEDTcjs.pick; exports.replaceCrlf = _chunkE6II5N2Qcjs.replaceCrlf; exports.requestFullScreen = _chunkTDDP3MWOcjs.requestFullScreen; exports.reserve = _chunkKEDGCQDCcjs.reserve; exports.rgbToHex = _chunkJEYNULD2cjs.rgbToHex; exports.round = _chunkH3CSJ2K4cjs.round; exports.scrollToTop = _chunkIOIAYNDBcjs.scrollToTop; exports.setScrollTop = _chunkU6NQZGBGcjs.setScrollTop; exports.sleep = _chunkXL3QSME6cjs.sleep; exports.splitArray = _chunkDLFVAWQEcjs.splitArray; exports.stringTrim = _chunkLP2WQB3Xcjs.stringTrim; exports.stringifyQuery = _chunk73AXP7FDcjs.stringifyQuery; exports.stringifyQueryString = _chunkHTVUYJEVcjs.stringifyQueryString; exports.throttle = _chunkTVAUIFMFcjs.throttle; exports.throttleLeading = _chunkTVAUIFMFcjs.throttleLeading; exports.throttleTrailing = _chunkTVAUIFMFcjs.throttleTrailing; exports.toCDB = _chunk7CGDZ7SUcjs.toCDB; exports.toDBC = _chunkEE6TAHREcjs.toDBC; exports.trap = _chunkMPVUIHAGcjs.trap; exports.typeOf = _chunkKU2JNLWGcjs.typeOf; exports.withCache = _chunk2XXFQQUMcjs.withCache; exports.withPreventConsecutiveClicks = _chunkLTSAC5DKcjs.withPreventConsecutiveClicks;
|
package/lib/index.d.cts
CHANGED
|
@@ -39,6 +39,7 @@ export { formatPathParams } from './formatPathParams.cjs';
|
|
|
39
39
|
export { getBlobByUrl } from './getBlobByUrl.cjs';
|
|
40
40
|
export { getDayMillisecond } from './getDayMillisecond.cjs';
|
|
41
41
|
export { getImageInfo } from './getImageInfo.cjs';
|
|
42
|
+
export { getMonthBounds } from './getMonthBounds.cjs';
|
|
42
43
|
export { getRandom } from './getRandom.cjs';
|
|
43
44
|
export { getRandomColor } from './getRandomColor.cjs';
|
|
44
45
|
export { getRandomNumber } from './getRandomNumber.cjs';
|
|
@@ -119,6 +120,7 @@ export { toCDB } from './toCDB.cjs';
|
|
|
119
120
|
export { toDBC } from './toDBC.cjs';
|
|
120
121
|
export { Trap, createTrapInstance, trap } from './trap.cjs';
|
|
121
122
|
export { typeOf } from './typeOf.cjs';
|
|
123
|
+
export { withCache } from './withCache.cjs';
|
|
122
124
|
export { withPreventConsecutiveClicks } from './withPreventConsecutiveClicks.cjs';
|
|
123
125
|
export { StorageManager, factory } from './storage/factory.cjs';
|
|
124
126
|
import '@daysnap/types';
|