umaki 0.7.6 → 0.8.1

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 (219) hide show
  1. package/README.md +249 -45
  2. package/dist/index.cjs.js +52 -48
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.es.js +52 -48
  5. package/dist/libs/callback/index.d.ts +5 -0
  6. package/dist/libs/callback/tap-async.cjs.js +8 -0
  7. package/dist/libs/callback/tap-async.d.ts +47 -0
  8. package/dist/libs/callback/tap-async.es.js +8 -0
  9. package/dist/libs/callback/tap.cjs.js +7 -0
  10. package/dist/libs/callback/tap.d.ts +35 -0
  11. package/dist/libs/callback/tap.es.js +7 -0
  12. package/dist/libs/config/{getConfig.cjs.js → get-config.cjs.js} +1 -1
  13. package/dist/libs/config/{getConfig.es.js → get-config.es.js} +1 -1
  14. package/dist/libs/config/index.d.ts +3 -3
  15. package/dist/libs/config/{setConfig.cjs.js → set-config.cjs.js} +1 -1
  16. package/dist/libs/config/{setConfig.es.js → set-config.es.js} +1 -1
  17. package/dist/libs/control/{bgScrollStop.cjs.js → bg-scroll-stop.cjs.js} +1 -1
  18. package/dist/libs/control/{bgScrollStop.es.js → bg-scroll-stop.es.js} +1 -1
  19. package/dist/libs/control/index.d.ts +3 -3
  20. package/dist/libs/control/{videoPlayControl.cjs.js → video-play-control.cjs.js} +1 -1
  21. package/dist/libs/control/{videoPlayControl.es.js → video-play-control.es.js} +1 -1
  22. package/dist/libs/convert/index.d.ts +2 -2
  23. package/dist/libs/get/{getAspectRatio.cjs.js → get-aspect-ratio.cjs.js} +1 -1
  24. package/dist/libs/get/{getAspectRatio.es.js → get-aspect-ratio.es.js} +1 -1
  25. package/dist/libs/get/{getGcd.cjs.js → get-gcd.cjs.js} +1 -1
  26. package/dist/libs/get/{getGcd.es.js → get-gcd.es.js} +1 -1
  27. package/dist/libs/get/{getStylePropertyValueToNumber.cjs.js → get-style-property-value-to-number.cjs.js} +1 -1
  28. package/dist/libs/get/{getStylePropertyValueToNumber.es.js → get-style-property-value-to-number.es.js} +1 -1
  29. package/dist/libs/get/{getUaData.cjs.js → get-ua-data.cjs.js} +1 -1
  30. package/dist/libs/get/{getUaData.es.js → get-ua-data.es.js} +1 -1
  31. package/dist/libs/get/index.d.ts +16 -16
  32. package/dist/libs/is/{checkDeviceSize.cjs.js → check-device-size.cjs.js} +1 -1
  33. package/dist/libs/is/{checkDeviceSize.es.js → check-device-size.es.js} +1 -1
  34. package/dist/libs/is/index.d.ts +9 -9
  35. package/dist/libs/is/{isIpad.cjs.js → is-ipad.cjs.js} +2 -2
  36. package/dist/libs/is/{isIpad.es.js → is-ipad.es.js} +2 -2
  37. package/dist/libs/is/{isSafari.cjs.js → is-safari.cjs.js} +1 -1
  38. package/dist/libs/is/{isSafari.es.js → is-safari.es.js} +1 -1
  39. package/dist/libs/remove/index.d.ts +4 -4
  40. package/dist/libs/security/index.d.ts +1 -1
  41. package/dist/libs/set/index.d.ts +6 -6
  42. package/dist/libs/to/index.d.ts +2 -2
  43. package/dist/libs/transform/index.d.ts +1 -1
  44. package/dist/libs/transform/wrap-text-with-spans.test.d.ts +1 -0
  45. package/dist/libs/wait/index.d.ts +1 -1
  46. package/dist/libs/wait/wait-for-all-media-loaded.test.d.ts +1 -0
  47. package/package.json +1 -1
  48. /package/dist/libs/{control/scrollToHash.test.d.ts → callback/tap-async.test.d.ts} +0 -0
  49. /package/dist/libs/{control/videoPlayControl.test.d.ts → callback/tap.test.d.ts} +0 -0
  50. /package/dist/libs/config/{defaultConfig.cjs.js → default-config.cjs.js} +0 -0
  51. /package/dist/libs/config/{defaultConfig.d.ts → default-config.d.ts} +0 -0
  52. /package/dist/libs/config/{defaultConfig.es.js → default-config.es.js} +0 -0
  53. /package/dist/libs/config/{getConfig.d.ts → get-config.d.ts} +0 -0
  54. /package/dist/libs/config/{setConfig.d.ts → set-config.d.ts} +0 -0
  55. /package/dist/libs/control/{bgScrollStop.d.ts → bg-scroll-stop.d.ts} +0 -0
  56. /package/dist/libs/control/{scrollToHash.cjs.js → scroll-to-hash.cjs.js} +0 -0
  57. /package/dist/libs/control/{scrollToHash.d.ts → scroll-to-hash.d.ts} +0 -0
  58. /package/dist/libs/control/{scrollToHash.es.js → scroll-to-hash.es.js} +0 -0
  59. /package/dist/libs/{convert/changeDateStringToSpecificFormat.test.d.ts → control/scroll-to-hash.test.d.ts} +0 -0
  60. /package/dist/libs/control/{videoPlayControl.d.ts → video-play-control.d.ts} +0 -0
  61. /package/dist/libs/{convert/jsonStringToJsonObject.test.d.ts → control/video-play-control.test.d.ts} +0 -0
  62. /package/dist/libs/convert/{changeDateStringToSpecificFormat.cjs.js → change-date-string-to-specific-format.cjs.js} +0 -0
  63. /package/dist/libs/convert/{changeDateStringToSpecificFormat.d.ts → change-date-string-to-specific-format.d.ts} +0 -0
  64. /package/dist/libs/convert/{changeDateStringToSpecificFormat.es.js → change-date-string-to-specific-format.es.js} +0 -0
  65. /package/dist/libs/{get/getAspectRatio.test.d.ts → convert/change-date-string-to-specific-format.test.d.ts} +0 -0
  66. /package/dist/libs/convert/{jsonStringToJsonObject.cjs.js → json-string-to-json-object.cjs.js} +0 -0
  67. /package/dist/libs/convert/{jsonStringToJsonObject.d.ts → json-string-to-json-object.d.ts} +0 -0
  68. /package/dist/libs/convert/{jsonStringToJsonObject.es.js → json-string-to-json-object.es.js} +0 -0
  69. /package/dist/libs/{get/getClassNames.test.d.ts → convert/json-string-to-json-object.test.d.ts} +0 -0
  70. /package/dist/libs/get/{getAspectRatio.d.ts → get-aspect-ratio.d.ts} +0 -0
  71. /package/dist/libs/get/{getDocumentHeight.test.d.ts → get-aspect-ratio.test.d.ts} +0 -0
  72. /package/dist/libs/get/{getClassNames.cjs.js → get-class-names.cjs.js} +0 -0
  73. /package/dist/libs/get/{getClassNames.d.ts → get-class-names.d.ts} +0 -0
  74. /package/dist/libs/get/{getClassNames.es.js → get-class-names.es.js} +0 -0
  75. /package/dist/libs/get/{getGcd.test.d.ts → get-class-names.test.d.ts} +0 -0
  76. /package/dist/libs/get/{getDocumentHeight.cjs.js → get-document-height.cjs.js} +0 -0
  77. /package/dist/libs/get/{getDocumentHeight.d.ts → get-document-height.d.ts} +0 -0
  78. /package/dist/libs/get/{getDocumentHeight.es.js → get-document-height.es.js} +0 -0
  79. /package/dist/libs/get/{getGravatarUrl.test.d.ts → get-document-height.test.d.ts} +0 -0
  80. /package/dist/libs/get/{getEventPaths.cjs.js → get-event-paths.cjs.js} +0 -0
  81. /package/dist/libs/get/{getEventPaths.d.ts → get-event-paths.d.ts} +0 -0
  82. /package/dist/libs/get/{getEventPaths.es.js → get-event-paths.es.js} +0 -0
  83. /package/dist/libs/get/{getGcd.d.ts → get-gcd.d.ts} +0 -0
  84. /package/dist/libs/get/{getOrientation.test.d.ts → get-gcd.test.d.ts} +0 -0
  85. /package/dist/libs/get/{getGravatarUrl.cjs.js → get-gravatar-url.cjs.js} +0 -0
  86. /package/dist/libs/get/{getGravatarUrl.d.ts → get-gravatar-url.d.ts} +0 -0
  87. /package/dist/libs/get/{getGravatarUrl.es.js → get-gravatar-url.es.js} +0 -0
  88. /package/dist/libs/get/{getParentList.test.d.ts → get-gravatar-url.test.d.ts} +0 -0
  89. /package/dist/libs/get/{getImageSize.d.ts → get-image-size.d.ts} +0 -0
  90. /package/dist/libs/get/{getOrientation.cjs.js → get-orientation.cjs.js} +0 -0
  91. /package/dist/libs/get/{getOrientation.d.ts → get-orientation.d.ts} +0 -0
  92. /package/dist/libs/get/{getOrientation.es.js → get-orientation.es.js} +0 -0
  93. /package/dist/libs/get/{getPath.test.d.ts → get-orientation.test.d.ts} +0 -0
  94. /package/dist/libs/get/{getParentList.cjs.js → get-parent-list.cjs.js} +0 -0
  95. /package/dist/libs/get/{getParentList.d.ts → get-parent-list.d.ts} +0 -0
  96. /package/dist/libs/get/{getParentList.es.js → get-parent-list.es.js} +0 -0
  97. /package/dist/libs/get/{getPathFromLocalPublic.test.d.ts → get-parent-list.test.d.ts} +0 -0
  98. /package/dist/libs/get/{getPathFromLocalPublic.d.ts → get-path-from-local-public.d.ts} +0 -0
  99. /package/dist/libs/get/{getQueryParams.test.d.ts → get-path-from-local-public.test.d.ts} +0 -0
  100. /package/dist/libs/get/{getPath.d.ts → get-path.d.ts} +0 -0
  101. /package/dist/libs/get/{getRem.test.d.ts → get-path.test.d.ts} +0 -0
  102. /package/dist/libs/get/{getQueryParams.cjs.js → get-query-params.cjs.js} +0 -0
  103. /package/dist/libs/get/{getQueryParams.d.ts → get-query-params.d.ts} +0 -0
  104. /package/dist/libs/get/{getQueryParams.es.js → get-query-params.es.js} +0 -0
  105. /package/dist/libs/get/{getScrollbarWidth.test.d.ts → get-query-params.test.d.ts} +0 -0
  106. /package/dist/libs/get/{getRem.cjs.js → get-rem.cjs.js} +0 -0
  107. /package/dist/libs/get/{getRem.d.ts → get-rem.d.ts} +0 -0
  108. /package/dist/libs/get/{getRem.es.js → get-rem.es.js} +0 -0
  109. /package/dist/libs/get/{getSessionStorage.test.d.ts → get-rem.test.d.ts} +0 -0
  110. /package/dist/libs/get/{getScrollbarWidth.cjs.js → get-scrollbar-width.cjs.js} +0 -0
  111. /package/dist/libs/get/{getScrollbarWidth.d.ts → get-scrollbar-width.d.ts} +0 -0
  112. /package/dist/libs/get/{getScrollbarWidth.es.js → get-scrollbar-width.es.js} +0 -0
  113. /package/dist/libs/get/{getStringLength.test.d.ts → get-scrollbar-width.test.d.ts} +0 -0
  114. /package/dist/libs/get/{getSessionStorage.cjs.js → get-session-storage.cjs.js} +0 -0
  115. /package/dist/libs/get/{getSessionStorage.d.ts → get-session-storage.d.ts} +0 -0
  116. /package/dist/libs/get/{getSessionStorage.es.js → get-session-storage.es.js} +0 -0
  117. /package/dist/libs/get/{getStylePropertyValue.test.d.ts → get-session-storage.test.d.ts} +0 -0
  118. /package/dist/libs/get/{getStringLength.cjs.js → get-string-length.cjs.js} +0 -0
  119. /package/dist/libs/get/{getStringLength.d.ts → get-string-length.d.ts} +0 -0
  120. /package/dist/libs/get/{getStringLength.es.js → get-string-length.es.js} +0 -0
  121. /package/dist/libs/get/{getStylePropertyValueToNumber.test.d.ts → get-string-length.test.d.ts} +0 -0
  122. /package/dist/libs/get/{getStylePropertyValueToNumber.d.ts → get-style-property-value-to-number.d.ts} +0 -0
  123. /package/dist/libs/get/{getUaData.test.d.ts → get-style-property-value-to-number.test.d.ts} +0 -0
  124. /package/dist/libs/get/{getStylePropertyValue.cjs.js → get-style-property-value.cjs.js} +0 -0
  125. /package/dist/libs/get/{getStylePropertyValue.d.ts → get-style-property-value.d.ts} +0 -0
  126. /package/dist/libs/get/{getStylePropertyValue.es.js → get-style-property-value.es.js} +0 -0
  127. /package/dist/libs/{is/checkDeviceSize.test.d.ts → get/get-style-property-value.test.d.ts} +0 -0
  128. /package/dist/libs/get/{getUaData.d.ts → get-ua-data.d.ts} +0 -0
  129. /package/dist/libs/{is/isAfterDateTime.test.d.ts → get/get-ua-data.test.d.ts} +0 -0
  130. /package/dist/libs/is/{checkDeviceSize.d.ts → check-device-size.d.ts} +0 -0
  131. /package/dist/libs/is/{isBetweenDateTime.test.d.ts → check-device-size.test.d.ts} +0 -0
  132. /package/dist/libs/is/{isAfterDateTime.cjs.js → is-after-date-time.cjs.js} +0 -0
  133. /package/dist/libs/is/{isAfterDateTime.d.ts → is-after-date-time.d.ts} +0 -0
  134. /package/dist/libs/is/{isAfterDateTime.es.js → is-after-date-time.es.js} +0 -0
  135. /package/dist/libs/is/{isExistAllElements.test.d.ts → is-after-date-time.test.d.ts} +0 -0
  136. /package/dist/libs/is/{isBetweenDateTime.cjs.js → is-between-date-time.cjs.js} +0 -0
  137. /package/dist/libs/is/{isBetweenDateTime.d.ts → is-between-date-time.d.ts} +0 -0
  138. /package/dist/libs/is/{isBetweenDateTime.es.js → is-between-date-time.es.js} +0 -0
  139. /package/dist/libs/is/{isIpad.test.d.ts → is-between-date-time.test.d.ts} +0 -0
  140. /package/dist/libs/is/{isExistAllElements.cjs.js → is-exist-all-elements.cjs.js} +0 -0
  141. /package/dist/libs/is/{isExistAllElements.d.ts → is-exist-all-elements.d.ts} +0 -0
  142. /package/dist/libs/is/{isExistAllElements.es.js → is-exist-all-elements.es.js} +0 -0
  143. /package/dist/libs/is/{isKeyExists.test.d.ts → is-exist-all-elements.test.d.ts} +0 -0
  144. /package/dist/libs/is/{isIpad.d.ts → is-ipad.d.ts} +0 -0
  145. /package/dist/libs/is/{isProduction.test.d.ts → is-ipad.test.d.ts} +0 -0
  146. /package/dist/libs/is/{isKeyExists.cjs.js → is-key-exists.cjs.js} +0 -0
  147. /package/dist/libs/is/{isKeyExists.d.ts → is-key-exists.d.ts} +0 -0
  148. /package/dist/libs/is/{isKeyExists.es.js → is-key-exists.es.js} +0 -0
  149. /package/dist/libs/is/{isSafari.test.d.ts → is-key-exists.test.d.ts} +0 -0
  150. /package/dist/libs/is/{isProduction.d.ts → is-production.d.ts} +0 -0
  151. /package/dist/libs/is/{isScrollable.test.d.ts → is-production.test.d.ts} +0 -0
  152. /package/dist/libs/is/{isSafari.d.ts → is-safari.d.ts} +0 -0
  153. /package/dist/libs/is/{isTouchSupport.test.d.ts → is-safari.test.d.ts} +0 -0
  154. /package/dist/libs/is/{isScrollable.cjs.js → is-scrollable.cjs.js} +0 -0
  155. /package/dist/libs/is/{isScrollable.d.ts → is-scrollable.d.ts} +0 -0
  156. /package/dist/libs/is/{isScrollable.es.js → is-scrollable.es.js} +0 -0
  157. /package/dist/libs/{remove/removeAllHtmlTags.test.d.ts → is/is-scrollable.test.d.ts} +0 -0
  158. /package/dist/libs/is/{isTouchSupport.cjs.js → is-touch-support.cjs.js} +0 -0
  159. /package/dist/libs/is/{isTouchSupport.d.ts → is-touch-support.d.ts} +0 -0
  160. /package/dist/libs/is/{isTouchSupport.es.js → is-touch-support.es.js} +0 -0
  161. /package/dist/libs/{remove/removeAttribute.test.d.ts → is/is-touch-support.test.d.ts} +0 -0
  162. /package/dist/libs/remove/{removeAllHtmlTags.cjs.js → remove-all-html-tags.cjs.js} +0 -0
  163. /package/dist/libs/remove/{removeAllHtmlTags.d.ts → remove-all-html-tags.d.ts} +0 -0
  164. /package/dist/libs/remove/{removeAllHtmlTags.es.js → remove-all-html-tags.es.js} +0 -0
  165. /package/dist/libs/remove/{removeSessionStorage.test.d.ts → remove-all-html-tags.test.d.ts} +0 -0
  166. /package/dist/libs/remove/{removeAttribute.cjs.js → remove-attribute.cjs.js} +0 -0
  167. /package/dist/libs/remove/{removeAttribute.d.ts → remove-attribute.d.ts} +0 -0
  168. /package/dist/libs/remove/{removeAttribute.es.js → remove-attribute.es.js} +0 -0
  169. /package/dist/libs/remove/{removeStylePropertyValue.test.d.ts → remove-attribute.test.d.ts} +0 -0
  170. /package/dist/libs/remove/{removeSessionStorage.cjs.js → remove-session-storage.cjs.js} +0 -0
  171. /package/dist/libs/remove/{removeSessionStorage.d.ts → remove-session-storage.d.ts} +0 -0
  172. /package/dist/libs/remove/{removeSessionStorage.es.js → remove-session-storage.es.js} +0 -0
  173. /package/dist/libs/{security/htmlSanitize.test.d.ts → remove/remove-session-storage.test.d.ts} +0 -0
  174. /package/dist/libs/remove/{removeStylePropertyValue.cjs.js → remove-style-property-value.cjs.js} +0 -0
  175. /package/dist/libs/remove/{removeStylePropertyValue.d.ts → remove-style-property-value.d.ts} +0 -0
  176. /package/dist/libs/remove/{removeStylePropertyValue.es.js → remove-style-property-value.es.js} +0 -0
  177. /package/dist/libs/{set/set100vh.test.d.ts → remove/remove-style-property-value.test.d.ts} +0 -0
  178. /package/dist/libs/security/{htmlSanitize.cjs.js → html-sanitize.cjs.js} +0 -0
  179. /package/dist/libs/security/{htmlSanitize.d.ts → html-sanitize.d.ts} +0 -0
  180. /package/dist/libs/security/{htmlSanitize.es.js → html-sanitize.es.js} +0 -0
  181. /package/dist/libs/{set/set100vw.test.d.ts → security/html-sanitize.test.d.ts} +0 -0
  182. /package/dist/libs/set/{set100vh.cjs.js → set-100vh.cjs.js} +0 -0
  183. /package/dist/libs/set/{set100vh.d.ts → set-100vh.d.ts} +0 -0
  184. /package/dist/libs/set/{set100vh.es.js → set-100vh.es.js} +0 -0
  185. /package/dist/libs/set/{setAttribute.test.d.ts → set-100vh.test.d.ts} +0 -0
  186. /package/dist/libs/set/{set100vw.cjs.js → set-100vw.cjs.js} +0 -0
  187. /package/dist/libs/set/{set100vw.d.ts → set-100vw.d.ts} +0 -0
  188. /package/dist/libs/set/{set100vw.es.js → set-100vw.es.js} +0 -0
  189. /package/dist/libs/set/{setScrollPositionToCenter.test.d.ts → set-100vw.test.d.ts} +0 -0
  190. /package/dist/libs/set/{setAttribute.cjs.js → set-attribute.cjs.js} +0 -0
  191. /package/dist/libs/set/{setAttribute.d.ts → set-attribute.d.ts} +0 -0
  192. /package/dist/libs/set/{setAttribute.es.js → set-attribute.es.js} +0 -0
  193. /package/dist/libs/set/{setSessionStorage.test.d.ts → set-attribute.test.d.ts} +0 -0
  194. /package/dist/libs/set/{setScrollPositionToCenter.cjs.js → set-scroll-position-to-center.cjs.js} +0 -0
  195. /package/dist/libs/set/{setScrollPositionToCenter.d.ts → set-scroll-position-to-center.d.ts} +0 -0
  196. /package/dist/libs/set/{setScrollPositionToCenter.es.js → set-scroll-position-to-center.es.js} +0 -0
  197. /package/dist/libs/set/{setStylePropertyValue.test.d.ts → set-scroll-position-to-center.test.d.ts} +0 -0
  198. /package/dist/libs/set/{setSessionStorage.cjs.js → set-session-storage.cjs.js} +0 -0
  199. /package/dist/libs/set/{setSessionStorage.d.ts → set-session-storage.d.ts} +0 -0
  200. /package/dist/libs/set/{setSessionStorage.es.js → set-session-storage.es.js} +0 -0
  201. /package/dist/libs/{to/toBoolean.test.d.ts → set/set-session-storage.test.d.ts} +0 -0
  202. /package/dist/libs/set/{setStylePropertyValue.cjs.js → set-style-property-value.cjs.js} +0 -0
  203. /package/dist/libs/set/{setStylePropertyValue.d.ts → set-style-property-value.d.ts} +0 -0
  204. /package/dist/libs/set/{setStylePropertyValue.es.js → set-style-property-value.es.js} +0 -0
  205. /package/dist/libs/{to/toPositiveNumber.test.d.ts → set/set-style-property-value.test.d.ts} +0 -0
  206. /package/dist/libs/to/{toBoolean.cjs.js → to-boolean.cjs.js} +0 -0
  207. /package/dist/libs/to/{toBoolean.d.ts → to-boolean.d.ts} +0 -0
  208. /package/dist/libs/to/{toBoolean.es.js → to-boolean.es.js} +0 -0
  209. /package/dist/libs/{transform/wrapTextWithSpans.test.d.ts → to/to-boolean.test.d.ts} +0 -0
  210. /package/dist/libs/to/{toPositiveNumber.cjs.js → to-positive-number.cjs.js} +0 -0
  211. /package/dist/libs/to/{toPositiveNumber.d.ts → to-positive-number.d.ts} +0 -0
  212. /package/dist/libs/to/{toPositiveNumber.es.js → to-positive-number.es.js} +0 -0
  213. /package/dist/libs/{wait/waitForAllMediaLoaded.test.d.ts → to/to-positive-number.test.d.ts} +0 -0
  214. /package/dist/libs/transform/{wrapTextWithSpans.cjs.js → wrap-text-with-spans.cjs.js} +0 -0
  215. /package/dist/libs/transform/{wrapTextWithSpans.d.ts → wrap-text-with-spans.d.ts} +0 -0
  216. /package/dist/libs/transform/{wrapTextWithSpans.es.js → wrap-text-with-spans.es.js} +0 -0
  217. /package/dist/libs/wait/{waitForAllMediaLoaded.cjs.js → wait-for-all-media-loaded.cjs.js} +0 -0
  218. /package/dist/libs/wait/{waitForAllMediaLoaded.d.ts → wait-for-all-media-loaded.d.ts} +0 -0
  219. /package/dist/libs/wait/{waitForAllMediaLoaded.es.js → wait-for-all-media-loaded.es.js} +0 -0
