@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.
Files changed (94) hide show
  1. package/docs/classes/Storage.md +13 -13
  2. package/docs/interfaces/EventBusCallback.md +1 -1
  3. package/docs/interfaces/StorageManager.md +4 -4
  4. package/docs/interfaces/Trap.md +5 -5
  5. package/docs/modules.md +144 -340
  6. package/es/blobToBase64.d.ts +1 -1
  7. package/es/blobToBase64.js +1 -1
  8. package/es/{chunk-2ZSZ4GDI.js → chunk-65FBSULU.js} +1 -2
  9. package/es/{chunk-WXD7J2FR.js → chunk-DW5GIB4A.js} +1 -2
  10. package/es/chunk-HRKQWKOJ.js +21 -0
  11. package/es/chunk-S2FOFDX4.js +8 -0
  12. package/es/{chunk-D5O4LXN3.js → chunk-YLHA5VH3.js} +1 -1
  13. package/es/filterCRLF.d.ts +6 -0
  14. package/es/filterCRLF.js +6 -0
  15. package/es/filterEmptyValue.js +3 -3
  16. package/es/formartDateToZN.js +1 -1
  17. package/es/formatFileSize.js +1 -1
  18. package/es/getDateBoundsByMonths.d.ts +1 -1
  19. package/es/getMonthBounds.d.ts +1 -1
  20. package/es/index.d.ts +2 -8
  21. package/es/index.js +95 -121
  22. package/es/{isUrl.js → isURL.js} +1 -1
  23. package/es/stringifyQuery.js +2 -2
  24. package/lib/blobToBase64.cjs +2 -2
  25. package/lib/blobToBase64.d.cts +1 -1
  26. package/lib/{chunk-YIW4PW4Q.cjs → chunk-CDHFRZQM.cjs} +8 -2
  27. package/lib/chunk-CXDOHSIF.cjs +8 -0
  28. package/lib/{chunk-KT3FWGJG.cjs → chunk-DIJ3MI2T.cjs} +1 -2
  29. package/lib/{chunk-EDVQTNLJ.cjs → chunk-LJD6E7O5.cjs} +1 -2
  30. package/lib/{chunk-I6VB2D7C.cjs → chunk-YMGGMXZL.cjs} +1 -1
  31. package/lib/filterCRLF.cjs +6 -0
  32. package/lib/filterCRLF.d.cts +6 -0
  33. package/lib/filterEmptyValue.cjs +4 -4
  34. package/lib/formartDateToZN.cjs +2 -2
  35. package/lib/formatFileSize.cjs +2 -2
  36. package/lib/getDateBoundsByMonths.d.cts +1 -1
  37. package/lib/getMonthBounds.d.cts +1 -1
  38. package/lib/index.cjs +71 -97
  39. package/lib/index.d.cts +2 -8
  40. package/lib/isURL.cjs +6 -0
  41. package/lib/stringifyQuery.cjs +3 -3
  42. package/package.json +1 -1
  43. package/docs/classes/Poller.md +0 -151
  44. package/docs/interfaces/PollerOptions.md +0 -19
  45. package/es/chunk-AAKGIVZB.js +0 -21
  46. package/es/chunk-BZ6JSRMY.js +0 -8
  47. package/es/chunk-GLJALZRT.js +0 -43
  48. package/es/chunk-KH7MPMQF.js +0 -15
  49. package/es/chunk-MOZPLBC3.js +0 -8
  50. package/es/chunk-OOWZEABP.js +0 -8
  51. package/es/chunk-PXMH56CM.js +0 -8
  52. package/es/chunk-UDRRKKBB.js +0 -12
  53. package/es/crToBr.d.ts +0 -6
  54. package/es/crToBr.js +0 -6
  55. package/es/crlfToBr.d.ts +0 -11
  56. package/es/crlfToBr.js +0 -8
  57. package/es/getDaysOfMonth.d.ts +0 -6
  58. package/es/getDaysOfMonth.js +0 -6
  59. package/es/getWeekBounds.d.ts +0 -7
  60. package/es/getWeekBounds.js +0 -9
  61. package/es/isLeapYear.d.ts +0 -7
  62. package/es/isLeapYear.js +0 -6
  63. package/es/lfToBr.d.ts +0 -6
  64. package/es/lfToBr.js +0 -6
  65. package/es/poller.d.ts +0 -20
  66. package/es/poller.js +0 -7
  67. package/lib/chunk-4WWOJSX3.cjs +0 -21
  68. package/lib/chunk-EUH2FDMT.cjs +0 -8
  69. package/lib/chunk-TDUDOSU4.cjs +0 -43
  70. package/lib/chunk-TMCJ3HTA.cjs +0 -12
  71. package/lib/chunk-UTUKZLEN.cjs +0 -8
  72. package/lib/chunk-XSCXPGEI.cjs +0 -8
  73. package/lib/chunk-ZSDKKWIQ.cjs +0 -8
  74. package/lib/crToBr.cjs +0 -6
  75. package/lib/crToBr.d.cts +0 -6
  76. package/lib/crlfToBr.cjs +0 -8
  77. package/lib/crlfToBr.d.cts +0 -11
  78. package/lib/getDaysOfMonth.cjs +0 -6
  79. package/lib/getDaysOfMonth.d.cts +0 -6
  80. package/lib/getWeekBounds.cjs +0 -9
  81. package/lib/getWeekBounds.d.cts +0 -7
  82. package/lib/isLeapYear.cjs +0 -6
  83. package/lib/isLeapYear.d.cts +0 -7
  84. package/lib/isUrl.cjs +0 -6
  85. package/lib/lfToBr.cjs +0 -6
  86. package/lib/lfToBr.d.cts +0 -6
  87. package/lib/poller.cjs +0 -7
  88. package/lib/poller.d.cts +0 -20
  89. package/es/{chunk-SMNIKKYG.js → chunk-NXEL6RMI.js} +6 -6
  90. package/es/{chunk-WXXFRKUS.js → chunk-VDXSQKQF.js} +3 -3
  91. package/es/{isUrl.d.ts → isURL.d.ts} +0 -0
  92. package/lib/{chunk-4USHGA4P.cjs → chunk-73AXP7FD.cjs} +2 -2
  93. package/lib/{chunk-4P4EJVBW.cjs → chunk-PYFTXKFI.cjs} +4 -4
  94. /package/lib/{isUrl.d.cts → isURL.d.cts} +0 -0
