umaki 0.6.3 → 0.7.5

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 (131) hide show
  1. package/README.md +10 -2
  2. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  3. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  4. package/dist/_virtual/isBetween.cjs.js +6 -14
  5. package/dist/_virtual/isBetween.cjs2.js +4 -0
  6. package/dist/_virtual/isBetween.es.js +5 -13
  7. package/dist/_virtual/isBetween.es2.js +4 -0
  8. package/dist/_virtual/timezone.cjs.js +6 -14
  9. package/dist/_virtual/timezone.cjs2.js +4 -0
  10. package/dist/_virtual/timezone.es.js +5 -13
  11. package/dist/_virtual/timezone.es2.js +4 -0
  12. package/dist/_virtual/utc.cjs.js +6 -14
  13. package/dist/_virtual/utc.cjs2.js +4 -0
  14. package/dist/_virtual/utc.es.js +5 -13
  15. package/dist/_virtual/utc.es2.js +4 -0
  16. package/dist/index.cjs.js +4 -15
  17. package/dist/index.es.js +2 -13
  18. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  19. package/dist/libs/config/defaultConfig.es.js +0 -11
  20. package/dist/libs/config/getConfig.cjs.js +0 -11
  21. package/dist/libs/config/getConfig.es.js +0 -11
  22. package/dist/libs/config/index.d.ts +1 -1
  23. package/dist/libs/config/setConfig.cjs.js +0 -11
  24. package/dist/libs/config/setConfig.es.js +0 -11
  25. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  26. package/dist/libs/control/bgScrollStop.es.js +0 -11
  27. package/dist/libs/control/pd.cjs.js +0 -11
  28. package/dist/libs/control/pd.es.js +0 -11
  29. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  30. package/dist/libs/control/scrollToHash.es.js +0 -11
  31. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  32. package/dist/libs/control/videoPlayControl.es.js +0 -11
  33. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  35. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  36. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  37. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  38. package/dist/libs/eventControl/debounce.es.js +0 -11
  39. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  40. package/dist/libs/eventControl/throttle.es.js +0 -11
  41. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  42. package/dist/libs/get/getAspectRatio.es.js +0 -11
  43. package/dist/libs/get/getClassNames.cjs.js +0 -11
  44. package/dist/libs/get/getClassNames.es.js +0 -11
  45. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  46. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  47. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  48. package/dist/libs/get/getEventPaths.es.js +1 -13
  49. package/dist/libs/get/getGcd.cjs.js +0 -11
  50. package/dist/libs/get/getGcd.es.js +0 -11
  51. package/dist/libs/get/getGravatarUrl.cjs.js +0 -11
  52. package/dist/libs/get/getGravatarUrl.es.js +0 -11
  53. package/dist/libs/get/getOrientation.cjs.js +0 -11
  54. package/dist/libs/get/getOrientation.es.js +0 -11
  55. package/dist/libs/get/getParentList.cjs.js +0 -11
  56. package/dist/libs/get/getParentList.es.js +0 -11
  57. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  58. package/dist/libs/get/getQueryParams.es.js +0 -11
  59. package/dist/libs/get/getRem.cjs.js +4 -13
  60. package/dist/libs/get/getRem.d.ts +1 -0
  61. package/dist/libs/get/getRem.es.js +4 -13
  62. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  63. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  64. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  65. package/dist/libs/get/getSessionStorage.es.js +0 -11
  66. package/dist/libs/get/getStringLength.cjs.js +0 -11
  67. package/dist/libs/get/getStringLength.es.js +0 -11
  68. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  69. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  70. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  71. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  72. package/dist/libs/get/getUaData.cjs.js +1 -12
  73. package/dist/libs/get/getUaData.es.js +1 -12
  74. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  75. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  76. package/dist/libs/is/index.d.ts +1 -1
  77. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  78. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  79. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  80. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  81. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  82. package/dist/libs/is/isExistAllElements.es.js +0 -11
  83. package/dist/libs/is/isIpad.cjs.js +0 -11
  84. package/dist/libs/is/isIpad.es.js +0 -11
  85. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  86. package/dist/libs/is/isKeyExists.es.js +1 -12
  87. package/dist/libs/is/isSafari.cjs.js +0 -11
  88. package/dist/libs/is/isSafari.es.js +0 -11
  89. package/dist/libs/is/isScrollable.cjs.js +0 -11
  90. package/dist/libs/is/isScrollable.es.js +0 -11
  91. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  92. package/dist/libs/is/isTouchSupport.es.js +2 -13
  93. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  94. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  95. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  96. package/dist/libs/remove/removeAttribute.es.js +0 -11
  97. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  98. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  99. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  100. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  101. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  102. package/dist/libs/security/htmlSanitize.es.js +0 -11
  103. package/dist/libs/set/set100vh.cjs.js +0 -11
  104. package/dist/libs/set/set100vh.es.js +0 -11
  105. package/dist/libs/set/set100vw.cjs.js +0 -11
  106. package/dist/libs/set/set100vw.es.js +0 -11
  107. package/dist/libs/set/setAttribute.cjs.js +0 -11
  108. package/dist/libs/set/setAttribute.es.js +0 -11
  109. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  110. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  111. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  112. package/dist/libs/set/setSessionStorage.es.js +0 -11
  113. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  114. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  115. package/dist/libs/to/toBoolean.cjs.js +0 -11
  116. package/dist/libs/to/toBoolean.es.js +0 -11
  117. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  118. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  119. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  120. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  121. package/dist/libs/wait/sleep.cjs.js +0 -11
  122. package/dist/libs/wait/sleep.es.js +0 -11
  123. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  124. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  125. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +21 -28
  126. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +20 -27
  127. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +69 -76
  128. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +68 -75
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +81 -88
  130. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +80 -87
  131. package/package.json +19 -19
