struct-fakerator 2.4.7 → 2.5.7

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 (407) hide show
  1. package/biome.json +1 -1
  2. package/dist/airline-98MCzMN8.d.ts +26 -0
  3. package/dist/airline-CuAxOEYH.d.mts +26 -0
  4. package/dist/animal-BohQ7s0w.d.mts +53 -0
  5. package/dist/animal-o8BFF7gd.d.ts +53 -0
  6. package/dist/chunk-25HDDMTE.js +45 -0
  7. package/dist/chunk-266JLHQ7.mjs +27 -0
  8. package/dist/chunk-2FTPTSHD.mjs +1972 -0
  9. package/dist/chunk-2P6DPKAW.js +35 -0
  10. package/dist/chunk-2QPSWN3J.js +24 -0
  11. package/dist/chunk-2SF54GZN.mjs +24 -0
  12. package/dist/chunk-2UAN3WRZ.js +51 -0
  13. package/dist/chunk-2VTSGFBK.mjs +56 -0
  14. package/dist/chunk-2ZR6AR26.js +24 -0
  15. package/dist/chunk-3AXS7RA6.mjs +18 -0
  16. package/dist/chunk-3DIP4M5Y.mjs +36 -0
  17. package/dist/chunk-3U6BNHWG.mjs +2040 -0
  18. package/dist/chunk-42EKB2FX.js +74 -0
  19. package/dist/chunk-4OB35J4Q.mjs +151 -0
  20. package/dist/chunk-4VNS5WPM.js +42 -0
  21. package/dist/chunk-52ZOIHJM.js +26 -0
  22. package/dist/chunk-55HSOHNN.js +36 -0
  23. package/dist/chunk-5A3HJWPX.mjs +33 -0
  24. package/dist/chunk-5PCIFPK7.js +15721 -0
  25. package/dist/chunk-5TG43IWT.js +36 -0
  26. package/dist/chunk-5UFZ4NET.mjs +26 -0
  27. package/dist/chunk-5VTJIH2Q.mjs +63 -0
  28. package/dist/chunk-5ZNSQDU5.js +81 -0
  29. package/dist/chunk-6BWS3CLP.mjs +16 -0
  30. package/dist/chunk-6GXFVYK2.js +18 -0
  31. package/dist/chunk-6QZF75LH.js +20 -0
  32. package/dist/chunk-6TGTIMX2.mjs +151 -0
  33. package/dist/chunk-73BBBL26.js +49 -0
  34. package/dist/chunk-7C2MCLYX.mjs +15721 -0
  35. package/dist/chunk-7IWAOHPW.mjs +27 -0
  36. package/dist/chunk-7POVLKQR.mjs +20 -0
  37. package/dist/chunk-7UQSPUCL.mjs +0 -0
  38. package/dist/chunk-7ZAVU2DI.mjs +81 -0
  39. package/dist/chunk-A4QVPMYT.js +44 -0
  40. package/dist/chunk-A5YXOL6G.mjs +63 -0
  41. package/dist/chunk-ABZZ2Y2O.mjs +45 -0
  42. package/dist/chunk-AT4FPDTE.mjs +51 -0
  43. package/dist/chunk-B3RA7BAM.mjs +30 -0
  44. package/dist/chunk-B7MK7WHV.mjs +21 -0
  45. package/dist/chunk-BMQ2NETL.js +63 -0
  46. package/dist/chunk-BNJUSXEO.js +27 -0
  47. package/dist/chunk-BVGE5IMC.js +45 -0
  48. package/dist/chunk-C6FQYK5T.js +81 -0
  49. package/dist/chunk-C6IEYVWV.mjs +21 -0
  50. package/dist/chunk-CKNDI3RH.js +24 -0
  51. package/dist/chunk-CSOXFDKC.mjs +42 -0
  52. package/dist/chunk-D3DPNIYF.mjs +36 -0
  53. package/dist/chunk-D74AUXZW.mjs +35 -0
  54. package/dist/chunk-DONFLQME.js +49 -0
  55. package/dist/chunk-DX6NQK6H.js +49 -0
  56. package/dist/chunk-DXVB5THL.js +36 -0
  57. package/dist/chunk-E3EZHXI2.mjs +45 -0
  58. package/dist/chunk-E3N3PWFI.js +45 -0
  59. package/dist/chunk-E7JW4TGQ.mjs +49 -0
  60. package/dist/chunk-ECTLN5SO.mjs +63 -0
  61. package/dist/chunk-EGCGEPYD.mjs +24 -0
  62. package/dist/chunk-EPWKT75L.js +63 -0
  63. package/dist/chunk-ES6I4JEP.js +24 -0
  64. package/dist/chunk-F4NIEPKF.mjs +48 -0
  65. package/dist/chunk-F4WSUHUB.js +27 -0
  66. package/dist/chunk-FGA73ALI.mjs +45 -0
  67. package/dist/chunk-FT5QWXEO.mjs +21 -0
  68. package/dist/chunk-G73JPAKW.mjs +16831 -0
  69. package/dist/chunk-GAOFL72U.mjs +24 -0
  70. package/dist/chunk-GMOMLI4W.js +56 -0
  71. package/dist/chunk-GNLLMLQX.js +48 -0
  72. package/dist/chunk-GNPP2GGZ.js +16831 -0
  73. package/dist/chunk-GSFJYUDA.js +63 -0
  74. package/dist/chunk-GUIYTTMP.mjs +24 -0
  75. package/dist/chunk-HEHR64VN.js +1972 -0
  76. package/dist/chunk-HLHMXAI2.js +21 -0
  77. package/dist/chunk-HMDAKHLF.js +151 -0
  78. package/dist/chunk-HNCQJ5F3.js +56 -0
  79. package/dist/chunk-HVWSAC7Q.js +74 -0
  80. package/dist/chunk-IEYIHOHM.js +57 -0
  81. package/dist/chunk-IRHHL256.mjs +36 -0
  82. package/dist/chunk-IY4LBMAL.js +78 -0
  83. package/dist/chunk-JC2FY5K5.mjs +42 -0
  84. package/dist/chunk-JIPBMHNL.mjs +63 -0
  85. package/dist/chunk-JIWCYW33.js +35 -0
  86. package/dist/chunk-JSZXNY5A.js +33 -0
  87. package/dist/chunk-JUS3FQET.js +63 -0
  88. package/dist/chunk-KDRX2A7A.mjs +45 -0
  89. package/dist/chunk-KDTNND32.js +63 -0
  90. package/dist/chunk-KESFLCJB.mjs +57 -0
  91. package/dist/chunk-KKDNACGF.js +78 -0
  92. package/dist/chunk-KSBJZ7PZ.mjs +48 -0
  93. package/dist/chunk-KVPPJDFE.mjs +63 -0
  94. package/dist/chunk-L55R55BM.mjs +24 -0
  95. package/dist/chunk-L7SUBSOS.mjs +74 -0
  96. package/dist/chunk-LGYUIU5L.js +33 -0
  97. package/dist/chunk-LKLQIBRC.mjs +18 -0
  98. package/dist/chunk-LPLLITHD.mjs +33 -0
  99. package/dist/chunk-LSP4VVPM.mjs +45 -0
  100. package/dist/chunk-LYYFKB5U.mjs +48 -0
  101. package/dist/chunk-M2ERA63H.mjs +20 -0
  102. package/dist/chunk-M3JRMFX2.js +36 -0
  103. package/dist/chunk-MHBVLDC4.js +30 -0
  104. package/dist/chunk-N2ZA6SQB.mjs +45 -0
  105. package/dist/chunk-NBUVTD24.js +24 -0
  106. package/dist/chunk-NGJNM6BX.mjs +48 -0
  107. package/dist/chunk-NWVKBRLA.js +30 -0
  108. package/dist/chunk-O73LDQID.mjs +57 -0
  109. package/dist/chunk-OAPPDES4.js +51 -0
  110. package/dist/chunk-OETKBS7R.mjs +63 -0
  111. package/dist/chunk-OFMBEI6Y.js +20 -0
  112. package/dist/chunk-OJRNPQVE.js +45 -0
  113. package/dist/chunk-OKDN5R6M.mjs +78 -0
  114. package/dist/chunk-OTDJMFZE.js +36 -0
  115. package/dist/chunk-OZ5VJVBQ.js +21 -0
  116. package/dist/chunk-OZ7Y3D4Z.js +48 -0
  117. package/dist/chunk-P2NEBQQH.mjs +78 -0
  118. package/dist/chunk-PBOBMHB3.js +45 -0
  119. package/dist/chunk-PEMTSFQT.mjs +36 -0
  120. package/dist/chunk-PSTZXVEM.mjs +45 -0
  121. package/dist/chunk-PXVILWPC.js +51 -0
  122. package/dist/chunk-PXXIPMA2.mjs +17567 -0
  123. package/dist/chunk-PYIUSFN2.js +48 -0
  124. package/dist/chunk-Q4BXZB6O.mjs +35 -0
  125. package/dist/chunk-Q6CVTFPU.mjs +2022 -0
  126. package/dist/chunk-Q7THO24V.js +45 -0
  127. package/dist/chunk-QEVQSGOW.mjs +49 -0
  128. package/dist/chunk-QFG2B4XU.js +35 -0
  129. package/dist/chunk-QH2RT36U.js +57 -0
  130. package/dist/chunk-QHW2YYKY.js +45 -0
  131. package/dist/chunk-QMNACCJG.mjs +30 -0
  132. package/dist/chunk-QOATILWS.mjs +48 -0
  133. package/dist/chunk-R5U7XKVJ.js +16 -0
  134. package/dist/chunk-RA35MXTT.mjs +51 -0
  135. package/dist/chunk-RDATYKAG.mjs +58 -0
  136. package/dist/chunk-RDMAE6F2.js +17567 -0
  137. package/dist/chunk-RFTRP37B.mjs +74 -0
  138. package/dist/chunk-RIOEYYMH.mjs +30 -0
  139. package/dist/chunk-RM7GMMWN.mjs +49 -0
  140. package/dist/chunk-ROM4ZH2A.js +56 -0
  141. package/dist/chunk-RUTM5ENW.js +57 -0
  142. package/dist/chunk-RW4IZD3J.js +74 -0
  143. package/dist/chunk-S2AEEWWW.mjs +36 -0
  144. package/dist/chunk-SEUDYVHA.js +45 -0
  145. package/dist/chunk-SMIDTCUZ.mjs +56 -0
  146. package/dist/chunk-SN2ALAEI.mjs +36 -0
  147. package/dist/chunk-SN4QTD6R.js +1 -0
  148. package/dist/chunk-SSZ5GGDT.js +45 -0
  149. package/dist/chunk-SVMTK42D.mjs +48 -0
  150. package/dist/chunk-SYIPILT6.mjs +35 -0
  151. package/dist/chunk-TSDTKUIT.mjs +151 -0
  152. package/dist/chunk-TZ2RKEBF.js +2040 -0
  153. package/dist/chunk-U3EACZZ3.js +18 -0
  154. package/dist/chunk-U634RJNK.js +36 -0
  155. package/dist/chunk-UCRPFQYY.js +48 -0
  156. package/dist/chunk-UEXFND2J.mjs +56 -0
  157. package/dist/chunk-UJ5Q7MZB.js +78 -0
  158. package/dist/chunk-UOY5QUAW.js +63 -0
  159. package/dist/chunk-UP3FJ7EK.mjs +44 -0
  160. package/dist/chunk-URX5VRVB.js +24 -0
  161. package/dist/chunk-UUIIGFUZ.js +33 -0
  162. package/dist/chunk-VKKQV6UO.js +42 -0
  163. package/dist/chunk-VOMHZHCC.js +21 -0
  164. package/dist/chunk-VVELSEXL.mjs +27 -0
  165. package/dist/chunk-VX346ARA.js +42 -0
  166. package/dist/chunk-VYV7BUJR.js +42 -0
  167. package/dist/chunk-W6QSJNDJ.js +58 -0
  168. package/dist/chunk-X5WN73EF.js +48 -0
  169. package/dist/chunk-X7YFEBIL.mjs +28 -0
  170. package/dist/chunk-XGB3TDIC.mjs +42 -0
  171. package/dist/chunk-XI5L2ENL.js +28 -0
  172. package/dist/chunk-XIROUDIK.js +151 -0
  173. package/dist/chunk-XJGSUINR.mjs +24 -0
  174. package/dist/chunk-XN5RU4UY.js +27 -0
  175. package/dist/chunk-XUZOVQYC.mjs +42 -0
  176. package/dist/chunk-XVQOUXV6.js +48 -0
  177. package/dist/chunk-Y2G3CY4Q.mjs +51 -0
  178. package/dist/chunk-YJXRZ5WX.mjs +78 -0
  179. package/dist/chunk-YRB3F2AG.mjs +81 -0
  180. package/dist/chunk-YUFVOYYX.mjs +57 -0
  181. package/dist/chunk-YVASGALV.js +81 -0
  182. package/dist/chunk-YWFUY5A4.js +30 -0
  183. package/dist/chunk-YZNZHRY3.mjs +81 -0
  184. package/dist/chunk-Z46HCVNZ.js +151 -0
  185. package/dist/chunk-ZAU43ZDI.mjs +74 -0
  186. package/dist/chunk-ZBU5LSC3.mjs +45 -0
  187. package/dist/chunk-ZSBGAX6X.js +2022 -0
  188. package/dist/chunk-ZTUCFJLM.mjs +33 -0
  189. package/dist/chunk-ZXWWD74E.mjs +45 -0
  190. package/dist/color-BT6BF8oV.d.mts +61 -0
  191. package/dist/color-lBH29suB.d.ts +61 -0
  192. package/dist/commerce-BqVjXEhQ.d.mts +40 -0
  193. package/dist/commerce-mdOpchjx.d.ts +40 -0
  194. package/dist/common-IR_KozaJ.d.mts +11 -0
  195. package/dist/common-t-ZQebCq.d.ts +11 -0
  196. package/dist/company-C3EU1J7k.d.ts +35 -0
  197. package/dist/company-cR_0hm6U.d.mts +35 -0
  198. package/dist/config-BTjogu5M.d.ts +7 -0
  199. package/dist/config-C1N2Brw-.d.mts +7 -0
  200. package/dist/config.d.mts +2 -0
  201. package/dist/config.d.ts +2 -0
  202. package/dist/config.js +19 -0
  203. package/dist/config.mjs +19 -0
  204. package/dist/config_scheme.d.mts +100 -0
  205. package/dist/config_scheme.d.ts +100 -0
  206. package/dist/config_scheme.js +17 -0
  207. package/dist/config_scheme.mjs +17 -0
  208. package/dist/create_config.d.mts +53 -0
  209. package/dist/create_config.d.ts +53 -0
  210. package/dist/create_config.js +18 -0
  211. package/dist/create_config.mjs +18 -0
  212. package/dist/create_config.test.d.mts +2 -0
  213. package/dist/create_config.test.d.ts +2 -0
  214. package/dist/create_config.test.js +63 -0
  215. package/dist/create_config.test.mjs +63 -0
  216. package/dist/create_generator_fn.d.mts +12 -0
  217. package/dist/create_generator_fn.d.ts +12 -0
  218. package/dist/create_generator_fn.js +21 -0
  219. package/dist/create_generator_fn.mjs +21 -0
  220. package/dist/create_generator_fn.test.d.mts +2 -0
  221. package/dist/create_generator_fn.test.d.ts +2 -0
  222. package/dist/create_generator_fn.test.js +178 -0
  223. package/dist/create_generator_fn.test.mjs +178 -0
  224. package/dist/database-DV9wgnca.d.ts +23 -0
  225. package/dist/database-UzO1Lwec.d.mts +23 -0
  226. package/dist/datatype-C92TZLxo.d.ts +13 -0
  227. package/dist/datatype-DZjmP0fA.d.mts +13 -0
  228. package/dist/datetime-CSUpnUXU.d.ts +78 -0
  229. package/dist/datetime-dnPA_lnt.d.mts +78 -0
  230. package/dist/finance-CstKW1nH.d.mts +90 -0
  231. package/dist/finance-gj0fiEmf.d.ts +90 -0
  232. package/dist/food-CInj1GX2.d.ts +35 -0
  233. package/dist/food-Dk3-40CY.d.mts +35 -0
  234. package/dist/generator_fn-CJDbnCZl.d.mts +7 -0
  235. package/dist/generator_fn-D-npAfnC.d.ts +7 -0
  236. package/dist/generator_fn.d.mts +2 -0
  237. package/dist/generator_fn.d.ts +2 -0
  238. package/dist/generator_fn.js +22 -0
  239. package/dist/generator_fn.mjs +22 -0
  240. package/dist/git-BHL1ppL4.d.ts +31 -0
  241. package/dist/git-w0nznSjX.d.mts +31 -0
  242. package/dist/hacker-DL7pR6JO.d.ts +26 -0
  243. package/dist/hacker-FcQXZGtz.d.mts +26 -0
  244. package/dist/image-B5OPCNhD.d.mts +56 -0
  245. package/dist/image-IyGCgqNf.d.ts +56 -0
  246. package/dist/index.d.mts +5 -57
  247. package/dist/index.d.ts +5 -57
  248. package/dist/index.js +44 -162
  249. package/dist/index.mjs +22 -140
  250. package/dist/internet-BWBjFZ1E.d.mts +101 -0
  251. package/dist/internet-BukCBMX-.d.ts +106 -0
  252. package/dist/internet-C2ElurWb.d.mts +106 -0
  253. package/dist/internet-WmWuV39U.d.ts +101 -0
  254. package/dist/location-BIZ-KsaI.d.ts +80 -0
  255. package/dist/location-WU_nRdjx.d.mts +80 -0
  256. package/dist/lorem-OlHaVntu.d.mts +62 -0
  257. package/dist/lorem-yMyLb-d-.d.ts +62 -0
  258. package/dist/magic-string.es-2DLPM6Q3.js +1299 -0
  259. package/dist/magic-string.es-NHTKQXSF.mjs +1299 -0
  260. package/dist/magic-string.es-PQN52XPX.js +1288 -0
  261. package/dist/magic-string.es-X3ME2TR2.mjs +1288 -0
  262. package/dist/music-P8XZ4JSO.d.ts +20 -0
  263. package/dist/music-vcWm9dzu.d.mts +20 -0
  264. package/dist/number-BfwwKvTJ.d.mts +48 -0
  265. package/dist/number-D5QmTRsK.d.ts +48 -0
  266. package/dist/number-DomDs-l5.d.mts +47 -0
  267. package/dist/number-DvzbKHZR.d.ts +47 -0
  268. package/dist/person-DXne2mKX.d.ts +58 -0
  269. package/dist/person-Si_vy67g.d.mts +58 -0
  270. package/dist/phone-Cbxvm_Qv.d.ts +16 -0
  271. package/dist/phone-g4FDs50M.d.mts +16 -0
  272. package/dist/science-BX8WhoEY.d.ts +15 -0
  273. package/dist/science-BfA9sVXz.d.mts +15 -0
  274. package/dist/string-DGScZrrP.d.mts +87 -0
  275. package/dist/string-Do4vhsl0.d.ts +87 -0
  276. package/dist/system-BpxbduIr.d.ts +55 -0
  277. package/dist/system-Cy0e05Cr.d.mts +55 -0
  278. package/dist/system-EuG0S2Xy.d.mts +55 -0
  279. package/dist/system-ZV2S9Qw2.d.ts +55 -0
  280. package/dist/type.d.mts +85 -0
  281. package/dist/type.d.ts +85 -0
  282. package/dist/type.js +1 -0
  283. package/dist/type.mjs +1 -0
  284. package/dist/utils/airline.d.mts +2 -2
  285. package/dist/utils/airline.d.ts +2 -2
  286. package/dist/utils/airline.js +7 -5
  287. package/dist/utils/airline.mjs +6 -4
  288. package/dist/utils/animal.d.mts +2 -2
  289. package/dist/utils/animal.d.ts +2 -2
  290. package/dist/utils/animal.js +7 -5
  291. package/dist/utils/animal.mjs +6 -4
  292. package/dist/utils/color.d.mts +2 -2
  293. package/dist/utils/color.d.ts +2 -2
  294. package/dist/utils/color.js +7 -5
  295. package/dist/utils/color.mjs +6 -4
  296. package/dist/utils/commerce.d.mts +2 -2
  297. package/dist/utils/commerce.d.ts +2 -2
  298. package/dist/utils/commerce.js +7 -5
  299. package/dist/utils/commerce.mjs +6 -4
  300. package/dist/utils/common.d.mts +2 -2
  301. package/dist/utils/common.d.ts +2 -2
  302. package/dist/utils/common.js +5 -3
  303. package/dist/utils/common.mjs +4 -2
  304. package/dist/utils/company.d.mts +2 -2
  305. package/dist/utils/company.d.ts +2 -2
  306. package/dist/utils/company.js +7 -5
  307. package/dist/utils/company.mjs +6 -4
  308. package/dist/utils/database.d.mts +2 -2
  309. package/dist/utils/database.d.ts +2 -2
  310. package/dist/utils/database.js +7 -5
  311. package/dist/utils/database.mjs +6 -4
  312. package/dist/utils/datatype.d.mts +2 -2
  313. package/dist/utils/datatype.d.ts +2 -2
  314. package/dist/utils/datatype.js +7 -5
  315. package/dist/utils/datatype.mjs +6 -4
  316. package/dist/utils/datetime.d.mts +2 -2
  317. package/dist/utils/datetime.d.ts +2 -2
  318. package/dist/utils/datetime.js +7 -5
  319. package/dist/utils/datetime.mjs +6 -4
  320. package/dist/utils/finance.d.mts +2 -2
  321. package/dist/utils/finance.d.ts +2 -2
  322. package/dist/utils/finance.js +7 -5
  323. package/dist/utils/finance.mjs +6 -4
  324. package/dist/utils/food.d.mts +2 -2
  325. package/dist/utils/food.d.ts +2 -2
  326. package/dist/utils/food.js +7 -5
  327. package/dist/utils/food.mjs +6 -4
  328. package/dist/utils/git.d.mts +2 -2
  329. package/dist/utils/git.d.ts +2 -2
  330. package/dist/utils/git.js +7 -5
  331. package/dist/utils/git.mjs +6 -4
  332. package/dist/utils/hacker.d.mts +2 -2
  333. package/dist/utils/hacker.d.ts +2 -2
  334. package/dist/utils/hacker.js +7 -5
  335. package/dist/utils/hacker.mjs +6 -4
  336. package/dist/utils/image.d.mts +2 -2
  337. package/dist/utils/image.d.ts +2 -2
  338. package/dist/utils/image.js +7 -5
  339. package/dist/utils/image.mjs +6 -4
  340. package/dist/utils/index.d.mts +27 -27
  341. package/dist/utils/index.d.ts +27 -27
  342. package/dist/utils/index.js +31 -29
  343. package/dist/utils/index.mjs +30 -28
  344. package/dist/utils/internet.d.mts +3 -2
  345. package/dist/utils/internet.d.ts +3 -2
  346. package/dist/utils/internet.js +7 -5
  347. package/dist/utils/internet.mjs +6 -4
  348. package/dist/utils/location.d.mts +2 -2
  349. package/dist/utils/location.d.ts +2 -2
  350. package/dist/utils/location.js +7 -5
  351. package/dist/utils/location.mjs +6 -4
  352. package/dist/utils/lorem.d.mts +2 -2
  353. package/dist/utils/lorem.d.ts +2 -2
  354. package/dist/utils/lorem.js +7 -5
  355. package/dist/utils/lorem.mjs +6 -4
  356. package/dist/utils/music.d.mts +2 -2
  357. package/dist/utils/music.d.ts +2 -2
  358. package/dist/utils/music.js +7 -5
  359. package/dist/utils/music.mjs +6 -4
  360. package/dist/utils/number.d.mts +2 -2
  361. package/dist/utils/number.d.ts +2 -2
  362. package/dist/utils/number.js +7 -5
  363. package/dist/utils/number.mjs +6 -4
  364. package/dist/utils/person.d.mts +2 -2
  365. package/dist/utils/person.d.ts +2 -2
  366. package/dist/utils/person.js +7 -5
  367. package/dist/utils/person.mjs +6 -4
  368. package/dist/utils/phone.d.mts +2 -2
  369. package/dist/utils/phone.d.ts +2 -2
  370. package/dist/utils/phone.js +7 -5
  371. package/dist/utils/phone.mjs +6 -4
  372. package/dist/utils/science.d.mts +2 -2
  373. package/dist/utils/science.d.ts +2 -2
  374. package/dist/utils/science.js +7 -5
  375. package/dist/utils/science.mjs +6 -4
  376. package/dist/utils/string.d.mts +2 -2
  377. package/dist/utils/string.d.ts +2 -2
  378. package/dist/utils/string.js +7 -5
  379. package/dist/utils/string.mjs +6 -4
  380. package/dist/utils/system.d.mts +2 -2
  381. package/dist/utils/system.d.ts +2 -2
  382. package/dist/utils/system.js +7 -5
  383. package/dist/utils/system.mjs +6 -4
  384. package/dist/utils/utils.d.mts +2 -2
  385. package/dist/utils/utils.d.ts +2 -2
  386. package/dist/utils/utils.js +5 -3
  387. package/dist/utils/utils.mjs +4 -2
  388. package/dist/utils/vehicle.d.mts +2 -2
  389. package/dist/utils/vehicle.d.ts +2 -2
  390. package/dist/utils/vehicle.js +7 -5
  391. package/dist/utils/vehicle.mjs +6 -4
  392. package/dist/utils/word.d.mts +1 -1
  393. package/dist/utils/word.d.ts +1 -1
  394. package/dist/utils/word.js +14 -12
  395. package/dist/utils/word.mjs +5 -3
  396. package/dist/utils-BImnOpvp.d.ts +10 -0
  397. package/dist/utils-zJKwaMUY.d.mts +10 -0
  398. package/dist/vehicle-D4yBDYMc.d.mts +35 -0
  399. package/dist/vehicle-Ufz4AoXu.d.ts +35 -0
  400. package/package.json +9 -8
  401. package/src/config.ts +8 -0
  402. package/src/create_config.ts +27 -14
  403. package/src/create_generator_fn.ts +39 -0
  404. package/src/generator_fn.ts +9 -0
  405. package/src/index.ts +2 -0
  406. package/src/type.ts +108 -19
  407. package/tsconfig.json +4 -3
