umaki 0.6.2 → 0.7.0

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 (141) hide show
  1. package/README.md +22 -0
  2. package/dist/LICENSE.txt +1 -1
  3. package/dist/_virtual/_commonjsHelpers.cjs.js +0 -13
  4. package/dist/_virtual/_commonjsHelpers.es.js +0 -13
  5. package/dist/_virtual/isBetween.cjs.js +6 -14
  6. package/dist/_virtual/isBetween.cjs2.js +4 -0
  7. package/dist/_virtual/isBetween.es.js +5 -13
  8. package/dist/_virtual/isBetween.es2.js +4 -0
  9. package/dist/_virtual/timezone.cjs.js +6 -14
  10. package/dist/_virtual/timezone.cjs2.js +4 -0
  11. package/dist/_virtual/timezone.es.js +5 -13
  12. package/dist/_virtual/timezone.es2.js +4 -0
  13. package/dist/_virtual/utc.cjs.js +6 -14
  14. package/dist/_virtual/utc.cjs2.js +4 -0
  15. package/dist/_virtual/utc.es.js +5 -13
  16. package/dist/_virtual/utc.es2.js +4 -0
  17. package/dist/index.cjs.js +6 -15
  18. package/dist/index.es.js +4 -13
  19. package/dist/libs/config/defaultConfig.cjs.js +0 -11
  20. package/dist/libs/config/defaultConfig.es.js +0 -11
  21. package/dist/libs/config/getConfig.cjs.js +0 -11
  22. package/dist/libs/config/getConfig.es.js +0 -11
  23. package/dist/libs/config/index.d.ts +1 -1
  24. package/dist/libs/config/setConfig.cjs.js +0 -11
  25. package/dist/libs/config/setConfig.es.js +0 -11
  26. package/dist/libs/control/bgScrollStop.cjs.js +0 -11
  27. package/dist/libs/control/bgScrollStop.es.js +0 -11
  28. package/dist/libs/control/pd.cjs.js +0 -11
  29. package/dist/libs/control/pd.es.js +0 -11
  30. package/dist/libs/control/scrollToHash.cjs.js +0 -11
  31. package/dist/libs/control/scrollToHash.es.js +0 -11
  32. package/dist/libs/control/videoPlayControl.cjs.js +0 -11
  33. package/dist/libs/control/videoPlayControl.es.js +0 -11
  34. package/dist/libs/convert/changeDateStringToSpecificFormat.cjs.js +2 -13
  35. package/dist/libs/convert/changeDateStringToSpecificFormat.es.js +2 -13
  36. package/dist/libs/convert/jsonStringToJsonObject.cjs.js +0 -11
  37. package/dist/libs/convert/jsonStringToJsonObject.es.js +0 -11
  38. package/dist/libs/eventControl/debounce.cjs.js +0 -11
  39. package/dist/libs/eventControl/debounce.es.js +0 -11
  40. package/dist/libs/eventControl/throttle.cjs.js +0 -11
  41. package/dist/libs/eventControl/throttle.es.js +0 -11
  42. package/dist/libs/get/getAspectRatio.cjs.js +0 -11
  43. package/dist/libs/get/getAspectRatio.es.js +0 -11
  44. package/dist/libs/get/getClassNames.cjs.js +0 -11
  45. package/dist/libs/get/getClassNames.es.js +0 -11
  46. package/dist/libs/get/getDocumentHeight.cjs.js +0 -11
  47. package/dist/libs/get/getDocumentHeight.es.js +0 -11
  48. package/dist/libs/get/getEventPaths.cjs.js +1 -13
  49. package/dist/libs/get/getEventPaths.es.js +1 -13
  50. package/dist/libs/get/getGcd.cjs.js +0 -11
  51. package/dist/libs/get/getGcd.es.js +0 -11
  52. package/dist/libs/get/getGravatarUrl.cjs.js +9 -0
  53. package/dist/libs/get/getGravatarUrl.d.ts +12 -0
  54. package/dist/libs/get/getGravatarUrl.es.js +9 -0
  55. package/dist/libs/get/getGravatarUrl.test.d.ts +1 -0
  56. package/dist/libs/get/getOrientation.cjs.js +0 -11
  57. package/dist/libs/get/getOrientation.es.js +0 -11
  58. package/dist/libs/get/getParentList.cjs.js +0 -11
  59. package/dist/libs/get/getParentList.es.js +0 -11
  60. package/dist/libs/get/getQueryParams.cjs.js +0 -11
  61. package/dist/libs/get/getQueryParams.es.js +0 -11
  62. package/dist/libs/get/getRem.cjs.js +4 -13
  63. package/dist/libs/get/getRem.d.ts +1 -0
  64. package/dist/libs/get/getRem.es.js +4 -13
  65. package/dist/libs/get/getScrollbarWidth.cjs.js +0 -11
  66. package/dist/libs/get/getScrollbarWidth.es.js +0 -11
  67. package/dist/libs/get/getSessionStorage.cjs.js +0 -11
  68. package/dist/libs/get/getSessionStorage.es.js +0 -11
  69. package/dist/libs/get/getStringLength.cjs.js +0 -11
  70. package/dist/libs/get/getStringLength.es.js +0 -11
  71. package/dist/libs/get/getStylePropertyValue.cjs.js +0 -11
  72. package/dist/libs/get/getStylePropertyValue.es.js +0 -11
  73. package/dist/libs/get/getStylePropertyValueToNumber.cjs.js +1 -12
  74. package/dist/libs/get/getStylePropertyValueToNumber.es.js +1 -12
  75. package/dist/libs/get/getUaData.cjs.js +1 -12
  76. package/dist/libs/get/getUaData.es.js +1 -12
  77. package/dist/libs/get/index.d.ts +1 -0
  78. package/dist/libs/is/checkDeviceSize.cjs.js +0 -11
  79. package/dist/libs/is/checkDeviceSize.es.js +0 -11
  80. package/dist/libs/is/index.d.ts +1 -1
  81. package/dist/libs/is/isAfterDateTime.cjs.js +0 -11
  82. package/dist/libs/is/isAfterDateTime.es.js +0 -11
  83. package/dist/libs/is/isBetweenDateTime.cjs.js +1 -12
  84. package/dist/libs/is/isBetweenDateTime.es.js +1 -12
  85. package/dist/libs/is/isExistAllElements.cjs.js +0 -11
  86. package/dist/libs/is/isExistAllElements.es.js +0 -11
  87. package/dist/libs/is/isIpad.cjs.js +0 -11
  88. package/dist/libs/is/isIpad.es.js +0 -11
  89. package/dist/libs/is/isKeyExists.cjs.js +1 -12
  90. package/dist/libs/is/isKeyExists.es.js +1 -12
  91. package/dist/libs/is/isSafari.cjs.js +0 -11
  92. package/dist/libs/is/isSafari.es.js +0 -11
  93. package/dist/libs/is/isScrollable.cjs.js +0 -11
  94. package/dist/libs/is/isScrollable.es.js +0 -11
  95. package/dist/libs/is/isTouchSupport.cjs.js +2 -13
  96. package/dist/libs/is/isTouchSupport.es.js +2 -13
  97. package/dist/libs/remove/removeAllHtmlTags.cjs.js +0 -11
  98. package/dist/libs/remove/removeAllHtmlTags.es.js +0 -11
  99. package/dist/libs/remove/removeAttribute.cjs.js +0 -11
  100. package/dist/libs/remove/removeAttribute.es.js +0 -11
  101. package/dist/libs/remove/removeSessionStorage.cjs.js +0 -11
  102. package/dist/libs/remove/removeSessionStorage.es.js +0 -11
  103. package/dist/libs/remove/removeStylePropertyValue.cjs.js +0 -11
  104. package/dist/libs/remove/removeStylePropertyValue.es.js +0 -11
  105. package/dist/libs/security/htmlSanitize.cjs.js +0 -11
  106. package/dist/libs/security/htmlSanitize.es.js +0 -11
  107. package/dist/libs/set/set100vh.cjs.js +0 -11
  108. package/dist/libs/set/set100vh.es.js +0 -11
  109. package/dist/libs/set/set100vw.cjs.js +0 -11
  110. package/dist/libs/set/set100vw.es.js +0 -11
  111. package/dist/libs/set/setAttribute.cjs.js +0 -11
  112. package/dist/libs/set/setAttribute.es.js +0 -11
  113. package/dist/libs/set/setScrollPositionToCenter.cjs.js +0 -11
  114. package/dist/libs/set/setScrollPositionToCenter.es.js +0 -11
  115. package/dist/libs/set/setSessionStorage.cjs.js +0 -11
  116. package/dist/libs/set/setSessionStorage.es.js +0 -11
  117. package/dist/libs/set/setStylePropertyValue.cjs.js +0 -11
  118. package/dist/libs/set/setStylePropertyValue.es.js +0 -11
  119. package/dist/libs/to/toBoolean.cjs.js +0 -11
  120. package/dist/libs/to/toBoolean.es.js +0 -11
  121. package/dist/libs/to/toPositiveNumber.cjs.js +0 -11
  122. package/dist/libs/to/toPositiveNumber.es.js +0 -11
  123. package/dist/libs/transform/wrapTextWithSpans.cjs.js +0 -11
  124. package/dist/libs/transform/wrapTextWithSpans.es.js +0 -11
  125. package/dist/libs/wait/sleep.cjs.js +0 -11
  126. package/dist/libs/wait/sleep.es.js +0 -11
  127. package/dist/libs/wait/waitForAllMediaLoaded.cjs.js +0 -11
  128. package/dist/libs/wait/waitForAllMediaLoaded.es.js +0 -11
  129. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.cjs.js +23 -0
  130. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isBetween.es.js +23 -0
  131. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.cjs.js +71 -0
  132. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/timezone.es.js +71 -0
  133. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.cjs.js +83 -0
  134. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/utc.es.js +83 -0
  135. package/package.json +20 -18
  136. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js +0 -30
  137. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js +0 -30
  138. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.cjs.js +0 -78
  139. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/timezone.es.js +0 -78
  140. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.cjs.js +0 -91
  141. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/utc.es.js +0 -91
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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.2
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();
@@ -6,6 +6,7 @@ export { getClassNames } from './getClassNames';
6
6
  export { getDocumentHeight } from './getDocumentHeight';
