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/utils/internet.d.ts
CHANGED
|
@@ -1,3 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/** Internet [color](https://fakerjs.dev/api/internet.html#color) */
|
|
2
|
+
export declare const color: (options?: {
|
|
3
|
+
redBase?: number;
|
|
4
|
+
greenBase?: number;
|
|
5
|
+
blueBase?: number;
|
|
6
|
+
}) => import("..").ValueConfig<string>;
|
|
7
|
+
/** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
|
|
8
|
+
export declare const displayName: (options?: {
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
}) => import("..").ValueConfig<string>;
|
|
12
|
+
/** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
|
|
13
|
+
export declare const domainName: () => import("..").ValueConfig<string>;
|
|
14
|
+
/** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
|
|
15
|
+
export declare const domainSuffix: () => import("..").ValueConfig<string>;
|
|
16
|
+
/** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
|
|
17
|
+
export declare const domainWord: () => import("..").ValueConfig<string>;
|
|
18
|
+
/** Internet [email](https://fakerjs.dev/api/internet.html#email) */
|
|
19
|
+
export declare const email: (options?: {
|
|
20
|
+
firstName?: string;
|
|
21
|
+
lastName?: string;
|
|
22
|
+
provider?: string;
|
|
23
|
+
allowSpecialCharacters?: boolean;
|
|
24
|
+
}) => import("..").ValueConfig<string>;
|
|
25
|
+
/** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
|
|
26
|
+
export declare const emoji: (options?: {
|
|
27
|
+
types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
|
|
28
|
+
}) => import("..").ValueConfig<string>;
|
|
29
|
+
/** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
|
|
30
|
+
export declare const exampleEmail: (options?: {
|
|
31
|
+
firstName?: string;
|
|
32
|
+
lastName?: string;
|
|
33
|
+
allowSpecialCharacters?: boolean;
|
|
34
|
+
}) => import("..").ValueConfig<string>;
|
|
35
|
+
/** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
|
|
36
|
+
export declare const httpMethod: () => import("..").ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
|
|
37
|
+
/** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
|
|
38
|
+
export declare const httpStatusCode: (options?: {
|
|
39
|
+
types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
|
|
40
|
+
}) => import("..").ValueConfig<number>;
|
|
41
|
+
/** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
|
|
42
|
+
export declare const ip: () => import("..").ValueConfig<string>;
|
|
43
|
+
/** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
|
|
44
|
+
export declare const ipv4: (options?: {
|
|
45
|
+
cidrBlock?: string;
|
|
46
|
+
} | {
|
|
47
|
+
network?: import("@faker-js/faker/.").IPv4NetworkType;
|
|
48
|
+
}) => import("..").ValueConfig<string>;
|
|
49
|
+
/** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
|
|
50
|
+
export declare const ipv6: () => import("..").ValueConfig<string>;
|
|
51
|
+
/** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
|
|
52
|
+
export declare const mac: (options?: string | {
|
|
53
|
+
separator?: string;
|
|
54
|
+
}) => import("..").ValueConfig<string>;
|
|
55
|
+
/** Internet [password](https://fakerjs.dev/api/internet.html#password) */
|
|
56
|
+
export declare const password: (options?: {
|
|
57
|
+
length?: number;
|
|
58
|
+
memorable?: boolean;
|
|
59
|
+
pattern?: RegExp;
|
|
60
|
+
prefix?: string;
|
|
61
|
+
}) => import("..").ValueConfig<string>;
|
|
62
|
+
/** Internet [port](https://fakerjs.dev/api/internet.html#port) */
|
|
63
|
+
export declare const port: () => import("..").ValueConfig<number>;
|
|
64
|
+
/** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
|
|
65
|
+
export declare const protocol: () => import("..").ValueConfig<"http" | "https">;
|
|
66
|
+
/** Internet [url](https://fakerjs.dev/api/internet.html#url) */
|
|
67
|
+
export declare const url: (options?: {
|
|
68
|
+
appendSlash?: boolean;
|
|
69
|
+
protocol?: "http" | "https";
|
|
70
|
+
}) => import("..").ValueConfig<string>;
|
|
71
|
+
/** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
|
|
72
|
+
export declare const userAgent: () => import("..").ValueConfig<string>;
|
|
73
|
+
/** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
|
|
74
|
+
export declare const username: (options?: {
|
|
75
|
+
firstName?: string;
|
|
76
|
+
lastName?: string;
|
|
77
|
+
}) => import("..").ValueConfig<string>;
|
package/dist/utils/internet.js
CHANGED
|
@@ -1,49 +1,114 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
domainWord: ()=>domainWord,
|
|
28
|
+
email: ()=>email,
|
|
29
|
+
emoji: ()=>emoji,
|
|
30
|
+
httpMethod: ()=>httpMethod,
|
|
31
|
+
ip: ()=>ip,
|
|
32
|
+
username: ()=>username,
|
|
33
|
+
httpStatusCode: ()=>httpStatusCode,
|
|
34
|
+
password: ()=>internet_password,
|
|
35
|
+
displayName: ()=>displayName,
|
|
36
|
+
port: ()=>port,
|
|
37
|
+
ipv4: ()=>ipv4,
|
|
38
|
+
domainSuffix: ()=>domainSuffix,
|
|
39
|
+
url: ()=>url,
|
|
40
|
+
exampleEmail: ()=>exampleEmail,
|
|
41
|
+
userAgent: ()=>userAgent,
|
|
42
|
+
color: ()=>color,
|
|
43
|
+
protocol: ()=>protocol,
|
|
44
|
+
ipv6: ()=>ipv6,
|
|
45
|
+
mac: ()=>mac,
|
|
46
|
+
domainName: ()=>domainName
|
|
47
|
+
});
|
|
48
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
49
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
50
|
+
const color = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.color);
|
|
51
|
+
const displayName = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.displayName);
|
|
52
|
+
const domainName = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.domainName);
|
|
53
|
+
const domainSuffix = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.domainSuffix);
|
|
54
|
+
const domainWord = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.domainWord);
|
|
55
|
+
const email = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.email);
|
|
56
|
+
const emoji = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.emoji);
|
|
57
|
+
const exampleEmail = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.exampleEmail);
|
|
58
|
+
const httpMethod = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.httpMethod);
|
|
59
|
+
const httpStatusCode = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.httpStatusCode);
|
|
60
|
+
const ip = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.ip);
|
|
61
|
+
const ipv4 = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.ipv4);
|
|
62
|
+
const ipv6 = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.ipv6);
|
|
63
|
+
const mac = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.mac);
|
|
64
|
+
const internet_password = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.password);
|
|
65
|
+
const port = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.port);
|
|
66
|
+
const protocol = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.protocol);
|
|
67
|
+
const url = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.url);
|
|
68
|
+
const userAgent = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.userAgent);
|
|
69
|
+
const username = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.internet.username);
|
|
70
|
+
exports.color = __webpack_exports__.color;
|
|
71
|
+
exports.displayName = __webpack_exports__.displayName;
|
|
72
|
+
exports.domainName = __webpack_exports__.domainName;
|
|
73
|
+
exports.domainSuffix = __webpack_exports__.domainSuffix;
|
|
74
|
+
exports.domainWord = __webpack_exports__.domainWord;
|
|
75
|
+
exports.email = __webpack_exports__.email;
|
|
76
|
+
exports.emoji = __webpack_exports__.emoji;
|
|
77
|
+
exports.exampleEmail = __webpack_exports__.exampleEmail;
|
|
78
|
+
exports.httpMethod = __webpack_exports__.httpMethod;
|
|
79
|
+
exports.httpStatusCode = __webpack_exports__.httpStatusCode;
|
|
80
|
+
exports.ip = __webpack_exports__.ip;
|
|
81
|
+
exports.ipv4 = __webpack_exports__.ipv4;
|
|
82
|
+
exports.ipv6 = __webpack_exports__.ipv6;
|
|
83
|
+
exports.mac = __webpack_exports__.mac;
|
|
84
|
+
exports.password = __webpack_exports__.password;
|
|
85
|
+
exports.port = __webpack_exports__.port;
|
|
86
|
+
exports.protocol = __webpack_exports__.protocol;
|
|
87
|
+
exports.url = __webpack_exports__.url;
|
|
88
|
+
exports.userAgent = __webpack_exports__.userAgent;
|
|
89
|
+
exports.username = __webpack_exports__.username;
|
|
90
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
91
|
+
"color",
|
|
92
|
+
"displayName",
|
|
93
|
+
"domainName",
|
|
94
|
+
"domainSuffix",
|
|
95
|
+
"domainWord",
|
|
96
|
+
"email",
|
|
97
|
+
"emoji",
|
|
98
|
+
"exampleEmail",
|
|
99
|
+
"httpMethod",
|
|
100
|
+
"httpStatusCode",
|
|
101
|
+
"ip",
|
|
102
|
+
"ipv4",
|
|
103
|
+
"ipv6",
|
|
104
|
+
"mac",
|
|
105
|
+
"password",
|
|
106
|
+
"port",
|
|
107
|
+
"protocol",
|
|
108
|
+
"url",
|
|
109
|
+
"userAgent",
|
|
110
|
+
"username"
|
|
111
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
112
|
+
Object.defineProperty(exports, '__esModule', {
|
|
113
|
+
value: true
|
|
114
|
+
});
|
package/dist/utils/internet.mjs
CHANGED
|
@@ -1,49 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
25
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
26
|
-
import "../chunk-USLYTOPD.mjs";
|
|
27
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
28
|
-
export {
|
|
29
|
-
color,
|
|
30
|
-
displayName,
|
|
31
|
-
domainName,
|
|
32
|
-
domainSuffix,
|
|
33
|
-
domainWord,
|
|
34
|
-
email,
|
|
35
|
-
emoji,
|
|
36
|
-
exampleEmail,
|
|
37
|
-
httpMethod,
|
|
38
|
-
httpStatusCode,
|
|
39
|
-
ip,
|
|
40
|
-
ipv4,
|
|
41
|
-
ipv6,
|
|
42
|
-
mac,
|
|
43
|
-
password,
|
|
44
|
-
port,
|
|
45
|
-
protocol,
|
|
46
|
-
url,
|
|
47
|
-
userAgent,
|
|
48
|
-
userName
|
|
49
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const color = makeValueConfigFn(faker.internet.color);
|
|
4
|
+
const displayName = makeValueConfigFn(faker.internet.displayName);
|
|
5
|
+
const domainName = makeValueConfigFn(faker.internet.domainName);
|
|
6
|
+
const domainSuffix = makeValueConfigFn(faker.internet.domainSuffix);
|
|
7
|
+
const domainWord = makeValueConfigFn(faker.internet.domainWord);
|
|
8
|
+
const email = makeValueConfigFn(faker.internet.email);
|
|
9
|
+
const emoji = makeValueConfigFn(faker.internet.emoji);
|
|
10
|
+
const exampleEmail = makeValueConfigFn(faker.internet.exampleEmail);
|
|
11
|
+
const httpMethod = makeValueConfigFn(faker.internet.httpMethod);
|
|
12
|
+
const httpStatusCode = makeValueConfigFn(faker.internet.httpStatusCode);
|
|
13
|
+
const ip = makeValueConfigFn(faker.internet.ip);
|
|
14
|
+
const ipv4 = makeValueConfigFn(faker.internet.ipv4);
|
|
15
|
+
const ipv6 = makeValueConfigFn(faker.internet.ipv6);
|
|
16
|
+
const mac = makeValueConfigFn(faker.internet.mac);
|
|
17
|
+
const internet_password = makeValueConfigFn(faker.internet.password);
|
|
18
|
+
const port = makeValueConfigFn(faker.internet.port);
|
|
19
|
+
const protocol = makeValueConfigFn(faker.internet.protocol);
|
|
20
|
+
const url = makeValueConfigFn(faker.internet.url);
|
|
21
|
+
const userAgent = makeValueConfigFn(faker.internet.userAgent);
|
|
22
|
+
const username = makeValueConfigFn(faker.internet.username);
|
|
23
|
+
export { color, displayName, domainName, domainSuffix, domainWord, email, emoji, exampleEmail, httpMethod, httpStatusCode, ip, ipv4, ipv6, mac, internet_password as password, port, protocol, url, userAgent, username };
|
package/dist/utils/location.d.ts
CHANGED
|
@@ -1,2 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
/** Location [buildingNumber](https://fakerjs.dev/api/location.html#buildingNumber) */
|
|
2
|
+
export declare const buildingNumber: () => import("..").ValueConfig<string>;
|
|
3
|
+
/** Location [cardinalDirection](https://fakerjs.dev/api/location.html#cardinalDirection) */
|
|
4
|
+
export declare const cardinalDirection: (options?: {
|
|
5
|
+
abbreviated?: boolean;
|
|
6
|
+
}) => import("..").ValueConfig<string>;
|
|
7
|
+
/** Location [city](https://fakerjs.dev/api/location.html#city) */
|
|
8
|
+
export declare const city: () => import("..").ValueConfig<string>;
|
|
9
|
+
/** Location [country](https://fakerjs.dev/api/location.html#country) */
|
|
10
|
+
export declare const country: () => import("..").ValueConfig<string>;
|
|
11
|
+
/** Location [countryCode](https://fakerjs.dev/api/location.html#countryCode) */
|
|
12
|
+
export declare const countryCode: (options?: "alpha-2" | "alpha-3" | "numeric" | {
|
|
13
|
+
variant?: "alpha-2" | "alpha-3" | "numeric";
|
|
14
|
+
}) => import("..").ValueConfig<string>;
|
|
15
|
+
/** Location [county](https://fakerjs.dev/api/location.html#county) */
|
|
16
|
+
export declare const county: () => import("..").ValueConfig<string>;
|
|
17
|
+
/** Location [direction](https://fakerjs.dev/api/location.html#direction) */
|
|
18
|
+
export declare const direction: (options?: {
|
|
19
|
+
abbreviated?: boolean;
|
|
20
|
+
}) => import("..").ValueConfig<string>;
|
|
21
|
+
/** Location [latitude](https://fakerjs.dev/api/location.html#latitude) */
|
|
22
|
+
export declare const latitude: (options?: {
|
|
23
|
+
max?: number;
|
|
24
|
+
min?: number;
|
|
25
|
+
precision?: number;
|
|
26
|
+
}) => import("..").ValueConfig<number>;
|
|
27
|
+
/** Location [longitude](https://fakerjs.dev/api/location.html#longitude) */
|
|
28
|
+
export declare const longitude: (options?: {
|
|
29
|
+
max?: number;
|
|
30
|
+
min?: number;
|
|
31
|
+
precision?: number;
|
|
32
|
+
}) => import("..").ValueConfig<number>;
|
|
33
|
+
/** Location [nearbyGPSCoordinate](https://fakerjs.dev/api/location.html#nearbyGPSCoordinate) */
|
|
34
|
+
export declare const nearbyGPSCoordinate: (options?: {
|
|
35
|
+
origin?: [latitude: number, longitude: number];
|
|
36
|
+
radius?: number;
|
|
37
|
+
isMetric?: boolean;
|
|
38
|
+
}) => import("..").ValueConfig<[latitude: number, longitude: number]>;
|
|
39
|
+
/** Location [ordinalDirection](https://fakerjs.dev/api/location.html#ordinalDirection) */
|
|
40
|
+
export declare const ordinalDirection: (options?: {
|
|
41
|
+
abbreviated?: boolean;
|
|
42
|
+
}) => import("..").ValueConfig<string>;
|
|
43
|
+
/** Location [secondaryAddress](https://fakerjs.dev/api/location.html#secondaryAddress) */
|
|
44
|
+
export declare const secondaryAddress: () => import("..").ValueConfig<string>;
|
|
45
|
+
/** Location [state](https://fakerjs.dev/api/location.html#state) */
|
|
46
|
+
export declare const state: (options?: {
|
|
47
|
+
abbreviated?: boolean;
|
|
48
|
+
}) => import("..").ValueConfig<string>;
|
|
49
|
+
/** Location [street](https://fakerjs.dev/api/location.html#street) */
|
|
50
|
+
export declare const street: () => import("..").ValueConfig<string>;
|
|
51
|
+
/** Location [streetAddress](https://fakerjs.dev/api/location.html#streetAddress) */
|
|
52
|
+
export declare const streetAddress: (options?: boolean | {
|
|
53
|
+
useFullAddress?: boolean;
|
|
54
|
+
}) => import("..").ValueConfig<string>;
|
|
55
|
+
/** Location [timeZone](https://fakerjs.dev/api/location.html#timeZone) */
|
|
56
|
+
export declare const timeZone: () => import("..").ValueConfig<string>;
|
package/dist/utils/location.js
CHANGED
|
@@ -1,41 +1,98 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
countryCode: ()=>countryCode,
|
|
28
|
+
secondaryAddress: ()=>secondaryAddress,
|
|
29
|
+
longitude: ()=>longitude,
|
|
30
|
+
streetAddress: ()=>streetAddress,
|
|
31
|
+
direction: ()=>direction,
|
|
32
|
+
latitude: ()=>latitude,
|
|
33
|
+
buildingNumber: ()=>buildingNumber,
|
|
34
|
+
country: ()=>country,
|
|
35
|
+
cardinalDirection: ()=>cardinalDirection,
|
|
36
|
+
nearbyGPSCoordinate: ()=>nearbyGPSCoordinate,
|
|
37
|
+
ordinalDirection: ()=>ordinalDirection,
|
|
38
|
+
county: ()=>county,
|
|
39
|
+
state: ()=>state,
|
|
40
|
+
street: ()=>street,
|
|
41
|
+
timeZone: ()=>timeZone,
|
|
42
|
+
city: ()=>city
|
|
43
|
+
});
|
|
44
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
45
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
46
|
+
const buildingNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.buildingNumber);
|
|
47
|
+
const cardinalDirection = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.cardinalDirection);
|
|
48
|
+
const city = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.city);
|
|
49
|
+
const country = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.country);
|
|
50
|
+
const countryCode = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.countryCode);
|
|
51
|
+
const county = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.county);
|
|
52
|
+
const direction = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.direction);
|
|
53
|
+
const latitude = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.latitude);
|
|
54
|
+
const longitude = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.longitude);
|
|
55
|
+
const nearbyGPSCoordinate = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.nearbyGPSCoordinate);
|
|
56
|
+
const ordinalDirection = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.ordinalDirection);
|
|
57
|
+
const secondaryAddress = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.secondaryAddress);
|
|
58
|
+
const state = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.state);
|
|
59
|
+
const street = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.street);
|
|
60
|
+
const streetAddress = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.streetAddress);
|
|
61
|
+
const timeZone = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.location.timeZone);
|
|
62
|
+
exports.buildingNumber = __webpack_exports__.buildingNumber;
|
|
63
|
+
exports.cardinalDirection = __webpack_exports__.cardinalDirection;
|
|
64
|
+
exports.city = __webpack_exports__.city;
|
|
65
|
+
exports.country = __webpack_exports__.country;
|
|
66
|
+
exports.countryCode = __webpack_exports__.countryCode;
|
|
67
|
+
exports.county = __webpack_exports__.county;
|
|
68
|
+
exports.direction = __webpack_exports__.direction;
|
|
69
|
+
exports.latitude = __webpack_exports__.latitude;
|
|
70
|
+
exports.longitude = __webpack_exports__.longitude;
|
|
71
|
+
exports.nearbyGPSCoordinate = __webpack_exports__.nearbyGPSCoordinate;
|
|
72
|
+
exports.ordinalDirection = __webpack_exports__.ordinalDirection;
|
|
73
|
+
exports.secondaryAddress = __webpack_exports__.secondaryAddress;
|
|
74
|
+
exports.state = __webpack_exports__.state;
|
|
75
|
+
exports.street = __webpack_exports__.street;
|
|
76
|
+
exports.streetAddress = __webpack_exports__.streetAddress;
|
|
77
|
+
exports.timeZone = __webpack_exports__.timeZone;
|
|
78
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
79
|
+
"buildingNumber",
|
|
80
|
+
"cardinalDirection",
|
|
81
|
+
"city",
|
|
82
|
+
"country",
|
|
83
|
+
"countryCode",
|
|
84
|
+
"county",
|
|
85
|
+
"direction",
|
|
86
|
+
"latitude",
|
|
87
|
+
"longitude",
|
|
88
|
+
"nearbyGPSCoordinate",
|
|
89
|
+
"ordinalDirection",
|
|
90
|
+
"secondaryAddress",
|
|
91
|
+
"state",
|
|
92
|
+
"street",
|
|
93
|
+
"streetAddress",
|
|
94
|
+
"timeZone"
|
|
95
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
96
|
+
Object.defineProperty(exports, '__esModule', {
|
|
97
|
+
value: true
|
|
98
|
+
});
|
package/dist/utils/location.mjs
CHANGED
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
21
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
22
|
-
import "../chunk-USLYTOPD.mjs";
|
|
23
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
24
|
-
export {
|
|
25
|
-
buildingNumber,
|
|
26
|
-
cardinalDirection,
|
|
27
|
-
city,
|
|
28
|
-
country,
|
|
29
|
-
countryCode,
|
|
30
|
-
county,
|
|
31
|
-
direction,
|
|
32
|
-
latitude,
|
|
33
|
-
longitude,
|
|
34
|
-
nearbyGPSCoordinate,
|
|
35
|
-
ordinalDirection,
|
|
36
|
-
secondaryAddress,
|
|
37
|
-
state,
|
|
38
|
-
street,
|
|
39
|
-
streetAddress,
|
|
40
|
-
timeZone
|
|
41
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const buildingNumber = makeValueConfigFn(faker.location.buildingNumber);
|
|
4
|
+
const cardinalDirection = makeValueConfigFn(faker.location.cardinalDirection);
|
|
5
|
+
const city = makeValueConfigFn(faker.location.city);
|
|
6
|
+
const country = makeValueConfigFn(faker.location.country);
|
|
7
|
+
const countryCode = makeValueConfigFn(faker.location.countryCode);
|
|
8
|
+
const county = makeValueConfigFn(faker.location.county);
|
|
9
|
+
const direction = makeValueConfigFn(faker.location.direction);
|
|
10
|
+
const latitude = makeValueConfigFn(faker.location.latitude);
|
|
11
|
+
const longitude = makeValueConfigFn(faker.location.longitude);
|
|
12
|
+
const nearbyGPSCoordinate = makeValueConfigFn(faker.location.nearbyGPSCoordinate);
|
|
13
|
+
const ordinalDirection = makeValueConfigFn(faker.location.ordinalDirection);
|
|
14
|
+
const secondaryAddress = makeValueConfigFn(faker.location.secondaryAddress);
|
|
15
|
+
const state = makeValueConfigFn(faker.location.state);
|
|
16
|
+
const street = makeValueConfigFn(faker.location.street);
|
|
17
|
+
const streetAddress = makeValueConfigFn(faker.location.streetAddress);
|
|
18
|
+
const timeZone = makeValueConfigFn(faker.location.timeZone);
|
|
19
|
+
export { buildingNumber, cardinalDirection, city, country, countryCode, county, direction, latitude, longitude, nearbyGPSCoordinate, ordinalDirection, secondaryAddress, state, street, streetAddress, timeZone };
|
package/dist/utils/lorem.d.ts
CHANGED
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
/** Lorem [lines](https://fakerjs.dev/api/lorem.html#lines) */
|
|
2
|
+
export declare const lines: (lineCount?: number | {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
}) => import("..").ValueConfig<string>;
|
|
6
|
+
/** Lorem [paragraph](https://fakerjs.dev/api/lorem.html#paragraph) */
|
|
7
|
+
export declare const paragraph: (sentenceCount?: number | {
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
}) => import("..").ValueConfig<string>;
|
|
11
|
+
/** Lorem [paragraphs](https://fakerjs.dev/api/lorem.html#paragraphs) */
|
|
12
|
+
export declare const paragraphs: (paragraphCount?: number | {
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
}, separator?: string) => import("..").ValueConfig<string>;
|
|
16
|
+
/** Lorem [sentence](https://fakerjs.dev/api/lorem.html#sentence) */
|
|
17
|
+
export declare const sentence: (wordCount?: number | {
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
}) => import("..").ValueConfig<string>;
|
|
21
|
+
/** Lorem [sentences](https://fakerjs.dev/api/lorem.html#sentences) */
|
|
22
|
+
export declare const sentences: (sentenceCount?: number | {
|
|
23
|
+
min: number;
|
|
24
|
+
max: number;
|
|
25
|
+
}, separator?: string) => import("..").ValueConfig<string>;
|
|
26
|
+
/** Lorem [slug](https://fakerjs.dev/api/lorem.html#slug) */
|
|
27
|
+
export declare const slug: (wordCount?: number | {
|
|
28
|
+
min: number;
|
|
29
|
+
max: number;
|
|
30
|
+
}) => import("..").ValueConfig<string>;
|
|
31
|
+
/** Lorem [text](https://fakerjs.dev/api/lorem.html#text) */
|
|
32
|
+
export declare const text: () => import("..").ValueConfig<string>;
|
|
33
|
+
/** Lorem [word](https://fakerjs.dev/api/lorem.html#word) */
|
|
34
|
+
export declare const word: (options?: number | {
|
|
35
|
+
length?: number | {
|
|
36
|
+
min: number;
|
|
37
|
+
max: number;
|
|
38
|
+
};
|
|
39
|
+
strategy?: "fail" | "closest" | "shortest" | "longest" | "any-length";
|
|
40
|
+
}) => import("..").ValueConfig<string>;
|
|
41
|
+
/** Lorem [words](https://fakerjs.dev/api/lorem.html#words) */
|
|
42
|
+
export declare const words: (wordCount?: number | {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number;
|
|
45
|
+
}) => import("..").ValueConfig<string>;
|