struct-fakerator 2.6.8 → 2.7.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.
Files changed (150) hide show
  1. package/README.md +140 -85
  2. package/dist/chunk-3E2B272L.js +25 -0
  3. package/dist/chunk-3KXIZTCT.mjs +20 -0
  4. package/dist/chunk-3P4RJMMV.js +79 -0
  5. package/dist/chunk-3SVV5GDL.js +22 -0
  6. package/dist/chunk-3WINWLTB.js +34 -0
  7. package/dist/chunk-5LCWZUVP.mjs +19 -0
  8. package/dist/chunk-62MDIAG3.js +19 -0
  9. package/dist/chunk-6QXR4Q23.js +43 -0
  10. package/dist/chunk-7QCNINQB.js +43 -0
  11. package/dist/chunk-7TMD372Q.mjs +165 -0
  12. package/dist/chunk-AQWBYQGF.js +54 -0
  13. package/dist/chunk-B2NENAKV.mjs +34 -0
  14. package/dist/chunk-C3RGM3CB.js +67 -0
  15. package/dist/chunk-D6QN54CO.js +46 -0
  16. package/dist/chunk-DSDX7NOV.mjs +40 -0
  17. package/dist/chunk-DZCTAI2Q.js +49 -0
  18. package/dist/chunk-ELK6OOE6.js +55 -0
  19. package/dist/chunk-EM67LVYX.mjs +18 -0
  20. package/dist/chunk-EZFWJGGR.js +28 -0
  21. package/dist/chunk-FDIHUTKO.mjs +34 -0
  22. package/dist/chunk-GLK5ZVJB.js +47 -0
  23. package/dist/chunk-GNFZ7Z6V.mjs +28 -0
  24. package/dist/chunk-I3BHVE4B.js +43 -0
  25. package/dist/chunk-IHDAERZ6.mjs +61 -0
  26. package/dist/chunk-IM5JST4B.js +76 -0
  27. package/dist/chunk-IOXGSFEU.js +20 -0
  28. package/dist/chunk-JA2F23JA.mjs +79 -0
  29. package/dist/chunk-JHNWL66I.mjs +47 -0
  30. package/dist/chunk-LSFOERXQ.js +18 -0
  31. package/dist/chunk-MYNHKOPJ.js +34 -0
  32. package/dist/chunk-NO44Z2RV.mjs +55 -0
  33. package/dist/chunk-NOD5QLN5.js +40 -0
  34. package/dist/chunk-OYP22DDC.mjs +31 -0
  35. package/dist/chunk-PECDKT6F.js +76 -0
  36. package/dist/chunk-PFVCJYEK.js +46 -0
  37. package/dist/chunk-QN2KYEUJ.js +28 -0
  38. package/dist/chunk-QQWZ56UO.js +33 -0
  39. package/dist/chunk-QTT2TUDM.js +165 -0
  40. package/dist/chunk-R3MBRFOY.js +22 -0
  41. package/dist/chunk-R7ZZJULR.js +61 -0
  42. package/dist/chunk-RJPUHGKC.mjs +54 -0
  43. package/dist/chunk-RUUOAMRF.mjs +43 -0
  44. package/dist/chunk-SDPCOC7O.mjs +76 -0
  45. package/dist/chunk-SSFS7U3T.mjs +72 -0
  46. package/dist/chunk-SVHWBNOB.mjs +61 -0
  47. package/dist/chunk-TQTDHXR6.mjs +22 -0
  48. package/dist/chunk-TTPRXCNS.mjs +46 -0
  49. package/dist/chunk-TYWXW3FQ.mjs +46 -0
  50. package/dist/chunk-UQYEFGMG.mjs +43 -0
  51. package/dist/chunk-UX7CIOBD.js +61 -0
  52. package/dist/chunk-V2AWKRQI.js +26 -0
  53. package/dist/chunk-V4P2FTIC.js +72 -0
  54. package/dist/chunk-VE3Q5LC3.mjs +26 -0
  55. package/dist/chunk-WGRAINAP.mjs +43 -0
  56. package/dist/chunk-WH4MHYUQ.mjs +33 -0
  57. package/dist/chunk-WSYHZP5C.mjs +28 -0
  58. package/dist/chunk-XCCBDMTZ.mjs +22 -0
  59. package/dist/chunk-XR64DI5O.js +31 -0
  60. package/dist/chunk-YHZKCAK6.mjs +49 -0
  61. package/dist/chunk-ZQA42PYM.mjs +67 -0
  62. package/dist/chunk-ZQYJPU4U.mjs +76 -0
  63. package/dist/chunk-ZT2QP4MD.mjs +25 -0
  64. package/dist/config.js +3 -3
  65. package/dist/config.mjs +2 -2
  66. package/dist/create_config.d.mts +4 -2
  67. package/dist/create_config.d.ts +4 -2
  68. package/dist/create_config.js +2 -2
  69. package/dist/create_config.mjs +1 -1
  70. package/dist/create_config.test.js +12 -12
  71. package/dist/create_config.test.mjs +1 -1
  72. package/dist/create_generator_fn.js +2 -3
  73. package/dist/create_generator_fn.mjs +1 -2
  74. package/dist/create_generator_fn.test.js +39 -30
  75. package/dist/create_generator_fn.test.mjs +12 -3
  76. package/dist/generator_fn.js +3 -4
  77. package/dist/generator_fn.mjs +2 -3
  78. package/dist/index.js +5 -6
  79. package/dist/index.mjs +4 -5
  80. package/dist/internet-CH_7YDHs.d.mts +106 -0
  81. package/dist/internet-DLYaMWtd.d.ts +106 -0
  82. package/dist/type.d.mts +1 -1
  83. package/dist/type.d.ts +1 -1
  84. package/dist/utils/airline.js +4 -5
  85. package/dist/utils/airline.mjs +3 -4
  86. package/dist/utils/animal.js +4 -5
  87. package/dist/utils/animal.mjs +3 -4
  88. package/dist/utils/color.js +4 -5
  89. package/dist/utils/color.mjs +3 -4
  90. package/dist/utils/commerce.js +4 -5
  91. package/dist/utils/commerce.mjs +3 -4
  92. package/dist/utils/common.js +3 -3
  93. package/dist/utils/common.mjs +2 -2
  94. package/dist/utils/company.js +4 -5
  95. package/dist/utils/company.mjs +3 -4
  96. package/dist/utils/database.js +4 -5
  97. package/dist/utils/database.mjs +3 -4
  98. package/dist/utils/datatype.js +4 -5
  99. package/dist/utils/datatype.mjs +3 -4
  100. package/dist/utils/datetime.js +4 -5
  101. package/dist/utils/datetime.mjs +3 -4
  102. package/dist/utils/finance.js +4 -5
  103. package/dist/utils/finance.mjs +3 -4
  104. package/dist/utils/food.js +4 -5
  105. package/dist/utils/food.mjs +3 -4
  106. package/dist/utils/git.js +4 -5
  107. package/dist/utils/git.mjs +3 -4
  108. package/dist/utils/hacker.js +4 -5
  109. package/dist/utils/hacker.mjs +3 -4
  110. package/dist/utils/image.js +4 -5
  111. package/dist/utils/image.mjs +3 -4
  112. package/dist/utils/index.d.mts +1 -1
  113. package/dist/utils/index.d.ts +1 -1
  114. package/dist/utils/index.js +28 -29
  115. package/dist/utils/index.mjs +30 -31
  116. package/dist/utils/internet.d.mts +1 -1
  117. package/dist/utils/internet.d.ts +1 -1
  118. package/dist/utils/internet.js +4 -5
  119. package/dist/utils/internet.mjs +5 -6
  120. package/dist/utils/location.js +4 -5
  121. package/dist/utils/location.mjs +3 -4
  122. package/dist/utils/lorem.js +4 -5
  123. package/dist/utils/lorem.mjs +3 -4
  124. package/dist/utils/music.js +4 -5
  125. package/dist/utils/music.mjs +3 -4
  126. package/dist/utils/number.js +4 -5
  127. package/dist/utils/number.mjs +3 -4
  128. package/dist/utils/person.js +4 -5
  129. package/dist/utils/person.mjs +3 -4
  130. package/dist/utils/phone.js +4 -5
  131. package/dist/utils/phone.mjs +3 -4
  132. package/dist/utils/science.js +4 -5
  133. package/dist/utils/science.mjs +3 -4
  134. package/dist/utils/string.js +4 -5
  135. package/dist/utils/string.mjs +3 -4
  136. package/dist/utils/system.js +4 -5
  137. package/dist/utils/system.mjs +3 -4
  138. package/dist/utils/utils.js +3 -3
  139. package/dist/utils/utils.mjs +2 -2
  140. package/dist/utils/vehicle.js +4 -5
  141. package/dist/utils/vehicle.mjs +3 -4
  142. package/dist/utils/word.js +12 -14
  143. package/dist/utils/word.mjs +12 -14
  144. package/package.json +2 -26
  145. package/src/create_config.ts +8 -2
  146. package/src/create_generator_fn.test.ts +11 -0
  147. package/src/create_generator_fn.ts +5 -4
  148. package/src/type.ts +1 -1
  149. package/src/utils/internet.ts +1 -1
  150. package/src/test.ts +0 -10
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-EXLV2IRM.mjs";
1
+ import "./chunk-VE3Q5LC3.mjs";
2
2
  import {
3
3
  createArrayConfig,
4
4
  createBoundedSeriesConfig,
@@ -6,7 +6,7 @@ import {
6
6
  createSelectionConfig,
7
7
  createTupleConfig,
8
8
  createValueConfig
9
- } from "./chunk-JTURHVCR.mjs";
9
+ } from "./chunk-ZQA42PYM.mjs";
10
10
  import "./chunk-USLYTOPD.mjs";