package/dist/index.cjs.js CHANGED
@@ -1,57 +1,61 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const defaultConfig = require("./libs/config/defaultConfig.cjs.js");
4
- const getConfig = require("./libs/config/getConfig.cjs.js");
5
- const setConfig = require("./libs/config/setConfig.cjs.js");
6
- const bgScrollStop = require("./libs/control/bgScrollStop.cjs.js");
3
+ const tap = require("./libs/callback/tap.cjs.js");
4
+ const tapAsync = require("./libs/callback/tap-async.cjs.js");
5
+ const defaultConfig = require("./libs/config/default-config.cjs.js");
6
+ const getConfig = require("./libs/config/get-config.cjs.js");
7
+ const setConfig = require("./libs/config/set-config.cjs.js");
8
+ const bgScrollStop = require("./libs/control/bg-scroll-stop.cjs.js");
7
9
  const pd = require("./libs/control/pd.cjs.js");
8
- const scrollToHash = require("./libs/control/scrollToHash.cjs.js");
9
- const videoPlayControl = require("./libs/control/videoPlayControl.cjs.js");
10
- const changeDateStringToSpecificFormat = require("./libs/convert/changeDateStringToSpecificFormat.cjs.js");
11
- const jsonStringToJsonObject = require("./libs/convert/jsonStringToJsonObject.cjs.js");
10
+ const scrollToHash = require("./libs/control/scroll-to-hash.cjs.js");
11
+ const videoPlayControl = require("./libs/control/video-play-control.cjs.js");
12
+ const changeDateStringToSpecificFormat = require("./libs/convert/change-date-string-to-specific-format.cjs.js");
13
+ const jsonStringToJsonObject = require("./libs/convert/json-string-to-json-object.cjs.js");
12
14
  const debounce = require("./libs/eventControl/debounce.cjs.js");