package/dist/index.mjs CHANGED
@@ -1,151 +1,33 @@
1
+ import "./chunk-7UQSPUCL.mjs";
1
2
  import {
2
- f
3
- } from "./chunk-BS7IEV74.mjs";
3
+ config_exports
4
+ } from "./chunk-5UFZ4NET.mjs";
4
5
  import {
5
- arrayConfigScheme,
6
- boundedSeriesScheme,
7
6
  createArrayConfig,
8
7
  createBoundedSeriesConfig,
9
8
  createObjectConfig,
10
9
  createSelectionConfig,
11
10
  createTupleConfig,
12
- createValueConfig,
13
- objConfigScheme,
14
- selectionConfigScheme,
15
- tupleConfigScheme,
16
- valueConfigScheme
17
- } from "./chunk-OLSCXZ3D.mjs";
18
-
19
- // src/create_generator_fn.ts
20
- var _createValueGenerator = (config, path) => {
21
- try {
22
- valueConfigScheme.parse(config);
23
- } catch (err) {
24
- throw new Error(`config path: ${path}.value
25
- ${err}`);
26
- }
27
- return config.generateFn;
28
- };
29
- var createValueGenerator = (config) => _createValueGenerator(config, "*");
30
- var _createSelectionGenerator = (config, path) => {
31
- try {
32
- selectionConfigScheme.parse(config);
33
- } catch (err) {
34
- throw new Error(`config path: ${path}.select
35
- ${err}`);
36
- }
37
- const { items } = config;
38
- return () => items[f.number.int(items.length - 1)];
39
- };
40
- var createSelectionGenerator = (config) => _createSelectionGenerator(config, "*");
41
- var _createObjectGenerator = (config, path, customTypeMatch) => {
42
- try {
43
- objConfigScheme.parse(config);
44
- } catch (err) {
45
- throw new Error(`config path: ${path}.obj
46
- ${err}`);
47
- }
48
- const keyWithFns = Object.entries(config.content).map(([key, subConfig]) => [
49
- key,
50
- _createGeneratorByType(subConfig, `${path}.obj[${key}]`, customTypeMatch)
51
- ]);
52
- return () => {
53
- const result = {};
54
- for (const [key, generateFn] of keyWithFns) {
55
- result[key] = generateFn();
56
- }
57
- return result;
58
- };
59
- };
60
- var createObjectGenerator = (config, customTypeMatch) => _createObjectGenerator(config, "*", customTypeMatch);
61
- var _createArrayGenerator = (config, path, customTypeMatch) => {
62
- try {
63
- arrayConfigScheme.parse(config);
64
- } catch (err) {
65
- throw new Error(`config path: ${path}.arr
66
- ${err}`);
67
- }
68
- const itemGeneratorFn = _createGeneratorByType(
69
- config.item,
70
- `${path}.arr`,
71
- customTypeMatch
72
- );
73
- return () => Array.from({ length: config.len ?? 0 }, itemGeneratorFn);
74
- };
75
- var createArrayGenerator = (config, customTypeMatch) => _createArrayGenerator(config, "*", customTypeMatch);
76
- var _createTupleGenerator = (config, path, customTypeMatch) => {
77
- try {
78
- tupleConfigScheme.parse(config);
79
- } catch (err) {
80
- throw new Error(`config path: ${path}.tuple
81
- ${err}`);
82
- }
83
- const itemsFns = config.configItems.map(
84
- (configItem, index) => _createGeneratorByType(
85
- configItem,
86
- `${path}.tuple[${index}]`,
87
- customTypeMatch
88
- )
89
- );
90
- return () => itemsFns.map((generateFn) => generateFn());
91
- };
92
- var createTupleGenerator = (config, customTypeMatch) => _createTupleGenerator(config, "*", customTypeMatch);
93
- var _createBoundedSeriesGenerator = (config, path) => {
94
- try {
95
- boundedSeriesScheme.parse(config);
96
- } catch (err) {
97
- throw new Error(`config path: ${path}.boundedSeries
98
- ${err}`);
99
- }
100
- const { upperLimit, lowerLimit, createInitValue, count } = config;
101
- return () => {
102
- let value = createInitValue();
103
- const boundedSeries = [];
104
- for (let i = 0; i < count; i++) {
105
- value = f.number.float({ max: upperLimit, min: lowerLimit }) * value;
106
- boundedSeries.push(value);
107
- }
108
- return boundedSeries;
109
- };
110
- };
111
- var createBoundedSeriesGenerator = (config) => _createBoundedSeriesGenerator(config, "*");
112
- var _createGeneratorByType = (config, path, customTypeMatch) => {
113
- switch (config.type) {
114
- case "obj":
115
- return _createObjectGenerator(
116
- config,
117
- path,
118
- customTypeMatch
119
- );
120
- case "arr":
121
- return _createArrayGenerator(
122
- config,
123
- path,
124
- customTypeMatch
125
- );
126
- case "tuple":
127
- return _createTupleGenerator(
128
- config,
129
- path,
130
- customTypeMatch
131
- );
132
- case "select":
133
- return _createSelectionGenerator(config, path);
134
- case "value":
135
- return _createValueGenerator(config, path);
136
- case "bounded_series":
137
- return _createBoundedSeriesGenerator(config, path);
138
- default: {
139
- if (customTypeMatch) {
140
- return createValueGenerator(customTypeMatch(config, path));
141
- }
142
- throw new Error(`path: ${path}
143
- config type is not supported`);
144
- }
145
- }
146
- };
147
- var createGeneratorByType = (config, customTypeMatch) => _createGeneratorByType(config, "*", customTypeMatch);
11
+ createValueConfig
12
+ } from "./chunk-RDATYKAG.mjs";
13
+ import {
14
+ generator_fn_exports
15
+ } from "./chunk-X7YFEBIL.mjs";
16
+ import {
17
+ createArrayGenerator,
18
+ createBoundedSeriesGenerator,
19
+ createGeneratorByType,
20
+ createObjectGenerator,
21
+ createSelectionGenerator,
22
+ createTupleGenerator,
23
+ createValueGenerator
24
+ } from "./chunk-6TGTIMX2.mjs";
25
+ import "./chunk-3U6BNHWG.mjs";
26
+ import "./chunk-UP3FJ7EK.mjs";
27
+ import "./chunk-XGB3TDIC.mjs";
148
28
  export {
29
+ config_exports as StructConfig,
30
+ generator_fn_exports as StructGenerator,
149
31
  createArrayConfig,
150
32
  createArrayGenerator,
151
33
  createBoundedSeriesConfig,
@@ -0,0 +1,101 @@
1
+ import { ValueConfig } from './type.mjs';
2
+
3
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
4
+ declare const color: (options?: {
5
+ redBase?: number;
6
+ greenBase?: number;
7
+ blueBase?: number;
8
+ }) => ValueConfig<string>;
9
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
10
+ declare const displayName: (options?: {
11
+ firstName?: string;
12
+ lastName?: string;
13
+ }) => ValueConfig<string>;
14
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
15
+ declare const domainName: () => ValueConfig<string>;
16
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
17
+ declare const domainSuffix: () => ValueConfig<string>;
18
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
19
+ declare const domainWord: () => ValueConfig<string>;
20
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
21
+ declare const email: (options?: {
22
+ firstName?: string;
23
+ lastName?: string;
24
+ provider?: string;
25
+ allowSpecialCharacters?: boolean;
26
+ }) => ValueConfig<string>;
27
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
28
+ declare const emoji: (options?: {
29
+ types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
30
+ }) => ValueConfig<string>;
31
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
32
+ declare const exampleEmail: (options?: {
33
+ firstName?: string;
34
+ lastName?: string;
35
+ allowSpecialCharacters?: boolean;
36
+ }) => ValueConfig<string>;
37
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
38
+ declare const httpMethod: () => ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
39
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
40
+ declare const httpStatusCode: (options?: {
41
+ types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
42
+ }) => ValueConfig<number>;
43
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
44
+ declare const ip: () => ValueConfig<string>;
45
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
46
+ declare const ipv4: () => ValueConfig<string>;
47
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
48
+ declare const ipv6: () => ValueConfig<string>;
49
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
50
+ declare const mac: (options?: string | {
51
+ separator?: string;
52
+ }) => ValueConfig<string>;
53
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
54
+ declare const password: (options?: {
55
+ length?: number;
56
+ memorable?: boolean;
57
+ pattern?: RegExp;
58
+ prefix?: string;
59
+ }) => ValueConfig<string>;
60
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
61
+ declare const port: () => ValueConfig<number>;
62
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
63
+ declare const protocol: () => ValueConfig<"http" | "https">;
64
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
65
+ declare const url: (options?: {
66
+ appendSlash?: boolean;
67
+ protocol?: "http" | "https";
68
+ }) => ValueConfig<string>;
69
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
70
+ declare const userAgent: () => ValueConfig<string>;
71
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
72
+ declare const userName: (options?: {
73
+ firstName?: string;
74
+ lastName?: string;
75
+ }) => ValueConfig<string>;
76
+
77
+ declare const internet_color: typeof color;
78
+ declare const internet_displayName: typeof displayName;
79
+ declare const internet_domainName: typeof domainName;
80
+ declare const internet_domainSuffix: typeof domainSuffix;
81
+ declare const internet_domainWord: typeof domainWord;
82
+ declare const internet_email: typeof email;
83
+ declare const internet_emoji: typeof emoji;
84
+ declare const internet_exampleEmail: typeof exampleEmail;
85
+ declare const internet_httpMethod: typeof httpMethod;
86
+ declare const internet_httpStatusCode: typeof httpStatusCode;
87
+ declare const internet_ip: typeof ip;
88
+ declare const internet_ipv4: typeof ipv4;
89
+ declare const internet_ipv6: typeof ipv6;
90
+ declare const internet_mac: typeof mac;
91
+ declare const internet_password: typeof password;
92
+ declare const internet_port: typeof port;
93
+ declare const internet_protocol: typeof protocol;
94
+ declare const internet_url: typeof url;
95
+ declare const internet_userAgent: typeof userAgent;
96
+ declare const internet_userName: typeof userName;
97
+ declare namespace internet {
98
+ export { internet_color as color, internet_displayName as displayName, internet_domainName as domainName, internet_domainSuffix as domainSuffix, internet_domainWord as domainWord, internet_email as email, internet_emoji as emoji, internet_exampleEmail as exampleEmail, internet_httpMethod as httpMethod, internet_httpStatusCode as httpStatusCode, internet_ip as ip, internet_ipv4 as ipv4, internet_ipv6 as ipv6, internet_mac as mac, internet_password as password, internet_port as port, internet_protocol as protocol, internet_url as url, internet_userAgent as userAgent, internet_userName as userName };
99
+ }
100
+
101
+ export { domainName as a, domainSuffix as b, color as c, displayName as d, domainWord as e, email as f, emoji as g, exampleEmail as h, internet as i, httpMethod as j, httpStatusCode as k, ip as l, ipv4 as m, ipv6 as n, mac as o, password as p, port as q, protocol as r, userAgent as s, userName as t, url as u };
@@ -0,0 +1,106 @@
1
+ import * as _faker_js_faker__ from '@faker-js/faker/.';
2
+ import { ValueConfig } from './type.js';
3
+
4
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
5
+ declare const color: (options?: {
6
+ redBase?: number;
7
+ greenBase?: number;
8
+ blueBase?: number;
9
+ }) => ValueConfig<string>;
10
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
11
+ declare const displayName: (options?: {
12
+ firstName?: string;
13
+ lastName?: string;
14
+ }) => ValueConfig<string>;
15
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
16
+ declare const domainName: () => ValueConfig<string>;
17
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
18
+ declare const domainSuffix: () => ValueConfig<string>;
19
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
20
+ declare const domainWord: () => ValueConfig<string>;
21
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
22
+ declare const email: (options?: {
23
+ firstName?: string;
24
+ lastName?: string;
25
+ provider?: string;
26
+ allowSpecialCharacters?: boolean;
27
+ }) => ValueConfig<string>;
28
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
29
+ declare const emoji: (options?: {
30
+ types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
31
+ }) => ValueConfig<string>;
32
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
33
+ declare const exampleEmail: (options?: {
34
+ firstName?: string;
35
+ lastName?: string;
36
+ allowSpecialCharacters?: boolean;
37
+ }) => ValueConfig<string>;
38
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
39
+ declare const httpMethod: () => ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
40
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
41
+ declare const httpStatusCode: (options?: {
42
+ types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
43
+ }) => ValueConfig<number>;
44
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
45
+ declare const ip: () => ValueConfig<string>;
46
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
47
+ declare const ipv4: (options?: {
48
+ cidrBlock?: string;
49
+ } | {
50
+ network?: _faker_js_faker__.IPv4NetworkType;
51
+ }) => ValueConfig<string>;
52
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
53
+ declare const ipv6: () => ValueConfig<string>;
54
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
55
+ declare const mac: (options?: string | {
56
+ separator?: string;
57
+ }) => ValueConfig<string>;
58
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
59
+ declare const password: (options?: {
60
+ length?: number;
61
+ memorable?: boolean;
62
+ pattern?: RegExp;
63
+ prefix?: string;
64
+ }) => ValueConfig<string>;
65
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
66
+ declare const port: () => ValueConfig<number>;
67
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
68
+ declare const protocol: () => ValueConfig<"http" | "https">;
69
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
70
+ declare const url: (options?: {
71
+ appendSlash?: boolean;
72
+ protocol?: "http" | "https";
73
+ }) => ValueConfig<string>;
74
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
75
+ declare const userAgent: () => ValueConfig<string>;
76
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
77
+ declare const userName: (options?: {
78
+ firstName?: string;
79
+ lastName?: string;
80
+ }) => ValueConfig<string>;
81
+
82
+ declare const internet_color: typeof color;
83
+ declare const internet_displayName: typeof displayName;
84
+ declare const internet_domainName: typeof domainName;
85
+ declare const internet_domainSuffix: typeof domainSuffix;
86
+ declare const internet_domainWord: typeof domainWord;
87
+ declare const internet_email: typeof email;
88
+ declare const internet_emoji: typeof emoji;
89
+ declare const internet_exampleEmail: typeof exampleEmail;
90
+ declare const internet_httpMethod: typeof httpMethod;
91
+ declare const internet_httpStatusCode: typeof httpStatusCode;
92
+ declare const internet_ip: typeof ip;
93
+ declare const internet_ipv4: typeof ipv4;
94
+ declare const internet_ipv6: typeof ipv6;
95
+ declare const internet_mac: typeof mac;
96
+ declare const internet_password: typeof password;
97
+ declare const internet_port: typeof port;
98
+ declare const internet_protocol: typeof protocol;
99
+ declare const internet_url: typeof url;
100
+ declare const internet_userAgent: typeof userAgent;
101
+ declare const internet_userName: typeof userName;
102
+ declare namespace internet {
103
+ export { internet_color as color, internet_displayName as displayName, internet_domainName as domainName, internet_domainSuffix as domainSuffix, internet_domainWord as domainWord, internet_email as email, internet_emoji as emoji, internet_exampleEmail as exampleEmail, internet_httpMethod as httpMethod, internet_httpStatusCode as httpStatusCode, internet_ip as ip, internet_ipv4 as ipv4, internet_ipv6 as ipv6, internet_mac as mac, internet_password as password, internet_port as port, internet_protocol as protocol, internet_url as url, internet_userAgent as userAgent, internet_userName as userName };
104
+ }
105
+
106
+ export { domainName as a, domainSuffix as b, color as c, displayName as d, domainWord as e, email as f, emoji as g, exampleEmail as h, internet as i, httpMethod as j, httpStatusCode as k, ip as l, ipv4 as m, ipv6 as n, mac as o, password as p, port as q, protocol as r, userAgent as s, userName as t, url as u };
@@ -0,0 +1,106 @@
1
+ import * as _faker_js_faker__ from '@faker-js/faker/.';
2
+ import { ValueConfig } from './type.mjs';
3
+
4
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
5
+ declare const color: (options?: {
6
+ redBase?: number;
7
+ greenBase?: number;
8
+ blueBase?: number;
9
+ }) => ValueConfig<string>;
10
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
11
+ declare const displayName: (options?: {
12
+ firstName?: string;
13
+ lastName?: string;
14
+ }) => ValueConfig<string>;
15
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
16
+ declare const domainName: () => ValueConfig<string>;
17
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
18
+ declare const domainSuffix: () => ValueConfig<string>;
19
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
20
+ declare const domainWord: () => ValueConfig<string>;
21
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
22
+ declare const email: (options?: {
23
+ firstName?: string;
24
+ lastName?: string;
25
+ provider?: string;
26
+ allowSpecialCharacters?: boolean;
27
+ }) => ValueConfig<string>;
28
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
29
+ declare const emoji: (options?: {
30
+ types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
31
+ }) => ValueConfig<string>;
32
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
33
+ declare const exampleEmail: (options?: {
34
+ firstName?: string;
35
+ lastName?: string;
36
+ allowSpecialCharacters?: boolean;
37
+ }) => ValueConfig<string>;
38
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
39
+ declare const httpMethod: () => ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
40
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
41
+ declare const httpStatusCode: (options?: {
42
+ types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
43
+ }) => ValueConfig<number>;
44
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
45
+ declare const ip: () => ValueConfig<string>;
46
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
47
+ declare const ipv4: (options?: {
48
+ cidrBlock?: string;
49
+ } | {
50
+ network?: _faker_js_faker__.IPv4NetworkType;
51
+ }) => ValueConfig<string>;
52
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
53
+ declare const ipv6: () => ValueConfig<string>;
54
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
55
+ declare const mac: (options?: string | {
56
+ separator?: string;
57
+ }) => ValueConfig<string>;
58
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
59
+ declare const password: (options?: {
60
+ length?: number;
61
+ memorable?: boolean;
62
+ pattern?: RegExp;
63
+ prefix?: string;
64
+ }) => ValueConfig<string>;
65
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
66
+ declare const port: () => ValueConfig<number>;
67
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
68
+ declare const protocol: () => ValueConfig<"http" | "https">;
69
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
70
+ declare const url: (options?: {
71
+ appendSlash?: boolean;
72
+ protocol?: "http" | "https";
73
+ }) => ValueConfig<string>;
74
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
75
+ declare const userAgent: () => ValueConfig<string>;
76
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
77
+ declare const userName: (options?: {
78
+ firstName?: string;
79
+ lastName?: string;
80
+ }) => ValueConfig<string>;
81
+
82
+ declare const internet_color: typeof color;
83
+ declare const internet_displayName: typeof displayName;
84
+ declare const internet_domainName: typeof domainName;
85
+ declare const internet_domainSuffix: typeof domainSuffix;
86
+ declare const internet_domainWord: typeof domainWord;
87
+ declare const internet_email: typeof email;
88
+ declare const internet_emoji: typeof emoji;
89
+ declare const internet_exampleEmail: typeof exampleEmail;
90
+ declare const internet_httpMethod: typeof httpMethod;
91
+ declare const internet_httpStatusCode: typeof httpStatusCode;
92
+ declare const internet_ip: typeof ip;
93
+ declare const internet_ipv4: typeof ipv4;
94
+ declare const internet_ipv6: typeof ipv6;
95
+ declare const internet_mac: typeof mac;
96
+ declare const internet_password: typeof password;
97
+ declare const internet_port: typeof port;
98
+ declare const internet_protocol: typeof protocol;
99
+ declare const internet_url: typeof url;
100
+ declare const internet_userAgent: typeof userAgent;
101
+ declare const internet_userName: typeof userName;
102
+ declare namespace internet {
103
+ export { internet_color as color, internet_displayName as displayName, internet_domainName as domainName, internet_domainSuffix as domainSuffix, internet_domainWord as domainWord, internet_email as email, internet_emoji as emoji, internet_exampleEmail as exampleEmail, internet_httpMethod as httpMethod, internet_httpStatusCode as httpStatusCode, internet_ip as ip, internet_ipv4 as ipv4, internet_ipv6 as ipv6, internet_mac as mac, internet_password as password, internet_port as port, internet_protocol as protocol, internet_url as url, internet_userAgent as userAgent, internet_userName as userName };
104
+ }
105
+
106
+ export { domainName as a, domainSuffix as b, color as c, displayName as d, domainWord as e, email as f, emoji as g, exampleEmail as h, internet as i, httpMethod as j, httpStatusCode as k, ip as l, ipv4 as m, ipv6 as n, mac as o, password as p, port as q, protocol as r, userAgent as s, userName as t, url as u };
@@ -0,0 +1,101 @@
1
+ import { ValueConfig } from './type.js';
2
+
3
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
4
+ declare const color: (options?: {
5
+ redBase?: number;
6
+ greenBase?: number;
7
+ blueBase?: number;
8
+ }) => ValueConfig<string>;
9
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
10
+ declare const displayName: (options?: {
11
+ firstName?: string;
12
+ lastName?: string;
13
+ }) => ValueConfig<string>;
14
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
15
+ declare const domainName: () => ValueConfig<string>;
16
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
17
+ declare const domainSuffix: () => ValueConfig<string>;
18
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
19
+ declare const domainWord: () => ValueConfig<string>;
20
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
21
+ declare const email: (options?: {
22
+ firstName?: string;
23
+ lastName?: string;
24
+ provider?: string;
25
+ allowSpecialCharacters?: boolean;
26
+ }) => ValueConfig<string>;
27
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
28
+ declare const emoji: (options?: {
29
+ types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
30
+ }) => ValueConfig<string>;
31
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
32
+ declare const exampleEmail: (options?: {
33
+ firstName?: string;
34
+ lastName?: string;
35
+ allowSpecialCharacters?: boolean;
36
+ }) => ValueConfig<string>;
37
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
38
+ declare const httpMethod: () => ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
39
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
40
+ declare const httpStatusCode: (options?: {
41
+ types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
42
+ }) => ValueConfig<number>;
43
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
44
+ declare const ip: () => ValueConfig<string>;
45
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
46
+ declare const ipv4: () => ValueConfig<string>;
47
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
48
+ declare const ipv6: () => ValueConfig<string>;
49
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
50
+ declare const mac: (options?: string | {
51
+ separator?: string;
52
+ }) => ValueConfig<string>;
53
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
54
+ declare const password: (options?: {
55
+ length?: number;
56
+ memorable?: boolean;
57
+ pattern?: RegExp;
58
+ prefix?: string;
59
+ }) => ValueConfig<string>;
60
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
61
+ declare const port: () => ValueConfig<number>;
62
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
63
+ declare const protocol: () => ValueConfig<"http" | "https">;
64
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
65
+ declare const url: (options?: {
66
+ appendSlash?: boolean;
67
+ protocol?: "http" | "https";
68
+ }) => ValueConfig<string>;
69
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
70
+ declare const userAgent: () => ValueConfig<string>;
71
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
72
+ declare const userName: (options?: {
73
+ firstName?: string;
74
+ lastName?: string;
75
+ }) => ValueConfig<string>;
76
+
77
+ declare const internet_color: typeof color;
78
+ declare const internet_displayName: typeof displayName;
79
+ declare const internet_domainName: typeof domainName;
80
+ declare const internet_domainSuffix: typeof domainSuffix;
81
+ declare const internet_domainWord: typeof domainWord;
82
+ declare const internet_email: typeof email;
83
+ declare const internet_emoji: typeof emoji;
84
+ declare const internet_exampleEmail: typeof exampleEmail;
85
+ declare const internet_httpMethod: typeof httpMethod;
86
+ declare const internet_httpStatusCode: typeof httpStatusCode;
87
+ declare const internet_ip: typeof ip;
88
+ declare const internet_ipv4: typeof ipv4;
89
+ declare const internet_ipv6: typeof ipv6;
90
+ declare const internet_mac: typeof mac;
91
+ declare const internet_password: typeof password;
92
+ declare const internet_port: typeof port;
93
+ declare const internet_protocol: typeof protocol;
94
+ declare const internet_url: typeof url;
95
+ declare const internet_userAgent: typeof userAgent;
96
+ declare const internet_userName: typeof userName;
97
+ declare namespace internet {
98
+ export { internet_color as color, internet_displayName as displayName, internet_domainName as domainName, internet_domainSuffix as domainSuffix, internet_domainWord as domainWord, internet_email as email, internet_emoji as emoji, internet_exampleEmail as exampleEmail, internet_httpMethod as httpMethod, internet_httpStatusCode as httpStatusCode, internet_ip as ip, internet_ipv4 as ipv4, internet_ipv6 as ipv6, internet_mac as mac, internet_password as password, internet_port as port, internet_protocol as protocol, internet_url as url, internet_userAgent as userAgent, internet_userName as userName };
99
+ }
100
+
101
+ export { domainName as a, domainSuffix as b, color as c, displayName as d, domainWord as e, email as f, emoji as g, exampleEmail as h, internet as i, httpMethod as j, httpStatusCode as k, ip as l, ipv4 as m, ipv6 as n, mac as o, password as p, port as q, protocol as r, userAgent as s, userName as t, url as u };