diginext-utils 2.0.32 → 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,225 +1,210 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkOS = exports.isMobile = exports.isTablet = exports.isAndroid = exports.isIos = void 0;
4
- const isIos = () => {
5
- const deviceInfo = (0, exports.checkOS)();
6
- if (deviceInfo)
7
- return deviceInfo.os.toLowerCase() == "ios";
8
- console.log("Can't check OS");
9
- return null;
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 });
9
+ };
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;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/device/index.ts
21
+ var device_exports = {};
22
+ __export(device_exports, {
23
+ checkOS: () => checkOS,
24
+ isAndroid: () => isAndroid,
25
+ isIos: () => isIos,
26
+ isMobile: () => isMobile,
27
+ isTablet: () => isTablet
28
+ });
29
+ module.exports = __toCommonJS(device_exports);
30
+ var isIos = () => {
31
+ const deviceInfo2 = checkOS();
32
+ if (deviceInfo2)
33
+ return deviceInfo2.os.toLowerCase() == "ios";
34
+ console.log("Can't check OS");
35
+ return null;
10
36
  };
11
- exports.isIos = isIos;
12
- const isAndroid = () => {
13
- const deviceInfo = (0, exports.checkOS)();
14
- if (deviceInfo)
15
- return deviceInfo.os.toLowerCase() == "android";
16
- console.log("Can't check OS");
37
+ var isAndroid = () => {
38
+ const deviceInfo2 = checkOS();
39
+ if (deviceInfo2)
40
+ return deviceInfo2.os.toLowerCase() == "android";
41
+ console.log("Can't check OS");
42
+ return null;
43
+ };
44
+ var isTablet = () => {
45
+ if (typeof navigator == "undefined")
46
+ return null;
47
+ if (typeof window == "undefined")
17
48
  return null;
49
+ return isMobile() && window.innerWidth > 599 && window.innerHeight > 599;
18
50
  };
19
- exports.isAndroid = isAndroid;
20
- const isTablet = () => {
21
- if (typeof navigator == "undefined")
22
- return null;
23
- if (typeof window == "undefined")
24
- return null;
25
- return (0, exports.isMobile)() && window.innerWidth > 599 && window.innerHeight > 599;
51
+ var isMobile = () => {
52
+ if (typeof navigator == "undefined")
53
+ return null;
54
+ if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) {
55
+ return true;
56
+ } else {
57
+ return false;
58
+ }
26
59
  };
27
- exports.isTablet = isTablet;
28
- const isMobile = () => {
29
- if (typeof navigator == "undefined")
30
- return null;
31
- if (navigator.userAgent.match(/Android/i) ||
32
- navigator.userAgent.match(/webOS/i) ||
33
- navigator.userAgent.match(/iPhone/i) ||
34
- navigator.userAgent.match(/iPad/i) ||
35
- navigator.userAgent.match(/iPod/i) ||
36
- navigator.userAgent.match(/BlackBerry/i) ||
37
- navigator.userAgent.match(/Windows Phone/i)) {
38
- return true;
60
+ var deviceInfo;
61
+ var checkOS = () => {
62
+ var _a;
63
+ if (typeof window == "undefined")
64
+ return {};
65
+ if (typeof deviceInfo == "undefined") {
66
+ var unknown = "-";
67
+ var screenSize = "";
68
+ if (screen.width) {
69
+ var width = screen.width ? screen.width : "";
70
+ var height = screen.height ? screen.height : "";
71
+ screenSize += "" + width + " x " + height;
39
72
  }
40
- else {
41
- return false;
73
+ var nVer = navigator.appVersion;
74
+ var nAgt = navigator.userAgent;
75
+ var browser = navigator.appName;
76
+ var version = "" + parseFloat(navigator.appVersion);
77
+ var majorVersion = parseInt(navigator.appVersion, 10);
78
+ var nameOffset, verOffset, ix;
79
+ if ((verOffset = nAgt.indexOf("Opera")) != -1) {
80
+ browser = "Opera";
81
+ version = nAgt.substring(verOffset + 6);
82
+ if ((verOffset = nAgt.indexOf("Version")) != -1) {
83
+ version = nAgt.substring(verOffset + 8);
84
+ }
42
85
  }
43
- };
44
- exports.isMobile = isMobile;
45
- /**
46
- *
47
- * @returns {{
48
- * screen,
49
- * browser,
50
- * browserVersion,
51
- * browserMajorVersion,
52
- * mobile,
53
- * os,
54
- * osVersion,
55
- * cookies,
56
- * flashVersion,
57
- * }}
58
- */
59
- let deviceInfo;
60
- const checkOS = () => {
61
- var _a;
62
- if (typeof window == "undefined")
63
- return {};
64
- if (typeof deviceInfo == "undefined") {
65
- var unknown = "-";
66
- // screen
67
- var screenSize = "";
68
- if (screen.width) {
69
- var width = screen.width ? screen.width : "";
70
- var height = screen.height ? screen.height : "";
71
- screenSize += "" + width + " x " + height;
72
- }
73
- // browser
74
- var nVer = navigator.appVersion;
75
- var nAgt = navigator.userAgent;
76
- var browser = navigator.appName;
77
- var version = "" + parseFloat(navigator.appVersion);
78
- var majorVersion = parseInt(navigator.appVersion, 10);
79
- var nameOffset, verOffset, ix;
80
- // Opera
81
- if ((verOffset = nAgt.indexOf("Opera")) != -1) {
82
- browser = "Opera";
83
- version = nAgt.substring(verOffset + 6);
84
- if ((verOffset = nAgt.indexOf("Version")) != -1) {
85
- version = nAgt.substring(verOffset + 8);
86
- }
87
- }
88
- // Opera Next
89
- if ((verOffset = nAgt.indexOf("OPR")) != -1) {
90
- browser = "Opera";
91
- version = nAgt.substring(verOffset + 4);
92
- }
93
- // Edge
94
- else if ((verOffset = nAgt.indexOf("Edge")) != -1) {
95
- browser = "Microsoft Edge";
96
- version = nAgt.substring(verOffset + 5);
97
- }
98
- // MSIE
99
- else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
100
- browser = "Microsoft Internet Explorer";
101
- version = nAgt.substring(verOffset + 5);
102
- }
103
- // Chrome
104
- else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
105
- browser = "Chrome";
106
- version = nAgt.substring(verOffset + 7);
107
- }
108
- // Safari
109
- else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
110
- browser = "Safari";
111
- version = nAgt.substring(verOffset + 7);
112
- if ((verOffset = nAgt.indexOf("Version")) != -1) {
113
- version = nAgt.substring(verOffset + 8);
114
- }
115
- }
116
- // Firefox
117
- else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
118
- browser = "Firefox";
119
- version = nAgt.substring(verOffset + 8);
120
- }
121
- // MSIE 11+
122
- else if (nAgt.indexOf("Trident/") != -1) {
123
- browser = "Microsoft Internet Explorer";
124
- version = nAgt.substring(nAgt.indexOf("rv:") + 3);
125
- }
126
- // Other browsers
127
- else if ((nameOffset = nAgt.lastIndexOf(" ") + 1) < (verOffset = nAgt.lastIndexOf("/"))) {
128
- browser = nAgt.substring(nameOffset, verOffset);
129
- version = nAgt.substring(verOffset + 1);
130
- if (browser.toLowerCase() == browser.toUpperCase()) {
131
- browser = navigator.appName;
132
- }
133
- }
134
- // trim the version string
135
- if ((ix = version.indexOf(";")) != -1)
136
- version = version.substring(0, ix);
137
- if ((ix = version.indexOf(" ")) != -1)
138
- version = version.substring(0, ix);
139
- if ((ix = version.indexOf(")")) != -1)
140
- version = version.substring(0, ix);
141
- majorVersion = parseInt("" + version, 10);
142
- if (isNaN(majorVersion)) {
143
- version = "" + parseFloat(navigator.appVersion);
144
- majorVersion = parseInt(navigator.appVersion, 10);
145
- }
146
- // mobile version
147
- var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer);
148
- // cookie
149
- var cookieEnabled = navigator.cookieEnabled ? true : false;
150
- if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
151
- document.cookie = "testcookie";
152
- cookieEnabled = document.cookie.indexOf("testcookie") != -1 ? true : false;
153
- }
154
- // system
155
- var os = unknown;
156
- var clientStrings = [
157
- { s: "Windows 10", r: /(Windows 10.0|Windows NT 10.0)/ },
158
- { s: "Windows 8.1", r: /(Windows 8.1|Windows NT 6.3)/ },
159
- { s: "Windows 8", r: /(Windows 8|Windows NT 6.2)/ },
160
- { s: "Windows 7", r: /(Windows 7|Windows NT 6.1)/ },
161
- { s: "Windows Vista", r: /Windows NT 6.0/ },
162
- { s: "Windows Server 2003", r: /Windows NT 5.2/ },
163
- { s: "Windows XP", r: /(Windows NT 5.1|Windows XP)/ },
164
- { s: "Windows 2000", r: /(Windows NT 5.0|Windows 2000)/ },
165
- { s: "Windows ME", r: /(Win 9x 4.90|Windows ME)/ },
166
- { s: "Windows 98", r: /(Windows 98|Win98)/ },
167
- { s: "Windows 95", r: /(Windows 95|Win95|Windows_95)/ },
168
- { s: "Windows NT 4.0", r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/ },
169
- { s: "Windows CE", r: /Windows CE/ },
170
- { s: "Windows 3.11", r: /Win16/ },
171
- { s: "Android", r: /Android/ },
172
- { s: "Open BSD", r: /OpenBSD/ },
173
- { s: "Sun OS", r: /SunOS/ },
174
- { s: "Linux", r: /(Linux|X11)/ },
175
- { s: "iOS", r: /(iPhone|iPad|iPod)/ },
176
- { s: "Mac OS X", r: /Mac OS X/ },
177
- { s: "Mac OS", r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/ },
178
- { s: "QNX", r: /QNX/ },
179
- { s: "UNIX", r: /UNIX/ },
180
- { s: "BeOS", r: /BeOS/ },
181
- { s: "OS/2", r: /OS\/2/ },
182
- { s: "Search Bot", r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/ },
183
- ];
184
- for (var id in clientStrings) {
185
- var cs = clientStrings[id];
186
- if (cs.r.test(nAgt)) {
187
- os = cs.s;
188
- break;
189
- }
190
- }
191
- var osVersion = unknown;
192
- if (/Windows/.test(os)) {
193
- const _osv = /Windows (.*)/.exec(os) || [];
194
- osVersion = _osv[1] || "unknown";
195
- os = "Windows";
196
- }
197
- switch (os) {
198
- case "Mac OS X":
199
- const _osvx = /Mac OS X (10[\.\_\d]+)/.exec(nAgt);
200
- osVersion = (_osvx === null || _osvx === void 0 ? void 0 : _osvx[1]) || "unknown";
201
- break;
202
- case "Android":
203
- osVersion = ((_a = /Android ([\.\_\d]+)/.exec(nAgt)) === null || _a === void 0 ? void 0 : _a[1]) || "unknown";
204
- break;
205
- case "iOS":
206
- const _osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer) || [0, 0, 0];
207
- osVersion = (_osVersion[1] || 0) + "." + (_osVersion[2] || 0) + "." + (_osVersion[3] || 0);
208
- break;
209
- }
210
- const _deviceInfo = {
211
- screen: screenSize,
212
- browser: browser,
213
- browserVersion: version,
214
- browserMajorVersion: majorVersion,
215
- mobile: mobile,
216
- os: os,
217
- osVersion: osVersion,
218
- cookies: cookieEnabled,
219
- };
220
- deviceInfo = _deviceInfo;
86
+ if ((verOffset = nAgt.indexOf("OPR")) != -1) {
87
+ browser = "Opera";
88
+ version = nAgt.substring(verOffset + 4);
89
+ } else if ((verOffset = nAgt.indexOf("Edge")) != -1) {
90
+ browser = "Microsoft Edge";
91
+ version = nAgt.substring(verOffset + 5);
92
+ } else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
93
+ browser = "Microsoft Internet Explorer";
94
+ version = nAgt.substring(verOffset + 5);
95
+ } else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
96
+ browser = "Chrome";
97
+ version = nAgt.substring(verOffset + 7);
98
+ } else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
99
+ browser = "Safari";
100
+ version = nAgt.substring(verOffset + 7);
101
+ if ((verOffset = nAgt.indexOf("Version")) != -1) {
102
+ version = nAgt.substring(verOffset + 8);
103
+ }
104
+ } else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
105
+ browser = "Firefox";
106
+ version = nAgt.substring(verOffset + 8);
107
+ } else if (nAgt.indexOf("Trident/") != -1) {
108
+ browser = "Microsoft Internet Explorer";
109
+ version = nAgt.substring(nAgt.indexOf("rv:") + 3);
110
+ } else if ((nameOffset = nAgt.lastIndexOf(" ") + 1) < (verOffset = nAgt.lastIndexOf("/"))) {
111
+ browser = nAgt.substring(nameOffset, verOffset);
112
+ version = nAgt.substring(verOffset + 1);
113
+ if (browser.toLowerCase() == browser.toUpperCase()) {
114
+ browser = navigator.appName;
115
+ }
116
+ }
117
+ if ((ix = version.indexOf(";")) != -1)
118
+ version = version.substring(0, ix);
119
+ if ((ix = version.indexOf(" ")) != -1)
120
+ version = version.substring(0, ix);
121
+ if ((ix = version.indexOf(")")) != -1)
122
+ version = version.substring(0, ix);
123
+ majorVersion = parseInt("" + version, 10);
124
+ if (isNaN(majorVersion)) {
125
+ version = "" + parseFloat(navigator.appVersion);
126
+ majorVersion = parseInt(navigator.appVersion, 10);
127
+ }
128
+ var mobile = /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(nVer);
129
+ var cookieEnabled = navigator.cookieEnabled ? true : false;
130
+ if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) {
131
+ document.cookie = "testcookie";
132
+ cookieEnabled = document.cookie.indexOf("testcookie") != -1 ? true : false;
133
+ }
134
+ var os = unknown;
135
+ var clientStrings = [
136
+ { s: "Windows 10", r: /(Windows 10.0|Windows NT 10.0)/ },
137
+ { s: "Windows 8.1", r: /(Windows 8.1|Windows NT 6.3)/ },
138
+ { s: "Windows 8", r: /(Windows 8|Windows NT 6.2)/ },
139
+ { s: "Windows 7", r: /(Windows 7|Windows NT 6.1)/ },
140
+ { s: "Windows Vista", r: /Windows NT 6.0/ },
141
+ { s: "Windows Server 2003", r: /Windows NT 5.2/ },
142
+ { s: "Windows XP", r: /(Windows NT 5.1|Windows XP)/ },
143
+ { s: "Windows 2000", r: /(Windows NT 5.0|Windows 2000)/ },
144
+ { s: "Windows ME", r: /(Win 9x 4.90|Windows ME)/ },
145
+ { s: "Windows 98", r: /(Windows 98|Win98)/ },
146
+ { s: "Windows 95", r: /(Windows 95|Win95|Windows_95)/ },
147
+ { s: "Windows NT 4.0", r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/ },
148
+ { s: "Windows CE", r: /Windows CE/ },
149
+ { s: "Windows 3.11", r: /Win16/ },
150
+ { s: "Android", r: /Android/ },
151
+ { s: "Open BSD", r: /OpenBSD/ },
152
+ { s: "Sun OS", r: /SunOS/ },
153
+ { s: "Linux", r: /(Linux|X11)/ },
154
+ { s: "iOS", r: /(iPhone|iPad|iPod)/ },
155
+ { s: "Mac OS X", r: /Mac OS X/ },
156
+ { s: "Mac OS", r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/ },
157
+ { s: "QNX", r: /QNX/ },
158
+ { s: "UNIX", r: /UNIX/ },
159
+ { s: "BeOS", r: /BeOS/ },
160
+ { s: "OS/2", r: /OS\/2/ },
161
+ { s: "Search Bot", r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/ }
162
+ ];
163
+ for (var id in clientStrings) {
164
+ var cs = clientStrings[id];
165
+ if (cs.r.test(nAgt)) {
166
+ os = cs.s;
167
+ break;
168
+ }
169
+ }
170
+ var osVersion = unknown;
171
+ if (/Windows/.test(os)) {
172
+ const _osv = /Windows (.*)/.exec(os) || [];
173
+ osVersion = _osv[1] || "unknown";
174
+ os = "Windows";
175
+ }
176
+ switch (os) {
177
+ case "Mac OS X":
178
+ const _osvx = /Mac OS X (10[\.\_\d]+)/.exec(nAgt);
179
+ osVersion = (_osvx == null ? void 0 : _osvx[1]) || "unknown";
180
+ break;
181
+ case "Android":
182
+ osVersion = ((_a = /Android ([\.\_\d]+)/.exec(nAgt)) == null ? void 0 : _a[1]) || "unknown";
183
+ break;
184
+ case "iOS":
185
+ const _osVersion = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVer) || [0, 0, 0];
186
+ osVersion = (_osVersion[1] || 0) + "." + (_osVersion[2] || 0) + "." + (_osVersion[3] || 0);
187
+ break;
221
188
  }