11
11
  import "./chunk-XGB3TDIC.mjs";
12
12
  export {
@@ -1,4 +1,4 @@
1
- import { ValueConfig, ArrayConfig, ObjectConfig, Result, ObjectConfigWithFn, TupleConfig, SelectionConfig, BoundedSeriesConfig } from './type.mjs';
1
+ import { ValueConfig, Result, ArrayConfig, ObjectConfig, ObjectConfigWithFn, TupleConfig, SelectionConfig, BoundedSeriesConfig } from './type.mjs';
2
2
 
3
3
  /**
4
4
  * value
@@ -15,6 +15,7 @@ declare const createSelectionConfig: <T>(items: T[]) => SelectionConfig<T>;
15
15
  /**
16
16
  * object
17
17
  * @param {object} content
18
+ * @param {function} transformer
18
19
  * @return {ObjectConfig}
19
20
  */
20
21
  declare function createObjectConfig<T extends object>(content: T): ObjectConfig<T>;
@@ -25,9 +26,10 @@ declare function createObjectConfig<T extends object, R>(content: T, transformer
25
26
  * array
26
27
  * @param {object} item
27
28
  * @param {number} len
29
+ * @param {function} next
28
30
  * @return {ArrayConfig}
29
31
  */
30
- declare const createArrayConfig: <T>(item: T, len: number) => ArrayConfig<T>;
32
+ declare const createArrayConfig: <T>(item: T, len: number, next?: (prev: Result<T>, current: Result<T>) => Result<T>) => ArrayConfig<T>;
31
33
  /**
32
34
  * tuple
33
35
  * @param {Array} configItems
@@ -1,4 +1,4 @@
1
- import { ValueConfig, ArrayConfig, ObjectConfig, Result, ObjectConfigWithFn, TupleConfig, SelectionConfig, BoundedSeriesConfig } from './type.js';
1
+ import { ValueConfig, Result, ArrayConfig, ObjectConfig, ObjectConfigWithFn, TupleConfig, SelectionConfig, BoundedSeriesConfig } from './type.js';
2
2
 
3
3
  /**
4
4
  * value
@@ -15,6 +15,7 @@ declare const createSelectionConfig: <T>(items: T[]) => SelectionConfig<T>;
15
15
  /**
16
16
  * object
17
17
  * @param {object} content
18
+ * @param {function} transformer
18
19
  * @return {ObjectConfig}
19
20
  */
20
21
  declare function createObjectConfig<T extends object>(content: T): ObjectConfig<T>;
@@ -25,9 +26,10 @@ declare function createObjectConfig<T extends object, R>(content: T, transformer
25
26
  * array
26
27
  * @param {object} item
27
28
  * @param {number} len
29
+ * @param {function} next
28
30
  * @return {ArrayConfig}
29
31
  */
30
- declare const createArrayConfig: <T>(item: T, len: number) => ArrayConfig<T>;
32
+ declare const createArrayConfig: <T>(item: T, len: number, next?: (prev: Result<T>, current: Result<T>) => Result<T>) => ArrayConfig<T>;
31
33
  /**
32
34
  * tuple
33
35
  * @param {Array} configItems
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk3PSJD6BFjs = require('./chunk-3PSJD6BF.js');
8
+ var _chunkC3RGM3CBjs = require('./chunk-C3RGM3CB.js');
9
9
  require('./chunk-ZWLHVT5O.js');
10
10
  require('./chunk-4VNS5WPM.js');
11
11
 
@@ -15,4 +15,4 @@ require('./chunk-4VNS5WPM.js');
15
15
 
16
16
 
17
17
 
18
- exports.createArrayConfig = _chunk3PSJD6BFjs.createArrayConfig; exports.createBoundedSeriesConfig = _chunk3PSJD6BFjs.createBoundedSeriesConfig; exports.createObjectConfig = _chunk3PSJD6BFjs.createObjectConfig; exports.createSelectionConfig = _chunk3PSJD6BFjs.createSelectionConfig; exports.createTupleConfig = _chunk3PSJD6BFjs.createTupleConfig; exports.createValueConfig = _chunk3PSJD6BFjs.createValueConfig;
18
+ exports.createArrayConfig = _chunkC3RGM3CBjs.createArrayConfig; exports.createBoundedSeriesConfig = _chunkC3RGM3CBjs.createBoundedSeriesConfig; exports.createObjectConfig = _chunkC3RGM3CBjs.createObjectConfig; exports.createSelectionConfig = _chunkC3RGM3CBjs.createSelectionConfig; exports.createTupleConfig = _chunkC3RGM3CBjs.createTupleConfig; exports.createValueConfig = _chunkC3RGM3CBjs.createValueConfig;
@@ -5,7 +5,7 @@ import {
5
5
  createSelectionConfig,
6
6
  createTupleConfig,
7
7
  createValueConfig
8
- } from "./chunk-JTURHVCR.mjs";
8
+ } from "./chunk-ZQA42PYM.mjs";
9
9
  import "./chunk-USLYTOPD.mjs";
10
10
  import "./chunk-XGB3TDIC.mjs";
11
11
  export {
@@ -9,40 +9,40 @@ var _chunkDM5VFX6Bjs = require('./chunk-DM5VFX6B.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk3PSJD6BFjs = require('./chunk-3PSJD6BF.js');
12
+ var _chunkC3RGM3CBjs = require('./chunk-C3RGM3CB.js');
13
13
  require('./chunk-ZWLHVT5O.js');
14
14
  require('./chunk-4VNS5WPM.js');
15
15
 
16
16
  // src/create_config.test.ts
17
17
  _chunkDM5VFX6Bjs.test.call(void 0, "createValueConfig", () => {
18
- const valueConfig = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 44);
18
+ const valueConfig = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 44);
19
19
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, valueConfig.type).toBe("value");
20
20
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, valueConfig.generateFn).toBeTypeOf("function");
21
21
  });
22
22
  _chunkDM5VFX6Bjs.test.call(void 0, "createSelectionConfig", () => {
23
23
  const options = [1, 2, 3, 4];
24
- const selectionConfig = _chunk3PSJD6BFjs.createSelectionConfig.call(void 0, [1, 2, 3, 4]);
24
+ const selectionConfig = _chunkC3RGM3CBjs.createSelectionConfig.call(void 0, [1, 2, 3, 4]);
25
25
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, selectionConfig.type).toBe("select");
26
26
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, selectionConfig.items).toEqual(options);
27
27
  });
28
28
  _chunkDM5VFX6Bjs.test.call(void 0, "createArrayConfig", () => {
29
- const valueConfig = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 44);
30
- const arrConfig = _chunk3PSJD6BFjs.createArrayConfig.call(void 0, valueConfig, 20);
29
+ const valueConfig = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 44);
30
+ const arrConfig = _chunkC3RGM3CBjs.createArrayConfig.call(void 0, valueConfig, 20);
31
31
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, arrConfig.type).toBe("arr");
32
32
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, arrConfig.len).toBe(20);
33
33
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, arrConfig.item).toEqual(valueConfig);
34
34
  });
35
35
  _chunkDM5VFX6Bjs.test.call(void 0, "createTupleConfig", () => {
36
- const value1Config = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 123);
37
- const value2Config = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "hello");
38
- const tupleConfig = _chunk3PSJD6BFjs.createTupleConfig.call(void 0, [value1Config, value2Config]);
36
+ const value1Config = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 123);
37
+ const value2Config = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "hello");
38
+ const tupleConfig = _chunkC3RGM3CBjs.createTupleConfig.call(void 0, [value1Config, value2Config]);
39
39
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, tupleConfig.type).toBe("tuple");
40
40
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, tupleConfig.configItems).toEqual([value1Config, value2Config]);
41
41
  });
42
42
  _chunkDM5VFX6Bjs.test.call(void 0, "createObjConfig", () => {
43
- const value1Config = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 32);
44
- const value2Config = _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "frank");
45
- const objConfig = _chunk3PSJD6BFjs.createObjectConfig.call(void 0, {
43
+ const value1Config = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 32);
44
+ const value2Config = _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "frank");
45
+ const objConfig = _chunkC3RGM3CBjs.createObjectConfig.call(void 0, {
46
46
  name: value2Config,
47
47
  age: value1Config
48
48
  });
@@ -50,7 +50,7 @@ _chunkDM5VFX6Bjs.test.call(void 0, "createObjConfig", () => {
50
50
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, objConfig.content).toEqual({ name: value2Config, age: value1Config });
51
51
  });
52
52
  _chunkDM5VFX6Bjs.test.call(void 0, "createBoundedSeriesConfig", () => {
53
- const boundedSeriesConfig = _chunk3PSJD6BFjs.createBoundedSeriesConfig.call(void 0, {
53
+ const boundedSeriesConfig = _chunkC3RGM3CBjs.createBoundedSeriesConfig.call(void 0, {
54
54
  count: 1,
55
55
  upperLimit: 1.2,
56
56
  lowerLimit: 1,
@@ -9,7 +9,7 @@ import {
9
9
  createSelectionConfig,
10
10
  createTupleConfig,
11
11
  createValueConfig
12
- } from "./chunk-JTURHVCR.mjs";
12
+ } from "./chunk-ZQA42PYM.mjs";
13
13
  import "./chunk-USLYTOPD.mjs";
14
14
  import "./chunk-XGB3TDIC.mjs";
15
15
 
@@ -6,8 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkU7MLTDS4js = require('./chunk-U7MLTDS4.js');
10
- require('./chunk-TZ2RKEBF.js');
9
+ var _chunkQTT2TUDMjs = require('./chunk-QTT2TUDM.js');
11
10
  require('./chunk-ZWLHVT5O.js');
12
11
  require('./chunk-4VNS5WPM.js');
13
12
 
@@ -18,4 +17,4 @@ require('./chunk-4VNS5WPM.js');
18
17
 
19
18
 
20
19
 
21
- exports.createArrayGenerator = _chunkU7MLTDS4js.createArrayGenerator; exports.createBoundedSeriesGenerator = _chunkU7MLTDS4js.createBoundedSeriesGenerator; exports.createGeneratorByType = _chunkU7MLTDS4js.createGeneratorByType; exports.createObjectGenerator = _chunkU7MLTDS4js.createObjectGenerator; exports.createSelectionGenerator = _chunkU7MLTDS4js.createSelectionGenerator; exports.createTupleGenerator = _chunkU7MLTDS4js.createTupleGenerator; exports.createValueGenerator = _chunkU7MLTDS4js.createValueGenerator;
20
+ exports.createArrayGenerator = _chunkQTT2TUDMjs.createArrayGenerator; exports.createBoundedSeriesGenerator = _chunkQTT2TUDMjs.createBoundedSeriesGenerator; exports.createGeneratorByType = _chunkQTT2TUDMjs.createGeneratorByType; exports.createObjectGenerator = _chunkQTT2TUDMjs.createObjectGenerator; exports.createSelectionGenerator = _chunkQTT2TUDMjs.createSelectionGenerator; exports.createTupleGenerator = _chunkQTT2TUDMjs.createTupleGenerator; exports.createValueGenerator = _chunkQTT2TUDMjs.createValueGenerator;
@@ -6,8 +6,7 @@ import {
6
6
  createSelectionGenerator,
7
7
  createTupleGenerator,
8
8
  createValueGenerator
9
- } from "./chunk-MLJAHDYX.mjs";
10
- import "./chunk-3U6BNHWG.mjs";
9
+ } from "./chunk-7TMD372Q.mjs";
11
10
  import "./chunk-USLYTOPD.mjs";
12
11
  import "./chunk-XGB3TDIC.mjs";
13
12
  export {
@@ -8,7 +8,7 @@ var _chunkDM5VFX6Bjs = require('./chunk-DM5VFX6B.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk3PSJD6BFjs = require('./chunk-3PSJD6BF.js');
11
+ var _chunkC3RGM3CBjs = require('./chunk-C3RGM3CB.js');
12
12
 
13
13
 
14
14
 
@@ -17,20 +17,19 @@ var _chunk3PSJD6BFjs = require('./chunk-3PSJD6BF.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkU7MLTDS4js = require('./chunk-U7MLTDS4.js');
21
- require('./chunk-TZ2RKEBF.js');
20
+ var _chunkQTT2TUDMjs = require('./chunk-QTT2TUDM.js');
22
21
  require('./chunk-ZWLHVT5O.js');
23
22
  require('./chunk-4VNS5WPM.js');
24
23
 
25
24
  // src/create_generator_fn.test.ts
26
25
  _chunkDM5VFX6Bjs.describe.call(void 0, "createValueGenerator", () => {
27
26
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
28
- const value = _chunkU7MLTDS4js.createValueGenerator.call(void 0, {
27
+ const value = _chunkQTT2TUDMjs.createValueGenerator.call(void 0, {
29
28
  type: "value",
30
29
  generateFn: () => 50
31
30
  })();
32
31
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, value).toBe(50);
33
- const value2 = _chunkU7MLTDS4js.createValueGenerator.call(void 0, {
32
+ const value2 = _chunkQTT2TUDMjs.createValueGenerator.call(void 0, {
34
33
  type: "value",
35
34
  generateFn: () => ({ age: 100, name: "hello" })
36
35
  })();
@@ -39,12 +38,12 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createValueGenerator", () => {
39
38
  });
40
39
  _chunkDM5VFX6Bjs.describe.call(void 0, "createSelectionGenerator", () => {
41
40
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
42
- const value = _chunkU7MLTDS4js.createSelectionGenerator.call(void 0, {
41
+ const value = _chunkQTT2TUDMjs.createSelectionGenerator.call(void 0, {
43
42
  type: "select",
44
43
  items: [1]
45
44
  })();
46
45
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, value).toBe(1);
47
- const value2 = _chunkU7MLTDS4js.createSelectionGenerator.call(void 0, {
46
+ const value2 = _chunkQTT2TUDMjs.createSelectionGenerator.call(void 0, {
48
47
  type: "select",
49
48
  items: [30, 30, 30, 30]
50
49
  })();
@@ -53,7 +52,7 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createSelectionGenerator", () => {
53
52
  });
54
53
  _chunkDM5VFX6Bjs.describe.call(void 0, "createArrayGenerator", () => {
55
54
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
56
- const list = _chunkU7MLTDS4js.createArrayGenerator.call(void 0, {
55
+ const list = _chunkQTT2TUDMjs.createArrayGenerator.call(void 0, {
57
56
  type: "arr",
58
57
  len: 5,
59
58
  item: { type: "value", generateFn: () => ({ age: 42 }) }
@@ -66,13 +65,23 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createArrayGenerator", () => {
66
65
  { age: 42 }
67
66
  ]);
68
67
  });
68
+ _chunkDM5VFX6Bjs.test.call(void 0, "with next function", () => {
69
+ const list = _chunkQTT2TUDMjs.createArrayGenerator.call(void 0,
70
+ _chunkC3RGM3CBjs.createArrayConfig.call(void 0,
71
+ _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 100),
72
+ 5,
73
+ (prev) => prev + 1
74
+ )
75
+ )();
76
+ _chunkDM5VFX6Bjs.globalExpect.call(void 0, list).toEqual([101, 102, 103, 104, 105]);
77
+ });
69
78
  });
70
79
  _chunkDM5VFX6Bjs.describe.call(void 0, "createTupleGenerator", () => {
71
80
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
72
- const tuple = _chunkU7MLTDS4js.createTupleGenerator.call(void 0,
73
- _chunk3PSJD6BFjs.createTupleConfig.call(void 0, [
74
- _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 225),
75
- _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "hello world")
81
+ const tuple = _chunkQTT2TUDMjs.createTupleGenerator.call(void 0,
82
+ _chunkC3RGM3CBjs.createTupleConfig.call(void 0, [
83
+ _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 225),
84
+ _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "hello world")
76
85
  ])
77
86
  )();
78
87
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, tuple.length).toBe(2);
@@ -83,7 +92,7 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createTupleGenerator", () => {
83
92
  });
84
93
  _chunkDM5VFX6Bjs.describe.call(void 0, "createObjectGenerator", () => {
85
94
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
86
- const obj = _chunkU7MLTDS4js.createObjectGenerator.call(void 0, {
95
+ const obj = _chunkQTT2TUDMjs.createObjectGenerator.call(void 0, {
87
96
  type: "obj",
88
97
  content: {
89
98
  name: { type: "value", generateFn: () => "John" },
@@ -94,12 +103,12 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createObjectGenerator", () => {
94
103
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, obj).toEqual({ name: "John", age: 50, location: "Taiwan" });
95
104
  });
96
105
  _chunkDM5VFX6Bjs.test.call(void 0, "transformer function", () => {
97
- const obj = _chunkU7MLTDS4js.createObjectGenerator.call(void 0,
98
- _chunk3PSJD6BFjs.createObjectConfig.call(void 0,
106
+ const obj = _chunkQTT2TUDMjs.createObjectGenerator.call(void 0,
107
+ _chunkC3RGM3CBjs.createObjectConfig.call(void 0,
99
108
  {
100
- name: _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "John"),
101
- age: _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 50),
102
- location: _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "Taiwan")
109
+ name: _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "John"),
110
+ age: _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 50),
111
+ location: _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "Taiwan")
103
112
  },
104
113
  ({ age }) => age + 50
105
114
  )
@@ -113,7 +122,7 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createBoundedSeriesGenerator", () => {
113
122
  const lowerLimit = 0.9;
114
123
  const initValue = 100;
115
124
  const count = 100;
116
- const list = _chunkU7MLTDS4js.createBoundedSeriesGenerator.call(void 0, {
125
+ const list = _chunkQTT2TUDMjs.createBoundedSeriesGenerator.call(void 0, {
117
126
  type: "bounded_series",
118
127
  upperLimit,
119
128
  lowerLimit,
@@ -137,15 +146,15 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createBoundedSeriesGenerator", () => {
137
146
  });
138
147
  _chunkDM5VFX6Bjs.describe.call(void 0, "createGeneratorByType", () => {
139
148
  _chunkDM5VFX6Bjs.test.call(void 0, "normal", () => {
140
- const config = _chunk3PSJD6BFjs.createObjectConfig.call(void 0, {
141
- name: _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "John"),
142
- age: _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 50),
143
- locations: _chunk3PSJD6BFjs.createArrayConfig.call(void 0,
144
- _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "Taiwan"),
149
+ const config = _chunkC3RGM3CBjs.createObjectConfig.call(void 0, {
150
+ name: _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "John"),
151
+ age: _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 50),
152
+ locations: _chunkC3RGM3CBjs.createArrayConfig.call(void 0,
153
+ _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "Taiwan"),
145
154
  5
146
155
  )
147
156
  });
148
- const result = _chunkU7MLTDS4js.createGeneratorByType.call(void 0, config)();
157
+ const result = _chunkQTT2TUDMjs.createGeneratorByType.call(void 0, config)();
149
158
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, result).toEqual({
150
159
  name: "John",
151
160
  age: 50,
@@ -162,11 +171,11 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createGeneratorByType", () => {
162
171
  }
163
172
  }
164
173
  };
165
- _chunkDM5VFX6Bjs.globalExpect.call(void 0, () => _chunkU7MLTDS4js.createGeneratorByType.call(void 0, config)).toThrowError();
174
+ _chunkDM5VFX6Bjs.globalExpect.call(void 0, () => _chunkQTT2TUDMjs.createGeneratorByType.call(void 0, config)).toThrowError();
166
175
  });
167
176
  _chunkDM5VFX6Bjs.test.call(void 0, "with custom type match", () => {
168
- const createIntValueConfig = (option) => _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => 50);
169
- const createEmailValueConfig = (option) => _chunk3PSJD6BFjs.createValueConfig.call(void 0, () => "xxx@example.com");
177
+ const createIntValueConfig = (option) => _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => 50);
178
+ const createEmailValueConfig = (option) => _chunkC3RGM3CBjs.createValueConfig.call(void 0, () => "xxx@example.com");
170
179
  const customTypeMatch = (config2) => {
171
180
  if (config2.type === "int") {
172
181
  return createIntValueConfig(config2.option);
@@ -176,12 +185,12 @@ _chunkDM5VFX6Bjs.describe.call(void 0, "createGeneratorByType", () => {
176
185
  }
177
186
  throw Error("error");
178
187
  };
179
- const config = _chunk3PSJD6BFjs.createObjectConfig.call(void 0, {
188
+ const config = _chunkC3RGM3CBjs.createObjectConfig.call(void 0, {
180
189
  name: { type: "value", generateFn: () => "John" },
181
190
  age: { type: "int" },
182
191
  email: { type: "email" }
183
192
  });
184
- const result = _chunkU7MLTDS4js.createGeneratorByType.call(void 0, config, customTypeMatch)();
193
+ const result = _chunkQTT2TUDMjs.createGeneratorByType.call(void 0, config, customTypeMatch)();
185
194
  _chunkDM5VFX6Bjs.globalExpect.call(void 0, result).toEqual({
186
195
  name: "John",
187
196
  age: 50,
@@ -8,7 +8,7 @@ import {
8
8
  createObjectConfig,
9
9
  createTupleConfig,
10
10
  createValueConfig
11
- } from "./chunk-JTURHVCR.mjs";
11
+ } from "./chunk-ZQA42PYM.mjs";
12
12
  import {
13
13
  createArrayGenerator,
14
14
  createBoundedSeriesGenerator,
@@ -17,8 +17,7 @@ import {
17
17
  createSelectionGenerator,
18
18
  createTupleGenerator,
19
19
  createValueGenerator
20
- } from "./chunk-MLJAHDYX.mjs";
21
- import "./chunk-3U6BNHWG.mjs";
20
+ } from "./chunk-7TMD372Q.mjs";
22
21
  import "./chunk-USLYTOPD.mjs";
23
22
  import "./chunk-XGB3TDIC.mjs";
24
23
 
@@ -66,6 +65,16 @@ describe("createArrayGenerator", () => {
66
65
  { age: 42 }
67
66
  ]);
68
67
  });
68
+ test("with next function", () => {
69
+ const list = createArrayGenerator(
70
+ createArrayConfig(
71
+ createValueConfig(() => 100),
72
+ 5,
73
+ (prev) => prev + 1
74
+ )
75
+ )();
76
+ globalExpect(list).toEqual([101, 102, 103, 104, 105]);
77
+ });
69
78
  });
70
79
  describe("createTupleGenerator", () => {
71
80
  test("normal", () => {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-UIYW7U2O.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-EZFWJGGR.js');
2
2
 
3
3
 
4
4
 
@@ -7,8 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkU7MLTDS4js = require('./chunk-U7MLTDS4.js');
11
- require('./chunk-TZ2RKEBF.js');
10
+ var _chunkQTT2TUDMjs = require('./chunk-QTT2TUDM.js');
12
11
  require('./chunk-ZWLHVT5O.js');
13
12
  require('./chunk-4VNS5WPM.js');
14
13
 
@@ -19,4 +18,4 @@ require('./chunk-4VNS5WPM.js');
19
18
 
20
19
 
21
20
 
22
- exports.genArrayFn = _chunkU7MLTDS4js.createArrayGenerator; exports.genBoundedSeriesFn = _chunkU7MLTDS4js.createBoundedSeriesGenerator; exports.genFn = _chunkU7MLTDS4js.createGeneratorByType; exports.genObjectFn = _chunkU7MLTDS4js.createObjectGenerator; exports.genSelectFn = _chunkU7MLTDS4js.createSelectionGenerator; exports.genTupleFn = _chunkU7MLTDS4js.createTupleGenerator; exports.genValueFn = _chunkU7MLTDS4js.createValueGenerator;
21
+ exports.genArrayFn = _chunkQTT2TUDMjs.createArrayGenerator; exports.genBoundedSeriesFn = _chunkQTT2TUDMjs.createBoundedSeriesGenerator; exports.genFn = _chunkQTT2TUDMjs.createGeneratorByType; exports.genObjectFn = _chunkQTT2TUDMjs.createObjectGenerator; exports.genSelectFn = _chunkQTT2TUDMjs.createSelectionGenerator; exports.genTupleFn = _chunkQTT2TUDMjs.createTupleGenerator; exports.genValueFn = _chunkQTT2TUDMjs.createValueGenerator;
@@ -1,4 +1,4 @@
1
- import "./chunk-QZQ32UPU.mjs";
1
+ import "./chunk-GNFZ7Z6V.mjs";
2
2
  import {
3
3
  createArrayGenerator,
4
4
  createBoundedSeriesGenerator,
@@ -7,8 +7,7 @@ import {
7
7
  createSelectionGenerator,
8
8
  createTupleGenerator,
9
9
  createValueGenerator
10
- } from "./chunk-MLJAHDYX.mjs";
11
- import "./chunk-3U6BNHWG.mjs";
10
+ } from "./chunk-7TMD372Q.mjs";
12
11
  import "./chunk-USLYTOPD.mjs";
13
12
  import "./chunk-XGB3TDIC.mjs";
14
13
  export {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-SN4QTD6R.js');
2
2
 
3
3
 
4
- var _chunk5KKLW4SDjs = require('./chunk-5KKLW4SD.js');
4
+ var _chunkV2AWKRQIjs = require('./chunk-V2AWKRQI.js');
5
5
 
6
6
 
7
7
 
@@ -9,10 +9,10 @@ var _chunk5KKLW4SDjs = require('./chunk-5KKLW4SD.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk3PSJD6BFjs = require('./chunk-3PSJD6BF.js');
12
+ var _chunkC3RGM3CBjs = require('./chunk-C3RGM3CB.js');
13
13
 
14
14
 
15
- var _chunkUIYW7U2Ojs = require('./chunk-UIYW7U2O.js');
15
+ var _chunkEZFWJGGRjs = require('./chunk-EZFWJGGR.js');
16
16
 
17
17
 
18
18
 
@@ -21,8 +21,7 @@ var _chunkUIYW7U2Ojs = require('./chunk-UIYW7U2O.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkU7MLTDS4js = require('./chunk-U7MLTDS4.js');
25
- require('./chunk-TZ2RKEBF.js');
24
+ var _chunkQTT2TUDMjs = require('./chunk-QTT2TUDM.js');
26
25
  require('./chunk-ZWLHVT5O.js');
27
26
  require('./chunk-4VNS5WPM.js');
28
27
 
@@ -41,4 +40,4 @@ require('./chunk-4VNS5WPM.js');
41
40
 
42
41
 
43
42
 
44
- exports.StructConfig = _chunk5KKLW4SDjs.config_exports; exports.StructGenerator = _chunkUIYW7U2Ojs.generator_fn_exports; exports.createArrayConfig = _chunk3PSJD6BFjs.createArrayConfig; exports.createArrayGenerator = _chunkU7MLTDS4js.createArrayGenerator; exports.createBoundedSeriesConfig = _chunk3PSJD6BFjs.createBoundedSeriesConfig; exports.createBoundedSeriesGenerator = _chunkU7MLTDS4js.createBoundedSeriesGenerator; exports.createGeneratorByType = _chunkU7MLTDS4js.createGeneratorByType; exports.createObjectConfig = _chunk3PSJD6BFjs.createObjectConfig; exports.createObjectGenerator = _chunkU7MLTDS4js.createObjectGenerator; exports.createSelectionConfig = _chunk3PSJD6BFjs.createSelectionConfig; exports.createSelectionGenerator = _chunkU7MLTDS4js.createSelectionGenerator; exports.createTupleConfig = _chunk3PSJD6BFjs.createTupleConfig; exports.createTupleGenerator = _chunkU7MLTDS4js.createTupleGenerator; exports.createValueConfig = _chunk3PSJD6BFjs.createValueConfig; exports.createValueGenerator = _chunkU7MLTDS4js.createValueGenerator;
43
+ exports.StructConfig = _chunkV2AWKRQIjs.config_exports; exports.StructGenerator = _chunkEZFWJGGRjs.generator_fn_exports; exports.createArrayConfig = _chunkC3RGM3CBjs.createArrayConfig; exports.createArrayGenerator = _chunkQTT2TUDMjs.createArrayGenerator; exports.createBoundedSeriesConfig = _chunkC3RGM3CBjs.createBoundedSeriesConfig; exports.createBoundedSeriesGenerator = _chunkQTT2TUDMjs.createBoundedSeriesGenerator; exports.createGeneratorByType = _chunkQTT2TUDMjs.createGeneratorByType; exports.createObjectConfig = _chunkC3RGM3CBjs.createObjectConfig; exports.createObjectGenerator = _chunkQTT2TUDMjs.createObjectGenerator; exports.createSelectionConfig = _chunkC3RGM3CBjs.createSelectionConfig; exports.createSelectionGenerator = _chunkQTT2TUDMjs.createSelectionGenerator; exports.createTupleConfig = _chunkC3RGM3CBjs.createTupleConfig; exports.createTupleGenerator = _chunkQTT2TUDMjs.createTupleGenerator; exports.createValueConfig = _chunkC3RGM3CBjs.createValueConfig; exports.createValueGenerator = _chunkQTT2TUDMjs.createValueGenerator;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-7UQSPUCL.mjs";
2
2
  import {
3
3
  config_exports
4
- } from "./chunk-EXLV2IRM.mjs";
4
+ } from "./chunk-VE3Q5LC3.mjs";
5
5
  import {
6
6
  createArrayConfig,
7
7
  createBoundedSeriesConfig,
@@ -9,10 +9,10 @@ import {
9
9
  createSelectionConfig,
10
10
  createTupleConfig,
11
11
  createValueConfig
12
- } from "./chunk-JTURHVCR.mjs";
12
+ } from "./chunk-ZQA42PYM.mjs";
13
13
  import {
14
14
  generator_fn_exports
15
- } from "./chunk-QZQ32UPU.mjs";
15
+ } from "./chunk-GNFZ7Z6V.mjs";
16
16
  import {
17
17
  createArrayGenerator,
18
18
  createBoundedSeriesGenerator,
@@ -21,8 +21,7 @@ import {
21
21
  createSelectionGenerator,
22
22
  createTupleGenerator,
23
23
  createValueGenerator
24
- } from "./chunk-MLJAHDYX.mjs";
25
- import "./chunk-3U6BNHWG.mjs";
24
+ } from "./chunk-7TMD372Q.mjs";
26
25
  import "./chunk-USLYTOPD.mjs";
27
26
  import "./chunk-XGB3TDIC.mjs";
28
27
  export {
@@ -0,0 +1,106 @@
1
+ import * as _faker_js_faker__ from '@faker-js/faker/.';
2
+ import { ValueConfig } from './type.mjs';
3
+
4
+ /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
5
+ declare const color: (options?: {
6
+ redBase?: number;
7
+ greenBase?: number;
8
+ blueBase?: number;
9
+ }) => ValueConfig<string>;
10
+ /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
11
+ declare const displayName: (options?: {
12
+ firstName?: string;
13
+ lastName?: string;
14
+ }) => ValueConfig<string>;
15
+ /** Internet [domainName](https://fakerjs.dev/api/internet.html#domainName) */
16
+ declare const domainName: () => ValueConfig<string>;
17
+ /** Internet [domainSuffix](https://fakerjs.dev/api/internet.html#domainSuffix) */
18
+ declare const domainSuffix: () => ValueConfig<string>;
19
+ /** Internet [domainWord](https://fakerjs.dev/api/internet.html#domainWord) */
20
+ declare const domainWord: () => ValueConfig<string>;
21
+ /** Internet [email](https://fakerjs.dev/api/internet.html#email) */
22
+ declare const email: (options?: {
23
+ firstName?: string;
24
+ lastName?: string;
25
+ provider?: string;
26
+ allowSpecialCharacters?: boolean;
27
+ }) => ValueConfig<string>;
28
+ /** Internet [emoji](https://fakerjs.dev/api/internet.html#emoji) */
29
+ declare const emoji: (options?: {
30
+ types?: ReadonlyArray<"symbol" | "object" | "smiley" | "body" | "person" | "nature" | "food" | "travel" | "activity" | "flag">;
31
+ }) => ValueConfig<string>;
32
+ /** Internet [exampleEmail](https://fakerjs.dev/api/internet.html#exampleEmail) */
33
+ declare const exampleEmail: (options?: {
34
+ firstName?: string;
35
+ lastName?: string;
36
+ allowSpecialCharacters?: boolean;
37
+ }) => ValueConfig<string>;
38
+ /** Internet [httpMethod](https://fakerjs.dev/api/internet.html#httpMethod) */
39
+ declare const httpMethod: () => ValueConfig<"GET" | "POST" | "PUT" | "DELETE" | "PATCH">;
40
+ /** Internet [httpStatusCode](https://fakerjs.dev/api/internet.html#httpStatusCode) */
41
+ declare const httpStatusCode: (options?: {
42
+ types?: ReadonlyArray<"informational" | "success" | "clientError" | "serverError" | "redirection">;
43
+ }) => ValueConfig<number>;
44
+ /** Internet [ip](https://fakerjs.dev/api/internet.html#ip) */
45
+ declare const ip: () => ValueConfig<string>;
46
+ /** Internet [ipv4](https://fakerjs.dev/api/internet.html#ipv4) */
47
+ declare const ipv4: (options?: {
48
+ cidrBlock?: string;
49
+ } | {
50
+ network?: _faker_js_faker__.IPv4NetworkType;
51
+ }) => ValueConfig<string>;
52
+ /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
53
+ declare const ipv6: () => ValueConfig<string>;
54
+ /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
55
+ declare const mac: (options?: string | {
56
+ separator?: string;
57
+ }) => ValueConfig<string>;
58
+ /** Internet [password](https://fakerjs.dev/api/internet.html#password) */
59
+ declare const password: (options?: {
60
+ length?: number;
61
+ memorable?: boolean;
62
+ pattern?: RegExp;
63
+ prefix?: string;
64
+ }) => ValueConfig<string>;
65
+ /** Internet [port](https://fakerjs.dev/api/internet.html#port) */
66
+ declare const port: () => ValueConfig<number>;
67
+ /** Internet [protocol](https://fakerjs.dev/api/internet.html#protocol) */
68
+ declare const protocol: () => ValueConfig<"http" | "https">;
69
+ /** Internet [url](https://fakerjs.dev/api/internet.html#url) */
70
+ declare const url: (options?: {
71
+ appendSlash?: boolean;
72
+ protocol?: "http" | "https";
73
+ }) => ValueConfig<string>;
74
+ /** Internet [userAgent](https://fakerjs.dev/api/internet.html#userAgent) */
75
+ declare const userAgent: () => ValueConfig<string>;
76
+ /** Internet [userName](https://fakerjs.dev/api/internet.html#userName) */
77
+ declare const username: (options?: {
78
+ firstName?: string;
79
+ lastName?: string;
80
+ }) => ValueConfig<string>;
81
+
82
+ declare const internet_color: typeof color;
83
+ declare const internet_displayName: typeof displayName;
84
+ declare const internet_domainName: typeof domainName;
85
+ declare const internet_domainSuffix: typeof domainSuffix;
86
+ declare const internet_domainWord: typeof domainWord;
87
+ declare const internet_email: typeof email;
88
+ declare const internet_emoji: typeof emoji;
89
+ declare const internet_exampleEmail: typeof exampleEmail;
90
+ declare const internet_httpMethod: typeof httpMethod;
91
+ declare const internet_httpStatusCode: typeof httpStatusCode;
92
+ declare const internet_ip: typeof ip;
93
+ declare const internet_ipv4: typeof ipv4;
94
+ declare const internet_ipv6: typeof ipv6;
95
+ declare const internet_mac: typeof mac;
96
+ declare const internet_password: typeof password;
97
+ declare const internet_port: typeof port;
98
+ declare const internet_protocol: typeof protocol;
99
+ declare const internet_url: typeof url;
100
+ declare const internet_userAgent: typeof userAgent;
101
+ declare const internet_username: typeof username;
102
+ declare namespace internet {
103
+ export { internet_color as color, internet_displayName as displayName, internet_domainName as domainName, internet_domainSuffix as domainSuffix, internet_domainWord as domainWord, internet_email as email, internet_emoji as emoji, internet_exampleEmail as exampleEmail, internet_httpMethod as httpMethod, internet_httpStatusCode as httpStatusCode, internet_ip as ip, internet_ipv4 as ipv4, internet_ipv6 as ipv6, internet_mac as mac, internet_password as password, internet_port as port, internet_protocol as protocol, internet_url as url, internet_userAgent as userAgent, internet_username as username };
104
+ }
105
+
106
+ export { domainName as a, domainSuffix as b, color as c, displayName as d, domainWord as e, email as f, emoji as g, exampleEmail as h, internet as i, httpMethod as j, httpStatusCode as k, ip as l, ipv4 as m, ipv6 as n, mac as o, password as p, port as q, protocol as r, userAgent as s, username as t, url as u };