@krainovsd/js-helpers 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/lib/cjs/index.js +7 -2040
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/esm/lib/api/core.js +3 -3
  4. package/lib/esm/lib/api/middlewares/auth-middleware.js +3 -3
  5. package/lib/esm/lib/api/token-request.js +2 -2
  6. package/lib/esm/lib/browser/download-file.js +3 -3
  7. package/lib/esm/lib/date/date-difference.js +1 -1
  8. package/lib/esm/lib/date/date-format.js +1 -1
  9. package/lib/esm/lib/date/is-today.js +2 -2
  10. package/lib/esm/lib/date/is-tomorrow.js +2 -2
  11. package/lib/esm/lib/date/is-yesterday.js +2 -2
  12. package/lib/esm/lib/utils/field-view-format.js +1 -1
  13. package/lib/esm/lib/utils/get-by-path.js +1 -1
  14. package/lib/esm/lib/utils/set-by-path.js +1 -1
  15. package/lib/index.d.ts +215 -0
  16. package/package.json +13 -9
  17. package/lib/esm/_virtual/_commonjsHelpers.js +0 -8
  18. package/lib/esm/_virtual/_commonjsHelpers.js.map +0 -1
  19. package/lib/esm/_virtual/dayjs.min.js +0 -8
  20. package/lib/esm/_virtual/dayjs.min.js.map +0 -1
  21. package/lib/esm/_virtual/dayjs.min2.js +0 -4
  22. package/lib/esm/_virtual/dayjs.min2.js.map +0 -1
  23. package/lib/esm/_virtual/get.js +0 -8
  24. package/lib/esm/_virtual/get.js.map +0 -1
  25. package/lib/esm/_virtual/isToday.js +0 -8
  26. package/lib/esm/_virtual/isToday.js.map +0 -1
  27. package/lib/esm/_virtual/isToday2.js +0 -4
  28. package/lib/esm/_virtual/isToday2.js.map +0 -1
  29. package/lib/esm/_virtual/isTomorrow.js +0 -8
  30. package/lib/esm/_virtual/isTomorrow.js.map +0 -1
  31. package/lib/esm/_virtual/isTomorrow2.js +0 -4
  32. package/lib/esm/_virtual/isTomorrow2.js.map +0 -1
  33. package/lib/esm/_virtual/isYesterday.js +0 -8
  34. package/lib/esm/_virtual/isYesterday.js.map +0 -1
  35. package/lib/esm/_virtual/isYesterday2.js +0 -4
  36. package/lib/esm/_virtual/isYesterday2.js.map +0 -1
  37. package/lib/esm/_virtual/set.js +0 -8
  38. package/lib/esm/_virtual/set.js.map +0 -1
  39. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -17
  40. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js.map +0 -1
  41. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js +0 -17
  42. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js.map +0 -1
  43. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js +0 -17
  44. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js.map +0 -1
  45. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js +0 -17
  46. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js.map +0 -1
  47. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -49
  48. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js.map +0 -1
  49. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -49
  50. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js.map +0 -1
  51. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +0 -21
  52. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js.map +0 -1
  53. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -49
  54. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js.map +0 -1
  55. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -19
  56. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +0 -1
  57. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js +0 -33
  58. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js.map +0 -1
  59. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js +0 -42
  60. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js.map +0 -1
  61. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -34
  62. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js.map +0 -1
  63. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js +0 -38
  64. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js.map +0 -1
  65. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js +0 -38
  66. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js.map +0 -1
  67. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -43
  68. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +0 -1
  69. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -63
  70. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js.map +0 -1
  71. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js +0 -68
  72. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js.map +0 -1
  73. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js +0 -53
  74. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js.map +0 -1
  75. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js +0 -37
  76. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js.map +0 -1
  77. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -19
  78. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js.map +0 -1
  79. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js +0 -24
  80. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js.map +0 -1
  81. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -18
  82. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +0 -1
  83. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -31
  84. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js.map +0 -1
  85. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -31
  86. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js.map +0 -1
  87. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -59
  88. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +0 -1
  89. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -25
  90. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js.map +0 -1
  91. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -28
  92. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js.map +0 -1
  93. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -29
  94. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js.map +0 -1
  95. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -43
  96. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js.map +0 -1
  97. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -36
  98. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js.map +0 -1
  99. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -36
  100. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js.map +0 -1
  101. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +0 -37
  102. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js.map +0 -1
  103. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js +0 -43
  104. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js.map +0 -1
  105. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -27
  106. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js.map +0 -1
  107. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -33
  108. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js.map +0 -1
  109. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -25
  110. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js.map +0 -1
  111. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -48
  112. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js.map +0 -1
  113. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -32
  114. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js.map +0 -1
  115. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -29
  116. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js.map +0 -1
  117. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -39
  118. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js.map +0 -1
  119. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -36
  120. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js.map +0 -1
  121. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -31
  122. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js.map +0 -1
  123. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -29
  124. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js.map +0 -1
  125. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -29
  126. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js.map +0 -1
  127. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -35
  128. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js.map +0 -1
  129. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js +0 -39
  130. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js.map +0 -1
  131. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -19
  132. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js.map +0 -1
  133. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -34
  134. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +0 -1
  135. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +0 -22
  136. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +0 -1
  137. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js +0 -40
  138. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js.map +0 -1
  139. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js +0 -34
  140. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js.map +0 -1
  141. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -38
  142. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js.map +0 -1
  143. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +0 -49
  144. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js.map +0 -1
  145. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js +0 -46
  146. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js.map +0 -1
  147. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +0 -38
  148. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js.map +0 -1
  149. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -51
  150. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +0 -1
  151. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +0 -43
  152. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +0 -1
  153. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +0 -41
  154. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +0 -1
  155. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +0 -43
  156. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +0 -1
  157. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js +0 -86
  158. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js.map +0 -1
  159. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js +0 -48
  160. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js.map +0 -1
  161. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js +0 -41
  162. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js.map +0 -1
  163. package/tmp/constants/api.d.ts +0 -4
  164. package/tmp/constants/colors.d.ts +0 -6
  165. package/tmp/constants/date.d.ts +0 -8
  166. package/tmp/constants/environment.d.ts +0 -6
  167. package/tmp/constants/fields.d.ts +0 -8
  168. package/tmp/constants/index.d.ts +0 -5
  169. package/tmp/index.d.ts +0 -3
  170. package/tmp/lib/api/core.d.ts +0 -19
  171. package/tmp/lib/api/index.d.ts +0 -1
  172. package/tmp/lib/api/middlewares/auth-middleware.d.ts +0 -2
  173. package/tmp/lib/api/middlewares/console-middleware.d.ts +0 -2
  174. package/tmp/lib/api/middlewares/index.d.ts +0 -2
  175. package/tmp/lib/api/token-request.d.ts +0 -2
  176. package/tmp/lib/browser/download-file.d.ts +0 -7
  177. package/tmp/lib/browser/download-json.d.ts +0 -1
  178. package/tmp/lib/browser/index.d.ts +0 -3
  179. package/tmp/lib/browser/read-file.d.ts +0 -1
  180. package/tmp/lib/colors/get-color-format.d.ts +0 -1
  181. package/tmp/lib/colors/index.d.ts +0 -6
  182. package/tmp/lib/colors/take-opacity-colors.d.ts +0 -1
  183. package/tmp/lib/colors/transform-hex-to-rgb.d.ts +0 -1
  184. package/tmp/lib/colors/transform-rgb-to-rgba.d.ts +0 -1
  185. package/tmp/lib/colors/transform-rgba-to-rgb.d.ts +0 -1
  186. package/tmp/lib/colors/transform-to-color.d.ts +0 -2
  187. package/tmp/lib/date/date-difference.d.ts +0 -2
  188. package/tmp/lib/date/date-format.d.ts +0 -1
  189. package/tmp/lib/date/get-date-by-rules.d.ts +0 -2
  190. package/tmp/lib/date/get-today.d.ts +0 -4
  191. package/tmp/lib/date/get-tomorrow.d.ts +0 -1
  192. package/tmp/lib/date/get-yesterday.d.ts +0 -1
  193. package/tmp/lib/date/index.d.ts +0 -9
  194. package/tmp/lib/date/is-today.d.ts +0 -2
  195. package/tmp/lib/date/is-tomorrow.d.ts +0 -2
  196. package/tmp/lib/date/is-yesterday.d.ts +0 -2
  197. package/tmp/lib/index.d.ts +0 -6
  198. package/tmp/lib/typings/check-type.d.ts +0 -1
  199. package/tmp/lib/typings/index.d.ts +0 -11
  200. package/tmp/lib/typings/is-array.d.ts +0 -1
  201. package/tmp/lib/typings/is-boolean.d.ts +0 -1
  202. package/tmp/lib/typings/is-date.d.ts +0 -1
  203. package/tmp/lib/typings/is-id.d.ts +0 -1
  204. package/tmp/lib/typings/is-null.d.ts +0 -1
  205. package/tmp/lib/typings/is-nullable.d.ts +0 -1
  206. package/tmp/lib/typings/is-number.d.ts +0 -1
  207. package/tmp/lib/typings/is-object.d.ts +0 -1
  208. package/tmp/lib/typings/is-string.d.ts +0 -1
  209. package/tmp/lib/typings/is-undefined.d.ts +0 -1
  210. package/tmp/lib/utils/array-to-map-by-key.d.ts +0 -1
  211. package/tmp/lib/utils/build-query-string.d.ts +0 -2
  212. package/tmp/lib/utils/create-url-with-params.d.ts +0 -7
  213. package/tmp/lib/utils/field-view-format.d.ts +0 -2
  214. package/tmp/lib/utils/get-by-path.d.ts +0 -1
  215. package/tmp/lib/utils/get-file-name-from-header.d.ts +0 -1
  216. package/tmp/lib/utils/index.d.ts +0 -16
  217. package/tmp/lib/utils/json-parse.d.ts +0 -1
  218. package/tmp/lib/utils/limit-stream-of-requests.d.ts +0 -14
  219. package/tmp/lib/utils/random-number.d.ts +0 -1
  220. package/tmp/lib/utils/random-string.d.ts +0 -1
  221. package/tmp/lib/utils/set-by-path.d.ts +0 -1
  222. package/tmp/lib/utils/sync-object-values.d.ts +0 -1
  223. package/tmp/lib/utils/transform-to-number.d.ts +0 -1
  224. package/tmp/lib/utils/trim-url.d.ts +0 -1
  225. package/tmp/lib/utils/wait-until.d.ts +0 -1
  226. package/tmp/lib/utils/wait.d.ts +0 -1
  227. package/tmp/libs.d.ts +0 -2
  228. package/tmp/types/api.d.ts +0 -33
  229. package/tmp/types/colors.d.ts +0 -3
  230. package/tmp/types/common.d.ts +0 -2
  231. package/tmp/types/date.d.ts +0 -7
  232. package/tmp/types/fields.d.ts +0 -3
  233. package/tmp/types/index.d.ts +0 -5
