diginext-utils 2.0.31 → 2.0.33

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 (398) hide show
  1. package/README.md +162 -162
  2. package/dist/Checker.d.ts +8 -7
  3. package/dist/Checker.js +48 -28
  4. package/dist/Checker.mjs +29 -0
  5. package/dist/EventDispatcher.d.ts +12 -12
  6. package/dist/EventDispatcher.js +72 -47
  7. package/dist/EventDispatcher.mjs +54 -0
  8. package/dist/FileUpload.d.ts +11 -11
  9. package/dist/FileUpload.js +81 -61
  10. package/dist/FileUpload.mjs +62 -0
  11. package/dist/Slug.d.ts +9 -8
  12. package/dist/Slug.js +350 -330
  13. package/dist/Slug.mjs +331 -0
  14. package/dist/Timer-7b0c4e7c.d.ts +11 -0
  15. package/dist/Timer.d.ts +1 -4
  16. package/dist/Timer.js +31 -7
  17. package/dist/Timer.mjs +7 -0
  18. package/dist/Validation.d.ts +5 -4
  19. package/dist/Validation.js +54 -37
  20. package/dist/Validation.mjs +35 -0
  21. package/dist/array-dc599632.d.ts +158 -0
  22. package/dist/array.d.ts +1 -113
  23. package/dist/array.js +246 -266
  24. package/dist/array.mjs +49 -0
  25. package/dist/browser-8d042ffe.d.ts +22 -0
  26. package/dist/camera-1a859d72.d.ts +15 -0
  27. package/dist/chunk-5NTK5JAI.mjs +57 -0
  28. package/dist/chunk-5UEMANWE.mjs +91 -0
  29. package/dist/chunk-5ZOWNKSD.mjs +166 -0
  30. package/dist/chunk-6GNGTFNC.mjs +118 -0
  31. package/dist/chunk-7MK72U4O.mjs +19 -0
  32. package/dist/chunk-7XKT3AQX.mjs +17 -0
  33. package/dist/chunk-7ZCEZM7K.mjs +41 -0
  34. package/dist/chunk-AMBWJGSW.mjs +151 -0
  35. package/dist/chunk-C7S43KGB.mjs +15 -0
  36. package/dist/chunk-CJM7T7ON.mjs +24 -0
  37. package/dist/chunk-CKILLYAP.mjs +16 -0
  38. package/dist/chunk-DX7MUT3M.mjs +51 -0
  39. package/dist/chunk-EGUJQ5VF.mjs +32 -0
  40. package/dist/chunk-ETEIHDWU.mjs +25 -0
  41. package/dist/chunk-FJXSVGL7.mjs +22 -0
  42. package/dist/chunk-GJCAEOND.mjs +20 -0
  43. package/dist/chunk-GNJDIUYM.mjs +40 -0
  44. package/dist/chunk-IA7GINWD.mjs +39 -0
  45. package/dist/chunk-JEI7BOXY.mjs +21 -0
  46. package/dist/chunk-K4KENOE6.mjs +20 -0
  47. package/dist/chunk-KMERW6KS.mjs +34 -0
  48. package/dist/chunk-KPO3RH5G.mjs +27 -0
  49. package/dist/chunk-KWG5LYNK.mjs +100 -0
  50. package/dist/chunk-NUTQDHLQ.mjs +40 -0
  51. package/dist/chunk-O64XUDAH.mjs +35 -0
  52. package/dist/chunk-OYRPWQUA.mjs +257 -0
  53. package/dist/chunk-PNZ4KGXL.mjs +56 -0
  54. package/dist/chunk-QZYX26HT.mjs +24 -0
  55. package/dist/chunk-RDGP2CKM.mjs +195 -0
  56. package/dist/chunk-VFG5VU6S.mjs +12 -0
  57. package/dist/chunk-X3IMFCZG.mjs +23 -0
  58. package/dist/chunk-ZHNGZMRD.mjs +17 -0
  59. package/dist/color.d.ts +23 -22
  60. package/dist/color.js +96 -79
  61. package/dist/color.mjs +78 -0
  62. package/dist/console/enableConsole.d.ts +1 -2
  63. package/dist/console/enableConsole.js +38 -10
  64. package/dist/console/enableConsole.mjs +9 -0
  65. package/dist/console/index.d.ts +2 -11
  66. package/dist/console/index.js +58 -15
  67. package/dist/console/index.mjs +14 -0
  68. package/dist/console/log.d.ts +15 -14
  69. package/dist/console/log.js +74 -44
  70. package/dist/console/log.mjs +19 -0
  71. package/dist/createDir-220e0081.d.ts +13 -0
  72. package/dist/device/browser.d.ts +1 -5
  73. package/dist/device/browser.js +60 -32
  74. package/dist/device/browser.mjs +15 -0
  75. package/dist/device/camera.d.ts +1 -7
  76. package/dist/device/camera.js +184 -166
  77. package/dist/device/camera.mjs +8 -0
  78. package/dist/device/index.d.ts +1 -5
  79. package/dist/device/index.js +201 -216
  80. package/dist/device/index.mjs +15 -0
  81. package/dist/device/os.d.ts +11 -10
  82. package/dist/device/os.js +55 -28
  83. package/dist/device/os.mjs +33 -0
  84. package/dist/enableConsole-ddc24282.d.ts +11 -0
  85. package/dist/file/createDir.d.ts +1 -5
  86. package/dist/file/createDir.js +34 -13
  87. package/dist/file/createDir.mjs +7 -0
  88. package/dist/file/fileMove.d.ts +1 -4
  89. package/dist/file/fileMove.js +49 -29
  90. package/dist/file/fileMove.mjs +7 -0
  91. package/dist/file/findFilesByExt.d.ts +1 -13
  92. package/dist/file/findFilesByExt.js +64 -45
  93. package/dist/file/findFilesByExt.mjs +11 -0
  94. package/dist/file/index.d.ts +10 -8
  95. package/dist/file/index.js +104 -9
  96. package/dist/file/index.mjs +17 -0
  97. package/dist/fileMove-3a09e429.d.ts +13 -0
  98. package/dist/findFilesByExt-753e91d7.d.ts +24 -0
  99. package/dist/images/index.d.ts +2 -2
  100. package/dist/images/index.js +131 -8
  101. package/dist/images/index.mjs +15 -0
  102. package/dist/images/loadImage.d.ts +3 -0
  103. package/dist/images/loadImage.js +42 -0
  104. package/dist/images/loadImage.mjs +21 -0
  105. package/dist/images/resize.d.ts +3 -2
  106. package/dist/images/resize.js +60 -34
  107. package/dist/images/resize.mjs +9 -0
  108. package/dist/images/upload.d.ts +10 -9
  109. package/dist/images/upload.js +130 -25
  110. package/dist/images/upload.mjs +14 -0
  111. package/dist/index-1f738e52.d.ts +22 -0
  112. package/dist/index-22309f0c.d.ts +23 -0
  113. package/dist/index-6ae3c86b.d.ts +63 -0
  114. package/dist/index-c8fffc86.d.ts +90 -0
  115. package/dist/index-d652ed2c.d.ts +26 -0
  116. package/dist/index.d.ts +47 -36
  117. package/dist/index.js +1352 -62
  118. package/dist/index.mjs +87 -0
  119. package/dist/json.d.ts +8 -7
  120. package/dist/json.js +48 -28
  121. package/dist/json.mjs +29 -0
  122. package/dist/math/diffDate.d.ts +6 -5
  123. package/dist/math/diffDate.js +33 -11
  124. package/dist/math/diffDate.mjs +9 -0
  125. package/dist/math/index.d.ts +3 -30
  126. package/dist/math/index.js +159 -92
  127. package/dist/math/index.mjs +34 -0
  128. package/dist/math/positiveNumber.d.ts +3 -2
  129. package/dist/math/positiveNumber.js +53 -14
  130. package/dist/math/positiveNumber.mjs +10 -0
  131. package/dist/name/en.d.ts +5 -4
  132. package/dist/name/en.js +37 -19
  133. package/dist/name/en.mjs +9 -0
  134. package/dist/name/index.d.ts +3 -12
  135. package/dist/name/index.js +87 -12
  136. package/dist/name/index.mjs +20 -0
  137. package/dist/name/vi.d.ts +5 -4
  138. package/dist/name/vi.js +63 -25
  139. package/dist/name/vi.mjs +14 -0
  140. package/{esm/object.d.ts → dist/object-43aaaf92.d.ts} +79 -58
  141. package/dist/object.d.ts +1 -59
  142. package/dist/object.js +96 -71
  143. package/dist/object.mjs +21 -0
  144. package/dist/permission/index.d.ts +8 -7
  145. package/dist/permission/index.js +230 -6
  146. package/dist/permission/index.mjs +15 -0
  147. package/dist/permission/requestCamera.d.ts +1 -5
  148. package/dist/permission/requestCamera.js +49 -38
  149. package/dist/permission/requestCamera.mjs +9 -0
  150. package/dist/permission/requestDeviceOrientationControl.d.ts +1 -2
  151. package/dist/permission/requestDeviceOrientationControl.js +203 -36
  152. package/dist/permission/requestDeviceOrientationControl.mjs +10 -0
  153. package/dist/requestCamera-32b7dfc7.d.ts +14 -0
  154. package/dist/requestDeviceOrientationControl-b6458660.d.ts +11 -0
  155. package/dist/response/index.d.ts +49 -48
  156. package/dist/response/index.js +92 -47
  157. package/dist/response/index.mjs +16 -0
  158. package/dist/string/formatNumber.d.ts +7 -6
  159. package/dist/string/formatNumber.js +53 -12
  160. package/dist/string/formatNumber.mjs +10 -0
  161. package/dist/string/generatePassword.d.ts +10 -9
  162. package/dist/string/generatePassword.js +52 -21
  163. package/dist/string/generatePassword.mjs +10 -0
  164. package/dist/string/generateUUID.d.ts +3 -2
  165. package/dist/string/generateUUID.js +37 -34
  166. package/dist/string/generateUUID.mjs +9 -0
  167. package/dist/string/index.d.ts +6 -65
  168. package/dist/string/index.js +312 -157
  169. package/dist/string/index.mjs +31 -0
  170. package/dist/string/makeDaySlug.d.ts +31 -30
  171. package/dist/string/makeDaySlug.js +43 -19
  172. package/dist/string/makeDaySlug.mjs +9 -0
  173. package/dist/string/random.d.ts +14 -13
  174. package/dist/string/random.js +53 -22
  175. package/dist/string/random.mjs +19 -0
  176. package/dist/string/trimNull.d.ts +3 -2
  177. package/dist/string/trimNull.js +45 -17
  178. package/dist/string/trimNull.mjs +9 -0
  179. package/dist/string/url.d.ts +1 -36
  180. package/dist/string/url.js +115 -97
  181. package/dist/string/url.mjs +22 -0
  182. package/dist/url-60657387.d.ts +57 -0
  183. package/package.json +66 -66
  184. package/src/Checker.ts +29 -29
  185. package/src/EventDispatcher.ts +62 -62
  186. package/src/FileUpload.ts +66 -66
  187. package/src/Slug.ts +365 -365
  188. package/src/Timer.ts +7 -7
  189. package/src/Validation.ts +36 -36
  190. package/src/array.ts +285 -285
  191. package/src/color.ts +87 -87
  192. package/src/console/enableConsole.ts +8 -8
  193. package/src/console/index.ts +17 -17
  194. package/src/console/log.ts +39 -39
  195. package/src/device/browser.ts +29 -29
  196. package/src/device/camera.ts +207 -207
  197. package/src/device/index.ts +230 -230
  198. package/src/device/os.ts +29 -29
  199. package/src/file/createDir.ts +14 -14
  200. package/src/file/fileMove.ts +32 -32
  201. package/src/file/findFilesByExt.ts +46 -46
  202. package/src/file/index.ts +7 -7
  203. package/src/images/index.ts +3 -3
  204. package/src/images/loadImage.ts +16 -0
  205. package/src/images/resize.ts +35 -35
  206. package/src/images/upload.ts +24 -24
  207. package/src/index.ts +39 -39
  208. package/src/json.ts +29 -29
  209. package/src/math/diffDate.ts +10 -10
  210. package/src/math/index.ts +90 -90
  211. package/src/math/positiveNumber.ts +12 -12
  212. package/src/name/en.ts +27 -27
  213. package/src/name/index.ts +8 -8
  214. package/src/name/vi.ts +23 -23
  215. package/src/object.ts +72 -72
  216. package/src/permission/index.ts +6 -6
  217. package/src/permission/requestCamera.ts +43 -43
  218. package/src/permission/requestDeviceOrientationControl.ts +33 -33
  219. package/src/response/index.ts +45 -45
  220. package/src/string/formatNumber.ts +12 -12
  221. package/src/string/generatePassword.ts +18 -18
  222. package/src/string/generateUUID.ts +37 -37
  223. package/src/string/index.ts +180 -180
  224. package/src/string/makeDaySlug.ts +40 -40
  225. package/src/string/random.ts +24 -24
  226. package/src/string/trimNull.ts +16 -16
  227. package/src/string/url.ts +116 -116
  228. package/dist/Checker.js.map +0 -1
  229. package/dist/EventDispatcher.js.map +0 -1
  230. package/dist/FileUpload.js.map +0 -1
  231. package/dist/Slug.js.map +0 -1
  232. package/dist/Timer.js.map +0 -1
  233. package/dist/Validation.js.map +0 -1
  234. package/dist/array.js.map +0 -1
  235. package/dist/color.js.map +0 -1
  236. package/dist/console/enableConsole.js.map +0 -1
  237. package/dist/console/index.js.map +0 -1
  238. package/dist/console/log.js.map +0 -1
  239. package/dist/device/browser.js.map +0 -1
  240. package/dist/device/camera.js.map +0 -1
  241. package/dist/device/index.js.map +0 -1
  242. package/dist/device/os.js.map +0 -1
  243. package/dist/file/createDir.js.map +0 -1
  244. package/dist/file/fileMove.js.map +0 -1
  245. package/dist/file/findFilesByExt.js.map +0 -1
  246. package/dist/file/index.js.map +0 -1
  247. package/dist/images/index.js.map +0 -1
  248. package/dist/images/resize.js.map +0 -1
  249. package/dist/images/upload.js.map +0 -1
  250. package/dist/index.js.map +0 -1
  251. package/dist/json.js.map +0 -1
  252. package/dist/math/diffDate.js.map +0 -1
  253. package/dist/math/index.js.map +0 -1
  254. package/dist/math/positiveNumber.js.map +0 -1
  255. package/dist/name/en.js.map +0 -1
  256. package/dist/name/index.js.map +0 -1
  257. package/dist/name/vi.js.map +0 -1
  258. package/dist/object.js.map +0 -1
  259. package/dist/permission/index.js.map +0 -1
  260. package/dist/permission/requestCamera.js.map +0 -1
  261. package/dist/permission/requestDeviceOrientationControl.js.map +0 -1
  262. package/dist/response/index.js.map +0 -1
  263. package/dist/string/formatNumber.js.map +0 -1
  264. package/dist/string/generatePassword.js.map +0 -1
  265. package/dist/string/generateUUID.js.map +0 -1
  266. package/dist/string/index.js.map +0 -1
  267. package/dist/string/makeDaySlug.js.map +0 -1
  268. package/dist/string/random.js.map +0 -1
  269. package/dist/string/trimNull.js.map +0 -1
  270. package/dist/string/url.js.map +0 -1
  271. package/esm/Checker.d.ts +0 -8
  272. package/esm/Checker.js +0 -28
  273. package/esm/Checker.js.map +0 -1
  274. package/esm/EventDispatcher.d.ts +0 -13
  275. package/esm/EventDispatcher.js +0 -49
  276. package/esm/EventDispatcher.js.map +0 -1
  277. package/esm/FileUpload.d.ts +0 -12
  278. package/esm/FileUpload.js +0 -62
  279. package/esm/FileUpload.js.map +0 -1
  280. package/esm/Slug.d.ts +0 -9
  281. package/esm/Slug.js +0 -330
  282. package/esm/Slug.js.map +0 -1
  283. package/esm/Timer.d.ts +0 -4
  284. package/esm/Timer.js +0 -7
  285. package/esm/Timer.js.map +0 -1
  286. package/esm/Validation.d.ts +0 -5
  287. package/esm/Validation.js +0 -37
  288. package/esm/Validation.js.map +0 -1
  289. package/esm/array.d.ts +0 -113
  290. package/esm/array.js +0 -275
  291. package/esm/array.js.map +0 -1
  292. package/esm/color.d.ts +0 -23
  293. package/esm/color.js +0 -80
  294. package/esm/color.js.map +0 -1
  295. package/esm/console/enableConsole.d.ts +0 -2
  296. package/esm/console/enableConsole.js +0 -7
  297. package/esm/console/enableConsole.js.map +0 -1
  298. package/esm/console/index.d.ts +0 -11
  299. package/esm/console/index.js +0 -13
  300. package/esm/console/index.js.map +0 -1
  301. package/esm/console/log.d.ts +0 -15
  302. package/esm/console/log.js +0 -33
  303. package/esm/console/log.js.map +0 -1
  304. package/esm/device/browser.d.ts +0 -5
  305. package/esm/device/browser.js +0 -30
  306. package/esm/device/browser.js.map +0 -1
  307. package/esm/device/camera.d.ts +0 -7
  308. package/esm/device/camera.js +0 -168
  309. package/esm/device/camera.js.map +0 -1
  310. package/esm/device/index.d.ts +0 -5
  311. package/esm/device/index.js +0 -217
  312. package/esm/device/index.js.map +0 -1
  313. package/esm/device/os.d.ts +0 -11
  314. package/esm/device/os.js +0 -28
  315. package/esm/device/os.js.map +0 -1
  316. package/esm/file/createDir.d.ts +0 -5
  317. package/esm/file/createDir.js +0 -13
  318. package/esm/file/createDir.js.map +0 -1
  319. package/esm/file/fileMove.d.ts +0 -4
  320. package/esm/file/fileMove.js +0 -29
  321. package/esm/file/fileMove.js.map +0 -1
  322. package/esm/file/findFilesByExt.d.ts +0 -13
  323. package/esm/file/findFilesByExt.js +0 -46
  324. package/esm/file/findFilesByExt.js.map +0 -1
  325. package/esm/file/index.d.ts +0 -9
  326. package/esm/file/index.js +0 -6
  327. package/esm/file/index.js.map +0 -1
  328. package/esm/images/index.d.ts +0 -2
  329. package/esm/images/index.js +0 -4
  330. package/esm/images/index.js.map +0 -1
  331. package/esm/images/resize.d.ts +0 -2
  332. package/esm/images/resize.js +0 -31
  333. package/esm/images/resize.js.map +0 -1
  334. package/esm/images/upload.d.ts +0 -10
  335. package/esm/images/upload.js +0 -20
  336. package/esm/images/upload.js.map +0 -1
  337. package/esm/index.d.ts +0 -37
  338. package/esm/index.js +0 -38
  339. package/esm/index.js.map +0 -1
  340. package/esm/json.d.ts +0 -8
  341. package/esm/json.js +0 -28
  342. package/esm/json.js.map +0 -1
  343. package/esm/math/diffDate.d.ts +0 -5
  344. package/esm/math/diffDate.js +0 -10
  345. package/esm/math/diffDate.js.map +0 -1
  346. package/esm/math/index.d.ts +0 -30
  347. package/esm/math/index.js +0 -78
  348. package/esm/math/index.js.map +0 -1
  349. package/esm/math/positiveNumber.d.ts +0 -2
  350. package/esm/math/positiveNumber.js +0 -13
  351. package/esm/math/positiveNumber.js.map +0 -1
  352. package/esm/name/en.d.ts +0 -5
  353. package/esm/name/en.js +0 -22
  354. package/esm/name/en.js.map +0 -1
  355. package/esm/name/index.d.ts +0 -12
  356. package/esm/name/index.js +0 -6
  357. package/esm/name/index.js.map +0 -1
  358. package/esm/name/vi.d.ts +0 -5
  359. package/esm/name/vi.js +0 -24
  360. package/esm/name/vi.js.map +0 -1
  361. package/esm/object.js +0 -70
  362. package/esm/object.js.map +0 -1
  363. package/esm/permission/index.d.ts +0 -8
  364. package/esm/permission/index.js +0 -5
  365. package/esm/permission/index.js.map +0 -1
  366. package/esm/permission/requestCamera.d.ts +0 -5
  367. package/esm/permission/requestCamera.js +0 -39
  368. package/esm/permission/requestCamera.js.map +0 -1
  369. package/esm/permission/requestDeviceOrientationControl.d.ts +0 -2
  370. package/esm/permission/requestDeviceOrientationControl.js +0 -35
  371. package/esm/permission/requestDeviceOrientationControl.js.map +0 -1
  372. package/esm/response/index.d.ts +0 -49
  373. package/esm/response/index.js +0 -46
  374. package/esm/response/index.js.map +0 -1
  375. package/esm/string/formatNumber.d.ts +0 -6
  376. package/esm/string/formatNumber.js +0 -11
  377. package/esm/string/formatNumber.js.map +0 -1
  378. package/esm/string/generatePassword.d.ts +0 -9
  379. package/esm/string/generatePassword.js +0 -20
  380. package/esm/string/generatePassword.js.map +0 -1
  381. package/esm/string/generateUUID.d.ts +0 -2
  382. package/esm/string/generateUUID.js +0 -33
  383. package/esm/string/generateUUID.js.map +0 -1
  384. package/esm/string/index.d.ts +0 -65
  385. package/esm/string/index.js +0 -150
  386. package/esm/string/index.js.map +0 -1
  387. package/esm/string/makeDaySlug.d.ts +0 -31
  388. package/esm/string/makeDaySlug.js +0 -16
  389. package/esm/string/makeDaySlug.js.map +0 -1
  390. package/esm/string/random.d.ts +0 -14
  391. package/esm/string/random.js +0 -20
  392. package/esm/string/random.js.map +0 -1
  393. package/esm/string/trimNull.d.ts +0 -2
  394. package/esm/string/trimNull.js +0 -14
  395. package/esm/string/trimNull.js.map +0 -1
  396. package/esm/string/url.d.ts +0 -36
  397. package/esm/string/url.js +0 -98
  398. package/esm/string/url.js.map +0 -1