13
15
  const throttle = require("./libs/eventControl/throttle.cjs.js");
14
- const getAspectRatio = require("./libs/get/getAspectRatio.cjs.js");
15
- const getClassNames = require("./libs/get/getClassNames.cjs.js");
16
- const getDocumentHeight = require("./libs/get/getDocumentHeight.cjs.js");
17
- const getEventPaths = require("./libs/get/getEventPaths.cjs.js");
18
- const getGcd = require("./libs/get/getGcd.cjs.js");
19
- const getGravatarUrl = require("./libs/get/getGravatarUrl.cjs.js");
20
- const getOrientation = require("./libs/get/getOrientation.cjs.js");
21
- const getParentList = require("./libs/get/getParentList.cjs.js");
22
- const getQueryParams = require("./libs/get/getQueryParams.cjs.js");
23
- const getRem = require("./libs/get/getRem.cjs.js");
24
- const getScrollbarWidth = require("./libs/get/getScrollbarWidth.cjs.js");
25
- const getSessionStorage = require("./libs/get/getSessionStorage.cjs.js");
26
- const getStringLength = require("./libs/get/getStringLength.cjs.js");
27
- const getStylePropertyValue = require("./libs/get/getStylePropertyValue.cjs.js");
28
- const getStylePropertyValueToNumber = require("./libs/get/getStylePropertyValueToNumber.cjs.js");
29
- const getUaData = require("./libs/get/getUaData.cjs.js");
30
- const checkDeviceSize = require("./libs/is/checkDeviceSize.cjs.js");
31
- const isAfterDateTime = require("./libs/is/isAfterDateTime.cjs.js");
32
- const isBetweenDateTime = require("./libs/is/isBetweenDateTime.cjs.js");
33
- const isExistAllElements = require("./libs/is/isExistAllElements.cjs.js");
34
- const isIpad = require("./libs/is/isIpad.cjs.js");
35
- const isKeyExists = require("./libs/is/isKeyExists.cjs.js");
36
- const isSafari = require("./libs/is/isSafari.cjs.js");
37
- const isScrollable = require("./libs/is/isScrollable.cjs.js");
38
- const isTouchSupport = require("./libs/is/isTouchSupport.cjs.js");
39
- const removeAllHtmlTags = require("./libs/remove/removeAllHtmlTags.cjs.js");
40
- const removeAttribute = require("./libs/remove/removeAttribute.cjs.js");
41
- const removeSessionStorage = require("./libs/remove/removeSessionStorage.cjs.js");
42
- const removeStylePropertyValue = require("./libs/remove/removeStylePropertyValue.cjs.js");
43
- const htmlSanitize = require("./libs/security/htmlSanitize.cjs.js");
44
- const set100vh = require("./libs/set/set100vh.cjs.js");
45
- const set100vw = require("./libs/set/set100vw.cjs.js");
46
- const setAttribute = require("./libs/set/setAttribute.cjs.js");
47
- const setScrollPositionToCenter = require("./libs/set/setScrollPositionToCenter.cjs.js");
48
- const setSessionStorage = require("./libs/set/setSessionStorage.cjs.js");
49
- const setStylePropertyValue = require("./libs/set/setStylePropertyValue.cjs.js");
50
- const toBoolean = require("./libs/to/toBoolean.cjs.js");
51
- const toPositiveNumber = require("./libs/to/toPositiveNumber.cjs.js");
52
- const wrapTextWithSpans = require("./libs/transform/wrapTextWithSpans.cjs.js");
16
+ const getAspectRatio = require("./libs/get/get-aspect-ratio.cjs.js");
17
+ const getClassNames = require("./libs/get/get-class-names.cjs.js");
18
+ const getDocumentHeight = require("./libs/get/get-document-height.cjs.js");
19
+ const getEventPaths = require("./libs/get/get-event-paths.cjs.js");
20
+ const getGcd = require("./libs/get/get-gcd.cjs.js");
21
+ const getGravatarUrl = require("./libs/get/get-gravatar-url.cjs.js");
22
+ const getOrientation = require("./libs/get/get-orientation.cjs.js");
23
+ const getParentList = require("./libs/get/get-parent-list.cjs.js");
24
+ const getQueryParams = require("./libs/get/get-query-params.cjs.js");
25
+ const getRem = require("./libs/get/get-rem.cjs.js");
26
+ const getScrollbarWidth = require("./libs/get/get-scrollbar-width.cjs.js");
27
+ const getSessionStorage = require("./libs/get/get-session-storage.cjs.js");
28
+ const getStringLength = require("./libs/get/get-string-length.cjs.js");
29
+ const getStylePropertyValue = require("./libs/get/get-style-property-value.cjs.js");
30
+ const getStylePropertyValueToNumber = require("./libs/get/get-style-property-value-to-number.cjs.js");
31
+ const getUaData = require("./libs/get/get-ua-data.cjs.js");
32
+ const checkDeviceSize = require("./libs/is/check-device-size.cjs.js");
33
+ const isAfterDateTime = require("./libs/is/is-after-date-time.cjs.js");
34
+ const isBetweenDateTime = require("./libs/is/is-between-date-time.cjs.js");
35
+ const isExistAllElements = require("./libs/is/is-exist-all-elements.cjs.js");
36
+ const isIpad = require("./libs/is/is-ipad.cjs.js");
37
+ const isKeyExists = require("./libs/is/is-key-exists.cjs.js");
38
+ const isSafari = require("./libs/is/is-safari.cjs.js");
39
+ const isScrollable = require("./libs/is/is-scrollable.cjs.js");
40
+ const isTouchSupport = require("./libs/is/is-touch-support.cjs.js");
41
+ const removeAllHtmlTags = require("./libs/remove/remove-all-html-tags.cjs.js");
42
+ const removeAttribute = require("./libs/remove/remove-attribute.cjs.js");
43
+ const removeSessionStorage = require("./libs/remove/remove-session-storage.cjs.js");
44
+ const removeStylePropertyValue = require("./libs/remove/remove-style-property-value.cjs.js");
45
+ const htmlSanitize = require("./libs/security/html-sanitize.cjs.js");
46
+ const set100vh = require("./libs/set/set-100vh.cjs.js");
47
+ const set100vw = require("./libs/set/set-100vw.cjs.js");
48
+ const setAttribute = require("./libs/set/set-attribute.cjs.js");
49
+ const setScrollPositionToCenter = require("./libs/set/set-scroll-position-to-center.cjs.js");
50
+ const setSessionStorage = require("./libs/set/set-session-storage.cjs.js");
51
+ const setStylePropertyValue = require("./libs/set/set-style-property-value.cjs.js");
52
+ const toBoolean = require("./libs/to/to-boolean.cjs.js");
53
+ const toPositiveNumber = require("./libs/to/to-positive-number.cjs.js");
54
+ const wrapTextWithSpans = require("./libs/transform/wrap-text-with-spans.cjs.js");
53
55
  const sleep = require("./libs/wait/sleep.cjs.js");
