@daysnap/utils 0.1.16 → 0.1.18
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/classes/Storage.md +13 -13
- 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 +144 -340
- package/es/blobToBase64.d.ts +1 -1
- package/es/blobToBase64.js +1 -1
- package/es/{chunk-2ZSZ4GDI.js → chunk-65FBSULU.js} +1 -2
- package/es/{chunk-WXD7J2FR.js → chunk-DW5GIB4A.js} +1 -2
- package/es/chunk-HRKQWKOJ.js +21 -0
- package/es/chunk-S2FOFDX4.js +8 -0
- package/es/{chunk-D5O4LXN3.js → chunk-YLHA5VH3.js} +1 -1
- package/es/filterCRLF.d.ts +6 -0
- package/es/filterCRLF.js +6 -0
- package/es/filterEmptyValue.js +3 -3
- package/es/formartDateToZN.js +1 -1
- package/es/formatFileSize.js +1 -1
- package/es/getDateBoundsByMonths.d.ts +1 -1
- package/es/getMonthBounds.d.ts +1 -1
- package/es/index.d.ts +2 -8
- package/es/index.js +95 -121
- package/es/{isUrl.js → isURL.js} +1 -1
- package/es/stringifyQuery.js +2 -2
- package/lib/blobToBase64.cjs +2 -2
- package/lib/blobToBase64.d.cts +1 -1
- package/lib/{chunk-YIW4PW4Q.cjs → chunk-CDHFRZQM.cjs} +8 -2
- package/lib/chunk-CXDOHSIF.cjs +8 -0
- package/lib/{chunk-KT3FWGJG.cjs → chunk-DIJ3MI2T.cjs} +1 -2
- package/lib/{chunk-EDVQTNLJ.cjs → chunk-LJD6E7O5.cjs} +1 -2
- package/lib/{chunk-I6VB2D7C.cjs → chunk-YMGGMXZL.cjs} +1 -1
- package/lib/filterCRLF.cjs +6 -0
- package/lib/filterCRLF.d.cts +6 -0
- package/lib/filterEmptyValue.cjs +4 -4
- package/lib/formartDateToZN.cjs +2 -2
- package/lib/formatFileSize.cjs +2 -2
- package/lib/getDateBoundsByMonths.d.cts +1 -1
- package/lib/getMonthBounds.d.cts +1 -1
- package/lib/index.cjs +71 -97
- package/lib/index.d.cts +2 -8
- package/lib/isURL.cjs +6 -0
- package/lib/stringifyQuery.cjs +3 -3
- package/package.json +1 -1
- package/docs/classes/Poller.md +0 -151
- package/docs/interfaces/PollerOptions.md +0 -19
- package/es/chunk-AAKGIVZB.js +0 -21
- package/es/chunk-BZ6JSRMY.js +0 -8
- package/es/chunk-GLJALZRT.js +0 -43
- package/es/chunk-KH7MPMQF.js +0 -15
- package/es/chunk-MOZPLBC3.js +0 -8
- package/es/chunk-OOWZEABP.js +0 -8
- package/es/chunk-PXMH56CM.js +0 -8
- package/es/chunk-UDRRKKBB.js +0 -12
- package/es/crToBr.d.ts +0 -6
- package/es/crToBr.js +0 -6
- package/es/crlfToBr.d.ts +0 -11
- package/es/crlfToBr.js +0 -8
- package/es/getDaysOfMonth.d.ts +0 -6
- package/es/getDaysOfMonth.js +0 -6
- package/es/getWeekBounds.d.ts +0 -7
- package/es/getWeekBounds.js +0 -9
- package/es/isLeapYear.d.ts +0 -7
- package/es/isLeapYear.js +0 -6
- package/es/lfToBr.d.ts +0 -6
- package/es/lfToBr.js +0 -6
- package/es/poller.d.ts +0 -20
- package/es/poller.js +0 -7
- package/lib/chunk-4WWOJSX3.cjs +0 -21
- package/lib/chunk-EUH2FDMT.cjs +0 -8
- package/lib/chunk-TDUDOSU4.cjs +0 -43
- package/lib/chunk-TMCJ3HTA.cjs +0 -12
- package/lib/chunk-UTUKZLEN.cjs +0 -8
- package/lib/chunk-XSCXPGEI.cjs +0 -8
- package/lib/chunk-ZSDKKWIQ.cjs +0 -8
- package/lib/crToBr.cjs +0 -6
- package/lib/crToBr.d.cts +0 -6
- package/lib/crlfToBr.cjs +0 -8
- package/lib/crlfToBr.d.cts +0 -11
- package/lib/getDaysOfMonth.cjs +0 -6
- package/lib/getDaysOfMonth.d.cts +0 -6
- package/lib/getWeekBounds.cjs +0 -9
- package/lib/getWeekBounds.d.cts +0 -7
- package/lib/isLeapYear.cjs +0 -6
- package/lib/isLeapYear.d.cts +0 -7
- package/lib/isUrl.cjs +0 -6
- package/lib/lfToBr.cjs +0 -6
- package/lib/lfToBr.d.cts +0 -6
- package/lib/poller.cjs +0 -7
- package/lib/poller.d.cts +0 -20
- package/es/{chunk-SMNIKKYG.js → chunk-NXEL6RMI.js} +6 -6
- package/es/{chunk-WXXFRKUS.js → chunk-VDXSQKQF.js} +3 -3
- package/es/{isUrl.d.ts → isURL.d.ts} +0 -0
- package/lib/{chunk-4USHGA4P.cjs → chunk-73AXP7FD.cjs} +2 -2
- package/lib/{chunk-4P4EJVBW.cjs → chunk-PYFTXKFI.cjs} +4 -4
- /package/lib/{isUrl.d.cts → isURL.d.cts} +0 -0
package/lib/poller.cjs
DELETED
package/lib/poller.d.cts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 说明
|
|
3
|
-
*/
|
|
4
|
-
type PollerTask = (poller: Poller) => void | Promise<void>;
|
|
5
|
-
interface PollerOptions {
|
|
6
|
-
delay: number;
|
|
7
|
-
}
|
|
8
|
-
declare class Poller {
|
|
9
|
-
private count;
|
|
10
|
-
private task;
|
|
11
|
-
private options;
|
|
12
|
-
private currentCount;
|
|
13
|
-
get isRunning(): boolean;
|
|
14
|
-
constructor(task: PollerTask, options?: Partial<PollerOptions>);
|
|
15
|
-
private run;
|
|
16
|
-
stop(): this;
|
|
17
|
-
start(forceUpdate?: boolean): this;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { Poller, type PollerOptions, type PollerTask };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isEmpty
|
|
3
|
-
} from "./chunk-YGV2UKBN.js";
|
|
4
|
-
import {
|
|
5
|
-
isEmptyArray
|
|
6
|
-
} from "./chunk-ELR2DZ56.js";
|
|
7
1
|
import {
|
|
8
2
|
isEmptyObject
|
|
9
3
|
} from "./chunk-GVYBTJDA.js";
|
|
10
4
|
import {
|
|
11
5
|
isFunction
|
|
12
6
|
} from "./chunk-WCZPEH7E.js";
|
|
7
|
+
import {
|
|
8
|
+
isEmpty
|
|
9
|
+
} from "./chunk-YGV2UKBN.js";
|
|
10
|
+
import {
|
|
11
|
+
isEmptyArray
|
|
12
|
+
} from "./chunk-ELR2DZ56.js";
|
|
13
13
|
import {
|
|
14
14
|
isObject
|
|
15
15
|
} from "./chunk-XCSSSEK2.js";
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT5JI3MECcjs = require('./chunk-T5JI3MEC.cjs');
|
|
7
7
|
|
|
8
8
|
// src/stringifyQuery.ts
|
|
9
9
|
function stringifyQuery(v) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOHDNJMMWcjs = require('./chunk-OHDNJMMW.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkA2J34A3Kcjs = require('./chunk-A2J34A3K.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkX3A4TUQLcjs = require('./chunk-X3A4TUQL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkOSEQ7XR6cjs = require('./chunk-OSEQ7XR6.cjs');
|
|
File without changes
|