222
- return deviceInfo;
189
+ const _deviceInfo = {
190
+ screen: screenSize,
191
+ browser,
192
+ browserVersion: version,
193
+ browserMajorVersion: majorVersion,
194
+ mobile,
195
+ os,
196
+ osVersion,
197
+ cookies: cookieEnabled
198
+ };
199
+ deviceInfo = _deviceInfo;
200
+ }
201
+ return deviceInfo;
223
202
  };
224
- exports.checkOS = checkOS;
225
- //# sourceMappingURL=index.js.map
203
+ // Annotate the CommonJS export names for ESM import in node:
204
+ 0 && (module.exports = {
205
+ checkOS,
206
+ isAndroid,
207
+ isIos,
208
+ isMobile,
209
+ isTablet
210
+ });
@@ -0,0 +1,15 @@
1
+ import {
2
+ checkOS,
3
+ isAndroid,
4
+ isIos,
5
+ isMobile,
6
+ isTablet
7
+ } from "../chunk-RDGP2CKM.mjs";
8
+ import "../chunk-ZHNGZMRD.mjs";
9
+ export {
10
+ checkOS,
11
+ isAndroid,
12
+ isIos,
13
+ isMobile,
14
+ isTablet
15
+ };
@@ -1,11 +1,12 @@
1
- export declare function getOS(): "android" | "win" | "aix" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "cygwin" | "netbsd" | "mac";
2
- export declare function isWin(): boolean;
3
- export declare function isMac(): boolean;
4
- export declare function isLinux(): boolean;
5
- declare const _default: {
6
- getOS: typeof getOS;
7
- isWin: typeof isWin;
8
- isMac: typeof isMac;
9
- isLinux: typeof isLinux;
1
+ declare function getOS(): "android" | "win" | "aix" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "cygwin" | "netbsd" | "mac";
2
+ declare function isWin(): boolean;
3
+ declare function isMac(): boolean;
4
+ declare function isLinux(): boolean;
5
+ declare const _default: {
6
+ getOS: typeof getOS;
7
+ isWin: typeof isWin;
8
+ isMac: typeof isMac;
9
+ isLinux: typeof isLinux;
10
10
  };
11
- export default _default;
11
+
12
+ export { _default as default, getOS, isLinux, isMac, isWin };
package/dist/device/os.js CHANGED
@@ -1,38 +1,65 @@
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.isLinux = exports.isMac = exports.isWin = exports.getOS = void 0;
7
- // var osvar = process.platform;
8
- const os_1 = __importDefault(require("os"));
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/device/os.ts
27
+ var os_exports = {};
28
+ __export(os_exports, {
29
+ default: () => os_default,
30
+ getOS: () => getOS,
31
+ isLinux: () => isLinux,
32
+ isMac: () => isMac,
33
+ isWin: () => isWin
34
+ });
35
+ module.exports = __toCommonJS(os_exports);
36
+ var import_os = __toESM(require("os"));
9
37
  function getOS() {
10
- const osvar = os_1.default.platform();
11
- if (osvar == "darwin") {
12
- return "mac";
13
- }
14
- else if (osvar == "win32") {
15
- return "win";
16
- }
17
- else if (osvar == "linux") {
18
- return "linux";
19
- }
20
- else {
21
- return osvar;
22
- }
38
+ const osvar = import_os.default.platform();
39
+ if (osvar == "darwin") {
40
+ return "mac";
41
+ } else if (osvar == "win32") {
42
+ return "win";
43
+ } else if (osvar == "linux") {
44
+ return "linux";
45
+ } else {
46
+ return osvar;
47
+ }
23
48
  }
24
- exports.getOS = getOS;
25
49
  function isWin() {
26
- return os_1.default.platform() == "win32";
50
+ return import_os.default.platform() == "win32";
27
51
  }
28
- exports.isWin = isWin;
29
52
  function isMac() {
30
- return os_1.default.platform() == "darwin";
53
+ return import_os.default.platform() == "darwin";
31
54
  }
32
- exports.isMac = isMac;
33
55
  function isLinux() {
34
- return os_1.default.platform() == "linux";
56
+ return import_os.default.platform() == "linux";
35
57
  }
36
- exports.isLinux = isLinux;
37
- exports.default = { getOS, isWin, isMac, isLinux };
38
- //# sourceMappingURL=os.js.map
58
+ var os_default = { getOS, isWin, isMac, isLinux };
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ getOS,
62
+ isLinux,
63
+ isMac,
64
+ isWin
65
+ });
@@ -0,0 +1,33 @@
1
+ import "../chunk-ZHNGZMRD.mjs";
2
+
3
+ // src/device/os.ts
4
+ import os from "os";
5
+ function getOS() {
6
+ const osvar = os.platform();
7
+ if (osvar == "darwin") {
8
+ return "mac";
9
+ } else if (osvar == "win32") {
10
+ return "win";
11
+ } else if (osvar == "linux") {
12
+ return "linux";
13
+ } else {
14
+ return osvar;
15
+ }
16
+ }
17
+ function isWin() {
18
+ return os.platform() == "win32";
19
+ }
20
+ function isMac() {
21
+ return os.platform() == "darwin";
22
+ }
23
+ function isLinux() {
24
+ return os.platform() == "linux";
25
+ }
26
+ var os_default = { getOS, isWin, isMac, isLinux };
27
+ export {
28
+ os_default as default,
29
+ getOS,
30
+ isLinux,
31
+ isMac,
32
+ isWin
33
+ };
@@ -0,0 +1,11 @@
1
+ declare function enableConsole(): Console;
2
+
3
+ declare const enableConsole$1_enableConsole: typeof enableConsole;
4
+ declare namespace enableConsole$1 {
5
+ export {
6
+ enableConsole as default,
7
+ enableConsole$1_enableConsole as enableConsole,
8
+ };
9
+ }
10
+
11
+ export { enableConsole as a, enableConsole$1 as e };
@@ -1,5 +1 @@
1
- /**
2
- * Create new directory
3
- */
4
- declare function createDir(path: string): true | undefined;
5
- export { createDir };
1
+ export { a as createDir } from '../createDir-220e0081.js';