@unicom-cloud/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 (40) hide show
  1. package/content-disposition/index.js +34 -31
  2. package/contentDisposition.js +7 -5
  3. package/file/saveAs.js +13 -14
  4. package/lunar/lib/Holiday.js +2 -6
  5. package/lunar/lib/HolidayUtil.js +113 -99
  6. package/lunar/lib/I18n.js +395 -975
  7. package/lunar/lib/JieQi.js +12 -16
  8. package/lunar/lib/Lunar.js +224 -672
  9. package/lunar/lib/LunarMonth.js +35 -98
  10. package/lunar/lib/LunarTime.js +24 -103
  11. package/lunar/lib/LunarUtil.js +426 -1728
  12. package/lunar/lib/LunarYear.js +473 -566
  13. package/lunar/lib/ShouXingUtil.js +6714 -6690
  14. package/lunar/lib/Solar.js +24 -49
  15. package/lunar/lib/SolarHalfYear.js +0 -2
  16. package/lunar/lib/SolarMonth.js +4 -6
  17. package/lunar/lib/SolarSeason.js +0 -2
  18. package/lunar/lib/SolarUtil.js +238 -226
  19. package/lunar/lib/SolarWeek.js +7 -11
  20. package/lunar/lib/SolarYear.js +0 -1
  21. package/mock/MockWebSocket.js +2 -2
  22. package/package.json +1 -1
  23. package/snapdom/src/api/snapdom.js +72 -71
  24. package/snapdom/src/core/prepare.js +21 -21
  25. package/snapdom/src/modules/background.js +23 -17
  26. package/snapdom/src/modules/fonts.js +99 -91
  27. package/snapdom/src/modules/pseudo.js +59 -70
  28. package/tinycolor/src/conversion.js +1 -1
  29. package/tinycolor/src/index.js +2 -19
  30. package/turbo-stream/src/encode.js +5 -8
  31. package/turbo-stream/src/shared.js +117 -119
  32. package/types/file/saveAs.d.ts +1 -1
  33. package/types/lunar/lib/Lunar.d.ts +0 -98
  34. package/types/lunar/lib/LunarMonth.d.ts +0 -12
  35. package/types/lunar/lib/LunarTime.d.ts +0 -22
  36. package/types/lunar/lib/LunarUtil.d.ts +0 -90
  37. package/types/lunar/lib/LunarYear.d.ts +0 -30
  38. package/types/lunar/lib/Solar.d.ts +0 -5
  39. package/types/snapdom/src/modules/pseudo.d.ts +1 -1
  40. package/types/tinycolor/src/conversion.d.ts +1 -1
@@ -1,17 +1,13 @@
1
1
  import { LunarUtil as a } from "./LunarUtil.js";
2
- class h {
3
- _name;
4
- _solar;
5
- _jie;
6
- _qi;
7
- constructor(e, _) {
8
- let i = !1, r = !1, t, s;
9
- for (t = 0, s = a.JIE_QI.length; t < s; t++)
10
- if (a.JIE_QI[t] === e) {
11
- t % 2 == 0 ? r = !0 : i = !0;
2
+ class _ {
3
+ constructor(t, h) {
4
+ let i = !1, r = !1, e, s;
5
+ for (e = 0, s = a.JIE_QI.length; e < s; e++)
6
+ if (a.JIE_QI[e] === t) {
7
+ e % 2 == 0 ? r = !0 : i = !0;
12
8
  break;
13
9
  }
14
- this._name = e, this._solar = _, this._jie = i, this._qi = r;
10
+ this._name = t, this._solar = h, this._jie = i, this._qi = r;
15
11
  }
16
12
  getName() {
17
13
  return this._name;
@@ -19,11 +15,11 @@ class h {
19
15
  getSolar() {
20
16
  return this._solar;
21
17
  }
22
- setName(e) {
23
- this._name = e;
18
+ setName(t) {
19
+ this._name = t;
24
20
  }
25
- setSolar(e) {
26
- this._solar = e;
21
+ setSolar(t) {
22
+ this._solar = t;
27
23
  }
28
24
  isJie() {
29
25
  return this._jie;
@@ -36,5 +32,5 @@ class h {
36
32
  }
37
33
  }
38
34
  export {
39
- h as JieQi
35
+ _ as JieQi
40
36
  };