54
- const waitForAllMediaLoaded = require("./libs/wait/waitForAllMediaLoaded.cjs.js");
56
+ const waitForAllMediaLoaded = require("./libs/wait/wait-for-all-media-loaded.cjs.js");
57
+ exports.tap = tap.tap;
58
+ exports.tapAsync = tapAsync.tapAsync;
55
59
  exports.defaultConfig = defaultConfig.defaultConfig;
56
60
  exports.getConfig = getConfig.getConfig;
57
61
  exports.getConfigValue = getConfig.getConfigValue;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './libs/callback';
1
2
  export * from './libs/config';
2
3
  export * from './libs/control';
3
4
  export * from './libs/convert';
package/dist/index.es.js CHANGED
@@ -1,55 +1,57 @@
1
- import { defaultConfig } from "./libs/config/defaultConfig.es.js";
2
- import { getConfig, getConfigValue } from "./libs/config/getConfig.es.js";
3
- import { setConfig } from "./libs/config/setConfig.es.js";
4
- import { bgScrollStop } from "./libs/control/bgScrollStop.es.js";
1
+ import { tap } from "./libs/callback/tap.es.js";
2
+ import { tapAsync } from "./libs/callback/tap-async.es.js";
3
+ import { defaultConfig } from "./libs/config/default-config.es.js";
4
+ import { getConfig, getConfigValue } from "./libs/config/get-config.es.js";
5
+ import { setConfig } from "./libs/config/set-config.es.js";
6
+ import { bgScrollStop } from "./libs/control/bg-scroll-stop.es.js";
5
7
  import { pd } from "./libs/control/pd.es.js";