@@ -1,14 +1,42 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
4
11
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.enableConsole = void 0;
7
- const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
8
- const _console = (0, cloneDeep_1.default)(console);
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/console/enableConsole.ts
27
+ var enableConsole_exports = {};
28
+ __export(enableConsole_exports, {
29
+ default: () => enableConsole_default,
30
+ enableConsole: () => enableConsole
31
+ });
32
+ module.exports = __toCommonJS(enableConsole_exports);
33
+ var import_cloneDeep = __toESM(require("lodash/cloneDeep"));
34
+ var _console = (0, import_cloneDeep.default)(console);
9
35
  function enableConsole() {
10
- return _console;
36
+ return _console;
11
37
  }
12
- exports.enableConsole = enableConsole;
13
- exports.default = enableConsole;
14
- //# sourceMappingURL=enableConsole.js.map
38
+ var enableConsole_default = enableConsole;
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ enableConsole
42
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ enableConsole,
3
+ enableConsole_default
4
+ } from "../chunk-FJXSVGL7.mjs";
5
+ import "../chunk-ZHNGZMRD.mjs";
6
+ export {
7
+ enableConsole_default as default,
8
+ enableConsole
9
+ };
@@ -1,11 +1,2 @@
1
- export declare const disableConsole: (params: any) => void;
2
- export declare const removeConsole: (params: any) => void;
3
- export declare const showCredit: (params: any) => void;
4
- import { enableConsole } from "./enableConsole";
5
- declare const xconsole: {
6
- enableConsole: typeof enableConsole;
7
- disableConsole: (params: any) => void;
8
- removeConsole: (params: any) => void;
9
- showCredit: (params: any) => void;
10
- };
11
- export default xconsole;
1
+ import '../enableConsole-ddc24282.js';
2
+ export { x as default, d as disableConsole, r as removeConsole, s as showCredit } from '../index-d652ed2c.js';
@@ -1,18 +1,61 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showCredit = exports.removeConsole = exports.disableConsole = void 0;
4
- const disableConsole = (params) => {
5
- for (var key in console) {
6
- console[key] = function () { };
7
- }
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
8
11
  };
