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,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const debounce = (fn, delay) => {
15
4
  let timeoutId = null;
@@ -1,14 +1,3 @@
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
1
  const debounce = (fn, delay) => {
13
2
  let timeoutId = null;
14
3
  return (...args) => {
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const throttle = (fn, wait) => {
15
4
  let lastCallTime = 0;
@@ -1,14 +1,3 @@
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
1
  const throttle = (fn, wait) => {
13
2
  let lastCallTime = 0;
14
3
  return (...args) => {
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getGcd = require("./getGcd.cjs.js");
15
4
  const getAspectRatio = (w, h) => {
@@ -1,14 +1,3 @@
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
1
  import { getGcd } from "./getGcd.es.js";
13
2
  const getAspectRatio = (w, h) => {
14
3
  const gcd = getGcd(w, h);
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getClassNames = (target) => {
15
4
  const list = String(target.classList).split(" ").filter((v) => v);
@@ -1,14 +1,3 @@
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
1
  const getClassNames = (target) => {
13
2
  const list = String(target.classList).split(" ").filter((v) => v);
14
3
  return list;
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
15
4
  exports.getDocumentHeight = getDocumentHeight;
@@ -1,14 +1,3 @@
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
1
  const getDocumentHeight = () => document.body.clientHeight - window.innerHeight;
13
2
  export {
14
3
  getDocumentHeight
@@ -1,19 +1,7 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getEventPaths = (evt) => {
15
- var _a;
16
- let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
4
+ let path = evt.composedPath?.() || null;
17
5
  const target = evt.target;
18
6
  if (path != null) {
19
7
  path = path.indexOf(window) < 0 ? path.concat([window]) : path;
@@ -1,17 +1,5 @@
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
1
  const getEventPaths = (evt) => {
13
- var _a;
14
- let path = ((_a = evt.composedPath) == null ? void 0 : _a.call(evt)) || null;
2
+ let path = evt.composedPath?.() || null;
15
3
  const target = evt.target;
16
4
  if (path != null) {
17
5
  path = path.indexOf(window) < 0 ? path.concat([window]) : path;
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const toPositiveNumber = require("../to/toPositiveNumber.cjs.js");
15
4
  const getGcd = (a, b) => {
@@ -1,14 +1,3 @@
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
1
  import { toPositiveNumber } from "../to/toPositiveNumber.es.js";
13
2
  const getGcd = (a, b) => {
14
3
  const positiveA = toPositiveNumber(Math.abs(a));
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const md5 = require("md5");
15
4
  const getGravatarUrl = (email, size) => {
@@ -1,14 +1,3 @@
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
1
  import md5 from "md5";
13
2
  const getGravatarUrl = (email, size) => {
14
3
  const normalizedEmail = email.trim().toLowerCase();
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getOrientation = () => {
15
4
  const isLandscape = window.matchMedia("(orientation: landscape)").matches;
@@ -1,14 +1,3 @@
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
1
  const getOrientation = () => {
13
2
  const isLandscape = window.matchMedia("(orientation: landscape)").matches;
14
3
  return isLandscape ? "landscape" : "portrait";
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getParentList = (element) => {
15
4
  const parentElement = element.parentElement;
@@ -1,14 +1,3 @@
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
1
  const getParentList = (element) => {
13
2
  const parentElement = element.parentElement;
14
3
  if (!parentElement) return [element];
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const queryString = require("query-string");
15
4
  const queryStringOptions = {
@@ -1,14 +1,3 @@
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
1
  import queryString from "query-string";
13
2
  const queryStringOptions = {
14
3
  arrayFormat: "comma",
@@ -1,18 +1,9 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getRem = (px) => {
15
- const baseFontSize = 16;
16
- return `${px / baseFontSize}rem`;
4
+ const rootFontSize = parseFloat(
5
+ getComputedStyle(document.documentElement).fontSize
6
+ );
7
+ return `${px / rootFontSize}rem`;
17
8
  };
18
9
  exports.getRem = getRem;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Converts a pixel value to rem units.
3
+ * Calculates based on the actual root font size of the document.
3
4
  *
4
5
  * @param px - The pixel value to be converted.
5
6
  * @returns The equivalent value in rem units as a string.
@@ -1,17 +1,8 @@
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
1
  const getRem = (px) => {
13
- const baseFontSize = 16;
14
- return `${px / baseFontSize}rem`;
2
+ const rootFontSize = parseFloat(
3
+ getComputedStyle(document.documentElement).fontSize
4
+ );
5
+ return `${px / rootFontSize}rem`;
15
6
  };
16
7
  export {
17
8
  getRem
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getScrollbarWidth = () => window.innerWidth - document.body.clientWidth;
15
4
  exports.getScrollbarWidth = getScrollbarWidth;
@@ -1,14 +1,3 @@
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
1
  const getScrollbarWidth = () => window.innerWidth - document.body.clientWidth;
13
2
  export {
14
3
  getScrollbarWidth
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const store = require("store2");
15
4
  const getSessionStorage = (key) => {
@@ -1,14 +1,3 @@
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
1
  import store from "store2";
13
2
  const getSessionStorage = (key) => {
14
3
  const value = store.session.get(key);
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const runes2 = require("runes2");
15
4
  const getStringLength = (str) => runes2.runes(str).length;
@@ -1,14 +1,3 @@
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
1
  import { runes } from "runes2";
13
2
  const getStringLength = (str) => runes(str).length;
14
3
  export {
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
15
4
  exports.getStylePropertyValue = getStylePropertyValue;
@@ -1,14 +1,3 @@
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
1
  const getStylePropertyValue = (key) => getComputedStyle(document.documentElement).getPropertyValue(key);
13
2
  export {
14
3
  getStylePropertyValue
@@ -1,16 +1,5 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getStylePropertyValue = require("./getStylePropertyValue.cjs.js");
15
- const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key)) || 0;
4
+ const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key), 10) || 0;
16
5
  exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber;
@@ -1,16 +1,5 @@
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
1
  import { getStylePropertyValue } from "./getStylePropertyValue.es.js";
13
- const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key)) || 0;
2
+ const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key), 10) || 0;
14
3
  export {
15
4
  getStylePropertyValueToNumber
16
5
  };
@@ -1,18 +1,7 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
- const UAParser = require("ua-parser-js");
15
3
  const isTouchSupport = require("../is/isTouchSupport.cjs.js");
4
+ const UAParser = require("ua-parser-js");
16
5
  const getUaData = () => {
17
6
  const parser = new UAParser();
18
7
  const result = parser.getResult();
@@ -1,16 +1,5 @@
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 UAParser from "ua-parser-js";
13
1
  import { isTouchSupport } from "../is/isTouchSupport.es.js";
2
+ import UAParser from "ua-parser-js";
14
3
  const getUaData = () => {
15
4
  const parser = new UAParser();
16
5
  const result = parser.getResult();
@@ -1,15 +1,4 @@
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
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
14
3
  const getConfig = require("../config/getConfig.cjs.js");
15
4
  const checkDeviceSize = () => {