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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createArrayGenerator, createBoundedSeriesGenerator, createGeneratorByType, createObjectGenerator, createSelectionGenerator, createTupleGenerator, createValueGenerator } from './create_generator_fn.mjs';
|
|
2
|
+
|
|
3
|
+
declare namespace generator_fn {
|
|
4
|
+
export { createArrayGenerator as genArrayFn, createBoundedSeriesGenerator as genBoundedSeriesFn, createGeneratorByType as genFn, createObjectGenerator as genObjectFn, createSelectionGenerator as genSelectFn, createTupleGenerator as genTupleFn, createValueGenerator as genValueFn };
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { generator_fn as g };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createArrayGenerator, createBoundedSeriesGenerator, createGeneratorByType, createObjectGenerator, createSelectionGenerator, createTupleGenerator, createValueGenerator } from './create_generator_fn.js';
|
|
2
|
+
|
|
3
|
+
declare namespace generator_fn {
|
|
4
|
+
export { createArrayGenerator as genArrayFn, createBoundedSeriesGenerator as genBoundedSeriesFn, createGeneratorByType as genFn, createObjectGenerator as genObjectFn, createSelectionGenerator as genSelectFn, createTupleGenerator as genTupleFn, createValueGenerator as genValueFn };
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { generator_fn as g };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createArrayGenerator as genArrayFn, createBoundedSeriesGenerator as genBoundedSeriesFn, createGeneratorByType as genFn, createObjectGenerator as genObjectFn, createSelectionGenerator as genSelectFn, createTupleGenerator as genTupleFn, createValueGenerator as genValueFn } from './create_generator_fn.mjs';
|
|
2
|
+
import './type.mjs';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { createArrayGenerator as genArrayFn, createBoundedSeriesGenerator as genBoundedSeriesFn, createGeneratorByType as genFn, createObjectGenerator as genObjectFn, createSelectionGenerator as genSelectFn, createTupleGenerator as genTupleFn, createValueGenerator as genValueFn } from './create_generator_fn.js';
|
|
2
|
+
import './type.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XI5L2ENL.js');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkHMDAKHLFjs = require('./chunk-HMDAKHLF.js');
|
|
11
|
+
require('./chunk-TZ2RKEBF.js');
|
|
12
|
+
require('./chunk-A4QVPMYT.js');
|
|
13
|
+
require('./chunk-4VNS5WPM.js');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.genArrayFn = _chunkHMDAKHLFjs.createArrayGenerator; exports.genBoundedSeriesFn = _chunkHMDAKHLFjs.createBoundedSeriesGenerator; exports.genFn = _chunkHMDAKHLFjs.createGeneratorByType; exports.genObjectFn = _chunkHMDAKHLFjs.createObjectGenerator; exports.genSelectFn = _chunkHMDAKHLFjs.createSelectionGenerator; exports.genTupleFn = _chunkHMDAKHLFjs.createTupleGenerator; exports.genValueFn = _chunkHMDAKHLFjs.createValueGenerator;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./chunk-X7YFEBIL.mjs";
|
|
2
|
+
import {
|
|
3
|
+
createArrayGenerator,
|
|
4
|
+
createBoundedSeriesGenerator,
|
|
5
|
+
createGeneratorByType,
|
|
6
|
+
createObjectGenerator,
|
|
7
|
+
createSelectionGenerator,
|
|
8
|
+
createTupleGenerator,
|
|
9
|
+
createValueGenerator
|
|
10
|
+
} from "./chunk-6TGTIMX2.mjs";
|
|
11
|
+
import "./chunk-3U6BNHWG.mjs";
|
|
12
|
+
import "./chunk-UP3FJ7EK.mjs";
|
|
13
|
+
import "./chunk-XGB3TDIC.mjs";
|
|
14
|
+
export {
|
|
15
|
+
createArrayGenerator as genArrayFn,
|
|
16
|
+
createBoundedSeriesGenerator as genBoundedSeriesFn,
|
|
17
|
+
createGeneratorByType as genFn,
|
|
18
|
+
createObjectGenerator as genObjectFn,
|
|
19
|
+
createSelectionGenerator as genSelectFn,
|
|
20
|
+
createTupleGenerator as genTupleFn,
|
|
21
|
+
createValueGenerator as genValueFn
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ValueConfig } from './type.js';
|
|
2
|
+
|
|
3
|
+
/** Git [branch](https://fakerjs.dev/api/git.html#branch) */
|
|
4
|
+
declare const branch: () => ValueConfig<string>;
|
|
5
|
+
/** Git [commitDate](https://fakerjs.dev/api/git.html#commitDate) */
|
|
6
|
+
declare const commitDate: (options?: {
|
|
7
|
+
refDate?: string | Date | number;
|
|
8
|
+
}) => ValueConfig<string>;
|
|
9
|
+
/** Git [commitEntry](https://fakerjs.dev/api/git.html#commitEntry) */
|
|
10
|
+
declare const commitEntry: (options?: {
|
|
11
|
+
merge?: boolean;
|
|
12
|
+
eol?: "LF" | "CRLF";
|
|
13
|
+
refDate?: string | Date | number;
|
|
14
|
+
}) => ValueConfig<string>;
|
|
15
|
+
/** Git [commitMessage](https://fakerjs.dev/api/git.html#commitMessage) */
|
|
16
|
+
declare const commitMessage: () => ValueConfig<string>;
|
|
17
|
+
/** Git [commitSha](https://fakerjs.dev/api/git.html#commitSha) */
|
|
18
|
+
declare const commitSha: (options?: {
|
|
19
|
+
length?: number;
|
|
20
|
+
}) => ValueConfig<string>;
|
|
21
|
+
|
|
22
|
+
declare const git_branch: typeof branch;
|
|
23
|
+
declare const git_commitDate: typeof commitDate;
|
|
24
|
+
declare const git_commitEntry: typeof commitEntry;
|
|
25
|
+
declare const git_commitMessage: typeof commitMessage;
|
|
26
|
+
declare const git_commitSha: typeof commitSha;
|
|
27
|
+
declare namespace git {
|
|
28
|
+
export { git_branch as branch, git_commitDate as commitDate, git_commitEntry as commitEntry, git_commitMessage as commitMessage, git_commitSha as commitSha };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { commitEntry as a, branch as b, commitDate as c, commitMessage as d, commitSha as e, git as g };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ValueConfig } from './type.mjs';
|
|
2
|
+
|
|
3
|
+
/** Git [branch](https://fakerjs.dev/api/git.html#branch) */
|
|
4
|
+
declare const branch: () => ValueConfig<string>;
|
|
5
|
+
/** Git [commitDate](https://fakerjs.dev/api/git.html#commitDate) */
|
|
6
|
+
declare const commitDate: (options?: {
|
|
7
|
+
refDate?: string | Date | number;
|
|
8
|
+
}) => ValueConfig<string>;
|
|
9
|
+
/** Git [commitEntry](https://fakerjs.dev/api/git.html#commitEntry) */
|
|
10
|
+
declare const commitEntry: (options?: {
|
|
11
|
+
merge?: boolean;
|
|
12
|
+
eol?: "LF" | "CRLF";
|
|
13
|
+
refDate?: string | Date | number;
|
|
14
|
+
}) => ValueConfig<string>;
|
|
15
|
+
/** Git [commitMessage](https://fakerjs.dev/api/git.html#commitMessage) */
|
|
16
|
+
declare const commitMessage: () => ValueConfig<string>;
|
|
17
|
+
/** Git [commitSha](https://fakerjs.dev/api/git.html#commitSha) */
|
|
18
|
+
declare const commitSha: (options?: {
|
|
19
|
+
length?: number;
|
|
20
|
+
}) => ValueConfig<string>;
|
|
21
|
+
|
|
22
|
+
declare const git_branch: typeof branch;
|
|
23
|
+
declare const git_commitDate: typeof commitDate;
|
|
24
|
+
declare const git_commitEntry: typeof commitEntry;
|
|
25
|
+
declare const git_commitMessage: typeof commitMessage;
|
|
26
|
+
declare const git_commitSha: typeof commitSha;
|
|
27
|
+
declare namespace git {
|
|
28
|
+
export { git_branch as branch, git_commitDate as commitDate, git_commitEntry as commitEntry, git_commitMessage as commitMessage, git_commitSha as commitSha };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { commitEntry as a, branch as b, commitDate as c, commitMessage as d, commitSha as e, git as g };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ValueConfig } from './type.js';
|
|
2
|
+
|
|
3
|
+
/** Hacker [abbreviation](https://fakerjs.dev/api/hacker.html#abbreviation) */
|
|
4
|
+
declare const abbreviation: () => ValueConfig<string>;
|
|
5
|
+
/** Hacker [adjective](https://fakerjs.dev/api/hacker.html#adjective) */
|
|
6
|
+
declare const adjective: () => ValueConfig<string>;
|
|
7
|
+
/** Hacker [ingverb](https://fakerjs.dev/api/hacker.html#ingverb) */
|
|
8
|
+
declare const ingverb: () => ValueConfig<string>;
|
|
9
|
+
/** Hacker [noun](https://fakerjs.dev/api/hacker.html#noun) */
|
|
10
|
+
declare const noun: () => ValueConfig<string>;
|
|
11
|
+
/** Hacker [phrase](https://fakerjs.dev/api/hacker.html#phrase) */
|
|
12
|
+
declare const phrase: () => ValueConfig<string>;
|
|
13
|
+
/** Hacker [verb](https://fakerjs.dev/api/hacker.html#verb) */
|
|
14
|
+
declare const verb: () => ValueConfig<string>;
|
|
15
|
+
|
|
16
|
+
declare const hacker_abbreviation: typeof abbreviation;
|
|
17
|
+
declare const hacker_adjective: typeof adjective;
|
|
18
|
+
declare const hacker_ingverb: typeof ingverb;
|
|
19
|
+
declare const hacker_noun: typeof noun;
|
|
20
|
+
declare const hacker_phrase: typeof phrase;
|
|
21
|
+
declare const hacker_verb: typeof verb;
|
|
22
|
+
declare namespace hacker {
|
|
23
|
+
export { hacker_abbreviation as abbreviation, hacker_adjective as adjective, hacker_ingverb as ingverb, hacker_noun as noun, hacker_phrase as phrase, hacker_verb as verb };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { abbreviation as a, adjective as b, hacker as h, ingverb as i, noun as n, phrase as p, verb as v };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ValueConfig } from './type.mjs';
|
|
2
|
+
|
|
3
|
+
/** Hacker [abbreviation](https://fakerjs.dev/api/hacker.html#abbreviation) */
|
|
4
|
+
declare const abbreviation: () => ValueConfig<string>;
|
|
5
|
+
/** Hacker [adjective](https://fakerjs.dev/api/hacker.html#adjective) */
|
|
6
|
+
declare const adjective: () => ValueConfig<string>;
|
|
7
|
+
/** Hacker [ingverb](https://fakerjs.dev/api/hacker.html#ingverb) */
|
|
8
|
+
declare const ingverb: () => ValueConfig<string>;
|
|
9
|
+
/** Hacker [noun](https://fakerjs.dev/api/hacker.html#noun) */
|
|
10
|
+
declare const noun: () => ValueConfig<string>;
|
|
11
|
+
/** Hacker [phrase](https://fakerjs.dev/api/hacker.html#phrase) */
|
|
12
|
+
declare const phrase: () => ValueConfig<string>;
|
|
13
|
+
/** Hacker [verb](https://fakerjs.dev/api/hacker.html#verb) */
|
|
14
|
+
declare const verb: () => ValueConfig<string>;
|
|
15
|
+
|
|
16
|
+
declare const hacker_abbreviation: typeof abbreviation;
|
|
17
|
+
declare const hacker_adjective: typeof adjective;
|
|
18
|
+
declare const hacker_ingverb: typeof ingverb;
|
|
19
|
+
declare const hacker_noun: typeof noun;
|
|
20
|
+
declare const hacker_phrase: typeof phrase;
|
|
21
|
+
declare const hacker_verb: typeof verb;
|
|
22
|
+
declare namespace hacker {
|
|
23
|
+
export { hacker_abbreviation as abbreviation, hacker_adjective as adjective, hacker_ingverb as ingverb, hacker_noun as noun, hacker_phrase as phrase, hacker_verb as verb };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { abbreviation as a, adjective as b, hacker as h, ingverb as i, noun as n, phrase as p, verb as v };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ValueConfig } from './type.mjs';
|
|
2
|
+
|
|
3
|
+
/** Image [avatar](https://fakerjs.dev/api/image.html#avatar) */
|
|
4
|
+
declare const avatar: () => ValueConfig<string>;
|
|
5
|
+
/** Image [avatarGitHub](https://fakerjs.dev/api/image.html#avatarGitHub) */
|
|
6
|
+
declare const avatarGitHub: () => ValueConfig<string>;
|
|
7
|
+
/** Image [avatarLegacy](https://fakerjs.dev/api/image.html#avatarLegacy) */
|
|
8
|
+
declare const avatarLegacy: () => ValueConfig<string>;
|
|
9
|
+
/** Image [dataUri](https://fakerjs.dev/api/image.html#dataUri) */
|
|
10
|
+
declare const dataUri: (options?: {
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
type?: "svg-uri" | "svg-base64";
|
|
15
|
+
}) => ValueConfig<string>;
|
|
16
|
+
/** Image [url](https://fakerjs.dev/api/image.html#url) */
|
|
17
|
+
declare const url: (options?: {
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
}) => ValueConfig<string>;
|
|
21
|
+
/** Image [urlLoremFlickr](https://fakerjs.dev/api/image.html#urlLoremFlickr) */
|
|
22
|
+
declare const urlLoremFlickr: (options?: {
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
category?: string;
|
|
26
|
+
}) => ValueConfig<string>;
|
|
27
|
+
/** Image [urlPicsumPhotos](https://fakerjs.dev/api/image.html#urlPicsumPhotos) */
|
|
28
|
+
declare const urlPicsumPhotos: (options?: {
|
|
29
|
+
width?: number;
|
|
30
|
+
height?: number;
|
|
31
|
+
grayscale?: boolean;
|
|
32
|
+
blur?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
33
|
+
}) => ValueConfig<string>;
|
|
34
|
+
/** Image [urlPlaceholder](https://fakerjs.dev/api/image.html#urlPlaceholder) */
|
|
35
|
+
declare const urlPlaceholder: (options?: {
|
|
36
|
+
width?: number;
|
|
37
|
+
height?: number;
|
|
38
|
+
backgroundColor?: string;
|
|
39
|
+
textColor?: string;
|
|
40
|
+
format?: "gif" | "jpeg" | "jpg" | "png" | "webp";
|
|
41
|
+
text?: string;
|
|
42
|
+
}) => ValueConfig<string>;
|
|
43
|
+
|
|
44
|
+
declare const image_avatar: typeof avatar;
|
|
45
|
+
declare const image_avatarGitHub: typeof avatarGitHub;
|
|
46
|
+
declare const image_avatarLegacy: typeof avatarLegacy;
|
|
47
|
+
declare const image_dataUri: typeof dataUri;
|
|
48
|
+
declare const image_url: typeof url;
|
|
49
|
+
declare const image_urlLoremFlickr: typeof urlLoremFlickr;
|
|
50
|
+
declare const image_urlPicsumPhotos: typeof urlPicsumPhotos;
|
|
51
|
+
declare const image_urlPlaceholder: typeof urlPlaceholder;
|
|
52
|
+
declare namespace image {
|
|
53
|
+
export { image_avatar as avatar, image_avatarGitHub as avatarGitHub, image_avatarLegacy as avatarLegacy, image_dataUri as dataUri, image_url as url, image_urlLoremFlickr as urlLoremFlickr, image_urlPicsumPhotos as urlPicsumPhotos, image_urlPlaceholder as urlPlaceholder };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { avatar as a, avatarGitHub as b, avatarLegacy as c, dataUri as d, urlLoremFlickr as e, urlPicsumPhotos as f, urlPlaceholder as g, image as i, url as u };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ValueConfig } from './type.js';
|
|
2
|
+
|
|
3
|
+
/** Image [avatar](https://fakerjs.dev/api/image.html#avatar) */
|
|
4
|
+
declare const avatar: () => ValueConfig<string>;
|
|
5
|
+
/** Image [avatarGitHub](https://fakerjs.dev/api/image.html#avatarGitHub) */
|
|
6
|
+
declare const avatarGitHub: () => ValueConfig<string>;
|
|
7
|
+
/** Image [avatarLegacy](https://fakerjs.dev/api/image.html#avatarLegacy) */
|
|
8
|
+
declare const avatarLegacy: () => ValueConfig<string>;
|
|
9
|
+
/** Image [dataUri](https://fakerjs.dev/api/image.html#dataUri) */
|
|
10
|
+
declare const dataUri: (options?: {
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
type?: "svg-uri" | "svg-base64";
|
|
15
|
+
}) => ValueConfig<string>;
|
|
16
|
+
/** Image [url](https://fakerjs.dev/api/image.html#url) */
|
|
17
|
+
declare const url: (options?: {
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
}) => ValueConfig<string>;
|
|
21
|
+
/** Image [urlLoremFlickr](https://fakerjs.dev/api/image.html#urlLoremFlickr) */
|
|
22
|
+
declare const urlLoremFlickr: (options?: {
|
|
23
|
+
width?: number;
|
|
24
|
+
height?: number;
|
|
25
|
+
category?: string;
|
|
26
|
+
}) => ValueConfig<string>;
|
|
27
|
+
/** Image [urlPicsumPhotos](https://fakerjs.dev/api/image.html#urlPicsumPhotos) */
|
|
28
|
+
declare const urlPicsumPhotos: (options?: {
|
|
29
|
+
width?: number;
|
|
30
|
+
height?: number;
|
|
31
|
+
grayscale?: boolean;
|
|
32
|
+
blur?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
33
|
+
}) => ValueConfig<string>;
|
|
34
|
+
/** Image [urlPlaceholder](https://fakerjs.dev/api/image.html#urlPlaceholder) */
|
|
35
|
+
declare const urlPlaceholder: (options?: {
|
|
36
|
+
width?: number;
|
|
37
|
+
height?: number;
|
|
38
|
+
backgroundColor?: string;
|
|
39
|
+
textColor?: string;
|
|
40
|
+
format?: "gif" | "jpeg" | "jpg" | "png" | "webp";
|
|
41
|
+
text?: string;
|
|
42
|
+
}) => ValueConfig<string>;
|
|
43
|
+
|
|
44
|
+
declare const image_avatar: typeof avatar;
|
|
45
|
+
declare const image_avatarGitHub: typeof avatarGitHub;
|
|
46
|
+
declare const image_avatarLegacy: typeof avatarLegacy;
|
|
47
|
+
declare const image_dataUri: typeof dataUri;
|
|
48
|
+
declare const image_url: typeof url;
|
|
49
|
+
declare const image_urlLoremFlickr: typeof urlLoremFlickr;
|
|
50
|
+
declare const image_urlPicsumPhotos: typeof urlPicsumPhotos;
|
|
51
|
+
declare const image_urlPlaceholder: typeof urlPlaceholder;
|
|
52
|
+
declare namespace image {
|
|
53
|
+
export { image_avatar as avatar, image_avatarGitHub as avatarGitHub, image_avatarLegacy as avatarLegacy, image_dataUri as dataUri, image_url as url, image_urlLoremFlickr as urlLoremFlickr, image_urlPicsumPhotos as urlPicsumPhotos, image_urlPlaceholder as urlPlaceholder };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { avatar as a, avatarGitHub as b, avatarLegacy as c, dataUri as d, urlLoremFlickr as e, urlPicsumPhotos as f, urlPlaceholder as g, image as i, url as u };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,57 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @return {ValueConfig} The configuration object with the type "value" and the provided generate function.
|
|
7
|
-
*/
|
|
8
|
-
declare const createValueConfig: <T>(generateFn: () => T) => ValueConfig<T>;
|
|
9
|
-
/**
|
|
10
|
-
* selection
|
|
11
|
-
* @param {Array} items - The array of items to choose from.
|
|
12
|
-
* @return {SelectionConfig} The configuration object with the type "select" and the provided items.
|
|
13
|
-
*/
|
|
14
|
-
declare const createSelectionConfig: <T>(items: T[]) => SelectionConfig<T>;
|
|
15
|
-
/**
|
|
16
|
-
* object
|
|
17
|
-
* @param {object} content
|
|
18
|
-
* @return {ObjectConfig}
|
|
19
|
-
*/
|
|
20
|
-
declare const createObjectConfig: <T extends object>(content: T) => ObjectConfig<T>;
|
|
21
|
-
/**
|
|
22
|
-
* array
|
|
23
|
-
* @param {object} item
|
|
24
|
-
* @param {number} len
|
|
25
|
-
* @return {ArrayConfig}
|
|
26
|
-
*/
|
|
27
|
-
declare const createArrayConfig: <T>(item: T, len: number) => ArrayConfig<T>;
|
|
28
|
-
/**
|
|
29
|
-
* tuple
|
|
30
|
-
* @param {Array} configItems
|
|
31
|
-
* @return {TupleConfig}
|
|
32
|
-
*/
|
|
33
|
-
interface CreateTupleConfig {
|
|
34
|
-
<A, B, C, D, E>(configItems: [A, B, C, D, E]): TupleConfig<A, B, C, D, E>;
|
|
35
|
-
<A, B, C, D>(configItems: [A, B, C, D]): TupleConfig<A, B, C, D>;
|
|
36
|
-
<A, B, C>(configItems: [A, B, C]): TupleConfig<A, B, C>;
|
|
37
|
-
<A, B>(configItems: [A, B]): TupleConfig<A, B>;
|
|
38
|
-
<A>(configItems: [A]): TupleConfig<A>;
|
|
39
|
-
}
|
|
40
|
-
declare const createTupleConfig: CreateTupleConfig;
|
|
41
|
-
/**
|
|
42
|
-
* bounded series
|
|
43
|
-
* @param {{ upperLimit: number, lowerLimit: number, createInitValue: () => number, count: number }} config
|
|
44
|
-
* @return {BoundedSeriesConfig}
|
|
45
|
-
*/
|
|
46
|
-
declare const createBoundedSeriesConfig: (config: Omit<BoundedSeriesConfig, "type">) => BoundedSeriesConfig;
|
|
47
|
-
|
|
48
|
-
type AllConfig<T> = ValueConfig<T> | SelectionConfig<T> | ArrayConfig<T> | ObjectConfig<T> | TupleConfig<T> | TupleConfig<T, T> | TupleConfig<T, T, T> | TupleConfig<T, T, T, T> | TupleConfig<T, T, T, T, T> | BoundedSeriesConfig;
|
|
49
|
-
declare const createValueGenerator: <R = unknown>(config: ValueConfig<unknown>) => (() => R);
|
|
50
|
-
declare const createSelectionGenerator: <T extends SelectionConfig<unknown>>(config: T) => (() => Result<T>);
|
|
51
|
-
declare const createObjectGenerator: <T extends ObjectConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path?: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
52
|
-
declare const createArrayGenerator: <T extends ArrayConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path?: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
53
|
-
declare const createTupleGenerator: <T extends TupleConfig<unknown, unknown, unknown, unknown, unknown> | TupleConfig<unknown, unknown, unknown, unknown> | TupleConfig<unknown, unknown, unknown> | TupleConfig<unknown, unknown> | TupleConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
54
|
-
declare const createBoundedSeriesGenerator: <T extends BoundedSeriesConfig>(config: T) => (() => Result<T>);
|
|
55
|
-
declare const createGeneratorByType: <T extends AllConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
56
|
-
|
|
57
|
-
export { ArrayConfig, BoundedSeriesConfig, ObjectConfig, Result, SelectionConfig, TupleConfig, ValueConfig, createArrayConfig, createArrayGenerator, createBoundedSeriesConfig, createBoundedSeriesGenerator, createGeneratorByType, createObjectConfig, createObjectGenerator, createSelectionConfig, createSelectionGenerator, createTupleConfig, createTupleGenerator, createValueConfig, createValueGenerator };
|
|
1
|
+
export { createArrayConfig, createBoundedSeriesConfig, createObjectConfig, createSelectionConfig, createTupleConfig, createValueConfig } from './create_config.mjs';
|
|
2
|
+
export { createArrayGenerator, createBoundedSeriesGenerator, createGeneratorByType, createObjectGenerator, createSelectionGenerator, createTupleGenerator, createValueGenerator } from './create_generator_fn.mjs';
|
|
3
|
+
export { ArrayConfig, BoundedSeriesConfig, ObjectConfig, Result, SelectionConfig, TupleConfig, TupleItems, ValueConfig } from './type.mjs';
|
|
4
|
+
export { c as StructConfig } from './config-C1N2Brw-.mjs';
|
|
5
|
+
export { g as StructGenerator } from './generator_fn-CJDbnCZl.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,57 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @return {ValueConfig} The configuration object with the type "value" and the provided generate function.
|
|
7
|
-
*/
|
|
8
|
-
declare const createValueConfig: <T>(generateFn: () => T) => ValueConfig<T>;
|
|
9
|
-
/**
|
|
10
|
-
* selection
|
|
11
|
-
* @param {Array} items - The array of items to choose from.
|
|
12
|
-
* @return {SelectionConfig} The configuration object with the type "select" and the provided items.
|
|
13
|
-
*/
|
|
14
|
-
declare const createSelectionConfig: <T>(items: T[]) => SelectionConfig<T>;
|
|
15
|
-
/**
|
|
16
|
-
* object
|
|
17
|
-
* @param {object} content
|
|
18
|
-
* @return {ObjectConfig}
|
|
19
|
-
*/
|
|
20
|
-
declare const createObjectConfig: <T extends object>(content: T) => ObjectConfig<T>;
|
|
21
|
-
/**
|
|
22
|
-
* array
|
|
23
|
-
* @param {object} item
|
|
24
|
-
* @param {number} len
|
|
25
|
-
* @return {ArrayConfig}
|
|
26
|
-
*/
|
|
27
|
-
declare const createArrayConfig: <T>(item: T, len: number) => ArrayConfig<T>;
|
|
28
|
-
/**
|
|
29
|
-
* tuple
|
|
30
|
-
* @param {Array} configItems
|
|
31
|
-
* @return {TupleConfig}
|
|
32
|
-
*/
|
|
33
|
-
interface CreateTupleConfig {
|
|
34
|
-
<A, B, C, D, E>(configItems: [A, B, C, D, E]): TupleConfig<A, B, C, D, E>;
|
|
35
|
-
<A, B, C, D>(configItems: [A, B, C, D]): TupleConfig<A, B, C, D>;
|
|
36
|
-
<A, B, C>(configItems: [A, B, C]): TupleConfig<A, B, C>;
|
|
37
|
-
<A, B>(configItems: [A, B]): TupleConfig<A, B>;
|
|
38
|
-
<A>(configItems: [A]): TupleConfig<A>;
|
|
39
|
-
}
|
|
40
|
-
declare const createTupleConfig: CreateTupleConfig;
|
|
41
|
-
/**
|
|
42
|
-
* bounded series
|
|
43
|
-
* @param {{ upperLimit: number, lowerLimit: number, createInitValue: () => number, count: number }} config
|
|
44
|
-
* @return {BoundedSeriesConfig}
|
|
45
|
-
*/
|
|
46
|
-
declare const createBoundedSeriesConfig: (config: Omit<BoundedSeriesConfig, "type">) => BoundedSeriesConfig;
|
|
47
|
-
|
|
48
|
-
type AllConfig<T> = ValueConfig<T> | SelectionConfig<T> | ArrayConfig<T> | ObjectConfig<T> | TupleConfig<T> | TupleConfig<T, T> | TupleConfig<T, T, T> | TupleConfig<T, T, T, T> | TupleConfig<T, T, T, T, T> | BoundedSeriesConfig;
|
|
49
|
-
declare const createValueGenerator: <R = unknown>(config: ValueConfig<unknown>) => (() => R);
|
|
50
|
-
declare const createSelectionGenerator: <T extends SelectionConfig<unknown>>(config: T) => (() => Result<T>);
|
|
51
|
-
declare const createObjectGenerator: <T extends ObjectConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path?: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
52
|
-
declare const createArrayGenerator: <T extends ArrayConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path?: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
53
|
-
declare const createTupleGenerator: <T extends TupleConfig<unknown, unknown, unknown, unknown, unknown> | TupleConfig<unknown, unknown, unknown, unknown> | TupleConfig<unknown, unknown, unknown> | TupleConfig<unknown, unknown> | TupleConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
54
|
-
declare const createBoundedSeriesGenerator: <T extends BoundedSeriesConfig>(config: T) => (() => Result<T>);
|
|
55
|
-
declare const createGeneratorByType: <T extends AllConfig<unknown>>(config: T, customTypeMatch?: (config: unknown, path: string) => ValueConfig<unknown>) => (() => Result<T>);
|
|
56
|
-
|
|
57
|
-
export { ArrayConfig, BoundedSeriesConfig, ObjectConfig, Result, SelectionConfig, TupleConfig, ValueConfig, createArrayConfig, createArrayGenerator, createBoundedSeriesConfig, createBoundedSeriesGenerator, createGeneratorByType, createObjectConfig, createObjectGenerator, createSelectionConfig, createSelectionGenerator, createTupleConfig, createTupleGenerator, createValueConfig, createValueGenerator };
|
|
1
|
+
export { createArrayConfig, createBoundedSeriesConfig, createObjectConfig, createSelectionConfig, createTupleConfig, createValueConfig } from './create_config.js';
|
|
2
|
+
export { createArrayGenerator, createBoundedSeriesGenerator, createGeneratorByType, createObjectGenerator, createSelectionGenerator, createTupleGenerator, createValueGenerator } from './create_generator_fn.js';
|
|
3
|
+
export { ArrayConfig, BoundedSeriesConfig, ObjectConfig, Result, SelectionConfig, TupleConfig, TupleItems, ValueConfig } from './type.js';
|
|
4
|
+
export { c as StructConfig } from './config-BTjogu5M.js';
|
|
5
|
+
export { g as StructGenerator } from './generator_fn-D-npAfnC.js';
|
package/dist/index.js
CHANGED
|
@@ -1,162 +1,44 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
_chunk3HQMGDUFjs.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: _nullishCoalesce(config.len, () => ( 0)) }, itemGeneratorFn);
|
|
74
|
-
};
|
|
75
|
-
var createArrayGenerator = (config, customTypeMatch) => _createArrayGenerator(config, "*", customTypeMatch);
|
|
76
|
-
var _createTupleGenerator = (config, path, customTypeMatch) => {
|
|
77
|
-
try {
|
|
78
|
-
_chunk3HQMGDUFjs.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
|
-
_chunk3HQMGDUFjs.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 = _chunk4UGSTE5Qjs.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);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
exports.createArrayConfig = _chunk3HQMGDUFjs.createArrayConfig; exports.createArrayGenerator = createArrayGenerator; exports.createBoundedSeriesConfig = _chunk3HQMGDUFjs.createBoundedSeriesConfig; exports.createBoundedSeriesGenerator = createBoundedSeriesGenerator; exports.createGeneratorByType = createGeneratorByType; exports.createObjectConfig = _chunk3HQMGDUFjs.createObjectConfig; exports.createObjectGenerator = createObjectGenerator; exports.createSelectionConfig = _chunk3HQMGDUFjs.createSelectionConfig; exports.createSelectionGenerator = createSelectionGenerator; exports.createTupleConfig = _chunk3HQMGDUFjs.createTupleConfig; exports.createTupleGenerator = createTupleGenerator; exports.createValueConfig = _chunk3HQMGDUFjs.createValueConfig; exports.createValueGenerator = createValueGenerator;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-SN4QTD6R.js');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk52ZOIHJMjs = require('./chunk-52ZOIHJM.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkW6QSJNDJjs = require('./chunk-W6QSJNDJ.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkXI5L2ENLjs = require('./chunk-XI5L2ENL.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunkHMDAKHLFjs = require('./chunk-HMDAKHLF.js');
|
|
25
|
+
require('./chunk-TZ2RKEBF.js');
|
|
26
|
+
require('./chunk-A4QVPMYT.js');
|
|
27
|
+
require('./chunk-4VNS5WPM.js');
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
exports.StructConfig = _chunk52ZOIHJMjs.config_exports; exports.StructGenerator = _chunkXI5L2ENLjs.generator_fn_exports; exports.createArrayConfig = _chunkW6QSJNDJjs.createArrayConfig; exports.createArrayGenerator = _chunkHMDAKHLFjs.createArrayGenerator; exports.createBoundedSeriesConfig = _chunkW6QSJNDJjs.createBoundedSeriesConfig; exports.createBoundedSeriesGenerator = _chunkHMDAKHLFjs.createBoundedSeriesGenerator; exports.createGeneratorByType = _chunkHMDAKHLFjs.createGeneratorByType; exports.createObjectConfig = _chunkW6QSJNDJjs.createObjectConfig; exports.createObjectGenerator = _chunkHMDAKHLFjs.createObjectGenerator; exports.createSelectionConfig = _chunkW6QSJNDJjs.createSelectionConfig; exports.createSelectionGenerator = _chunkHMDAKHLFjs.createSelectionGenerator; exports.createTupleConfig = _chunkW6QSJNDJjs.createTupleConfig; exports.createTupleGenerator = _chunkHMDAKHLFjs.createTupleGenerator; exports.createValueConfig = _chunkW6QSJNDJjs.createValueConfig; exports.createValueGenerator = _chunkHMDAKHLFjs.createValueGenerator;
|