struct-fakerator 2.6.9 → 2.8.9
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/README.md +148 -93
- package/biome.json +30 -26
- package/dist/config.d.ts +1 -2
- package/dist/config.js +51 -19
- package/dist/config.mjs +2 -19
- package/dist/config_scheme.d.ts +7 -10
- package/dist/config_scheme.js +95 -17
- package/dist/config_scheme.mjs +46 -17
- package/dist/create_config.d.ts +9 -11
- package/dist/create_config.js +110 -18
- package/dist/create_config.mjs +60 -17
- package/dist/create_config.test.d.ts +1 -2
- package/dist/create_generator_fn.d.ts +9 -11
- package/dist/create_generator_fn.js +168 -21
- package/dist/create_generator_fn.mjs +115 -20
- package/dist/create_generator_fn.test.d.ts +1 -2
- package/dist/generator_fn.d.ts +1 -2
- package/dist/generator_fn.js +54 -22
- package/dist/generator_fn.mjs +2 -22
- package/dist/index.d.ts +5 -5
- package/dist/index.js +107 -44
- package/dist/index.mjs +6 -44
- package/dist/type.d.ts +10 -12
- package/dist/type.js +18 -1
- package/dist/type.mjs +0 -1
- package/dist/utils/airline.d.ts +14 -3
- package/dist/utils/airline.js +46 -15
- package/dist/utils/airline.mjs +6 -15
- package/dist/utils/animal.d.ts +30 -2
- package/dist/utils/animal.js +94 -39
- package/dist/utils/animal.mjs +18 -39
- package/dist/utils/color.d.ts +41 -3
- package/dist/utils/color.js +78 -31
- package/dist/utils/color.mjs +14 -31
- package/dist/utils/commerce.d.ts +24 -2
- package/dist/utils/commerce.js +66 -25
- package/dist/utils/commerce.mjs +11 -25
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/common.js +37 -9
- package/dist/utils/common.mjs +3 -9
- package/dist/utils/company.d.ts +18 -2
- package/dist/utils/company.js +70 -27
- package/dist/utils/company.mjs +12 -27
- package/dist/utils/database.d.ts +10 -2
- package/dist/utils/database.js +54 -19
- package/dist/utils/database.mjs +8 -19
- package/dist/utils/datatype.d.ts +4 -2
- package/dist/utils/datatype.js +38 -11
- package/dist/utils/datatype.mjs +4 -11
- package/dist/utils/datetime.d.ts +59 -2
- package/dist/utils/datetime.js +78 -31
- package/dist/utils/datetime.mjs +14 -31
- package/dist/utils/finance.d.ts +62 -3
- package/dist/utils/finance.js +110 -47
- package/dist/utils/finance.mjs +22 -47
- package/dist/utils/food.d.ts +18 -2
- package/dist/utils/food.js +70 -27
- package/dist/utils/food.mjs +12 -27
- package/dist/utils/git.d.ts +18 -2
- package/dist/utils/git.js +54 -19
- package/dist/utils/git.mjs +8 -19
- package/dist/utils/hacker.d.ts +12 -2
- package/dist/utils/hacker.js +58 -21
- package/dist/utils/hacker.mjs +9 -21
- package/dist/utils/image.d.ts +40 -2
- package/dist/utils/image.js +66 -25
- package/dist/utils/image.mjs +11 -25
- package/dist/utils/index.d.ts +26 -28
- package/dist/utils/index.js +136 -110
- package/dist/utils/index.mjs +27 -110
- package/dist/utils/internet.d.ts +77 -3
- package/dist/utils/internet.js +114 -49
- package/dist/utils/internet.mjs +23 -49
- package/dist/utils/location.d.ts +56 -2
- package/dist/utils/location.js +98 -41
- package/dist/utils/location.mjs +19 -41
- package/dist/utils/lorem.d.ts +45 -2
- package/dist/utils/lorem.js +70 -27
- package/dist/utils/lorem.mjs +12 -27
- package/dist/utils/music.d.ts +8 -2
- package/dist/utils/music.js +50 -17
- package/dist/utils/music.mjs +7 -17
- package/dist/utils/number.d.ts +34 -2
- package/dist/utils/number.js +58 -21
- package/dist/utils/number.mjs +9 -21
- package/dist/utils/person.d.ts +34 -3
- package/dist/utils/person.js +94 -39
- package/dist/utils/person.mjs +18 -39
- package/dist/utils/phone.d.ts +6 -2
- package/dist/utils/phone.js +42 -13
- package/dist/utils/phone.mjs +5 -13
- package/dist/utils/science.d.ts +4 -3
- package/dist/utils/science.js +42 -13
- package/dist/utils/science.mjs +5 -13
- package/dist/utils/string.d.ts +69 -2
- package/dist/utils/string.js +74 -29
- package/dist/utils/string.mjs +13 -29
- package/dist/utils/system.d.ts +35 -2
- package/dist/utils/system.js +82 -33
- package/dist/utils/system.mjs +15 -33
- package/dist/utils/utils.d.ts +2 -2
- package/dist/utils/utils.js +39 -9
- package/dist/utils/utils.mjs +5 -9
- package/dist/utils/vehicle.d.ts +18 -2
- package/dist/utils/vehicle.js +70 -27
- package/dist/utils/vehicle.mjs +12 -27
- package/dist/utils/word.d.ts +18 -22
- package/dist/utils/word.js +70 -31
- package/dist/utils/word.mjs +12 -31
- package/package.json +10 -31
- package/pnpm-workspace.yaml +2 -0
- package/rslib.config.ts +26 -0
- package/src/config.ts +3 -3
- package/src/config_scheme.ts +1 -1
- package/src/create_config.test.ts +0 -1
- package/src/create_config.ts +1 -1
- package/src/create_generator_fn.test.ts +13 -2
- package/src/create_generator_fn.ts +5 -5
- package/src/generator_fn.ts +1 -1
- package/src/index.ts +2 -2
- package/src/type.ts +1 -1
- package/src/utils/index.ts +1 -2
- package/src/utils/internet.ts +1 -1
- package/src/utils/utils.ts +1 -1
- package/tsconfig.json +2 -1
- package/dist/airline-98MCzMN8.d.ts +0 -26
- package/dist/airline-CuAxOEYH.d.mts +0 -26
- package/dist/animal-BohQ7s0w.d.mts +0 -53
- package/dist/animal-o8BFF7gd.d.ts +0 -53
- package/dist/chunk-23I6D5SJ.js +0 -57
- package/dist/chunk-3KXIZTCT.mjs +0 -20
- package/dist/chunk-3U6BNHWG.mjs +0 -2040
- package/dist/chunk-4DDCMYY5.mjs +0 -57
- package/dist/chunk-4VNS5WPM.js +0 -42
- package/dist/chunk-5KF6D2RT.js +0 -63
- package/dist/chunk-5O3L5474.mjs +0 -45
- package/dist/chunk-5PCDQHI5.mjs +0 -21
- package/dist/chunk-62INTWCD.mjs +0 -36
- package/dist/chunk-6HRHPVPM.js +0 -35
- package/dist/chunk-6UFUX7X4.js +0 -51
- package/dist/chunk-6ZK2LMFM.js +0 -21
- package/dist/chunk-7BIWHK77.js +0 -42
- package/dist/chunk-7UQSPUCL.mjs +0 -0
- package/dist/chunk-7VOPOQZO.js +0 -45
- package/dist/chunk-C3RGM3CB.js +0 -67
- package/dist/chunk-DGW666Q6.mjs +0 -48
- package/dist/chunk-DM5VFX6B.js +0 -17008
- package/dist/chunk-DTC7Q7P5.js +0 -45
- package/dist/chunk-EM67LVYX.mjs +0 -18
- package/dist/chunk-EMCK2BLM.js +0 -45
- package/dist/chunk-ES2CYGB7.js +0 -24
- package/dist/chunk-ET6EJB33.js +0 -36
- package/dist/chunk-EYOBG3PQ.mjs +0 -45
- package/dist/chunk-F4GVSNLH.js +0 -30
- package/dist/chunk-G43WDHZO.mjs +0 -63
- package/dist/chunk-GJSTX6ZS.mjs +0 -24
- package/dist/chunk-GYF6YSNX.js +0 -74
- package/dist/chunk-HBJP434N.mjs +0 -78
- package/dist/chunk-IAR3DUKD.js +0 -49
- package/dist/chunk-IL4E3ZNB.js +0 -78
- package/dist/chunk-IOXGSFEU.js +0 -20
- package/dist/chunk-JB6NCVX3.mjs +0 -63
- package/dist/chunk-JGY3KVDU.mjs +0 -45
- package/dist/chunk-JWCDEYMY.js +0 -48
- package/dist/chunk-LSFOERXQ.js +0 -18
- package/dist/chunk-MGR2M7BS.mjs +0 -56
- package/dist/chunk-MLJAHDYX.mjs +0 -167
- package/dist/chunk-MROZIQOV.mjs +0 -51
- package/dist/chunk-NHYNERHW.js +0 -56
- package/dist/chunk-PGSJJESY.js +0 -27
- package/dist/chunk-QTVSUA5W.mjs +0 -24
- package/dist/chunk-QZQ32UPU.mjs +0 -28
- package/dist/chunk-R2MQ3IW5.mjs +0 -33
- package/dist/chunk-RD2SB2KT.js +0 -36
- package/dist/chunk-RDZI4CMI.mjs +0 -42
- package/dist/chunk-RTYV5XDU.mjs +0 -36
- package/dist/chunk-RZPUHXXO.mjs +0 -49
- package/dist/chunk-SD3HVRQN.mjs +0 -48
- package/dist/chunk-SN4QTD6R.js +0 -1
- package/dist/chunk-TA725QXR.mjs +0 -35
- package/dist/chunk-TXAOQHVV.mjs +0 -27
- package/dist/chunk-TZ2RKEBF.js +0 -2040
- package/dist/chunk-U7MLTDS4.js +0 -167
- package/dist/chunk-UIYW7U2O.js +0 -28
- package/dist/chunk-UP2JIDGZ.js +0 -81
- package/dist/chunk-USLYTOPD.mjs +0 -41
- package/dist/chunk-V2AWKRQI.js +0 -26
- package/dist/chunk-VE3Q5LC3.mjs +0 -26
- package/dist/chunk-VG6JYCUC.mjs +0 -74
- package/dist/chunk-VMSMHNPY.js +0 -48
- package/dist/chunk-VSZRD7CB.js +0 -33
- package/dist/chunk-VX2IFBCP.mjs +0 -17008
- package/dist/chunk-WLKNXHFN.mjs +0 -30
- package/dist/chunk-XGB3TDIC.mjs +0 -42
- package/dist/chunk-YXGKUR3R.js +0 -63
- package/dist/chunk-Z5BNMPTX.mjs +0 -81
- package/dist/chunk-ZQA42PYM.mjs +0 -67
- package/dist/chunk-ZSR4TJQG.js +0 -24
- package/dist/chunk-ZWLHVT5O.js +0 -41
- package/dist/color-BT6BF8oV.d.mts +0 -61
- package/dist/color-lBH29suB.d.ts +0 -61
- package/dist/commerce-BqVjXEhQ.d.mts +0 -40
- package/dist/commerce-mdOpchjx.d.ts +0 -40
- package/dist/common-IR_KozaJ.d.mts +0 -11
- package/dist/common-t-ZQebCq.d.ts +0 -11
- package/dist/company-C3EU1J7k.d.ts +0 -35
- package/dist/company-cR_0hm6U.d.mts +0 -35
- package/dist/config-BTjogu5M.d.ts +0 -7
- package/dist/config-C1N2Brw-.d.mts +0 -7
- package/dist/config.d.mts +0 -2
- package/dist/config_scheme.d.mts +0 -32
- package/dist/create_config.d.mts +0 -58
- package/dist/create_config.test.d.mts +0 -2
- package/dist/create_config.test.js +0 -63
- package/dist/create_config.test.mjs +0 -63
- package/dist/create_generator_fn.d.mts +0 -12
- package/dist/create_generator_fn.test.d.mts +0 -2
- package/dist/create_generator_fn.test.js +0 -191
- package/dist/create_generator_fn.test.mjs +0 -191
- package/dist/database-DV9wgnca.d.ts +0 -23
- package/dist/database-UzO1Lwec.d.mts +0 -23
- package/dist/datatype-C92TZLxo.d.ts +0 -13
- package/dist/datatype-DZjmP0fA.d.mts +0 -13
- package/dist/datetime-CSUpnUXU.d.ts +0 -78
- package/dist/datetime-dnPA_lnt.d.mts +0 -78
- package/dist/finance-CstKW1nH.d.mts +0 -90
- package/dist/finance-gj0fiEmf.d.ts +0 -90
- package/dist/food-CInj1GX2.d.ts +0 -35
- package/dist/food-Dk3-40CY.d.mts +0 -35
- package/dist/generator_fn-CJDbnCZl.d.mts +0 -7
- package/dist/generator_fn-D-npAfnC.d.ts +0 -7
- package/dist/generator_fn.d.mts +0 -2
- package/dist/git-BHL1ppL4.d.ts +0 -31
- package/dist/git-w0nznSjX.d.mts +0 -31
- package/dist/hacker-DL7pR6JO.d.ts +0 -26
- package/dist/hacker-FcQXZGtz.d.mts +0 -26
- package/dist/image-B5OPCNhD.d.mts +0 -56
- package/dist/image-IyGCgqNf.d.ts +0 -56
- package/dist/index.d.mts +0 -5
- package/dist/internet-BukCBMX-.d.ts +0 -106
- package/dist/internet-C2ElurWb.d.mts +0 -106
- package/dist/location-BIZ-KsaI.d.ts +0 -80
- package/dist/location-WU_nRdjx.d.mts +0 -80
- package/dist/lorem-OlHaVntu.d.mts +0 -62
- package/dist/lorem-yMyLb-d-.d.ts +0 -62
- package/dist/magic-string.es-2DLPM6Q3.js +0 -1299
- package/dist/magic-string.es-NHTKQXSF.mjs +0 -1299
- package/dist/music-P8XZ4JSO.d.ts +0 -20
- package/dist/music-vcWm9dzu.d.mts +0 -20
- package/dist/number-BfwwKvTJ.d.mts +0 -48
- package/dist/number-D5QmTRsK.d.ts +0 -48
- package/dist/person-DXne2mKX.d.ts +0 -58
- package/dist/person-Si_vy67g.d.mts +0 -58
- package/dist/phone-Cbxvm_Qv.d.ts +0 -16
- package/dist/phone-g4FDs50M.d.mts +0 -16
- package/dist/science-BX8WhoEY.d.ts +0 -15
- package/dist/science-BfA9sVXz.d.mts +0 -15
- package/dist/string-DGScZrrP.d.mts +0 -87
- package/dist/string-Do4vhsl0.d.ts +0 -87
- package/dist/system-BpxbduIr.d.ts +0 -55
- package/dist/system-Cy0e05Cr.d.mts +0 -55
- package/dist/test.d.mts +0 -2
- package/dist/test.d.ts +0 -2
- package/dist/test.js +0 -15
- package/dist/test.mjs +0 -15
- package/dist/type.d.mts +0 -93
- package/dist/utils/airline.d.mts +0 -3
- package/dist/utils/animal.d.mts +0 -2
- package/dist/utils/color.d.mts +0 -3
- package/dist/utils/commerce.d.mts +0 -2
- package/dist/utils/common.d.mts +0 -2
- package/dist/utils/company.d.mts +0 -2
- package/dist/utils/database.d.mts +0 -2
- package/dist/utils/datatype.d.mts +0 -2
- package/dist/utils/datetime.d.mts +0 -2
- package/dist/utils/finance.d.mts +0 -3
- package/dist/utils/food.d.mts +0 -2
- package/dist/utils/git.d.mts +0 -2
- package/dist/utils/hacker.d.mts +0 -2
- package/dist/utils/image.d.mts +0 -2
- package/dist/utils/index.d.mts +0 -28
- package/dist/utils/internet.d.mts +0 -3
- package/dist/utils/location.d.mts +0 -2
- package/dist/utils/lorem.d.mts +0 -2
- package/dist/utils/music.d.mts +0 -2
- package/dist/utils/number.d.mts +0 -2
- package/dist/utils/person.d.mts +0 -3
- package/dist/utils/phone.d.mts +0 -2
- package/dist/utils/science.d.mts +0 -3
- package/dist/utils/string.d.mts +0 -2
- package/dist/utils/system.d.mts +0 -2
- package/dist/utils/utils.d.mts +0 -2
- package/dist/utils/vehicle.d.mts +0 -2
- package/dist/utils/word.d.mts +0 -75
- package/dist/utils-BImnOpvp.d.ts +0 -10
- package/dist/utils-zJKwaMUY.d.mts +0 -10
- package/dist/vehicle-D4yBDYMc.d.mts +0 -35
- package/dist/vehicle-Ufz4AoXu.d.ts +0 -35
- package/src/test.ts +0 -10
- package/tsup.config.ts +0 -8
package/dist/test.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createObjectConfig,
|
|
3
|
-
createValueConfig
|
|
4
|
-
} from "./chunk-ZQA42PYM.mjs";
|
|
5
|
-
import "./chunk-USLYTOPD.mjs";
|
|
6
|
-
import "./chunk-XGB3TDIC.mjs";
|
|
7
|
-
|
|
8
|
-
// src/test.ts
|
|
9
|
-
var a = createObjectConfig(
|
|
10
|
-
{
|
|
11
|
-
a: createValueConfig(() => 1),
|
|
12
|
-
b: createValueConfig(() => 2)
|
|
13
|
-
},
|
|
14
|
-
({ a: a2 }) => a2 + 100
|
|
15
|
-
);
|
package/dist/type.d.mts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
type ValueConfig<T> = {
|
|
2
|
-
type: "value";
|
|
3
|
-
generateFn: () => T;
|
|
4
|
-
};
|
|
5
|
-
type SelectionConfig<T> = {
|
|
6
|
-
type: "select";
|
|
7
|
-
items: T[];
|
|
8
|
-
};
|
|
9
|
-
type BoundedSeriesConfig = {
|
|
10
|
-
type: "bounded_series";
|
|
11
|
-
upperLimit: number;
|
|
12
|
-
lowerLimit: number;
|
|
13
|
-
createInitValue: () => number;
|
|
14
|
-
count: number;
|
|
15
|
-
};
|
|
16
|
-
type ArrayConfig<T> = {
|
|
17
|
-
type: "arr";
|
|
18
|
-
item: T;
|
|
19
|
-
len: number;
|
|
20
|
-
next?: (v: Result<T>) => Result<T>;
|
|
21
|
-
};
|
|
22
|
-
type ObjectConfig<T> = {
|
|
23
|
-
type: "obj";
|
|
24
|
-
content: T;
|
|
25
|
-
};
|
|
26
|
-
type ObjectConfigWithFn<T, R> = {
|
|
27
|
-
type: "obj";
|
|
28
|
-
content: T;
|
|
29
|
-
transformer: (v: {
|
|
30
|
-
[K in keyof T]: Result<T[K]>;
|
|
31
|
-
}) => R;
|
|
32
|
-
};
|
|
33
|
-
type TupleItems<A, B, C, D, E, F, G, H, I, J> = J extends undefined ? I extends undefined ? H extends undefined ? G extends undefined ? F extends undefined ? E extends undefined ? D extends undefined ? C extends undefined ? B extends undefined ? [A] : [A, B] : [A, B, C] : [A, B, C, D] : [A, B, C, D, E] : [A, B, C, D, E, F] : [A, B, C, D, E, F, G] : [A, B, C, D, E, F, G, H] : [A, B, C, D, E, F, G, H, I] : [A, B, C, D, E, F, G, H, I, J];
|
|
34
|
-
type TupleConfig<A, B = undefined, C = undefined, D = undefined, E = undefined, F = undefined, G = undefined, H = undefined, I = undefined, J = undefined> = {
|
|
35
|
-
type: "tuple";
|
|
36
|
-
configItems: TupleItems<A, B, C, D, E, F, G, H, I, J>;
|
|
37
|
-
};
|
|
38
|
-
type Result<T> = T extends ValueConfig<infer U> ? U : T extends SelectionConfig<infer S> ? S : T extends BoundedSeriesConfig ? number[] : T extends ArrayConfig<infer W> ? Array<Result<W>> : T extends ObjectConfigWithFn<infer _, infer R> ? R : T extends ObjectConfig<infer O> ? {
|
|
39
|
-
[K in keyof O]: Result<O[K]>;
|
|
40
|
-
} : T extends TupleConfig<infer A, infer B, infer C, infer D, infer E, infer F, infer G, infer H, infer I, infer J> ? J extends undefined ? I extends undefined ? H extends undefined ? G extends undefined ? F extends undefined ? E extends undefined ? D extends undefined ? C extends undefined ? B extends undefined ? [Result<A>] : [Result<A>, Result<B>] : [Result<A>, Result<B>, Result<C>] : [Result<A>, Result<B>, Result<C>, Result<D>] : [
|
|
41
|
-
Result<A>,
|
|
42
|
-
Result<B>,
|
|
43
|
-
Result<C>,
|
|
44
|
-
Result<D>,
|
|
45
|
-
Result<E>
|
|
46
|
-
] : [
|
|
47
|
-
Result<A>,
|
|
48
|
-
Result<B>,
|
|
49
|
-
Result<C>,
|
|
50
|
-
Result<D>,
|
|
51
|
-
Result<E>,
|
|
52
|
-
Result<F>
|
|
53
|
-
] : [
|
|
54
|
-
Result<A>,
|
|
55
|
-
Result<B>,
|
|
56
|
-
Result<C>,
|
|
57
|
-
Result<D>,
|
|
58
|
-
Result<E>,
|
|
59
|
-
Result<F>,
|
|
60
|
-
Result<G>
|
|
61
|
-
] : [
|
|
62
|
-
Result<A>,
|
|
63
|
-
Result<B>,
|
|
64
|
-
Result<C>,
|
|
65
|
-
Result<D>,
|
|
66
|
-
Result<E>,
|
|
67
|
-
Result<F>,
|
|
68
|
-
Result<G>,
|
|
69
|
-
Result<H>
|
|
70
|
-
] : [
|
|
71
|
-
Result<A>,
|
|
72
|
-
Result<B>,
|
|
73
|
-
Result<C>,
|
|
74
|
-
Result<D>,
|
|
75
|
-
Result<E>,
|
|
76
|
-
Result<F>,
|
|
77
|
-
Result<G>,
|
|
78
|
-
Result<H>,
|
|
79
|
-
Result<I>
|
|
80
|
-
] : [
|
|
81
|
-
Result<A>,
|
|
82
|
-
Result<B>,
|
|
83
|
-
Result<C>,
|
|
84
|
-
Result<D>,
|
|
85
|
-
Result<E>,
|
|
86
|
-
Result<F>,
|
|
87
|
-
Result<G>,
|
|
88
|
-
Result<H>,
|
|
89
|
-
Result<I>,
|
|
90
|
-
Result<J>
|
|
91
|
-
] : never;
|
|
92
|
-
|
|
93
|
-
export type { ArrayConfig, BoundedSeriesConfig, ObjectConfig, ObjectConfigWithFn, Result, SelectionConfig, TupleConfig, TupleItems, ValueConfig };
|
package/dist/utils/airline.d.mts
DELETED
package/dist/utils/animal.d.mts
DELETED
package/dist/utils/color.d.mts
DELETED
package/dist/utils/common.d.mts
DELETED
package/dist/utils/company.d.mts
DELETED
package/dist/utils/finance.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@faker-js/faker/.';
|
|
2
|
-
import '../type.mjs';
|
|
3
|
-
export { a as accountName, b as accountNumber, c as amount, d as bic, e as bitcoinAddress, g as creditCardCVV, h as creditCardIssuer, i as creditCardNumber, j as currency, k as currencyCode, l as currencySymbol, m as ethereumAddress, n as iban, o as litecoinAddress, p as maskedNumber, q as pin, r as routingNumber, t as transactionDescription, s as transactionType } from '../finance-CstKW1nH.mjs';
|
package/dist/utils/food.d.mts
DELETED
package/dist/utils/git.d.mts
DELETED
package/dist/utils/hacker.d.mts
DELETED
package/dist/utils/image.d.mts
DELETED
package/dist/utils/index.d.mts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { a as Airline } from '../airline-CuAxOEYH.mjs';
|
|
2
|
-
export { a as Animal } from '../animal-BohQ7s0w.mjs';
|
|
3
|
-
export { c as Color } from '../color-BT6BF8oV.mjs';
|
|
4
|
-
export { c as Commerce } from '../commerce-BqVjXEhQ.mjs';
|
|
5
|
-
export { c as Common } from '../common-IR_KozaJ.mjs';
|
|
6
|
-
export { c as Company } from '../company-cR_0hm6U.mjs';
|
|
7
|
-
export { d as Database } from '../database-UzO1Lwec.mjs';
|
|
8
|
-
export { d as Datatype } from '../datatype-DZjmP0fA.mjs';
|
|
9
|
-
export { d as DateTime } from '../datetime-dnPA_lnt.mjs';
|
|
10
|
-
export { f as Finance } from '../finance-CstKW1nH.mjs';
|
|
11
|
-
export { f as Food } from '../food-Dk3-40CY.mjs';
|
|
12
|
-
export { g as Git } from '../git-w0nznSjX.mjs';
|
|
13
|
-
export { h as Hacker } from '../hacker-FcQXZGtz.mjs';
|
|
14
|
-
export { i as Image } from '../image-B5OPCNhD.mjs';
|
|
15
|
-
export { i as Internet } from '../internet-C2ElurWb.mjs';
|
|
16
|
-
export { l as Location } from '../location-WU_nRdjx.mjs';
|
|
17
|
-
export { l as Lorem } from '../lorem-OlHaVntu.mjs';
|
|
18
|
-
export { m as Music } from '../music-vcWm9dzu.mjs';
|
|
19
|
-
export { n as Number } from '../number-BfwwKvTJ.mjs';
|
|
20
|
-
export { p as Person } from '../person-Si_vy67g.mjs';
|
|
21
|
-
export { p as Phone } from '../phone-g4FDs50M.mjs';
|
|
22
|
-
export { s as Science } from '../science-BfA9sVXz.mjs';
|
|
23
|
-
export { s as String } from '../string-DGScZrrP.mjs';
|
|
24
|
-
export { s as System } from '../system-Cy0e05Cr.mjs';
|
|
25
|
-
export { v as Vehicle } from '../vehicle-D4yBDYMc.mjs';
|
|
26
|
-
export { u as utils } from '../utils-zJKwaMUY.mjs';
|
|
27
|
-
import '@faker-js/faker/.';
|
|
28
|
-
import '../type.mjs';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@faker-js/faker/.';
|
|
2
|
-
import '../type.mjs';
|
|
3
|
-
export { c as color, d as displayName, a as domainName, b as domainSuffix, e as domainWord, f as email, g as emoji, h as exampleEmail, j as httpMethod, k as httpStatusCode, l as ip, m as ipv4, n as ipv6, o as mac, p as password, q as port, r as protocol, u as url, s as userAgent, t as userName } from '../internet-C2ElurWb.mjs';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import '../type.mjs';
|
|
2
|
-
export { b as buildingNumber, c as cardinalDirection, a as city, d as country, e as countryCode, f as county, g as direction, h as latitude, i as longitude, n as nearbyGPSCoordinate, o as ordinalDirection, s as secondaryAddress, j as state, k as street, m as streetAddress, t as timeZone } from '../location-WU_nRdjx.mjs';
|
package/dist/utils/lorem.d.mts
DELETED
package/dist/utils/music.d.mts
DELETED
package/dist/utils/number.d.mts
DELETED
package/dist/utils/person.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@faker-js/faker/.';
|
|
2
|
-
import '../type.mjs';
|
|
3
|
-
export { b as bio, f as firstName, a as fullName, g as gender, j as jobArea, c as jobDescriptor, d as jobTitle, e as jobType, l as lastName, m as middleName, h as prefix, s as sex, i as sexType, k as suffix, z as zodiacSign } from '../person-Si_vy67g.mjs';
|
package/dist/utils/phone.d.mts
DELETED
package/dist/utils/science.d.mts
DELETED
package/dist/utils/string.d.mts
DELETED
package/dist/utils/system.d.mts
DELETED
package/dist/utils/utils.d.mts
DELETED
package/dist/utils/vehicle.d.mts
DELETED
package/dist/utils/word.d.mts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ValueConfig } from '../type.mjs';
|
|
2
|
-
|
|
3
|
-
/** Word [adjective](https://fakerjs.dev/word.html#adjective) */
|
|
4
|
-
declare const adjective: (options?: number | {
|
|
5
|
-
length?: number | {
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
};
|
|
9
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
10
|
-
}) => ValueConfig<string>;
|
|
11
|
-
/** Word [adverb](https://fakerjs.dev/word.html#adverb) */
|
|
12
|
-
declare const adverb: (options?: number | {
|
|
13
|
-
length?: number | {
|
|
14
|
-
min: number;
|
|
15
|
-
max: number;
|
|
16
|
-
};
|
|
17
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
18
|
-
}) => ValueConfig<string>;
|
|
19
|
-
/** Word [conjunction](https://fakerjs.dev/word.html#conjunction) */
|
|
20
|
-
declare const conjunction: (options?: number | {
|
|
21
|
-
length?: number | {
|
|
22
|
-
min: number;
|
|
23
|
-
max: number;
|
|
24
|
-
};
|
|
25
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
26
|
-
}) => ValueConfig<string>;
|
|
27
|
-
/** Word [interjection](https://fakerjs.dev/word.html#interjection) */
|
|
28
|
-
declare const interjection: (options?: number | {
|
|
29
|
-
length?: number | {
|
|
30
|
-
min: number;
|
|
31
|
-
max: number;
|
|
32
|
-
};
|
|
33
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
34
|
-
}) => ValueConfig<string>;
|
|
35
|
-
/** Word [noun](https://fakerjs.dev/word.html#noun) */
|
|
36
|
-
declare const noun: (options?: number | {
|
|
37
|
-
length?: number | {
|
|
38
|
-
min: number;
|
|
39
|
-
max: number;
|
|
40
|
-
};
|
|
41
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
42
|
-
}) => ValueConfig<string>;
|
|
43
|
-
/** Word [preposition](https://fakerjs.dev/word.html#preposition) */
|
|
44
|
-
declare const preposition: (options?: number | {
|
|
45
|
-
length?: number | {
|
|
46
|
-
min: number;
|
|
47
|
-
max: number;
|
|
48
|
-
};
|
|
49
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
50
|
-
}) => ValueConfig<string>;
|
|
51
|
-
/** Word [sample](https://fakerjs.dev/word.html#sample) */
|
|
52
|
-
declare const sample: (options?: number | {
|
|
53
|
-
length?: number | {
|
|
54
|
-
min: number;
|
|
55
|
-
max: number;
|
|
56
|
-
};
|
|
57
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
58
|
-
}) => ValueConfig<string>;
|
|
59
|
-
/** Word [verb](https://fakerjs.dev/word.html#verb) */
|
|
60
|
-
declare const verb: (options?: number | {
|
|
61
|
-
length?: number | {
|
|
62
|
-
min: number;
|
|
63
|
-
max: number;
|
|
64
|
-
};
|
|
65
|
-
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
66
|
-
}) => ValueConfig<string>;
|
|
67
|
-
/** Word [words](https://fakerjs.dev/word.html#words) */
|
|
68
|
-
declare const words: (options?: number | {
|
|
69
|
-
count?: number | {
|
|
70
|
-
min: number;
|
|
71
|
-
max: number;
|
|
72
|
-
};
|
|
73
|
-
}) => ValueConfig<string>;
|
|
74
|
-
|
|
75
|
-
export { adjective, adverb, conjunction, interjection, noun, preposition, sample, verb, words };
|
package/dist/utils-BImnOpvp.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValueConfig } from './type.js';
|
|
2
|
-
|
|
3
|
-
declare function makeValueConfigFn<Args extends Array<unknown>, R>(fn: (...options: Args) => R): (...options: Args) => ValueConfig<R>;
|
|
4
|
-
|
|
5
|
-
declare const utils_makeValueConfigFn: typeof makeValueConfigFn;
|
|
6
|
-
declare namespace utils {
|
|
7
|
-
export { utils_makeValueConfigFn as makeValueConfigFn };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { makeValueConfigFn as m, utils as u };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ValueConfig } from './type.mjs';
|
|
2
|
-
|
|
3
|
-
declare function makeValueConfigFn<Args extends Array<unknown>, R>(fn: (...options: Args) => R): (...options: Args) => ValueConfig<R>;
|
|
4
|
-
|
|
5
|
-
declare const utils_makeValueConfigFn: typeof makeValueConfigFn;
|
|
6
|
-
declare namespace utils {
|
|
7
|
-
export { utils_makeValueConfigFn as makeValueConfigFn };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { makeValueConfigFn as m, utils as u };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ValueConfig } from './type.mjs';
|
|
2
|
-
|
|
3
|
-
/** Vehicle [bicycle](https://fakerjs.dev/api/vehicle.html#bicycle) */
|
|
4
|
-
declare const bicycle: () => ValueConfig<string>;
|
|
5
|
-
/** Vehicle [color](https://fakerjs.dev/api/vehicle.html#color) */
|
|
6
|
-
declare const color: () => ValueConfig<string>;
|
|
7
|
-
/** Vehicle [fuel](https://fakerjs.dev/api/vehicle.html#fuel) */
|
|
8
|
-
declare const fuel: () => ValueConfig<string>;
|
|
9
|
-
/** Vehicle [manufacturer](https://fakerjs.dev/api/vehicle.html#manufacturer) */
|
|
10
|
-
declare const manufacturer: () => ValueConfig<string>;
|
|
11
|
-
/** Vehicle [model](https://fakerjs.dev/api/vehicle.html#model) */
|
|
12
|
-
declare const model: () => ValueConfig<string>;
|
|
13
|
-
/** Vehicle [type](https://fakerjs.dev/api/vehicle.html#type) */
|
|
14
|
-
declare const type: () => ValueConfig<string>;
|
|
15
|
-
/** Vehicle [vehicle](https://fakerjs.dev/api/vehicle.html#vehicle) */
|
|
16
|
-
declare const vehicle: () => ValueConfig<string>;
|
|
17
|
-
/** Vehicle [vin](https://fakerjs.dev/api/vehicle.html#vin) */
|
|
18
|
-
declare const vin: () => ValueConfig<string>;
|
|
19
|
-
/** Vehicle [vrm](https://fakerjs.dev/api/vehicle.html#vrm) */
|
|
20
|
-
declare const vrm: () => ValueConfig<string>;
|
|
21
|
-
|
|
22
|
-
declare const vehicle$1_bicycle: typeof bicycle;
|
|
23
|
-
declare const vehicle$1_color: typeof color;
|
|
24
|
-
declare const vehicle$1_fuel: typeof fuel;
|
|
25
|
-
declare const vehicle$1_manufacturer: typeof manufacturer;
|
|
26
|
-
declare const vehicle$1_model: typeof model;
|
|
27
|
-
declare const vehicle$1_type: typeof type;
|
|
28
|
-
declare const vehicle$1_vehicle: typeof vehicle;
|
|
29
|
-
declare const vehicle$1_vin: typeof vin;
|
|
30
|
-
declare const vehicle$1_vrm: typeof vrm;
|
|
31
|
-
declare namespace vehicle$1 {
|
|
32
|
-
export { vehicle$1_bicycle as bicycle, vehicle$1_color as color, vehicle$1_fuel as fuel, vehicle$1_manufacturer as manufacturer, vehicle$1_model as model, vehicle$1_type as type, vehicle$1_vehicle as vehicle, vehicle$1_vin as vin, vehicle$1_vrm as vrm };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { model as a, bicycle as b, color as c, vehicle as d, vin as e, fuel as f, vrm as g, manufacturer as m, type as t, vehicle$1 as v };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ValueConfig } from './type.js';
|
|
2
|
-
|
|
3
|
-
/** Vehicle [bicycle](https://fakerjs.dev/api/vehicle.html#bicycle) */
|
|
4
|
-
declare const bicycle: () => ValueConfig<string>;
|
|
5
|
-
/** Vehicle [color](https://fakerjs.dev/api/vehicle.html#color) */
|
|
6
|
-
declare const color: () => ValueConfig<string>;
|
|
7
|
-
/** Vehicle [fuel](https://fakerjs.dev/api/vehicle.html#fuel) */
|
|
8
|
-
declare const fuel: () => ValueConfig<string>;
|
|
9
|
-
/** Vehicle [manufacturer](https://fakerjs.dev/api/vehicle.html#manufacturer) */
|
|
10
|
-
declare const manufacturer: () => ValueConfig<string>;
|
|
11
|
-
/** Vehicle [model](https://fakerjs.dev/api/vehicle.html#model) */
|
|
12
|
-
declare const model: () => ValueConfig<string>;
|
|
13
|
-
/** Vehicle [type](https://fakerjs.dev/api/vehicle.html#type) */
|
|
14
|
-
declare const type: () => ValueConfig<string>;
|
|
15
|
-
/** Vehicle [vehicle](https://fakerjs.dev/api/vehicle.html#vehicle) */
|
|
16
|
-
declare const vehicle: () => ValueConfig<string>;
|
|
17
|
-
/** Vehicle [vin](https://fakerjs.dev/api/vehicle.html#vin) */
|
|
18
|
-
declare const vin: () => ValueConfig<string>;
|
|
19
|
-
/** Vehicle [vrm](https://fakerjs.dev/api/vehicle.html#vrm) */
|
|
20
|
-
declare const vrm: () => ValueConfig<string>;
|
|
21
|
-
|
|
22
|
-
declare const vehicle$1_bicycle: typeof bicycle;
|
|
23
|
-
declare const vehicle$1_color: typeof color;
|
|
24
|
-
declare const vehicle$1_fuel: typeof fuel;
|
|
25
|
-
declare const vehicle$1_manufacturer: typeof manufacturer;
|
|
26
|
-
declare const vehicle$1_model: typeof model;
|
|
27
|
-
declare const vehicle$1_type: typeof type;
|
|
28
|
-
declare const vehicle$1_vehicle: typeof vehicle;
|
|
29
|
-
declare const vehicle$1_vin: typeof vin;
|
|
30
|
-
declare const vehicle$1_vrm: typeof vrm;
|
|
31
|
-
declare namespace vehicle$1 {
|
|
32
|
-
export { vehicle$1_bicycle as bicycle, vehicle$1_color as color, vehicle$1_fuel as fuel, vehicle$1_manufacturer as manufacturer, vehicle$1_model as model, vehicle$1_type as type, vehicle$1_vehicle as vehicle, vehicle$1_vin as vin, vehicle$1_vrm as vrm };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { model as a, bicycle as b, color as c, vehicle as d, vin as e, fuel as f, vrm as g, manufacturer as m, type as t, vehicle$1 as v };
|
package/src/test.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createObjectConfig, createValueConfig } from "./create_config";
|
|
2
|
-
import { createGeneratorByType } from "./create_generator_fn";
|
|
3
|
-
|
|
4
|
-
const a = createObjectConfig(
|
|
5
|
-
{
|
|
6
|
-
a: createValueConfig(() => 1),
|
|
7
|
-
b: createValueConfig(() => 2),
|
|
8
|
-
},
|
|
9
|
-
({ a }) => a + 100,
|
|
10
|
-
);
|