7
7
  export { getEventPaths } from './getEventPaths';
8
8
  export { getGcd } from './getGcd';
9
+ export { getGravatarUrl } from './getGravatarUrl';
9
10
  export { getOrientation } from './getOrientation';
10
11
  export { getParentList } from './getParentList';
11
12
  export { getQueryParams } from './getQueryParams';
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 = () => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 { getConfigValue } from "../config/getConfig.es.js";
13
2
  const checkDeviceSize = () => {
14
3
  const breakpoint = getConfigValue("BREAKPOINT");
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Is functions
3
3
  */
4
+ export { checkDeviceSize } from './checkDeviceSize';
4
5
  export { isAfterDateTime } from './isAfterDateTime';
5
6
  export { isBetweenDateTime } from './isBetweenDateTime';
6
- export { checkDeviceSize } from './checkDeviceSize';
7
7
  export { isExistAllElements } from './isExistAllElements';
8
8
  export { isIpad } from './isIpad';
9
9
  export { isKeyExists } from './isKeyExists';
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 dayjs = require("dayjs");
15
4
  const isAfterDateTime = (dateA, now = dayjs()) => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 dayjs from "dayjs";
13
2
  const isAfterDateTime = (dateA, now = dayjs()) => {
14
3
  return now.isAfter(dayjs(dateA), "millisecond");
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 dayjs = require("dayjs");
15
- const isBetween = require("../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.cjs.js");
4
+ const isBetween = require("../../_virtual/isBetween.cjs.js");
16
5
  dayjs.extend(isBetween.default);
17
6
  const isBetweenDateTime = (dateA, dateB, now = dayjs()) => {
18
7
  if (!dayjs(dateA).isValid() || !dayjs(dateB).isValid()) {
@@ -1,16 +1,5 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 dayjs from "dayjs";
13
- import isBetween from "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isBetween.es.js";
2
+ import isBetween from "../../_virtual/isBetween.es.js";
14
3
  dayjs.extend(isBetween);
15
4
  const isBetweenDateTime = (dateA, dateB, now = dayjs()) => {
16
5
  if (!dayjs(dateA).isValid() || !dayjs(dateB).isValid()) {
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 isExistAllElements = (elements) => {
15
4
  return elements.length > 0 && elements.every((element) => element !== null);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 isExistAllElements = (elements) => {
13
2
  return elements.length > 0 && elements.every((element) => element !== null);
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 = require("../get/getOrientation.cjs.js");
15
4
  const getUaData = require("../get/getUaData.cjs.js");
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 { getOrientation } from "../get/getOrientation.es.js";
13
2
  import { getUaData } from "../get/getUaData.es.js";
14
3
  const isIpad = (orientation = "portrait") => {
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 isKeyExists = (obj, key) => {
15
- return !!obj && Object.prototype.hasOwnProperty.call(obj, key);
4
+ return !!obj && Object.hasOwn(obj, key);
16
5
  };
17
6
  exports.isKeyExists = isKeyExists;
@@ -1,16 +1,5 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 isKeyExists = (obj, key) => {
13
- return !!obj && Object.prototype.hasOwnProperty.call(obj, key);
2
+ return !!obj && Object.hasOwn(obj, key);
14
3
  };
15
4
  export {
16
5
  isKeyExists
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 getUaData = require("../get/getUaData.cjs.js");
15
4
  const isSafari = (includeMobileSafari = true) => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 { getUaData } from "../get/getUaData.es.js";
13
2
  const isSafari = (includeMobileSafari = true) => {
14
3
  const clientData = getUaData();
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 isScrollable = (element) => {
15
4
  const isScrollableX = element.scrollWidth > element.clientWidth;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 isScrollable = (element) => {
13
2
  const isScrollableX = element.scrollWidth > element.clientWidth;
14
3
  const isScrollableY = element.scrollHeight > element.clientHeight;
@@ -1,22 +1,11 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 isTouchSupport = () => {
15
4
  if (typeof window === "undefined") return false;
16
5
  const hasTouchStart = "ontouchstart" in window && window.ontouchstart !== void 0;
17
- const hasTouchPoints = typeof navigator !== "undefined" && (typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0);
6
+ const hasTouchPoints = typeof navigator !== "undefined" && typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0;
18
7
  const hasMsTouchPoints = typeof navigator !== "undefined" && // We need to use type assertion since msMaxTouchPoints is not in standard Navigator type
19
- (typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0);
8
+ typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0;
20
9
  return hasTouchStart || hasTouchPoints || hasMsTouchPoints;
21
10
  };
22
11
  exports.isTouchSupport = isTouchSupport;
@@ -1,20 +1,9 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 isTouchSupport = () => {
13
2
  if (typeof window === "undefined") return false;
14
3
  const hasTouchStart = "ontouchstart" in window && window.ontouchstart !== void 0;
15
- const hasTouchPoints = typeof navigator !== "undefined" && (typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0);
4
+ const hasTouchPoints = typeof navigator !== "undefined" && typeof navigator.maxTouchPoints === "number" && navigator.maxTouchPoints > 0;
16
5
  const hasMsTouchPoints = typeof navigator !== "undefined" && // We need to use type assertion since msMaxTouchPoints is not in standard Navigator type
17
- (typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0);
6
+ typeof navigator.msMaxTouchPoints === "number" && navigator.msMaxTouchPoints > 0;
18
7
  return hasTouchStart || hasTouchPoints || hasMsTouchPoints;
19
8
  };
20
9
  export {
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 DOMPurify = require("isomorphic-dompurify");
15
4
  const removeAllHtmlTags = (string) => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 DOMPurify from "isomorphic-dompurify";
13
2
  const removeAllHtmlTags = (string) => {
14
3
  const sanitizeString = DOMPurify.sanitize(string, {
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 removeAttribute = (element, attribute) => {
15
4
  element.removeAttribute(attribute);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 removeAttribute = (element, attribute) => {
13
2
  element.removeAttribute(attribute);
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 removeSessionStorage = (key) => {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 removeSessionStorage = (key) => {
14
3
  store.session.remove(key);
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 removeStylePropertyValue = (key) => {
15
4
  document.documentElement.style.removeProperty(key);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 removeStylePropertyValue = (key) => {
13
2
  document.documentElement.style.removeProperty(key);
14
3
  };
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 DOMPurify = require("isomorphic-dompurify");
15
4
  function htmlSanitize(html, config = {}) {
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 DOMPurify from "isomorphic-dompurify";
13
2
  function htmlSanitize(html, config = {}) {
14
3
  return DOMPurify.sanitize(html, config);
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 set100vh = (setProperty = "--vh") => {
15
4
  const vh = window.innerHeight * 0.01;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 set100vh = (setProperty = "--vh") => {
13
2
  const vh = window.innerHeight * 0.01;
14
3
  document.documentElement.style.setProperty(setProperty, `${vh}px`);
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 set100vw = (setProperty = "--vw") => {
15
4
  const vw = document.documentElement.clientWidth;
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 set100vw = (setProperty = "--vw") => {
13
2
  const vw = document.documentElement.clientWidth;
14
3
  document.documentElement.style.setProperty(setProperty, `${vw}px`);
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * name: umaki
4
- * version: v0.6.2
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 setAttribute = (element, attribute, value) => {
15
4
  element.setAttribute(attribute, value);
@@ -1,14 +1,3 @@
1
- /*!
2
- * name: umaki
3
- * version: v0.6.2
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 setAttribute = (element, attribute, value) => {
13
2
  element.setAttribute(attribute, value);
14
3
  };