@@ -1,41 +0,0 @@
1
- import { __require as require_baseToString } from './_baseToString.js';
2
-
3
- var toString_1;
4
- var hasRequiredToString;
5
-
6
- function requireToString () {
7
- if (hasRequiredToString) return toString_1;
8
- hasRequiredToString = 1;
9
- var baseToString = require_baseToString();
10
-
11
- /**
12
- * Converts `value` to a string. An empty string is returned for `null`
13
- * and `undefined` values. The sign of `-0` is preserved.
14
- *
15
- * @static
16
- * @memberOf _
17
- * @since 4.0.0
18
- * @category Lang
19
- * @param {*} value The value to convert.
20
- * @returns {string} Returns the converted string.
21
- * @example
22
- *
23
- * _.toString(null);
24
- * // => ''
25
- *
26
- * _.toString(-0);
27
- * // => '-0'
28
- *
29
- * _.toString([1, 2, 3]);
30
- * // => '1,2,3'
31
- */
32
- function toString(value) {
33
- return value == null ? '' : baseToString(value);
34
- }
35
-
36
- toString_1 = toString;
37
- return toString_1;
38
- }
39
-
40
- export { requireToString as __require };
41
- //# sourceMappingURL=toString.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toString.js","sources":["../../../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"],"sourcesContent":["var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n"],"names":["require$$0"],"mappings":";;;;;;;;CAAA,IAAI,YAAY,GAAGA,oBAA0B,EAAA;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,CAAC,KAAK,EAAE;GACvB,OAAO,KAAK,IAAI,IAAI,GAAG,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC;AACjD;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,4 +0,0 @@
1
- export declare const API_MIDDLEWARES: {
2
- readonly Auth: "auth";
3
- readonly Logger: "logger";
4
- };
@@ -1,6 +0,0 @@
1
- export declare const COLOR_FORMATS: {
2
- readonly Hex: "HEX";
3
- readonly Rgb: "RGB";
4
- readonly Rgba: "RGBA";
5
- readonly Hsl: "HSL";
6
- };
@@ -1,8 +0,0 @@
1
- export declare const DATE_TYPES: {
2
- readonly Days: "days";
3
- readonly Months: "months";
4
- readonly Years: "years";
5
- readonly Seconds: "seconds";
6
- readonly Minutes: "minutes";
7
- readonly Hours: "hours";
8
- };
@@ -1,6 +0,0 @@
1
- export declare const IS_JEST: boolean;
2
- export declare const IS_BUN: boolean;
3
- export declare const IS_DENO: boolean;
4
- export declare const IS_NODE: boolean;
5
- export declare const IS_WEB_WORKER: boolean;
6
- export declare const IS_BROWSER: boolean;
@@ -1,8 +0,0 @@
1
- export declare const FIELD_TYPES: {
2
- readonly Date: "date";
3
- readonly Time: "time";
4
- readonly DateTime: "dateTime";
5
- readonly String: "string";
6
- readonly Number: "number";
7
- readonly Array: "array";
8
- };
@@ -1,5 +0,0 @@
1
- export * from "./date";
2
- export * from "./api";
3
- export * from "./environment";
4
- export * from "./colors";
5
- export * from "./fields";
package/tmp/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./lib";
2
- export * from "./constants";
3
- export * from "./types";
@@ -1,19 +0,0 @@
1
- import type { ActiveMiddleware, MiddlewaresOptions, RequestInterface } from "../../types";
2
- type ResponseErrorOptions = {
3
- message: string;
4
- status: number;
5
- description?: string;
6
- };
7
- export declare class ResponseError extends Error {
8
- status: number;
9
- description?: string;
10
- constructor({ message, status, description }: ResponseErrorOptions);
11
- }
12
- export declare function generateRequestsInstance(activeMiddlewares?: ActiveMiddleware, middlewareOptions?: MiddlewaresOptions): {
13
- requestApi: <T, Incoming = unknown, Body = unknown, Outcoming = unknown>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<T>;
14
- requestApiWithStatus: <T, Incoming = unknown, Body = unknown, Outcoming = unknown>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<{
15
- data: T;
16
- status: number;
17
- }>;
18
- };
19
- export {};
@@ -1 +0,0 @@
1
- export * from "./core";
@@ -1,2 +0,0 @@
1
- import type { AuthMiddleWareOptions, Middleware } from "../../../types";
2
- export declare const generateAuthMiddleWare: (options: AuthMiddleWareOptions) => Middleware;
@@ -1,2 +0,0 @@
1
- import type { Middleware } from "../../../types";
2
- export declare const consoleMiddleware: Middleware;
@@ -1,2 +0,0 @@
1
- import type { ActiveMiddleware, MiddlewaresOptions, RequestInterface } from "../../../types";
2
- export declare function generateMiddlewares(activeMiddlewares: ActiveMiddleware, middlewareOptions: MiddlewaresOptions): <T, Incoming, Body, Outcoming>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<unknown>;
@@ -1,2 +0,0 @@
1
- import type { AuthMiddleWareOptions } from "../../types";
2
- export declare const tokenRequest: (options: Required<AuthMiddleWareOptions>) => Promise<string | null>;
@@ -1,7 +0,0 @@
1
- type DownloadFileOptions = {
2
- data: Blob;
3
- fileName: string;
4
- mimeType: string;
5
- };
6
- export declare function downloadFile({ data, fileName, mimeType }: DownloadFileOptions): null;
7
- export {};
@@ -1 +0,0 @@
1
- export declare function downloadJson(data: unknown, name: string): null | undefined;
@@ -1,3 +0,0 @@
1
- export * from "./download-file";
2
- export * from "./download-json";
3
- export * from "./read-file";
@@ -1 +0,0 @@
1
- export declare function readFile(file: File): Promise<unknown>;
@@ -1 +0,0 @@
1
- export declare function getColorFormat(color: string): "HEX" | "RGB" | "RGBA" | "HSL" | undefined;
@@ -1,6 +0,0 @@
1
- export * from "./get-color-format";
2
- export * from "./take-opacity-colors";
3
- export * from "./transform-hex-to-rgb";
4
- export * from "./transform-rgb-to-rgba";
5
- export * from "./transform-rgba-to-rgb";
6
- export * from "./transform-to-color";
@@ -1 +0,0 @@
1
- export declare function takeOpacityColors(color: string | undefined, opacities: number[]): string[];
@@ -1 +0,0 @@
1
- export declare function transformHEXtoRGB(hex: string): string;
@@ -1 +0,0 @@
1
- export declare function transformRGBtoRGBA(rgb: string, opacity: number): string;
@@ -1 +0,0 @@
1
- export declare function transformRGBAtoRGB(rgba: string): string;
@@ -1,2 +0,0 @@
1
- import type { ColorFormat } from "../../types";
2
- export declare function transformToColor(currentColor: unknown, defaultColor?: string, defaultFormat?: ColorFormat): string;
@@ -1,2 +0,0 @@
1
- import type { DateType } from "../../types";
2
- export declare function dateDifference(type: DateType, firstDate: Date, secondDate?: Date, float?: boolean): number;
@@ -1 +0,0 @@
1
- export declare function dateFormat(date: Date | string | number, format: string): string;
@@ -1,2 +0,0 @@
1
- import { type DateGetterRule } from "../../types";
2
- export declare function getDateByRules(rules: DateGetterRule[], date?: Date): Date;
@@ -1,4 +0,0 @@
1
- export declare function getToday(): {
2
- startToday: Date;
3
- endToday: Date;
4
- };
@@ -1 +0,0 @@
1
- export declare function getTomorrow(): Date;
@@ -1 +0,0 @@
1
- export declare function getYesterday(): Date;
@@ -1,9 +0,0 @@
1
- export * from "./date-difference";
2
- export * from "./get-date-by-rules";
3
- export * from "./get-today";
4
- export * from "./get-tomorrow";
5
- export * from "./get-yesterday";
6
- export * from "./is-today";
7
- export * from "./is-tomorrow";
8
- export * from "./is-yesterday";
9
- export * from "./date-format";
@@ -1,2 +0,0 @@
1
- import type { Maybe } from "../../types";
2
- export declare function isToday(date: Maybe<string | Date | number>): boolean;
@@ -1,2 +0,0 @@
1
- import type { Maybe } from "../../types";
2
- export declare function isTomorrow(date: Maybe<string | Date | number>): boolean;
@@ -1,2 +0,0 @@
1
- import { type Maybe } from "../../types";
2
- export declare function isYesterday(date: Maybe<string | Date | number>): boolean;
@@ -1,6 +0,0 @@
1
- export * from "./api";
2
- export * from "./browser";
3
- export * from "./colors";
4
- export * from "./date";
5
- export * from "./utils";
6
- export * from "./typings";
@@ -1 +0,0 @@
1
- export declare function checkType<R>(value: unknown, condition: boolean): value is R;
@@ -1,11 +0,0 @@
1
- export * from "./check-type";
2
- export * from "./is-array";
3
- export * from "./is-boolean";
4
- export * from "./is-id";
5
- export * from "./is-null";
6
- export * from "./is-nullable";
7
- export * from "./is-number";
8
- export * from "./is-object";
9
- export * from "./is-string";
10
- export * from "./is-undefined";
11
- export * from "./is-date";
@@ -1 +0,0 @@
1
- export declare function isArray(value: unknown): value is unknown[];
@@ -1 +0,0 @@
1
- export declare function isBoolean(value: unknown): value is boolean;
@@ -1 +0,0 @@
1
- export declare function isDate(value: unknown): value is Date;
@@ -1 +0,0 @@
1
- export declare function isId(value: unknown): value is number | string;
@@ -1 +0,0 @@
1
- export declare function isNull(value: unknown): value is null;
@@ -1 +0,0 @@
1
- export declare function isNullable(value: unknown): value is null | undefined;
@@ -1 +0,0 @@
1
- export declare function isNumber(value: unknown): value is number;
@@ -1 +0,0 @@
1
- export declare function isObject(value: unknown): value is Record<string, unknown>;
@@ -1 +0,0 @@
1
- export declare function isString(value: unknown): value is string;
@@ -1 +0,0 @@
1
- export declare function isUndefined(value: unknown): value is undefined;
@@ -1 +0,0 @@
1
- export declare function arrayToMapByKey<T extends Record<string, unknown>>(array: T[], key: keyof T): Record<string, T>;
@@ -1,2 +0,0 @@
1
- import type { ParamsType } from "../../types";
2
- export declare function buildQueryString(params: ParamsType): string;
@@ -1,7 +0,0 @@
1
- import type { ParamsType } from "../../types";
2
- type CreateURLOptionsInterface = {
3
- baseURL: string;
4
- params?: ParamsType;
5
- };
6
- export declare function createURLWithParams(options: CreateURLOptionsInterface): string;
7
- export {};
@@ -1,2 +0,0 @@
1
- import type { FieldType } from "../../types";
2
- export declare function fieldViewFormat(field: unknown, type?: FieldType): string;
@@ -1 +0,0 @@
1
- export declare function getByPath<T>(data: unknown, path?: string, defaultValue?: unknown): T;
@@ -1 +0,0 @@
1
- export declare function getFileNameFromHeader(header: string): string | null;
@@ -1,16 +0,0 @@
1
- export * from "./wait-until";
2
- export * from "./get-by-path";
3
- export * from "./field-view-format";
4
- export * from "./set-by-path";
5
- export * from "./json-parse";
6
- export * from "./random-string";
7
- export * from "./wait";
8
- export * from "./transform-to-number";
9
- export * from "./create-url-with-params";
10
- export * from "./trim-url";
11
- export * from "./array-to-map-by-key";
12
- export * from "./build-query-string";
13
- export * from "./sync-object-values";
14
- export * from "./random-number";
15
- export * from "./get-file-name-from-header";
16
- export * from "./limit-stream-of-requests";
@@ -1 +0,0 @@
1
- export declare function jsonParse<T>(json: unknown): T | null;
@@ -1,14 +0,0 @@
1
- type LimitStreamOfRequestsOptions<T> = {
2
- countRequests: number;
3
- maxCountInParallel: number;
4
- promiseGetter: (count: number) => Promise<T>;
5
- refetchAfterError?: boolean;
6
- maxTryCount?: number;
7
- collectResult?: boolean;
8
- resultCb?: (result: T) => void;
9
- };
10
- export declare function limitStreamOfRequests<T>({ countRequests, maxCountInParallel, promiseGetter, refetchAfterError, resultCb, collectResult, maxTryCount, }: LimitStreamOfRequestsOptions<T>): {
11
- promise: Promise<T[]>;
12
- cancel: () => void;
13
- };
14
- export {};
@@ -1 +0,0 @@
1
- export declare function randomNumber(min: number, max: number): number;
@@ -1 +0,0 @@
1
- export declare function randomString(length?: number, allowCharacters?: string): string;
@@ -1 +0,0 @@
1
- export declare function setByPath(data: Record<string, unknown> | unknown[], path: string, value: unknown): void;
@@ -1 +0,0 @@
1
- export declare function syncObjectValues(oldObj: Record<string, unknown>, newObj: Record<string, unknown>, exception?: string[]): void;
@@ -1 +0,0 @@
1
- export declare function transformToNumber(value: unknown): number;
@@ -1 +0,0 @@
1
- export declare function trimUrl(url: string): string;
@@ -1 +0,0 @@
1
- export declare const waitUntil: (condition: () => boolean, checkInterval?: number) => Promise<unknown>;
@@ -1 +0,0 @@
1
- export declare function wait(delay: number): Promise<unknown>;
package/tmp/libs.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./lib";
2
- export * as constants from "./constants";
@@ -1,33 +0,0 @@
1
- import { type API_MIDDLEWARES } from "../constants";
2
- import type { ValueOf } from "./common";
3
- export type ParamValueType = string | number | boolean;
4
- export type ParamsType = Record<string, ParamValueType | ParamValueType[] | null | undefined>;
5
- export interface RequestInterface<T, Incoming, Body, Outcoming> {
6
- path: string;
7
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
8
- body?: Body | Outcoming;
9
- params?: ParamsType;
10
- headers?: Record<string, string | undefined>;
11
- delay?: number;
12
- transformOutcomingData?: (data: Body) => Outcoming;
13
- transformIncomingData?: (data: Incoming) => T;
14
- mock?: Incoming;
15
- downloadFile?: boolean;
16
- token?: string;
17
- withoutResponse?: boolean;
18
- signal?: AbortSignal;
19
- }
20
- export type Middleware = <T, Incoming, Body, Outcoming>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<unknown>;
21
- export type MiddlewareType = ValueOf<typeof API_MIDDLEWARES>;
22
- export type ActiveMiddleware = MiddlewareType[];
23
- export type AuthMiddleWareOptions = {
24
- authRedirectUrl: string;
25
- authTokenUrl: string;
26
- storageExpiresTokenName: string;
27
- storageTokenName: string;
28
- pathToToken: string;
29
- pathToExpires: string;
30
- };
31
- export type MiddlewaresOptions = {
32
- auth?: AuthMiddleWareOptions;
33
- };
@@ -1,3 +0,0 @@
1
- import type { COLOR_FORMATS } from "../constants";
2
- import type { ValueOf } from "./common";
3
- export type ColorFormat = ValueOf<typeof COLOR_FORMATS>;
@@ -1,2 +0,0 @@
1
- export type Maybe<T> = T | undefined | null;
2
- export type ValueOf<T> = T extends {} ? T[keyof T] : unknown;
@@ -1,7 +0,0 @@
1
- import { type DATE_TYPES } from "../constants";
2
- import { type ValueOf } from "./common";
3
- export type DateType = ValueOf<typeof DATE_TYPES>;
4
- export type DateGetterRule = {
5
- increment: number;
6
- type: DateType;
7
- };
@@ -1,3 +0,0 @@
1
- import type { FIELD_TYPES } from "../constants";
2
- import type { ValueOf } from "./common";
3
- export type FieldType = ValueOf<typeof FIELD_TYPES>;
@@ -1,5 +0,0 @@
1
- export * from "./api";
2
- export * from "./common";
3
- export * from "./date";
4
- export * from "./fields";
5
- export * from "./colors";