package/lib/poller.cjs DELETED
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkTDUDOSU4cjs = require('./chunk-TDUDOSU4.cjs');
4
- require('./chunk-XL3QSME6.cjs');
5
-
6
-
7
- exports.Poller = _chunkTDUDOSU4cjs.Poller;
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";
@@ -1,9 +1,9 @@
1
- import {
2
- isString
3
- } from "./chunk-F4QMON2N.js";
4
1
  import {
5
2
  isEmptyObject
6
3
  } from "./chunk-GVYBTJDA.js";
4
+ import {
5
+ isString
6
+ } from "./chunk-F4QMON2N.js";
7
7
 
8
8
  // src/stringifyQuery.ts
9
9
  function stringifyQuery(v) {
File without changes
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT5JI3MECcjs = require('./chunk-T5JI3MEC.cjs');
3
+ var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
4
4
 
5
5
 
6
- var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
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 _chunkA2J34A3Kcjs = require('./chunk-A2J34A3K.cjs');
3
+ var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
4
4
 
5
5
 
6
- var _chunkX3A4TUQLcjs = require('./chunk-X3A4TUQL.cjs');
6
+ var _chunkOHDNJMMWcjs = require('./chunk-OHDNJMMW.cjs');
7
7
 
8
8
 
9
- var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
9
+ var _chunkA2J34A3Kcjs = require('./chunk-A2J34A3K.cjs');
10
10
 
11
11
 
12
- var _chunkOHDNJMMWcjs = require('./chunk-OHDNJMMW.cjs');
12
+ var _chunkX3A4TUQLcjs = require('./chunk-X3A4TUQL.cjs');
13
13
 
14
14
 
15
15
  var _chunkOSEQ7XR6cjs = require('./chunk-OSEQ7XR6.cjs');
File without changes