9
- exports.disableConsole = disableConsole;
10
- exports.removeConsole = exports.disableConsole;
11
- const showCredit = (params) => {
12
- console.log("Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console");
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
13
19
  };
14
- exports.showCredit = showCredit;
15
- const enableConsole_1 = require("./enableConsole");
16
- const xconsole = { enableConsole: enableConsole_1.enableConsole, disableConsole: exports.disableConsole, removeConsole: exports.removeConsole, showCredit: exports.showCredit };
17
- exports.default = xconsole;
18
- //# sourceMappingURL=index.js.map
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/console/index.ts
27
+ var console_exports = {};
28
+ __export(console_exports, {
29
+ default: () => console_default,
30
+ disableConsole: () => disableConsole,
31
+ removeConsole: () => removeConsole,
32
+ showCredit: () => showCredit
33
+ });
34
+ module.exports = __toCommonJS(console_exports);
35
+
36
+ // src/console/enableConsole.ts
37
+ var import_cloneDeep = __toESM(require("lodash/cloneDeep"));
38
+ var _console = (0, import_cloneDeep.default)(console);
39
+ function enableConsole() {
40
+ return _console;
41
+ }
42
+
43
+ // src/console/index.ts
44
+ var disableConsole = (params) => {
45
+ for (var key in console) {
46
+ console[key] = function() {
47
+ };
48
+ }
49
+ };
50
+ var removeConsole = disableConsole;
51
+ var showCredit = (params) => {
52
+ console.log("Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console");
53
+ };
54
+ var xconsole = { enableConsole, disableConsole, removeConsole, showCredit };
55
+ var console_default = xconsole;
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ disableConsole,
59
+ removeConsole,
60
+ showCredit
61
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ console_default,
3
+ disableConsole,
4
+ removeConsole,
5
+ showCredit
6
+ } from "../chunk-O64XUDAH.mjs";
7
+ import "../chunk-FJXSVGL7.mjs";
8
+ import "../chunk-ZHNGZMRD.mjs";
9
+ export {
10
+ console_default as default,
11
+ disableConsole,
12
+ removeConsole,
13
+ showCredit
14
+ };
@@ -1,15 +1,16 @@
1
- export declare const log: (...msg: any) => any;
2
- export declare const logFull: (data?: {}) => {};
3
- export declare const logRes: (res: any, ...msg: any[]) => any[];
4
- export declare const logError: (...msg: any[]) => any[];
5
- export declare const logWarn: (...msg: any[]) => any[];
6
- export declare const logSuccess: (...msg: any[]) => any[];
7
- declare const xlog: {
8
- log: (...msg: any) => any;
9
- logFull: (data?: {}) => {};
10
- logRes: (res: any, ...msg: any[]) => any[];
11
- logError: (...msg: any[]) => any[];
12
- logWarn: (...msg: any[]) => any[];
13
- logSuccess: (...msg: any[]) => any[];
1
+ declare const log: (...msg: any) => any;
2
+ declare const logFull: (data?: {}) => {};
3
+ declare const logRes: (res: any, ...msg: any[]) => any[];
4
+ declare const logError: (...msg: any[]) => any[];
5
+ declare const logWarn: (...msg: any[]) => any[];
6
+ declare const logSuccess: (...msg: any[]) => any[];
7
+ declare const xlog: {
8
+ log: (...msg: any) => any;
9
+ logFull: (data?: {}) => {};
10
+ logRes: (res: any, ...msg: any[]) => any[];
11
+ logError: (...msg: any[]) => any[];
12
+ logWarn: (...msg: any[]) => any[];
13
+ logSuccess: (...msg: any[]) => any[];
14
14
  };
15
- export default xlog;
15
+
16
+ export { xlog as default, log, logError, logFull, logRes, logSuccess, logWarn };
@@ -1,45 +1,75 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.logSuccess = exports.logWarn = exports.logError = exports.logRes = exports.logFull = exports.log = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const dayjs_1 = __importDefault(require("dayjs"));
9
- const log = (...msg) => {
10
- console.log(chalk_1.default.bgBlue.white(`[LOGGING ${(0, dayjs_1.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
11
- return msg;
12
- };
13
- exports.log = log;
14
- const logFull = (data = {}) => {
15
- console.dir(data, { depth: null, colors: true, maxArrayLength: null });
16
- return data;
17
- };
18
- exports.logFull = logFull;
19
- const logRes = (res, ...msg) => {
20
- var _a, _b;
21
- /**
22
- * res.locals.req = Express Request
23
- */
24
- console.warn(chalk_1.default.blue(`[${res.statusCode}] ${((_a = res.locals.req) === null || _a === void 0 ? void 0 : _a.originalUrl) || "UNKNOWN_PATH"} >> ${(_b = res.locals.req) === null || _b === void 0 ? void 0 : _b.method} >>`), ...msg);
25
- return msg;
26
- };
27
- exports.logRes = logRes;
28
- const logError = (...msg) => {
29
- console.error(chalk_1.default.bgRed.white(`[ERROR ${(0, dayjs_1.default)().format("YYYY-MM-DD HH:mm:ss")}]`), chalk_1.default.red(...msg));
30
- return msg;
31
- };
32
- exports.logError = logError;
33
- const logWarn = (...msg) => {
34
- console.warn(chalk_1.default.bgYellow.black(`[WARNING ${(0, dayjs_1.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
35
- return msg;
36
- };
37
- exports.logWarn = logWarn;
38
- const logSuccess = (...msg) => {
39
- console.info(chalk_1.default.bgGreen.black(`[SUCCESS ${(0, dayjs_1.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
40
- return msg;
41
- };
42
- exports.logSuccess = logSuccess;
43
- const xlog = { log: exports.log, logFull: exports.logFull, logRes: exports.logRes, logError: exports.logError, logWarn: exports.logWarn, logSuccess: exports.logSuccess };
44
- exports.default = xlog;
45
- //# sourceMappingURL=log.js.map
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/console/log.ts
27
+ var log_exports = {};
28
+ __export(log_exports, {
29
+ default: () => log_default,
30
+ log: () => log,
31
+ logError: () => logError,
32
+ logFull: () => logFull,
33
+ logRes: () => logRes,
34
+ logSuccess: () => logSuccess,
35
+ logWarn: () => logWarn
36
+ });
37
+ module.exports = __toCommonJS(log_exports);
38
+ var import_chalk = __toESM(require("chalk"));
39
+ var import_dayjs = __toESM(require("dayjs"));
40
+ var log = (...msg) => {
41
+ console.log(import_chalk.default.bgBlue.white(`[LOGGING ${(0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
42
+ return msg;
43
+ };
44
+ var logFull = (data = {}) => {
45
+ console.dir(data, { depth: null, colors: true, maxArrayLength: null });
46
+ return data;
47
+ };
48
+ var logRes = (res, ...msg) => {
49
+ var _a, _b;
50
+ console.warn(import_chalk.default.blue(`[${res.statusCode}] ${((_a = res.locals.req) == null ? void 0 : _a.originalUrl) || "UNKNOWN_PATH"} >> ${(_b = res.locals.req) == null ? void 0 : _b.method} >>`), ...msg);
51
+ return msg;
52
+ };
53
+ var logError = (...msg) => {
54
+ console.error(import_chalk.default.bgRed.white(`[ERROR ${(0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")}]`), import_chalk.default.red(...msg));
55
+ return msg;
56
+ };
57
+ var logWarn = (...msg) => {
58
+ console.warn(import_chalk.default.bgYellow.black(`[WARNING ${(0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
59
+ return msg;
60
+ };
61
+ var logSuccess = (...msg) => {
62
+ console.info(import_chalk.default.bgGreen.black(`[SUCCESS ${(0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")}]`), ...msg);
63
+ return msg;
64
+ };
65
+ var xlog = { log, logFull, logRes, logError, logWarn, logSuccess };
66
+ var log_default = xlog;
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ log,
70
+ logError,
71
+ logFull,
72
+ logRes,
73
+ logSuccess,
74
+ logWarn
75
+ });
@@ -0,0 +1,19 @@
1
+ import {
2
+ log,
3
+ logError,
4
+ logFull,
5
+ logRes,
6
+ logSuccess,
7
+ logWarn,
8
+ log_default
9
+ } from "../chunk-GNJDIUYM.mjs";
10
+ import "../chunk-ZHNGZMRD.mjs";
11
+ export {
12
+ log_default as default,
13
+ log,
14
+ logError,
15
+ logFull,
16
+ logRes,
17
+ logSuccess,
18
+ logWarn
19
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Create new directory
3
+ */
4
+ declare function createDir(path: string): true | undefined;
5
+
6
+ declare const createDir$1_createDir: typeof createDir;
7
+ declare namespace createDir$1 {
8
+ export {
9
+ createDir$1_createDir as createDir,
10
+ };
11
+ }
12
+
13
+ export { createDir as a, createDir$1 as c };
@@ -1,5 +1 @@
1
- export declare const isPotrait: () => boolean;
2
- export declare const isLandscape: () => boolean;
3
- export declare const ua: () => any;
4
- export declare const isFacebookWebview: () => boolean | undefined;
5
- export declare const isInAppWebview: () => boolean;
1
+ export { c as isFacebookWebview, d as isInAppWebview, a as isLandscape, i as isPotrait, u as ua } from '../browser-8d042ffe.js';
@@ -1,38 +1,66 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInAppWebview = exports.isFacebookWebview = exports.ua = exports.isLandscape = exports.isPotrait = void 0;
4
- const isPotrait = () => {
5
- if (typeof window == "undefined")
6
- return false;
7
- if (!window.orientation)
8
- return window.matchMedia("(orientation: portrait)").matches;
9
- return !(window.orientation === 90 || window.orientation === -90);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
10
9
  };
11
- exports.isPotrait = isPotrait;
12
- const isLandscape = () => {
13
- return !(0, exports.isPotrait)();
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
14
17
  };
15
- exports.isLandscape = isLandscape;
16
- const ua = () => {
17
- if (typeof navigator == "undefined")
18
- return null;
19
- if (typeof window == "undefined")
20
- return null;
21
- return navigator.userAgent || navigator.vendor || window.opera;
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/device/browser.ts
21
+ var browser_exports = {};
22
+ __export(browser_exports, {
23
+ isFacebookWebview: () => isFacebookWebview,
24
+ isInAppWebview: () => isInAppWebview,
25
+ isLandscape: () => isLandscape,
26
+ isPotrait: () => isPotrait,
27
+ ua: () => ua
28
+ });
29
+ module.exports = __toCommonJS(browser_exports);
30
+ var isPotrait = () => {
31
+ if (typeof window == "undefined")
32
+ return false;
33
+ if (!window.orientation)
34
+ return window.matchMedia("(orientation: portrait)").matches;
35
+ return !(window.orientation === 90 || window.orientation === -90);
22
36
  };
23
- exports.ua = ua;
24
- const isFacebookWebview = () => {
25
- var ua = ua();
26
- if (typeof ua != "undefined")
27
- return ua.indexOf("FBAN") > -1 || ua.indexOf("FBAV") > -1;
37
+ var isLandscape = () => {
38
+ return !isPotrait();
28
39
  };
29
- exports.isFacebookWebview = isFacebookWebview;
30
- const isInAppWebview = () => {
31
- const rules = ["WebView", "(iPhone|iPod|iPad)(?!.*Safari/)", "Android.*(wv|.0.0.0)"];
32
- const regex = new RegExp(`(${rules.join("|")})`, "ig");
33
- if ((0, exports.ua)())
34
- return Boolean((0, exports.ua)().match(regex));
35
- return false;
40
+ var ua = () => {
41
+ if (typeof navigator == "undefined")
42
+ return null;
43
+ if (typeof window == "undefined")
44
+ return null;
45
+ return navigator.userAgent || navigator.vendor || window.opera;
46
+ };
47
+ var isFacebookWebview = () => {
48
+ var ua2 = ua2();
49
+ if (typeof ua2 != "undefined")
50
+ return ua2.indexOf("FBAN") > -1 || ua2.indexOf("FBAV") > -1;
51
+ };
52
+ var isInAppWebview = () => {
53
+ const rules = ["WebView", "(iPhone|iPod|iPad)(?!.*Safari/)", "Android.*(wv|.0.0.0)"];
54
+ const regex = new RegExp(`(${rules.join("|")})`, "ig");
55
+ if (ua())
56
+ return Boolean(ua().match(regex));
57
+ return false;
36
58
  };
37
- exports.isInAppWebview = isInAppWebview;
38
- //# sourceMappingURL=browser.js.map
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ isFacebookWebview,
62
+ isInAppWebview,
63
+ isLandscape,
64
+ isPotrait,
65
+ ua
66
+ });
@@ -0,0 +1,15 @@
1
+ import {
2
+ isFacebookWebview,
3
+ isInAppWebview,
4
+ isLandscape,
5
+ isPotrait,
6
+ ua
7
+ } from "../chunk-DX7MUT3M.mjs";
8
+ import "../chunk-ZHNGZMRD.mjs";
9
+ export {
10
+ isFacebookWebview,
11
+ isInAppWebview,
12
+ isLandscape,
13
+ isPotrait,
14
+ ua
15
+ };
@@ -1,7 +1 @@
1
- type GetWebcamParams = {
2
- container?: HTMLElement;
3
- facingMode: string;
4
- audio: boolean;
5
- };
6
- export declare function getWebcam(params?: GetWebcamParams): Promise<unknown> | undefined;
7
- export {};
1
+ export { g as getWebcam } from '../camera-1a859d72.js';