@daysnap/utils 0.1.14 → 0.1.16

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 (68) hide show
  1. package/docs/classes/Poller.md +9 -9
  2. package/docs/classes/Storage.md +13 -13
  3. package/docs/interfaces/EventBusCallback.md +1 -1
  4. package/docs/interfaces/PollerOptions.md +1 -1
  5. package/docs/interfaces/StorageManager.md +4 -4
  6. package/docs/interfaces/Trap.md +5 -5
  7. package/docs/modules.md +309 -142
  8. package/es/chunk-AAKGIVZB.js +21 -0
  9. package/es/chunk-BZ6JSRMY.js +8 -0
  10. package/es/chunk-MOZPLBC3.js +8 -0
  11. package/es/chunk-OOWZEABP.js +8 -0
  12. package/es/chunk-PXMH56CM.js +8 -0
  13. package/es/chunk-UDRRKKBB.js +12 -0
  14. package/es/crToBr.d.ts +6 -0
  15. package/es/crToBr.js +6 -0
  16. package/es/crlfToBr.d.ts +11 -0
  17. package/es/crlfToBr.js +8 -0
  18. package/es/filterEmptyValue.js +3 -3
  19. package/es/getDateBoundsByMonths.d.ts +1 -1
  20. package/es/getDaysOfMonth.d.ts +6 -0
  21. package/es/getDaysOfMonth.js +6 -0
  22. package/es/getMonthBounds.d.ts +1 -1
  23. package/es/getWeekBounds.d.ts +7 -0
  24. package/es/getWeekBounds.js +9 -0
  25. package/es/index.d.ts +6 -1
  26. package/es/index.js +123 -101
  27. package/es/isLeapYear.d.ts +7 -0
  28. package/es/isLeapYear.js +6 -0
  29. package/es/lfToBr.d.ts +6 -0
  30. package/es/lfToBr.js +6 -0
  31. package/es/storage/index.js +3 -3
  32. package/es/stringifyQuery.js +2 -2
  33. package/lib/chunk-4WWOJSX3.cjs +21 -0
  34. package/lib/chunk-EUH2FDMT.cjs +8 -0
  35. package/lib/chunk-TMCJ3HTA.cjs +12 -0
  36. package/lib/chunk-UTUKZLEN.cjs +8 -0
  37. package/lib/chunk-XSCXPGEI.cjs +8 -0
  38. package/lib/chunk-ZSDKKWIQ.cjs +8 -0
  39. package/lib/crToBr.cjs +6 -0
  40. package/lib/crToBr.d.cts +6 -0
  41. package/lib/crlfToBr.cjs +8 -0
  42. package/lib/crlfToBr.d.cts +11 -0
  43. package/lib/filterEmptyValue.cjs +4 -4
  44. package/lib/getDateBoundsByMonths.d.cts +1 -1
  45. package/lib/getDaysOfMonth.cjs +6 -0
  46. package/lib/getDaysOfMonth.d.cts +6 -0
  47. package/lib/getMonthBounds.d.cts +1 -1
  48. package/lib/getWeekBounds.cjs +9 -0
  49. package/lib/getWeekBounds.d.cts +7 -0
  50. package/lib/index.cjs +95 -73
  51. package/lib/index.d.cts +6 -1
  52. package/lib/isLeapYear.cjs +6 -0
  53. package/lib/isLeapYear.d.cts +7 -0
  54. package/lib/lfToBr.cjs +6 -0
  55. package/lib/lfToBr.d.cts +6 -0
  56. package/lib/storage/index.cjs +2 -2
  57. package/lib/stringifyQuery.cjs +3 -3
  58. package/package.json +1 -1
  59. package/es/chunk-S2FOFDX4.js +0 -8
  60. package/es/filterCRLF.d.ts +0 -6
  61. package/es/filterCRLF.js +0 -6
  62. package/lib/chunk-CXDOHSIF.cjs +0 -8
  63. package/lib/filterCRLF.cjs +0 -6
  64. package/lib/filterCRLF.d.cts +0 -6
  65. package/es/{chunk-NXEL6RMI.js → chunk-SMNIKKYG.js} +6 -6
  66. package/es/{chunk-VDXSQKQF.js → chunk-WXXFRKUS.js} +3 -3
  67. package/lib/{chunk-PYFTXKFI.cjs → chunk-4P4EJVBW.cjs} +4 -4
  68. package/lib/{chunk-73AXP7FD.cjs → chunk-4USHGA4P.cjs} +2 -2
@@ -0,0 +1,6 @@
1
+ /**
2
+ * \n to <br/>
3
+ */
4
+ declare function lfToBr(v: string): string;
5
+
6
+ export { lfToBr };
@@ -4,10 +4,10 @@
4
4
  var _chunk2PEWYRYDcjs = require('../chunk-2PEWYRYD.cjs');
5
5
 
6
6
 
7
- var _chunkGQFHHWIVcjs = require('../chunk-GQFHHWIV.cjs');
7
+ var _chunk4YOKT62Rcjs = require('../chunk-4YOKT62R.cjs');
8
8
 
