umaki 0.4.1 → 0.4.3
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/README.md +20 -0
- package/dist/_virtual/_commonjsHelpers.cjs.js +1 -1
- package/dist/_virtual/_commonjsHelpers.es.js +1 -1
- package/dist/_virtual/isBetween.cjs.js +1 -1
- package/dist/_virtual/isBetween.es.js +1 -1
- package/dist/_virtual/timezone.cjs.js +15 -0
- package/dist/_virtual/timezone.es.js +15 -0
- package/dist/_virtual/utc.cjs.js +15 -0
- package/dist/_virtual/utc.es.js +15 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/libs/control/bgScrollStop.cjs.js +1 -1
- package/dist/libs/control/bgScrollStop.es.js +1 -1
- package/dist/libs/control/pd.cjs.js +1 -1
- package/dist/libs/control/pd.es.js +1 -1
- package/dist/libs/control/scrollToHash.cjs.js +1 -1
- package/dist/libs/control/scrollToHash.es.js +1 -1
- package/dist/libs/control/videoPlayControl.cjs.js +1 -1
- package/dist/libs/control/videoPlayControl.es.js +1 -1
- package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +11 -2
- package/dist/libs/convert/changeDateStringToSpecificFormat.d.ts +4 -1
- package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +11 -2
- package/dist/libs/convert/jsonStringToJsonObject.cjs.js +1 -1
- package/dist/libs/convert/jsonStringToJsonObject.es.js +1 -1
- package/dist/libs/eventControl/debounce.cjs.js +1 -1
- package/dist/libs/eventControl/debounce.es.js +1 -1
- package/dist/libs/eventControl/throttle.cjs.js +1 -1
- package/dist/libs/eventControl/throttle.es.js +1 -1
- package/dist/libs/get/getAspectRatio.cjs.js +1 -1
- package/dist/libs/get/getAspectRatio.es.js +1 -1
- package/dist/libs/get/getClassNames.cjs.js +1 -1
- package/dist/libs/get/getClassNames.es.js +1 -1
- package/dist/libs/get/getDocumentHeight.cjs.js +1 -1
- package/dist/libs/get/getDocumentHeight.es.js +1 -1
- package/dist/libs/get/getEventPaths.cjs.js +1 -1
- package/dist/libs/get/getEventPaths.es.js +1 -1
- package/dist/libs/get/getGcd.cjs.js +1 -1
- package/dist/libs/get/getGcd.es.js +1 -1
- package/dist/libs/get/getOrientation.cjs.js +1 -1
- package/dist/libs/get/getOrientation.es.js +1 -1
- package/dist/libs/get/getParentList.cjs.js +1 -1
- package/dist/libs/get/getParentList.es.js +1 -1
- package/dist/libs/get/getQueryParams.cjs.js +1 -1
- package/dist/libs/get/getQueryParams.es.js +1 -1
- package/dist/libs/get/getRem.cjs.js +1 -1
- package/dist/libs/get/getRem.es.js +1 -1
- package/dist/libs/get/getScrollbarWidth.cjs.js +1 -1
- package/dist/libs/get/getScrollbarWidth.es.js +1 -1
- package/dist/libs/get/getSessionStorage.cjs.js +1 -1
- package/dist/libs/get/getSessionStorage.es.js +1 -1
- package/dist/libs/get/getStringLength.cjs.js +1 -1
- package/dist/libs/get/getStringLength.es.js +1 -1
- package/dist/libs/get/getStylePropertyValue.cjs.js +1 -1
- package/dist/libs/get/getStylePropertyValue.es.js +1 -1
- package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -1
- package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -1
- package/dist/libs/get/getUaData.cjs.js +1 -1
- package/dist/libs/get/getUaData.es.js +1 -1
- package/dist/libs/is/isBetweenDateTime.cjs.js +1 -1
- package/dist/libs/is/isBetweenDateTime.es.js +1 -1
- package/dist/libs/is/isExistAllElements.cjs.js +1 -1
- package/dist/libs/is/isExistAllElements.es.js +1 -1
- package/dist/libs/is/isIpad.cjs.js +1 -1
- package/dist/libs/is/isIpad.es.js +1 -1
- package/dist/libs/is/isKeyExists.cjs.js +1 -1
- package/dist/libs/is/isKeyExists.es.js +1 -1
- package/dist/libs/is/isSafari.cjs.js +1 -1
- package/dist/libs/is/isSafari.es.js +1 -1
- package/dist/libs/is/isScrollable.cjs.js +1 -1
- package/dist/libs/is/isScrollable.es.js +1 -1
- package/dist/libs/is/isTouchSupport.cjs.js +1 -1
- package/dist/libs/is/isTouchSupport.es.js +1 -1
- package/dist/libs/remove/removeAllHtmlTags.cjs.js +1 -1
- package/dist/libs/remove/removeAllHtmlTags.es.js +1 -1
- package/dist/libs/remove/removeAttribute.cjs.js +1 -1
- package/dist/libs/remove/removeAttribute.es.js +1 -1
- package/dist/libs/remove/removeSessionStorage.cjs.js +1 -1
- package/dist/libs/remove/removeSessionStorage.es.js +1 -1
- package/dist/libs/remove/removeStylePropertyValue.cjs.js +1 -1
- package/dist/libs/remove/removeStylePropertyValue.es.js +1 -1
- package/dist/libs/security/htmlSanitize.cjs.js +1 -1
- package/dist/libs/security/htmlSanitize.es.js +1 -1
- package/dist/libs/set/set100vh.cjs.js +1 -1
- package/dist/libs/set/set100vh.es.js +1 -1
- package/dist/libs/set/set100vw.cjs.js +1 -1
- package/dist/libs/set/set100vw.es.js +1 -1
- package/dist/libs/set/setAttribute.cjs.js +1 -1
- package/dist/libs/set/setAttribute.es.js +1 -1
- package/dist/libs/set/setScrollPositionToCenter.cjs.js +1 -1
- package/dist/libs/set/setScrollPositionToCenter.es.js +1 -1
- package/dist/libs/set/setSessionStorage.cjs.js +1 -1
- package/dist/libs/set/setSessionStorage.es.js +1 -1
- package/dist/libs/set/setStylePropertyValue.cjs.js +1 -1
- package/dist/libs/set/setStylePropertyValue.es.js +1 -1
- package/dist/libs/to/toBoolean.cjs.js +1 -1
- package/dist/libs/to/toBoolean.es.js +1 -1
- package/dist/libs/to/toPositiveNumber.cjs.js +1 -1
- package/dist/libs/to/toPositiveNumber.es.js +1 -1
- package/dist/libs/transform/wrapTextWithSpans.cjs.js +1 -1
- package/dist/libs/transform/wrapTextWithSpans.es.js +1 -1
- package/dist/libs/wait/sleep.cjs.js +1 -1
- package/dist/libs/wait/sleep.es.js +1 -1
- package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +1 -1
- package/dist/libs/wait/waitForAllMediaLoaded.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/isBetween.cjs.js +1 -1
- package/dist/node_modules/dayjs/plugin/isBetween.es.js +1 -1
- package/dist/node_modules/dayjs/plugin/timezone.cjs.js +78 -0
- package/dist/node_modules/dayjs/plugin/timezone.es.js +78 -0
- package/dist/node_modules/dayjs/plugin/utc.cjs.js +91 -0
- package/dist/node_modules/dayjs/plugin/utc.es.js +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* name: umaki
|
|
4
|
+
* version: v0.4.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, exports2) {
|
|
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 });
|
|
31
|
+
};
|
|
32
|
+
var o = u.parse;
|
|
33
|
+
u.parse = function(t2) {
|
|
34
|
+
t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
|
|
35
|
+
};
|
|
36
|
+
var r = 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 r.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, o2 = this;
|
|
55
|
+
if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
|
|
56
|
+
if (0 !== s2) {
|
|
57
|
+
var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
58
|
+
(o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
|
|
59
|
+
} else o2 = this.utc();
|
|
60
|
+
return o2;
|
|
61
|
+
};
|
|
62
|
+
var h = u.format;
|
|
63
|
+
u.format = function(t2) {
|
|
64
|
+
var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
65
|
+
return h.call(this, i2);
|
|
66
|
+
}, u.valueOf = function() {
|
|
67
|
+
var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
68
|
+
return this.$d.valueOf() - 6e4 * t2;
|
|
69
|
+
}, u.isUTC = function() {
|
|
70
|
+
return !!this.$u;
|
|
71
|
+
}, u.toISOString = function() {
|
|
72
|
+
return this.toDate().toISOString();
|
|
73
|
+
}, u.toString = function() {
|
|
74
|
+
return this.toDate().toUTCString();
|
|
75
|
+
};
|
|
76
|
+
var l = u.toDate;
|
|
77
|
+
u.toDate = function(t2) {
|
|
78
|
+
return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
|
|
79
|
+
};
|
|
80
|
+
var c = u.diff;
|
|
81
|
+
u.diff = function(t2, i2, e2) {
|
|
82
|
+
if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
|
|
83
|
+
var s2 = this.local(), f2 = n(t2).local();
|
|
84
|
+
return c.call(s2, f2, i2, e2);
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
})(utc$1.__module);
|
|
89
|
+
var utcExports = utc$1.__module.exports;
|
|
90
|
+
const utc = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(utcExports);
|
|
91
|
+
exports.default = utc;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: umaki
|
|
3
|
+
* version: v0.4.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 { commonjsGlobal, getDefaultExportFromCjs } from "../../../_virtual/_commonjsHelpers.es.js";
|
|
13
|
+
import { __module as utc$1 } from "../../../_virtual/utc.es.js";
|
|
14
|
+
(function(module, exports) {
|
|
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 });
|
|
29
|
+
};
|
|
30
|
+
var o = u.parse;
|
|
31
|
+
u.parse = function(t2) {
|
|
32
|
+
t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
|
|
33
|
+
};
|
|
34
|
+
var r = 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 r.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, o2 = this;
|
|
53
|
+
if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
|
|
54
|
+
if (0 !== s2) {
|
|
55
|
+
var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
56
|
+
(o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
|
|
57
|
+
} else o2 = this.utc();
|
|
58
|
+
return o2;
|
|
59
|
+
};
|
|
60
|
+
var h = u.format;
|
|
61
|
+
u.format = function(t2) {
|
|
62
|
+
var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
63
|
+
return h.call(this, i2);
|
|
64
|
+
}, u.valueOf = function() {
|
|
65
|
+
var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
66
|
+
return this.$d.valueOf() - 6e4 * t2;
|
|
67
|
+
}, u.isUTC = function() {
|
|
68
|
+
return !!this.$u;
|
|
69
|
+
}, u.toISOString = function() {
|
|
70
|
+
return this.toDate().toISOString();
|
|
71
|
+
}, u.toString = function() {
|
|
72
|
+
return this.toDate().toUTCString();
|
|
73
|
+
};
|
|
74
|
+
var l = u.toDate;
|
|
75
|
+
u.toDate = function(t2) {
|
|
76
|
+
return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
|
|
77
|
+
};
|
|
78
|
+
var c = u.diff;
|
|
79
|
+
u.diff = function(t2, i2, e2) {
|
|
80
|
+
if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
|
|
81
|
+
var s2 = this.local(), f2 = n(t2).local();
|
|
82
|
+
return c.call(s2, f2, i2, e2);
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
})(utc$1);
|
|
87
|
+
var utcExports = utc$1.exports;
|
|
88
|
+
const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
89
|
+
export {
|
|
90
|
+
utc as default
|
|
91
|
+
};
|