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.
- package/biome.json +1 -1
- package/dist/airline-98MCzMN8.d.ts +26 -0
- package/dist/airline-CuAxOEYH.d.mts +26 -0
- package/dist/animal-BohQ7s0w.d.mts +53 -0
- package/dist/animal-o8BFF7gd.d.ts +53 -0
- package/dist/chunk-25HDDMTE.js +45 -0
- package/dist/chunk-266JLHQ7.mjs +27 -0
- package/dist/chunk-2FTPTSHD.mjs +1972 -0
- package/dist/chunk-2P6DPKAW.js +35 -0
- package/dist/chunk-2QPSWN3J.js +24 -0
- package/dist/chunk-2SF54GZN.mjs +24 -0
- package/dist/chunk-2UAN3WRZ.js +51 -0
- package/dist/chunk-2VTSGFBK.mjs +56 -0
- package/dist/chunk-2ZR6AR26.js +24 -0
- package/dist/chunk-3AXS7RA6.mjs +18 -0
- package/dist/chunk-3DIP4M5Y.mjs +36 -0
- package/dist/chunk-3U6BNHWG.mjs +2040 -0
- package/dist/chunk-42EKB2FX.js +74 -0
- package/dist/chunk-4OB35J4Q.mjs +151 -0
- package/dist/chunk-4VNS5WPM.js +42 -0
- package/dist/chunk-52ZOIHJM.js +26 -0
- package/dist/chunk-55HSOHNN.js +36 -0
- package/dist/chunk-5A3HJWPX.mjs +33 -0
- package/dist/chunk-5PCIFPK7.js +15721 -0
- package/dist/chunk-5TG43IWT.js +36 -0
- package/dist/chunk-5UFZ4NET.mjs +26 -0
- package/dist/chunk-5VTJIH2Q.mjs +63 -0
- package/dist/chunk-5ZNSQDU5.js +81 -0
- package/dist/chunk-6BWS3CLP.mjs +16 -0
- package/dist/chunk-6GXFVYK2.js +18 -0
- package/dist/chunk-6QZF75LH.js +20 -0
- package/dist/chunk-6TGTIMX2.mjs +151 -0
- package/dist/chunk-73BBBL26.js +49 -0
- package/dist/chunk-7C2MCLYX.mjs +15721 -0
- package/dist/chunk-7IWAOHPW.mjs +27 -0
- package/dist/chunk-7POVLKQR.mjs +20 -0
- package/dist/chunk-7UQSPUCL.mjs +0 -0
- package/dist/chunk-7ZAVU2DI.mjs +81 -0
- package/dist/chunk-A4QVPMYT.js +44 -0
- package/dist/chunk-A5YXOL6G.mjs +63 -0
- package/dist/chunk-ABZZ2Y2O.mjs +45 -0
- package/dist/chunk-AT4FPDTE.mjs +51 -0
- package/dist/chunk-B3RA7BAM.mjs +30 -0
- package/dist/chunk-B7MK7WHV.mjs +21 -0
- package/dist/chunk-BMQ2NETL.js +63 -0
- package/dist/chunk-BNJUSXEO.js +27 -0
- package/dist/chunk-BVGE5IMC.js +45 -0
- package/dist/chunk-C6FQYK5T.js +81 -0
- package/dist/chunk-C6IEYVWV.mjs +21 -0
- package/dist/chunk-CKNDI3RH.js +24 -0
- package/dist/chunk-CSOXFDKC.mjs +42 -0
- package/dist/chunk-D3DPNIYF.mjs +36 -0
- package/dist/chunk-D74AUXZW.mjs +35 -0
- package/dist/chunk-DONFLQME.js +49 -0
- package/dist/chunk-DX6NQK6H.js +49 -0
- package/dist/chunk-DXVB5THL.js +36 -0
- package/dist/chunk-E3EZHXI2.mjs +45 -0
- package/dist/chunk-E3N3PWFI.js +45 -0
- package/dist/chunk-E7JW4TGQ.mjs +49 -0
- package/dist/chunk-ECTLN5SO.mjs +63 -0
- package/dist/chunk-EGCGEPYD.mjs +24 -0
- package/dist/chunk-EPWKT75L.js +63 -0
- package/dist/chunk-ES6I4JEP.js +24 -0
- package/dist/chunk-F4NIEPKF.mjs +48 -0
- package/dist/chunk-F4WSUHUB.js +27 -0
- package/dist/chunk-FGA73ALI.mjs +45 -0
- package/dist/chunk-FT5QWXEO.mjs +21 -0
- package/dist/chunk-G73JPAKW.mjs +16831 -0
- package/dist/chunk-GAOFL72U.mjs +24 -0
- package/dist/chunk-GMOMLI4W.js +56 -0
- package/dist/chunk-GNLLMLQX.js +48 -0
- package/dist/chunk-GNPP2GGZ.js +16831 -0
- package/dist/chunk-GSFJYUDA.js +63 -0
- package/dist/chunk-GUIYTTMP.mjs +24 -0
- package/dist/chunk-HEHR64VN.js +1972 -0
- package/dist/chunk-HLHMXAI2.js +21 -0
- package/dist/chunk-HMDAKHLF.js +151 -0
- package/dist/chunk-HNCQJ5F3.js +56 -0
- package/dist/chunk-HVWSAC7Q.js +74 -0
- package/dist/chunk-IEYIHOHM.js +57 -0
- package/dist/chunk-IRHHL256.mjs +36 -0
- package/dist/chunk-IY4LBMAL.js +78 -0
- package/dist/chunk-JC2FY5K5.mjs +42 -0
- package/dist/chunk-JIPBMHNL.mjs +63 -0
- package/dist/chunk-JIWCYW33.js +35 -0
- package/dist/chunk-JSZXNY5A.js +33 -0
- package/dist/chunk-JUS3FQET.js +63 -0
- package/dist/chunk-KDRX2A7A.mjs +45 -0
- package/dist/chunk-KDTNND32.js +63 -0
- package/dist/chunk-KESFLCJB.mjs +57 -0
- package/dist/chunk-KKDNACGF.js +78 -0
- package/dist/chunk-KSBJZ7PZ.mjs +48 -0
- package/dist/chunk-KVPPJDFE.mjs +63 -0
- package/dist/chunk-L55R55BM.mjs +24 -0
- package/dist/chunk-L7SUBSOS.mjs +74 -0
- package/dist/chunk-LGYUIU5L.js +33 -0
- package/dist/chunk-LKLQIBRC.mjs +18 -0
- package/dist/chunk-LPLLITHD.mjs +33 -0
- package/dist/chunk-LSP4VVPM.mjs +45 -0
- package/dist/chunk-LYYFKB5U.mjs +48 -0
- package/dist/chunk-M2ERA63H.mjs +20 -0
- package/dist/chunk-M3JRMFX2.js +36 -0
- package/dist/chunk-MHBVLDC4.js +30 -0
- package/dist/chunk-N2ZA6SQB.mjs +45 -0
- package/dist/chunk-NBUVTD24.js +24 -0
- package/dist/chunk-NGJNM6BX.mjs +48 -0
- package/dist/chunk-NWVKBRLA.js +30 -0
- package/dist/chunk-O73LDQID.mjs +57 -0
- package/dist/chunk-OAPPDES4.js +51 -0
- package/dist/chunk-OETKBS7R.mjs +63 -0
- package/dist/chunk-OFMBEI6Y.js +20 -0
- package/dist/chunk-OJRNPQVE.js +45 -0
- package/dist/chunk-OKDN5R6M.mjs +78 -0
- package/dist/chunk-OTDJMFZE.js +36 -0
- package/dist/chunk-OZ5VJVBQ.js +21 -0
- package/dist/chunk-OZ7Y3D4Z.js +48 -0
- package/dist/chunk-P2NEBQQH.mjs +78 -0
- package/dist/chunk-PBOBMHB3.js +45 -0
- package/dist/chunk-PEMTSFQT.mjs +36 -0
- package/dist/chunk-PSTZXVEM.mjs +45 -0
- package/dist/chunk-PXVILWPC.js +51 -0
- package/dist/chunk-PXXIPMA2.mjs +17567 -0
- package/dist/chunk-PYIUSFN2.js +48 -0
- package/dist/chunk-Q4BXZB6O.mjs +35 -0
- package/dist/chunk-Q6CVTFPU.mjs +2022 -0
- package/dist/chunk-Q7THO24V.js +45 -0
- package/dist/chunk-QEVQSGOW.mjs +49 -0
- package/dist/chunk-QFG2B4XU.js +35 -0
- package/dist/chunk-QH2RT36U.js +57 -0
- package/dist/chunk-QHW2YYKY.js +45 -0
- package/dist/chunk-QMNACCJG.mjs +30 -0
- package/dist/chunk-QOATILWS.mjs +48 -0
- package/dist/chunk-R5U7XKVJ.js +16 -0
- package/dist/chunk-RA35MXTT.mjs +51 -0
- package/dist/chunk-RDATYKAG.mjs +58 -0
- package/dist/chunk-RDMAE6F2.js +17567 -0
- package/dist/chunk-RFTRP37B.mjs +74 -0
- package/dist/chunk-RIOEYYMH.mjs +30 -0
- package/dist/chunk-RM7GMMWN.mjs +49 -0
- package/dist/chunk-ROM4ZH2A.js +56 -0
- package/dist/chunk-RUTM5ENW.js +57 -0
- package/dist/chunk-RW4IZD3J.js +74 -0
- package/dist/chunk-S2AEEWWW.mjs +36 -0
- package/dist/chunk-SEUDYVHA.js +45 -0
- package/dist/chunk-SMIDTCUZ.mjs +56 -0
- package/dist/chunk-SN2ALAEI.mjs +36 -0
- package/dist/chunk-SN4QTD6R.js +1 -0
- package/dist/chunk-SSZ5GGDT.js +45 -0
- package/dist/chunk-SVMTK42D.mjs +48 -0
- package/dist/chunk-SYIPILT6.mjs +35 -0
- package/dist/chunk-TSDTKUIT.mjs +151 -0
- package/dist/chunk-TZ2RKEBF.js +2040 -0
- package/dist/chunk-U3EACZZ3.js +18 -0
- package/dist/chunk-U634RJNK.js +36 -0
- package/dist/chunk-UCRPFQYY.js +48 -0
- package/dist/chunk-UEXFND2J.mjs +56 -0
- package/dist/chunk-UJ5Q7MZB.js +78 -0
- package/dist/chunk-UOY5QUAW.js +63 -0
- package/dist/chunk-UP3FJ7EK.mjs +44 -0
- package/dist/chunk-URX5VRVB.js +24 -0
- package/dist/chunk-UUIIGFUZ.js +33 -0
- package/dist/chunk-VKKQV6UO.js +42 -0
- package/dist/chunk-VOMHZHCC.js +21 -0
- package/dist/chunk-VVELSEXL.mjs +27 -0
- package/dist/chunk-VX346ARA.js +42 -0
- package/dist/chunk-VYV7BUJR.js +42 -0
- package/dist/chunk-W6QSJNDJ.js +58 -0
- package/dist/chunk-X5WN73EF.js +48 -0
- package/dist/chunk-X7YFEBIL.mjs +28 -0
- package/dist/chunk-XGB3TDIC.mjs +42 -0
- package/dist/chunk-XI5L2ENL.js +28 -0
- package/dist/chunk-XIROUDIK.js +151 -0
- package/dist/chunk-XJGSUINR.mjs +24 -0
- package/dist/chunk-XN5RU4UY.js +27 -0
- package/dist/chunk-XUZOVQYC.mjs +42 -0
- package/dist/chunk-XVQOUXV6.js +48 -0
- package/dist/chunk-Y2G3CY4Q.mjs +51 -0
- package/dist/chunk-YJXRZ5WX.mjs +78 -0
- package/dist/chunk-YRB3F2AG.mjs +81 -0
- package/dist/chunk-YUFVOYYX.mjs +57 -0
- package/dist/chunk-YVASGALV.js +81 -0
- package/dist/chunk-YWFUY5A4.js +30 -0
- package/dist/chunk-YZNZHRY3.mjs +81 -0
- package/dist/chunk-Z46HCVNZ.js +151 -0
- package/dist/chunk-ZAU43ZDI.mjs +74 -0
- package/dist/chunk-ZBU5LSC3.mjs +45 -0
- package/dist/chunk-ZSBGAX6X.js +2022 -0
- package/dist/chunk-ZTUCFJLM.mjs +33 -0
- package/dist/chunk-ZXWWD74E.mjs +45 -0
- package/dist/color-BT6BF8oV.d.mts +61 -0
- package/dist/color-lBH29suB.d.ts +61 -0
- package/dist/commerce-BqVjXEhQ.d.mts +40 -0
- package/dist/commerce-mdOpchjx.d.ts +40 -0
- package/dist/common-IR_KozaJ.d.mts +11 -0
- package/dist/common-t-ZQebCq.d.ts +11 -0
- package/dist/company-C3EU1J7k.d.ts +35 -0
- package/dist/company-cR_0hm6U.d.mts +35 -0
- package/dist/config-BTjogu5M.d.ts +7 -0
- package/dist/config-C1N2Brw-.d.mts +7 -0
- package/dist/config.d.mts +2 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +19 -0
- package/dist/config.mjs +19 -0
- package/dist/config_scheme.d.mts +100 -0
- package/dist/config_scheme.d.ts +100 -0
- package/dist/config_scheme.js +17 -0
- package/dist/config_scheme.mjs +17 -0
- package/dist/create_config.d.mts +53 -0
- package/dist/create_config.d.ts +53 -0
- package/dist/create_config.js +18 -0
- package/dist/create_config.mjs +18 -0
- package/dist/create_config.test.d.mts +2 -0
- package/dist/create_config.test.d.ts +2 -0
- package/dist/create_config.test.js +63 -0
- package/dist/create_config.test.mjs +63 -0
- package/dist/create_generator_fn.d.mts +12 -0
- package/dist/create_generator_fn.d.ts +12 -0
- package/dist/create_generator_fn.js +21 -0
- package/dist/create_generator_fn.mjs +21 -0
- package/dist/create_generator_fn.test.d.mts +2 -0
- package/dist/create_generator_fn.test.d.ts +2 -0
- package/dist/create_generator_fn.test.js +178 -0
- package/dist/create_generator_fn.test.mjs +178 -0
- package/dist/database-DV9wgnca.d.ts +23 -0
- package/dist/database-UzO1Lwec.d.mts +23 -0
- package/dist/datatype-C92TZLxo.d.ts +13 -0
- package/dist/datatype-DZjmP0fA.d.mts +13 -0
- package/dist/datetime-CSUpnUXU.d.ts +78 -0
- package/dist/datetime-dnPA_lnt.d.mts +78 -0
- package/dist/finance-CstKW1nH.d.mts +90 -0
- package/dist/finance-gj0fiEmf.d.ts +90 -0
- package/dist/food-CInj1GX2.d.ts +35 -0
- package/dist/food-Dk3-40CY.d.mts +35 -0
- package/dist/generator_fn-CJDbnCZl.d.mts +7 -0
- package/dist/generator_fn-D-npAfnC.d.ts +7 -0
- package/dist/generator_fn.d.mts +2 -0
- package/dist/generator_fn.d.ts +2 -0
- package/dist/generator_fn.js +22 -0
- package/dist/generator_fn.mjs +22 -0
- package/dist/git-BHL1ppL4.d.ts +31 -0
- package/dist/git-w0nznSjX.d.mts +31 -0
- package/dist/hacker-DL7pR6JO.d.ts +26 -0
- package/dist/hacker-FcQXZGtz.d.mts +26 -0
- package/dist/image-B5OPCNhD.d.mts +56 -0
- package/dist/image-IyGCgqNf.d.ts +56 -0
- package/dist/index.d.mts +5 -57
- package/dist/index.d.ts +5 -57
- package/dist/index.js +44 -162
- package/dist/index.mjs +22 -140
- package/dist/internet-BWBjFZ1E.d.mts +101 -0
- package/dist/internet-BukCBMX-.d.ts +106 -0
- package/dist/internet-C2ElurWb.d.mts +106 -0
- package/dist/internet-WmWuV39U.d.ts +101 -0
- package/dist/location-BIZ-KsaI.d.ts +80 -0
- package/dist/location-WU_nRdjx.d.mts +80 -0
- package/dist/lorem-OlHaVntu.d.mts +62 -0
- package/dist/lorem-yMyLb-d-.d.ts +62 -0
- package/dist/magic-string.es-2DLPM6Q3.js +1299 -0
- package/dist/magic-string.es-NHTKQXSF.mjs +1299 -0
- package/dist/magic-string.es-PQN52XPX.js +1288 -0
- package/dist/magic-string.es-X3ME2TR2.mjs +1288 -0
- package/dist/music-P8XZ4JSO.d.ts +20 -0
- package/dist/music-vcWm9dzu.d.mts +20 -0
- package/dist/number-BfwwKvTJ.d.mts +48 -0
- package/dist/number-D5QmTRsK.d.ts +48 -0
- package/dist/number-DomDs-l5.d.mts +47 -0
- package/dist/number-DvzbKHZR.d.ts +47 -0
- package/dist/person-DXne2mKX.d.ts +58 -0
- package/dist/person-Si_vy67g.d.mts +58 -0
- package/dist/phone-Cbxvm_Qv.d.ts +16 -0
- package/dist/phone-g4FDs50M.d.mts +16 -0
- package/dist/science-BX8WhoEY.d.ts +15 -0
- package/dist/science-BfA9sVXz.d.mts +15 -0
- package/dist/string-DGScZrrP.d.mts +87 -0
- package/dist/string-Do4vhsl0.d.ts +87 -0
- package/dist/system-BpxbduIr.d.ts +55 -0
- package/dist/system-Cy0e05Cr.d.mts +55 -0
- package/dist/system-EuG0S2Xy.d.mts +55 -0
- package/dist/system-ZV2S9Qw2.d.ts +55 -0
- package/dist/type.d.mts +85 -0
- package/dist/type.d.ts +85 -0
- package/dist/type.js +1 -0
- package/dist/type.mjs +1 -0
- package/dist/utils/airline.d.mts +2 -2
- package/dist/utils/airline.d.ts +2 -2
- package/dist/utils/airline.js +7 -5
- package/dist/utils/airline.mjs +6 -4
- package/dist/utils/animal.d.mts +2 -2
- package/dist/utils/animal.d.ts +2 -2
- package/dist/utils/animal.js +7 -5
- package/dist/utils/animal.mjs +6 -4
- package/dist/utils/color.d.mts +2 -2
- package/dist/utils/color.d.ts +2 -2
- package/dist/utils/color.js +7 -5
- package/dist/utils/color.mjs +6 -4
- package/dist/utils/commerce.d.mts +2 -2
- package/dist/utils/commerce.d.ts +2 -2
- package/dist/utils/commerce.js +7 -5
- package/dist/utils/commerce.mjs +6 -4
- package/dist/utils/common.d.mts +2 -2
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/common.js +5 -3
- package/dist/utils/common.mjs +4 -2
- package/dist/utils/company.d.mts +2 -2
- package/dist/utils/company.d.ts +2 -2
- package/dist/utils/company.js +7 -5
- package/dist/utils/company.mjs +6 -4
- package/dist/utils/database.d.mts +2 -2
- package/dist/utils/database.d.ts +2 -2
- package/dist/utils/database.js +7 -5
- package/dist/utils/database.mjs +6 -4
- package/dist/utils/datatype.d.mts +2 -2
- package/dist/utils/datatype.d.ts +2 -2
- package/dist/utils/datatype.js +7 -5
- package/dist/utils/datatype.mjs +6 -4
- package/dist/utils/datetime.d.mts +2 -2
- package/dist/utils/datetime.d.ts +2 -2
- package/dist/utils/datetime.js +7 -5
- package/dist/utils/datetime.mjs +6 -4
- package/dist/utils/finance.d.mts +2 -2
- package/dist/utils/finance.d.ts +2 -2
- package/dist/utils/finance.js +7 -5
- package/dist/utils/finance.mjs +6 -4
- package/dist/utils/food.d.mts +2 -2
- package/dist/utils/food.d.ts +2 -2
- package/dist/utils/food.js +7 -5
- package/dist/utils/food.mjs +6 -4
- package/dist/utils/git.d.mts +2 -2
- package/dist/utils/git.d.ts +2 -2
- package/dist/utils/git.js +7 -5
- package/dist/utils/git.mjs +6 -4
- package/dist/utils/hacker.d.mts +2 -2
- package/dist/utils/hacker.d.ts +2 -2
- package/dist/utils/hacker.js +7 -5
- package/dist/utils/hacker.mjs +6 -4
- package/dist/utils/image.d.mts +2 -2
- package/dist/utils/image.d.ts +2 -2
- package/dist/utils/image.js +7 -5
- package/dist/utils/image.mjs +6 -4
- package/dist/utils/index.d.mts +27 -27
- package/dist/utils/index.d.ts +27 -27
- package/dist/utils/index.js +31 -29
- package/dist/utils/index.mjs +30 -28
- package/dist/utils/internet.d.mts +3 -2
- package/dist/utils/internet.d.ts +3 -2
- package/dist/utils/internet.js +7 -5
- package/dist/utils/internet.mjs +6 -4
- package/dist/utils/location.d.mts +2 -2
- package/dist/utils/location.d.ts +2 -2
- package/dist/utils/location.js +7 -5
- package/dist/utils/location.mjs +6 -4
- package/dist/utils/lorem.d.mts +2 -2
- package/dist/utils/lorem.d.ts +2 -2
- package/dist/utils/lorem.js +7 -5
- package/dist/utils/lorem.mjs +6 -4
- package/dist/utils/music.d.mts +2 -2
- package/dist/utils/music.d.ts +2 -2
- package/dist/utils/music.js +7 -5
- package/dist/utils/music.mjs +6 -4
- package/dist/utils/number.d.mts +2 -2
- package/dist/utils/number.d.ts +2 -2
- package/dist/utils/number.js +7 -5
- package/dist/utils/number.mjs +6 -4
- package/dist/utils/person.d.mts +2 -2
- package/dist/utils/person.d.ts +2 -2
- package/dist/utils/person.js +7 -5
- package/dist/utils/person.mjs +6 -4
- package/dist/utils/phone.d.mts +2 -2
- package/dist/utils/phone.d.ts +2 -2
- package/dist/utils/phone.js +7 -5
- package/dist/utils/phone.mjs +6 -4
- package/dist/utils/science.d.mts +2 -2
- package/dist/utils/science.d.ts +2 -2
- package/dist/utils/science.js +7 -5
- package/dist/utils/science.mjs +6 -4
- package/dist/utils/string.d.mts +2 -2
- package/dist/utils/string.d.ts +2 -2
- package/dist/utils/string.js +7 -5
- package/dist/utils/string.mjs +6 -4
- package/dist/utils/system.d.mts +2 -2
- package/dist/utils/system.d.ts +2 -2
- package/dist/utils/system.js +7 -5
- package/dist/utils/system.mjs +6 -4
- package/dist/utils/utils.d.mts +2 -2
- package/dist/utils/utils.d.ts +2 -2
- package/dist/utils/utils.js +5 -3
- package/dist/utils/utils.mjs +4 -2
- package/dist/utils/vehicle.d.mts +2 -2
- package/dist/utils/vehicle.d.ts +2 -2
- package/dist/utils/vehicle.js +7 -5
- package/dist/utils/vehicle.mjs +6 -4
- package/dist/utils/word.d.mts +1 -1
- package/dist/utils/word.d.ts +1 -1
- package/dist/utils/word.js +14 -12
- package/dist/utils/word.mjs +5 -3
- package/dist/utils-BImnOpvp.d.ts +10 -0
- package/dist/utils-zJKwaMUY.d.mts +10 -0
- package/dist/vehicle-D4yBDYMc.d.mts +35 -0
- package/dist/vehicle-Ufz4AoXu.d.ts +35 -0
- package/package.json +9 -8
- package/src/config.ts +8 -0
- package/src/create_config.ts +27 -14
- package/src/create_generator_fn.ts +39 -0
- package/src/generator_fn.ts +9 -0
- package/src/index.ts +2 -0
- package/src/type.ts +108 -19
- package/tsconfig.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -1,151 +1,33 @@
|
|
|
1
|
+
import "./chunk-7UQSPUCL.mjs";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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 };
|