9
9
 
10
- var _chunk4YOKT62Rcjs = require('../chunk-4YOKT62R.cjs');
10
+ var _chunkGQFHHWIVcjs = require('../chunk-GQFHHWIV.cjs');
11
11
  require('../chunk-5PB5B4HH.cjs');
12
12
  require('../chunk-OSEQ7XR6.cjs');
13
13
 
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk73AXP7FDcjs = require('./chunk-73AXP7FD.cjs');
4
- require('./chunk-5XVQSGWZ.cjs');
3
+ var _chunk4USHGA4Pcjs = require('./chunk-4USHGA4P.cjs');
5
4
  require('./chunk-T5JI3MEC.cjs');
5
+ require('./chunk-5XVQSGWZ.cjs');
6
6
 
7
7
 
8
- exports.stringifyQuery = _chunk73AXP7FDcjs.stringifyQuery;
8
+ exports.stringifyQuery = _chunk4USHGA4Pcjs.stringifyQuery;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
3
  "type": "module",
4
- "version": "0.1.14",
4
+ "version": "0.1.16",
5
5
  "description": "通用的工具库",
6
6
  "exports": {
7
7
  ".": {
@@ -1,8 +0,0 @@
1
- // src/filterCRLF.ts
2
- function filterCRLF(v) {
3
- return v.replace(/\r|\n/gi, "<br/>");
4
- }
5
-
6
- export {
7
- filterCRLF
8
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * 替换字符串里面的回车换行符
3
- */
4
- declare function filterCRLF(v: string): string;
5
-
6
- export { filterCRLF };
package/es/filterCRLF.js DELETED
@@ -1,6 +0,0 @@
1
- import {
2
- filterCRLF
3
- } from "./chunk-S2FOFDX4.js";
4
- export {
5
- filterCRLF
6
- };
@@ -1,8 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/filterCRLF.ts
2
- function filterCRLF(v) {
3
- return v.replace(/\r|\n/gi, "<br/>");
4
- }
5
-
6
-
7
-
8
- exports.filterCRLF = filterCRLF;
@@ -1,6 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkCXDOHSIFcjs = require('./chunk-CXDOHSIF.cjs');
4
-
5
-
6
- exports.filterCRLF = _chunkCXDOHSIFcjs.filterCRLF;
@@ -1,6 +0,0 @@
1
- /**
2
- * 替换字符串里面的回车换行符
3
- */
4
- declare function filterCRLF(v: string): string;
5
-
6
- export { filterCRLF };
@@ -1,15 +1,15 @@
1
- import {
2
- isEmptyObject
3
- } from "./chunk-GVYBTJDA.js";
4
- import {
5
- isFunction
6
- } from "./chunk-WCZPEH7E.js";
7
1
  import {
8
2
  isEmpty
9
3
  } from "./chunk-YGV2UKBN.js";
10
4
  import {
11
5
  isEmptyArray
12
6
  } from "./chunk-ELR2DZ56.js";
7
+ import {
8
+ isEmptyObject
9
+ } from "./chunk-GVYBTJDA.js";
10
+ import {
11
+ isFunction
12
+ } from "./chunk-WCZPEH7E.js";
13
13
  import {
14
14
  isObject
15
15
  } from "./chunk-XCSSSEK2.js";
@@ -1,9 +1,9 @@
1
- import {
2
- isEmptyObject
3
- } from "./chunk-GVYBTJDA.js";
4
1
  import {
5
2
  isString
6
3
  } from "./chunk-F4QMON2N.js";
4
+ import {
5
+ isEmptyObject
6
+ } from "./chunk-GVYBTJDA.js";
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 _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
3
+ var _chunkA2J34A3Kcjs = require('./chunk-A2J34A3K.cjs');
4
4
 
5
5
 
6
- var _chunkOHDNJMMWcjs = require('./chunk-OHDNJMMW.cjs');
6
+ var _chunkX3A4TUQLcjs = require('./chunk-X3A4TUQL.cjs');
7
7
 
8
8
 
9
- var _chunkA2J34A3Kcjs = require('./chunk-A2J34A3K.cjs');
9
+ var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
10
10
 
11
11
 
12
- var _chunkX3A4TUQLcjs = require('./chunk-X3A4TUQL.cjs');
12
+ var _chunkOHDNJMMWcjs = require('./chunk-OHDNJMMW.cjs');
13
13
 
14
14
 
15
15
  var _chunkOSEQ7XR6cjs = require('./chunk-OSEQ7XR6.cjs');
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
3
+ var _chunkT5JI3MECcjs = require('./chunk-T5JI3MEC.cjs');
4
4
 
5
5
 
6
- var _chunkT5JI3MECcjs = require('./chunk-T5JI3MEC.cjs');
6
+ var _chunk5XVQSGWZcjs = require('./chunk-5XVQSGWZ.cjs');
7
7
 
8
8
  // src/stringifyQuery.ts
9
9
  function stringifyQuery(v) {