6
- import { scrollToHash } from "./libs/control/scrollToHash.es.js";
7
- import { videoPlayControl } from "./libs/control/videoPlayControl.es.js";
8
- import { changeDateStringToSpecificFormat } from "./libs/convert/changeDateStringToSpecificFormat.es.js";
9
- import { jsonStringToJsonObject } from "./libs/convert/jsonStringToJsonObject.es.js";
8
+ import { scrollToHash } from "./libs/control/scroll-to-hash.es.js";
9
+ import { videoPlayControl } from "./libs/control/video-play-control.es.js";
10
+ import { changeDateStringToSpecificFormat } from "./libs/convert/change-date-string-to-specific-format.es.js";
11
+ import { jsonStringToJsonObject } from "./libs/convert/json-string-to-json-object.es.js";
10
12
  import { debounce } from "./libs/eventControl/debounce.es.js";
11
13
  import { throttle } from "./libs/eventControl/throttle.es.js";
12
- import { getAspectRatio } from "./libs/get/getAspectRatio.es.js";
13
- import { getClassNames } from "./libs/get/getClassNames.es.js";
14
- import { getDocumentHeight } from "./libs/get/getDocumentHeight.es.js";
15
- import { getEventPaths } from "./libs/get/getEventPaths.es.js";
16
- import { getGcd } from "./libs/get/getGcd.es.js";
17
- import { getGravatarUrl } from "./libs/get/getGravatarUrl.es.js";
18
- import { getOrientation } from "./libs/get/getOrientation.es.js";
19
- import { getParentList } from "./libs/get/getParentList.es.js";
20
- import { getQueryParams } from "./libs/get/getQueryParams.es.js";
21
- import { getRem } from "./libs/get/getRem.es.js";
22
- import { getScrollbarWidth } from "./libs/get/getScrollbarWidth.es.js";
23
- import { getSessionStorage } from "./libs/get/getSessionStorage.es.js";
24
- import { getStringLength } from "./libs/get/getStringLength.es.js";
25
- import { getStylePropertyValue } from "./libs/get/getStylePropertyValue.es.js";
26
- import { getStylePropertyValueToNumber } from "./libs/get/getStylePropertyValueToNumber.es.js";
27
- import { getUaData } from "./libs/get/getUaData.es.js";
28
- import { checkDeviceSize } from "./libs/is/checkDeviceSize.es.js";
29
- import { isAfterDateTime } from "./libs/is/isAfterDateTime.es.js";
30
- import { isBetweenDateTime } from "./libs/is/isBetweenDateTime.es.js";
31
- import { isExistAllElements } from "./libs/is/isExistAllElements.es.js";
32
- import { isIpad } from "./libs/is/isIpad.es.js";
33
- import { isKeyExists } from "./libs/is/isKeyExists.es.js";
34
- import { isSafari } from "./libs/is/isSafari.es.js";
35
- import { isScrollable } from "./libs/is/isScrollable.es.js";
36
- import { isTouchSupport } from "./libs/is/isTouchSupport.es.js";
37
- import { removeAllHtmlTags } from "./libs/remove/removeAllHtmlTags.es.js";
38
- import { removeAttribute } from "./libs/remove/removeAttribute.es.js";
39
- import { removeSessionStorage } from "./libs/remove/removeSessionStorage.es.js";
40
- import { removeStylePropertyValue } from "./libs/remove/removeStylePropertyValue.es.js";
41
- import { htmlSanitize } from "./libs/security/htmlSanitize.es.js";
42
- import { set100vh } from "./libs/set/set100vh.es.js";
43
- import { set100vw } from "./libs/set/set100vw.es.js";
44
- import { setAttribute } from "./libs/set/setAttribute.es.js";
45
- import { setScrollPositionToCenter } from "./libs/set/setScrollPositionToCenter.es.js";
46
- import { setSessionStorage } from "./libs/set/setSessionStorage.es.js";
47
- import { setStylePropertyValue } from "./libs/set/setStylePropertyValue.es.js";
48
- import { toBoolean } from "./libs/to/toBoolean.es.js";
49
- import { toPositiveNumber } from "./libs/to/toPositiveNumber.es.js";
50
- import { wrapTextWithSpans } from "./libs/transform/wrapTextWithSpans.es.js";
14
+ import { getAspectRatio } from "./libs/get/get-aspect-ratio.es.js";
15
+ import { getClassNames } from "./libs/get/get-class-names.es.js";
16
+ import { getDocumentHeight } from "./libs/get/get-document-height.es.js";
17
+ import { getEventPaths } from "./libs/get/get-event-paths.es.js";
18
+ import { getGcd } from "./libs/get/get-gcd.es.js";
19
+ import { getGravatarUrl } from "./libs/get/get-gravatar-url.es.js";
20
+ import { getOrientation } from "./libs/get/get-orientation.es.js";
21
+ import { getParentList } from "./libs/get/get-parent-list.es.js";
22
+ import { getQueryParams } from "./libs/get/get-query-params.es.js";
23
+ import { getRem } from "./libs/get/get-rem.es.js";
24
+ import { getScrollbarWidth } from "./libs/get/get-scrollbar-width.es.js";
25
+ import { getSessionStorage } from "./libs/get/get-session-storage.es.js";
26
+ import { getStringLength } from "./libs/get/get-string-length.es.js";
27
+ import { getStylePropertyValue } from "./libs/get/get-style-property-value.es.js";
28
+ import { getStylePropertyValueToNumber } from "./libs/get/get-style-property-value-to-number.es.js";
29
+ import { getUaData } from "./libs/get/get-ua-data.es.js";
30
+ import { checkDeviceSize } from "./libs/is/check-device-size.es.js";
31
+ import { isAfterDateTime } from "./libs/is/is-after-date-time.es.js";
32
+ import { isBetweenDateTime } from "./libs/is/is-between-date-time.es.js";
33
+ import { isExistAllElements } from "./libs/is/is-exist-all-elements.es.js";
34
+ import { isIpad } from "./libs/is/is-ipad.es.js";
35
+ import { isKeyExists } from "./libs/is/is-key-exists.es.js";
36
+ import { isSafari } from "./libs/is/is-safari.es.js";
37
+ import { isScrollable } from "./libs/is/is-scrollable.es.js";
38
+ import { isTouchSupport } from "./libs/is/is-touch-support.es.js";
39
+ import { removeAllHtmlTags } from "./libs/remove/remove-all-html-tags.es.js";
40
+ import { removeAttribute } from "./libs/remove/remove-attribute.es.js";
41
+ import { removeSessionStorage } from "./libs/remove/remove-session-storage.es.js";
42
+ import { removeStylePropertyValue } from "./libs/remove/remove-style-property-value.es.js";
43
+ import { htmlSanitize } from "./libs/security/html-sanitize.es.js";
44
+ import { set100vh } from "./libs/set/set-100vh.es.js";
45
+ import { set100vw } from "./libs/set/set-100vw.es.js";
46
+ import { setAttribute } from "./libs/set/set-attribute.es.js";
47
+ import { setScrollPositionToCenter } from "./libs/set/set-scroll-position-to-center.es.js";
48
+ import { setSessionStorage } from "./libs/set/set-session-storage.es.js";
49
+ import { setStylePropertyValue } from "./libs/set/set-style-property-value.es.js";
50
+ import { toBoolean } from "./libs/to/to-boolean.es.js";
51
+ import { toPositiveNumber } from "./libs/to/to-positive-number.es.js";
52
+ import { wrapTextWithSpans } from "./libs/transform/wrap-text-with-spans.es.js";
51
53
  import { sleep } from "./libs/wait/sleep.es.js";