@@ -1,90 +1,83 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.3
5
- * description: A utility that is often used in web production.
6
- * author: TsubasaHiga
7
- * homepage: https://github.com/TsubasaHiga/umaki
8
- * Released under the MIT License
9
- *
10
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
11
- * For license information, please see LICENSE.txt
12
- */
13
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
14
- const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs.js");
15
- const utc$1 = require("../../../../../../_virtual/utc.cjs.js");
16
- (function(module2, exports$1) {
17
- !function(t, i) {
18
- module2.exports = i();
19
- }(_commonjsHelpers.commonjsGlobal, function() {
20
- var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
21
- return function(s, f, n) {
22
- var u = f.prototype;
23
- n.utc = function(t2) {
24
- var i2 = { date: t2, utc: true, args: arguments };
25
- return new f(i2);
26
- }, u.utc = function(i2) {
27
- var e2 = n(this.toDate(), { locale: this.$L, utc: true });
28
- return i2 ? e2.add(this.utcOffset(), t) : e2;
29
- }, u.local = function() {
30
- return n(this.toDate(), { locale: this.$L, utc: false });
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const utc$1 = require("../../../../../../_virtual/utc.cjs2.js");
4
+ var utc = utc$1.__module.exports;
5
+ var hasRequiredUtc;
6
+ function requireUtc() {
7
+ if (hasRequiredUtc) return utc$1.__module.exports;
8
+ hasRequiredUtc = 1;
9
+ (function(module2, exports$1) {
10
+ !(function(t, i) {
11
+ module2.exports = i();
12
+ })(utc, (function() {
13
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
14
+ return function(s, f, n) {
15
+ var u = f.prototype;
16
+ n.utc = function(t2) {
17
+ var i2 = { date: t2, utc: true, args: arguments };
18
+ return new f(i2);
19
+ }, u.utc = function(i2) {
20
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
21
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
22
+ }, u.local = function() {
23
+ return n(this.toDate(), { locale: this.$L, utc: false });
24
+ };
25
+ var r = u.parse;
26
+ u.parse = function(t2) {
27
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
28
+ };
29
+ var o = u.init;
30
+ u.init = function() {
31
+ if (this.$u) {
32
+ var t2 = this.$d;
33
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
34
+ } else o.call(this);
35
+ };
36
+ var a = u.utcOffset;
37
+ u.utcOffset = function(s2, f2) {
38
+ var n2 = this.$utils().u;
39
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
40
+ if ("string" == typeof s2 && (s2 = (function(t2) {
41
+ void 0 === t2 && (t2 = "");
42
+ var s3 = t2.match(i);
43
+ if (!s3) return null;
44
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
45
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
46
+ })(s2), null === s2)) return this;
47
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
48
+ if (0 === u2) return this.utc(f2);
49
+ var r2 = this.clone();
50
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
51
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
52
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
53
+ };
54
+ var h = u.format;
55
+ u.format = function(t2) {
56
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
57
+ return h.call(this, i2);
58
+ }, u.valueOf = function() {
59
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
60
+ return this.$d.valueOf() - 6e4 * t2;
61
+ }, u.isUTC = function() {
62
+ return !!this.$u;
63
+ }, u.toISOString = function() {
64
+ return this.toDate().toISOString();
65
+ }, u.toString = function() {
66
+ return this.toDate().toUTCString();
67
+ };
68
+ var l = u.toDate;
69
+ u.toDate = function(t2) {
70
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
71
+ };
72
+ var c = u.diff;
73
+ u.diff = function(t2, i2, e2) {
74
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
75
+ var s2 = this.local(), f2 = n(t2).local();
76
+ return c.call(s2, f2, i2, e2);
77
+ };
31
78
  };
32
- var r = u.parse;
33
- u.parse = function(t2) {
34
- t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
35
- };
36
- var o = u.init;
37
- u.init = function() {
38
- if (this.$u) {
39
- var t2 = this.$d;
40
- this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
41
- } else o.call(this);
42
- };
43
- var a = u.utcOffset;
44
- u.utcOffset = function(s2, f2) {
45
- var n2 = this.$utils().u;
46
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
47
- if ("string" == typeof s2 && (s2 = function(t2) {
48
- void 0 === t2 && (t2 = "");
49
- var s3 = t2.match(i);
50
- if (!s3) return null;
51
- var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
52
- return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
53
- }(s2), null === s2)) return this;
54
- var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
55
- if (0 === u2) return this.utc(f2);
56
- var r2 = this.clone();
57
- if (f2) return r2.$offset = u2, r2.$u = false, r2;
58
- var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
59
- return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
60
- };
61
- var h = u.format;
62
- u.format = function(t2) {
63
- var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
64
- return h.call(this, i2);
65
- }, u.valueOf = function() {
66
- var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
67
- return this.$d.valueOf() - 6e4 * t2;
68
- }, u.isUTC = function() {
69
- return !!this.$u;
70
- }, u.toISOString = function() {
71
- return this.toDate().toISOString();
72
- }, u.toString = function() {
73
- return this.toDate().toUTCString();
74
- };
75
- var l = u.toDate;
76
- u.toDate = function(t2) {
77
- return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
78
- };
79
- var c = u.diff;
80
- u.diff = function(t2, i2, e2) {
81
- if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
82
- var s2 = this.local(), f2 = n(t2).local();
83
- return c.call(s2, f2, i2, e2);
84
- };
85
- };
86
- });
87
- })(utc$1.__module);
88
- var utcExports = utc$1.__module.exports;
89
- const utc = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
90
- exports.default = utc;
79
+ }));
80
+ })(utc$1.__module);
81
+ return utc$1.__module.exports;
82
+ }
83
+ exports.__require = requireUtc;
@@ -1,90 +1,83 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.3
4
- * description: A utility that is often used in web production.
5
- * author: TsubasaHiga
6
- * homepage: https://github.com/TsubasaHiga/umaki
7
- * Released under the MIT License
8
- *
9
- * This software includes dependencies licensed under MIT, ISC, BSD-3-Clause, and Apache-2.0.
10
- * For license information, please see LICENSE.txt
11
- */
12
- import { getDefaultExportFromCjs, commonjsGlobal } from "../../../../../../_virtual/_commonjsHelpers.es.js";
13
- import { __module as utc$1 } from "../../../../../../_virtual/utc.es.js";
14
- (function(module, exports$1) {
15
- !function(t, i) {
16
- module.exports = i();
17
- }(commonjsGlobal, function() {
18
- var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
19
- return function(s, f, n) {
20
- var u = f.prototype;
21
- n.utc = function(t2) {
22
- var i2 = { date: t2, utc: true, args: arguments };
23
- return new f(i2);
24
- }, u.utc = function(i2) {
25
- var e2 = n(this.toDate(), { locale: this.$L, utc: true });
26
- return i2 ? e2.add(this.utcOffset(), t) : e2;
27
- }, u.local = function() {
28
- return n(this.toDate(), { locale: this.$L, utc: false });
1
+ import { __module as utc$1 } from "../../../../../../_virtual/utc.es2.js";
2
+ var utc = utc$1.exports;
3
+ var hasRequiredUtc;
4
+ function requireUtc() {
5
+ if (hasRequiredUtc) return utc$1.exports;
6
+ hasRequiredUtc = 1;
7
+ (function(module, exports$1) {
8
+ !(function(t, i) {
9
+ module.exports = i();
10
+ })(utc, (function() {
11
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
12
+ return function(s, f, n) {
13
+ var u = f.prototype;
14
+ n.utc = function(t2) {
15
+ var i2 = { date: t2, utc: true, args: arguments };
16
+ return new f(i2);
17
+ }, u.utc = function(i2) {
18
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
19
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
20
+ }, u.local = function() {
21
+ return n(this.toDate(), { locale: this.$L, utc: false });
22
+ };
23
+ var r = u.parse;
24
+ u.parse = function(t2) {
25
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
26
+ };
27
+ var o = u.init;
28
+ u.init = function() {
29
+ if (this.$u) {
30
+ var t2 = this.$d;
31
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
32
+ } else o.call(this);
33
+ };
34
+ var a = u.utcOffset;
35
+ u.utcOffset = function(s2, f2) {
36
+ var n2 = this.$utils().u;
37
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
38
+ if ("string" == typeof s2 && (s2 = (function(t2) {
39
+ void 0 === t2 && (t2 = "");
40
+ var s3 = t2.match(i);
41
+ if (!s3) return null;
42
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
43
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
44
+ })(s2), null === s2)) return this;
45
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
46
+ if (0 === u2) return this.utc(f2);
47
+ var r2 = this.clone();
48
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
49
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
50
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
51
+ };
52
+ var h = u.format;
53
+ u.format = function(t2) {
54
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
55
+ return h.call(this, i2);
56
+ }, u.valueOf = function() {
57
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
58
+ return this.$d.valueOf() - 6e4 * t2;
59
+ }, u.isUTC = function() {
60
+ return !!this.$u;
61
+ }, u.toISOString = function() {
62
+ return this.toDate().toISOString();
63
+ }, u.toString = function() {
64
+ return this.toDate().toUTCString();
65
+ };
66
+ var l = u.toDate;
67
+ u.toDate = function(t2) {
68
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
69
+ };
70
+ var c = u.diff;
71
+ u.diff = function(t2, i2, e2) {
72
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
73
+ var s2 = this.local(), f2 = n(t2).local();
74
+ return c.call(s2, f2, i2, e2);
75
+ };
29
76
  };
30
- var r = u.parse;
31
- u.parse = function(t2) {
32
- t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
33
- };
34
- var o = u.init;
35
- u.init = function() {
36
- if (this.$u) {
37
- var t2 = this.$d;
38
- this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
39
- } else o.call(this);
40
- };
41
- var a = u.utcOffset;
42
- u.utcOffset = function(s2, f2) {
43
- var n2 = this.$utils().u;
44
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
45
- if ("string" == typeof s2 && (s2 = function(t2) {
46
- void 0 === t2 && (t2 = "");
47
- var s3 = t2.match(i);
48
- if (!s3) return null;
49
- var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
50
- return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
51
- }(s2), null === s2)) return this;
52
- var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
53
- if (0 === u2) return this.utc(f2);
54
- var r2 = this.clone();
55
- if (f2) return r2.$offset = u2, r2.$u = false, r2;
56
- var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
57
- return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
58
- };
59
- var h = u.format;
60
- u.format = function(t2) {
61
- var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
62
- return h.call(this, i2);
63
- }, u.valueOf = function() {
64
- var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
65
- return this.$d.valueOf() - 6e4 * t2;
66
- }, u.isUTC = function() {
67
- return !!this.$u;
68
- }, u.toISOString = function() {
69
- return this.toDate().toISOString();
70
- }, u.toString = function() {
71
- return this.toDate().toUTCString();
72
- };
73
- var l = u.toDate;
74
- u.toDate = function(t2) {
75
- return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
76
- };
77
- var c = u.diff;
78
- u.diff = function(t2, i2, e2) {
79
- if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
80
- var s2 = this.local(), f2 = n(t2).local();
81
- return c.call(s2, f2, i2, e2);
82
- };
83
- };
84
- });
85
- })(utc$1);
86
- var utcExports = utc$1.exports;
87
- const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
77
+ }));
78
+ })(utc$1);
79
+ return utc$1.exports;
80
+ }
88
81
  export {
89
- utc as default
82
+ requireUtc as __require
90
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umaki",
3
- "version": "0.6.3",
3
+ "version": "0.7.5",
4
4
  "description": "A utility that is often used in web production.",
5
5
  "author": "TsubasaHiga",
6
6
  "homepage": "https://github.com/TsubasaHiga/umaki",
@@ -9,7 +9,7 @@
9
9
  "utility",
10
10
  "library"
11
11
  ],
12
- "packageManager": "pnpm@10.11.0",
12
+ "packageManager": "pnpm@10.24.0",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/TsubasaHiga/umaki"
@@ -39,29 +39,29 @@
39
39
  "format": "biome format"
40
40
  },
41
41
  "dependencies": {
42
- "@types/md5": "^2.3.5",
43
- "dayjs": "^1.11.13",
42
+ "@types/md5": "^2.3.6",
43
+ "dayjs": "^1.11.19",
44
44
  "image-size": "^1.1.1",
45
- "isomorphic-dompurify": "^2.23.0",
45
+ "isomorphic-dompurify": "^2.33.0",
46
46
  "md5": "^2.3.0",
47
- "query-string": "^9.1.1",
47
+ "query-string": "^9.3.1",
48
48
  "runes2": "^1.1.4",
49
- "store2": "^2.14.3",
49
+ "store2": "^2.14.4",
50
50
  "ua-parser-js": "^1.0.39"
51
51
  },
52
52
  "devDependencies": {
53
- "@biomejs/biome": "1.9.4",
54
- "@types/node": "^22.8.6",
53
+ "@biomejs/biome": "2.3.8",
54
+ "@types/node": "^24.10.1",
55
55
  "@types/ua-parser-js": "^0.7.39",
56
- "@vitest/coverage-v8": "2.1.4",
57
- "happy-dom": "^15.7.4",
58
- "jsdom": "^26.1.0",
59
- "rollup-plugin-license": "^3.5.3",
60
- "rollup-plugin-visualizer": "^5.12.0",
61
- "typescript": "~5.6.3",
62
- "vite": "^5.4.10",
63
- "vite-plugin-dts": "^4.3.0",
64
- "vite-tsconfig-paths": "^5.0.1",
65
- "vitest": "^2.1.4"
56
+ "@vitest/coverage-v8": "4.0.15",
57
+ "happy-dom": "^20.0.11",
58
+ "jsdom": "^26.0.0",
59
+ "rollup-plugin-license": "^3.6.0",
60
+ "rollup-plugin-visualizer": "^6.0.5",
61
+ "typescript": "~5.9.3",
62
+ "vite": "^7.2.6",
63
+ "vite-plugin-dts": "^4.5.4",
64
+ "vite-tsconfig-paths": "^5.1.4",
65
+ "vitest": "^4.0.15"
66
66
  }
67
67
  }