52
- import { waitForAllMediaLoaded } from "./libs/wait/waitForAllMediaLoaded.es.js";
54
+ import { waitForAllMediaLoaded } from "./libs/wait/wait-for-all-media-loaded.es.js";
53
55
  export {
54
56
  bgScrollStop,
55
57
  changeDateStringToSpecificFormat,
@@ -98,6 +100,8 @@ export {
98
100
  setSessionStorage,
99
101
  setStylePropertyValue,
100
102
  sleep,
103
+ tap,
104
+ tapAsync,
101
105
  throttle,
102
106
  toBoolean,
103
107
  toPositiveNumber,
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Callback functions
3
+ */
4
+ export { tap } from './tap';
5
+ export { tapAsync } from './tap-async';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const tapAsync = async (promise, callback) => {
4
+ const value = await promise;
5
+ callback(value);
6
+ return value;
7
+ };
8
+ exports.tapAsync = tapAsync;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Awaits a Promise, executes a callback with the resolved value, and returns the original value.
3
+ * Useful for performing side effects (logging, caching, analytics, etc.) on async values without modifying them.
4
+ *
5
+ * @param promise - The Promise to await.
6
+ * @param callback - A function that receives the resolved value. Its return value is ignored.
7
+ * @returns A Promise that resolves to the original value.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { tapAsync } from 'umaki'
12
+ *
13
+ * // Logging async results
14
+ * const data = await tapAsync(fetchData(), (result) => {
15
+ * console.log('Fetched:', result)
16
+ * })
17
+ * ```
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * // Caching async results
22
+ * const getData = () => tapAsync(
23
+ * fetchFromServer(),
24
+ * (data) => cache.set('data', data)
25
+ * )
26
+ * ```
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * // Parallel execution with individual completion tracking
31
+ * await Promise.all([
32
+ * tapAsync(fetchUserData(), (user) => console.log('user loaded')),
33
+ * tapAsync(fetchProductData(), (products) => console.log('products loaded')),
34
+ * tapAsync(fetchOrderData(), (orders) => console.log('orders loaded'))
35
+ * ])
36
+ * ```
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * // Event emission on async completion
41
+ * const loadUser = () => tapAsync(
42
+ * fetchUser(),
43
+ * (user) => eventEmitter.emit('userLoaded', user)
44
+ * )
45
+ * ```
46
+ */
47
+ export declare const tapAsync: <T>(promise: Promise<T>, callback: (value: T) => void) => Promise<T>;
@@ -0,0 +1,8 @@
1
+ const tapAsync = async (promise, callback) => {
2
+ const value = await promise;
3
+ callback(value);
4
+ return value;
5
+ };
6
+ export {
7
+ tapAsync
8
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const tap = (value, callback) => {
4
+ callback(value);
5
+ return value;
6
+ };
7
+ exports.tap = tap;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Type that excludes Promise types.
3
+ * Used to prevent passing async values to synchronous tap function.
4
+ */
5
+ type NotPromise<T> = T extends Promise<unknown> ? never : T;
6
+ /**
7
+ * Executes a callback with the given value and returns the original value unchanged.
8
+ * Useful for performing side effects (logging, analytics, etc.) in a pipeline without modifying the value.
9
+ *
10
+ * @param value - The value to pass to the callback. Must not be a Promise (use tapAsync for async values).
11
+ * @param callback - A function that receives the value. Its return value is ignored.
12
+ * @returns The original value unchanged.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { tap, removeAllHtmlTags } from 'umaki'
17
+ *
18
+ * const input = '<p>Hello <strong>World</strong>!</p>'
19
+ * const output = tap(removeAllHtmlTags(input), (result) => {
20
+ * console.log('Sanitized:', result)
21
+ * })
22
+ * // Logs: 'Sanitized: Hello World!'
23
+ * // output = 'Hello World!'
24
+ * ```
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * // Caching example
29
+ * const data = tap(processData(raw), (result) => {
30
+ * cache.set('processed', result)
31
+ * })
32
+ * ```
33
+ */
34
+ export declare const tap: <T>(value: NotPromise<T>, callback: (value: T) => void) => T;
35
+ export {};
@@ -0,0 +1,7 @@
1
+ const tap = (value, callback) => {
2
+ callback(value);
3
+ return value;
4
+ };
5
+ export {
6
+ tap
7
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const defaultConfig = require("./defaultConfig.cjs.js");
3
+ const defaultConfig = require("./default-config.cjs.js");
4
4
  const currentConfig = { ...defaultConfig.defaultConfig };
5
5
  const getConfig = () => {
6
6
  return { ...currentConfig };
@@ -1,4 +1,4 @@
1
- import { defaultConfig } from "./defaultConfig.es.js";
1
+ import { defaultConfig } from "./default-config.es.js";
2
2
  const currentConfig = { ...defaultConfig };
3
3
  const getConfig = () => {
4
4
  return { ...currentConfig };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Configuration functions
3
3
  */
4
- export { defaultConfig } from './defaultConfig';
5
- export { getConfig, getConfigValue } from './getConfig';
6
- export { setConfig } from './setConfig';
4
+ export { defaultConfig } from './default-config';
5
+ export { getConfig, getConfigValue } from './get-config';
6
+ export { setConfig } from './set-config';
7
7
  export type { UmakiConfig } from './types';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getConfig = require("./getConfig.cjs.js");
3
+ const getConfig = require("./get-config.cjs.js");
4
4
  const setConfig = (config) => {
5
5
  Object.assign(getConfig.currentConfig, config);
6
6
  return { ...getConfig.currentConfig };
@@ -1,4 +1,4 @@
1
- import { currentConfig } from "./getConfig.es.js";
1
+ import { currentConfig } from "./get-config.es.js";
2
2
  const setConfig = (config) => {
3
3
  Object.assign(currentConfig, config);
4
4
  return { ...currentConfig };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getScrollbarWidth = require("../get/getScrollbarWidth.cjs.js");
3
+ const getScrollbarWidth = require("../get/get-scrollbar-width.cjs.js");
4
4
  const bgScrollStop = (isStop = true) => {
5
5
  document.body.style.paddingRight = isStop ? `${getScrollbarWidth.getScrollbarWidth()}px` : "";
6
6
  if (isStop) {
@@ -1,4 +1,4 @@
1
- import { getScrollbarWidth } from "../get/getScrollbarWidth.es.js";
1
+ import { getScrollbarWidth } from "../get/get-scrollbar-width.es.js";
2
2
  const bgScrollStop = (isStop = true) => {
3
3
  document.body.style.paddingRight = isStop ? `${getScrollbarWidth()}px` : "";
4
4
  if (isStop) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Control functions
3
3
  */
4
- export { bgScrollStop } from './bgScrollStop';
4
+ export { bgScrollStop } from './bg-scroll-stop';
5
5
  export { pd } from './pd';
6
- export { scrollToHash } from './scrollToHash';
7
- export { videoPlayControl } from './videoPlayControl';
6
+ export { scrollToHash } from './scroll-to-hash';
7
+ export { videoPlayControl } from './video-play-control';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const toBoolean = require("../to/toBoolean.cjs.js");
3
+ const toBoolean = require("../to/to-boolean.cjs.js");
4
4
  const videoPlayControl = async (videoElement, state, currentTime) => {
5
5
  if (state && videoElement.paused) {
6
6
  const isPlaying = toBoolean.toBoolean(videoElement.dataset.playing);
@@ -1,4 +1,4 @@
1
- import { toBoolean } from "../to/toBoolean.es.js";
1
+ import { toBoolean } from "../to/to-boolean.es.js";
2
2
  const videoPlayControl = async (videoElement, state, currentTime) => {
3
3
  if (state && videoElement.paused) {
4
4
  const isPlaying = toBoolean(videoElement.dataset.playing);
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Convert functions
3
3
  */
4
- export { changeDateStringToSpecificFormat } from './changeDateStringToSpecificFormat';
5
- export { jsonStringToJsonObject } from './jsonStringToJsonObject';
4
+ export { changeDateStringToSpecificFormat } from './change-date-string-to-specific-format';
5
+ export { jsonStringToJsonObject } from './json-string-to-json-object';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getGcd = require("./getGcd.cjs.js");
3
+ const getGcd = require("./get-gcd.cjs.js");
4
4
  const getAspectRatio = (w, h) => {
5
5
  const gcd = getGcd.getGcd(w, h);
6
6
  return { w: w / gcd, h: h / gcd };
@@ -1,4 +1,4 @@
1
- import { getGcd } from "./getGcd.es.js";
1
+ import { getGcd } from "./get-gcd.es.js";
2
2
  const getAspectRatio = (w, h) => {
3
3
  const gcd = getGcd(w, h);
4
4
  return { w: w / gcd, h: h / gcd };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const toPositiveNumber = require("../to/toPositiveNumber.cjs.js");
3
+ const toPositiveNumber = require("../to/to-positive-number.cjs.js");
4
4
  const getGcd = (a, b) => {
5
5
  const positiveA = toPositiveNumber.toPositiveNumber(Math.abs(a));
6
6
  const positiveB = toPositiveNumber.toPositiveNumber(Math.abs(b));
@@ -1,4 +1,4 @@
1
- import { toPositiveNumber } from "../to/toPositiveNumber.es.js";
1
+ import { toPositiveNumber } from "../to/to-positive-number.es.js";
2
2
  const getGcd = (a, b) => {
3
3
  const positiveA = toPositiveNumber(Math.abs(a));
4
4
  const positiveB = toPositiveNumber(Math.abs(b));
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getStylePropertyValue = require("./getStylePropertyValue.cjs.js");
3
+ const getStylePropertyValue = require("./get-style-property-value.cjs.js");
4
4
  const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue.getStylePropertyValue(key), 10) || 0;
5
5
  exports.getStylePropertyValueToNumber = getStylePropertyValueToNumber;
@@ -1,4 +1,4 @@
1
- import { getStylePropertyValue } from "./getStylePropertyValue.es.js";
1
+ import { getStylePropertyValue } from "./get-style-property-value.es.js";
2
2
  const getStylePropertyValueToNumber = (key) => Number.parseInt(getStylePropertyValue(key), 10) || 0;
3
3
  export {
4
4
  getStylePropertyValueToNumber
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const isTouchSupport = require("../is/isTouchSupport.cjs.js");
3
+ const isTouchSupport = require("../is/is-touch-support.cjs.js");
4
4
  const UAParser = require("ua-parser-js");
5
5
  const getUaData = () => {
6
6
  const parser = new UAParser();
@@ -1,4 +1,4 @@
1
- import { isTouchSupport } from "../is/isTouchSupport.es.js";
1
+ import { isTouchSupport } from "../is/is-touch-support.es.js";
2
2
  import UAParser from "ua-parser-js";
3
3
  const getUaData = () => {
4
4
  const parser = new UAParser();
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * Get functions
3
3
  */
4
- export { getAspectRatio } from './getAspectRatio';
5
- export { getClassNames } from './getClassNames';
6
- export { getDocumentHeight } from './getDocumentHeight';
7
- export { getEventPaths } from './getEventPaths';
8
- export { getGcd } from './getGcd';
9
- export { getGravatarUrl } from './getGravatarUrl';
10
- export { getOrientation } from './getOrientation';
11
- export { getParentList } from './getParentList';
12
- export { getQueryParams } from './getQueryParams';
13
- export { getRem } from './getRem';
14
- export { getScrollbarWidth } from './getScrollbarWidth';
15
- export { getSessionStorage } from './getSessionStorage';
16
- export { getStringLength } from './getStringLength';
17
- export { getStylePropertyValue } from './getStylePropertyValue';
18
- export { getStylePropertyValueToNumber } from './getStylePropertyValueToNumber';
19
- export { getUaData } from './getUaData';
4
+ export { getAspectRatio } from './get-aspect-ratio';
5
+ export { getClassNames } from './get-class-names';
6
+ export { getDocumentHeight } from './get-document-height';
7
+ export { getEventPaths } from './get-event-paths';
8
+ export { getGcd } from './get-gcd';
9
+ export { getGravatarUrl } from './get-gravatar-url';
10
+ export { getOrientation } from './get-orientation';
11
+ export { getParentList } from './get-parent-list';
12
+ export { getQueryParams } from './get-query-params';
13
+ export { getRem } from './get-rem';
14
+ export { getScrollbarWidth } from './get-scrollbar-width';
15
+ export { getSessionStorage } from './get-session-storage';
16
+ export { getStringLength } from './get-string-length';
17
+ export { getStylePropertyValue } from './get-style-property-value';
18
+ export { getStylePropertyValueToNumber } from './get-style-property-value-to-number';
19
+ export { getUaData } from './get-ua-data';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const getConfig = require("../config/getConfig.cjs.js");
3
+ const getConfig = require("../config/get-config.cjs.js");
4
4
  const checkDeviceSize = () => {
5
5
  const breakpoint = getConfig.getConfigValue("BREAKPOINT");
6
6
  if (typeof window !== "undefined") {
@@ -1,4 +1,4 @@
1
- import { getConfigValue } from "../config/getConfig.es.js";
1
+ import { getConfigValue } from "../config/get-config.es.js";
2
2
  const checkDeviceSize = () => {
3
3
  const breakpoint = getConfigValue("BREAKPOINT");
4
4
  if (typeof window !== "undefined") {
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Is functions
3
3
  */
4
- export { checkDeviceSize } from './checkDeviceSize';
5
- export { isAfterDateTime } from './isAfterDateTime';
6
- export { isBetweenDateTime } from './isBetweenDateTime';
7
- export { isExistAllElements } from './isExistAllElements';
8
- export { isIpad } from './isIpad';
9
- export { isKeyExists } from './isKeyExists';
10
- export { isSafari } from './isSafari';
11
- export { isScrollable } from './isScrollable';
12
- export { isTouchSupport } from './isTouchSupport';
4
+ export { checkDeviceSize } from './check-device-size';
5
+ export { isAfterDateTime } from './is-after-date-time';
6
+ export { isBetweenDateTime } from './is-between-date-time';
7
+ export { isExistAllElements } from './is-exist-all-elements';
8
+ export { isIpad } from './is-ipad';
9
+ export { isKeyExists } from './is-key-exists';
10
+ export { isSafari } from './is-safari';
11
+ export { isScrollable } from './is-scrollable';
12
+ export { isTouchSupport } from './is-touch-support';