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
@@ -0,0 +1,165 @@
1
+ import {
2
+ arrayConfigScheme,
3
+ boundedSeriesScheme,
4
+ objConfigScheme,
5
+ selectionConfigScheme,
6
+ tupleConfigScheme,
7
+ valueConfigScheme
8
+ } from "./chunk-USLYTOPD.mjs";
9
+
10
+ // src/create_generator_fn.ts
11
+ import { faker } from "@faker-js/faker";
12
+ var _createValueGenerator = (config, path) => {
13
+ try {
14
+ valueConfigScheme.parse(config);
15
+ } catch (err) {
16
+ throw new Error(`config path: ${path}.value
17
+ ${err}`);
18
+ }
19
+ return config.generateFn;
20
+ };
21
+ var createValueGenerator = (config) => _createValueGenerator(config, "*");
22
+ var _createSelectionGenerator = (config, path) => {
23
+ try {
24
+ selectionConfigScheme.parse(config);
25
+ } catch (err) {
26
+ throw new Error(`config path: ${path}.select
27
+ ${err}`);
28
+ }
29
+ const { items } = config;
30
+ return () => items[faker.number.int(items.length - 1)];
31
+ };
32
+ var createSelectionGenerator = (config) => _createSelectionGenerator(config, "*");
33
+ var _createObjectGenerator = (config, path, customTypeMatch) => {
34
+ try {
35
+ objConfigScheme.parse(config);
36
+ } catch (err) {
37
+ throw new Error(`config path: ${path}.obj
38
+ ${err}`);
39
+ }
40
+ const keyWithFns = Object.entries(config.content).map(([key, subConfig]) => [
41
+ key,
42
+ _createGeneratorByType(subConfig, `${path}.obj[${key}]`, customTypeMatch)
43
+ ]);
44
+ return () => {
45
+ const result = {};
46
+ for (const [key, generateFn] of keyWithFns) {
47
+ result[key] = generateFn();
48
+ }
49
+ if ("transformer" in config && typeof config.transformer === "function") {
50
+ return config.transformer(result);
51
+ }
52
+ return result;
53
+ };
54
+ };
55
+ var createObjectGenerator = (config, customTypeMatch) => _createObjectGenerator(config, "*", customTypeMatch);
56
+ var _createArrayGenerator = (config, path, customTypeMatch) => {
57
+ try {
58
+ arrayConfigScheme.parse(config);
59
+ } catch (err) {
60
+ throw new Error(`config path: ${path}.arr
61
+ ${err}`);
62
+ }
63
+ const itemGeneratorFn = _createGeneratorByType(
64
+ config.item,
65
+ `${path}.arr`,
66
+ customTypeMatch
67
+ );
68
+ if (config.next) {
69
+ const next = config.next;
70
+ return () => {
71
+ let prev = itemGeneratorFn();
72
+ const result = [];
73
+ for (let i = 0; i < config.len; i++) {
74
+ const nextValue = next(prev, itemGeneratorFn());
75
+ result.push(nextValue);
76
+ prev = nextValue;
77
+ }
78
+ return result;
79
+ };
80
+ }
81
+ return () => Array.from({ length: config.len ?? 0 }, itemGeneratorFn);
82
+ };
83
+ var createArrayGenerator = (config, customTypeMatch) => _createArrayGenerator(config, "*", customTypeMatch);
84
+ var _createTupleGenerator = (config, path, customTypeMatch) => {
85
+ try {
86
+ tupleConfigScheme.parse(config);
87
+ } catch (err) {
88
+ throw new Error(`config path: ${path}.tuple
89
+ ${err}`);
90
+ }
91
+ const itemsFns = config.configItems.map(
92
+ (configItem, index) => _createGeneratorByType(
93
+ configItem,
94
+ `${path}.tuple[${index}]`,
95
+ customTypeMatch
96
+ )
97
+ );
98
+ return () => itemsFns.map((generateFn) => generateFn());
99
+ };
100
+ var createTupleGenerator = (config, customTypeMatch) => _createTupleGenerator(config, "*", customTypeMatch);
101
+ var _createBoundedSeriesGenerator = (config, path) => {
102
+ try {
103
+ boundedSeriesScheme.parse(config);
104
+ } catch (err) {
105
+ throw new Error(`config path: ${path}.boundedSeries
106
+ ${err}`);
107
+ }
108
+ const { upperLimit, lowerLimit, createInitValue, count } = config;
109
+ return () => {
110
+ let value = createInitValue();
111
+ const boundedSeries = [];
112
+ for (let i = 0; i < count; i++) {
113
+ value = faker.number.float({ max: upperLimit, min: lowerLimit }) * value;
114
+ boundedSeries.push(value);
115
+ }
116
+ return boundedSeries;
117
+ };
118
+ };
119
+ var createBoundedSeriesGenerator = (config) => _createBoundedSeriesGenerator(config, "*");
120
+ var _createGeneratorByType = (config, path, customTypeMatch) => {
121
+ switch (config.type) {
122
+ case "obj":
123
+ return _createObjectGenerator(
124
+ config,
125
+ path,
126
+ customTypeMatch
127
+ );
128
+ case "arr":
129
+ return _createArrayGenerator(
130
+ config,
131
+ path,
132
+ customTypeMatch
133
+ );
134
+ case "tuple":
135
+ return _createTupleGenerator(
136
+ config,
137
+ path,
138
+ customTypeMatch
139
+ );
140
+ case "select":
141
+ return _createSelectionGenerator(config, path);
142
+ case "value":
143
+ return _createValueGenerator(config, path);
144
+ case "bounded_series":
145
+ return _createBoundedSeriesGenerator(config, path);
146
+ default: {
147
+ if (customTypeMatch) {
148
+ return createValueGenerator(customTypeMatch(config, path));
149
+ }
150
+ throw new Error(`path: ${path}
151
+ config type is not supported`);
152
+ }
153
+ }
154
+ };
155
+ var createGeneratorByType = (config, customTypeMatch) => _createGeneratorByType(config, "*", customTypeMatch);
156
+
157
+ export {
158
+ createValueGenerator,
159
+ createSelectionGenerator,
160
+ createObjectGenerator,
161
+ createArrayGenerator,
162
+ createTupleGenerator,
163
+ createBoundedSeriesGenerator,
164
+ createGeneratorByType
165
+ };
@@ -0,0 +1,54 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIOXGSFEUjs = require('./chunk-IOXGSFEU.js');
4
+
5
+
6
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
7
+
8
+ // src/utils/system.ts
9
+ var system_exports = {};
10
+ _chunk4VNS5WPMjs.__export.call(void 0, system_exports, {
11
+ commonFileExt: () => commonFileExt,
12
+ commonFileName: () => commonFileName,
13
+ commonFileType: () => commonFileType,
14
+ cron: () => cron,
15
+ directoryPath: () => directoryPath,
16
+ fileExt: () => fileExt,
17
+ fileName: () => fileName,
18
+ filePath: () => filePath,
19
+ fileType: () => fileType,
20
+ mimeType: () => mimeType,
21
+ networkInterface: () => networkInterface,
22
+ semver: () => semver
23
+ });
24
+ var _faker = require('@faker-js/faker');
25
+ var commonFileExt = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.commonFileExt);
26
+ var commonFileName = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.commonFileName);
27
+ var commonFileType = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.commonFileType);
28
+ var cron = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.cron);
29
+ var directoryPath = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.directoryPath);
30
+ var fileExt = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.fileExt);
31
+ var fileName = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.fileName);
32
+ var filePath = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.filePath);
33
+ var fileType = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.fileType);
34
+ var mimeType = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.mimeType);
35
+ var networkInterface = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
36
+ _faker.faker.system.networkInterface
37
+ );
38
+ var semver = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.system.semver);
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+ exports.commonFileExt = commonFileExt; exports.commonFileName = commonFileName; exports.commonFileType = commonFileType; exports.cron = cron; exports.directoryPath = directoryPath; exports.fileExt = fileExt; exports.fileName = fileName; exports.filePath = filePath; exports.fileType = fileType; exports.mimeType = mimeType; exports.networkInterface = networkInterface; exports.semver = semver; exports.system_exports = system_exports;
@@ -0,0 +1,34 @@
1
+ import {
2
+ makeValueConfigFn
3
+ } from "./chunk-3KXIZTCT.mjs";
4
+ import {
5
+ __export
6
+ } from "./chunk-XGB3TDIC.mjs";
7
+
8
+ // src/utils/hacker.ts
9
+ var hacker_exports = {};
10
+ __export(hacker_exports, {
11
+ abbreviation: () => abbreviation,
12
+ adjective: () => adjective,
13
+ ingverb: () => ingverb,
14
+ noun: () => noun,
15
+ phrase: () => phrase,
16
+ verb: () => verb
17
+ });
18
+ import { faker } from "@faker-js/faker";
19
+ var abbreviation = makeValueConfigFn(faker.hacker.abbreviation);
20
+ var adjective = makeValueConfigFn(faker.hacker.adjective);
21
+ var ingverb = makeValueConfigFn(faker.hacker.ingverb);
22
+ var noun = makeValueConfigFn(faker.hacker.noun);
23
+ var phrase = makeValueConfigFn(faker.hacker.phrase);
24
+ var verb = makeValueConfigFn(faker.hacker.verb);
25
+
26
+ export {
27
+ abbreviation,
28
+ adjective,
29
+ ingverb,
30
+ noun,
31
+ phrase,
32
+ verb,
33
+ hacker_exports
34
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _chunkZWLHVT5Ojs = require('./chunk-ZWLHVT5O.js');
9
+
10
+ // src/create_config.ts
11
+ var createValueConfig = (generateFn) => {
12
+ const config = {
13
+ type: "value",
14
+ generateFn
15
+ };
16
+ _chunkZWLHVT5Ojs.valueConfigScheme.parse(config);
17
+ return config;
18
+ };
19
+ var createSelectionConfig = (items) => {
20
+ const config = { type: "select", items };
21
+ _chunkZWLHVT5Ojs.selectionConfigScheme.parse(config);
22
+ return config;
23
+ };
24
+ function createObjectConfig(content, transformer) {
25
+ if (transformer) {
26
+ const config2 = {
27
+ type: "obj",
28
+ content,
29
+ transformer
30
+ };
31
+ _chunkZWLHVT5Ojs.objConfigScheme.parse(config2);
32
+ return config2;
33
+ }
34
+ const config = { type: "obj", content };
35
+ _chunkZWLHVT5Ojs.objConfigScheme.parse(config);
36
+ return config;
37
+ }
38
+ var createArrayConfig = (item, len, next) => {
39
+ const config = { type: "arr", item, len, next };
40
+ _chunkZWLHVT5Ojs.arrayConfigScheme.parse(config);
41
+ return config;
42
+ };
43
+ var createTupleConfig = (configItems) => {
44
+ const config = {
45
+ type: "tuple",
46
+ configItems
47
+ };
48
+ _chunkZWLHVT5Ojs.tupleConfigScheme.parse(config);
49
+ return config;
50
+ };
51
+ var createBoundedSeriesConfig = (config) => {
52
+ const newConfig = {
53
+ type: "bounded_series",
54
+ ...config
55
+ };
56
+ _chunkZWLHVT5Ojs.boundedSeriesScheme.parse(newConfig);
57
+ return newConfig;
58
+ };
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+ exports.createValueConfig = createValueConfig; exports.createSelectionConfig = createSelectionConfig; exports.createObjectConfig = createObjectConfig; exports.createArrayConfig = createArrayConfig; exports.createTupleConfig = createTupleConfig; exports.createBoundedSeriesConfig = createBoundedSeriesConfig;
@@ -0,0 +1,46 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIOXGSFEUjs = require('./chunk-IOXGSFEU.js');
4
+
5
+
6
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
7
+
8
+ // src/utils/string.ts
9
+ var string_exports = {};
10
+ _chunk4VNS5WPMjs.__export.call(void 0, string_exports, {
11
+ alpha: () => alpha,
12
+ alphanumeric: () => alphanumeric,
13
+ binary: () => binary,
14
+ fromCharacters: () => fromCharacters,
15
+ hexadecimal: () => hexadecimal,
16
+ nanoid: () => nanoid,
17
+ octal: () => octal,
18
+ sample: () => sample,
19
+ symbol: () => symbol,
20
+ uuid: () => uuid
21
+ });
22
+ var _faker = require('@faker-js/faker');
23
+ var alpha = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.alpha);
24
+ var alphanumeric = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.alphanumeric);
25
+ var binary = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.binary);
26
+ var fromCharacters = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.fromCharacters);
27
+ var hexadecimal = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.hexadecimal);
28
+ var nanoid = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.nanoid);
29
+ var octal = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.octal);
30
+ var sample = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.sample);
31
+ var symbol = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.symbol);
32
+ var uuid = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.string.uuid);
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ exports.alpha = alpha; exports.alphanumeric = alphanumeric; exports.binary = binary; exports.fromCharacters = fromCharacters; exports.hexadecimal = hexadecimal; exports.nanoid = nanoid; exports.octal = octal; exports.sample = sample; exports.symbol = symbol; exports.uuid = uuid; exports.string_exports = string_exports;
@@ -0,0 +1,40 @@
1
+ import {
2
+ makeValueConfigFn
3
+ } from "./chunk-3KXIZTCT.mjs";
4
+ import {
5
+ __export
6
+ } from "./chunk-XGB3TDIC.mjs";
7
+
8
+ // src/utils/image.ts
9
+ var image_exports = {};
10
+ __export(image_exports, {
11
+ avatar: () => avatar,
12
+ avatarGitHub: () => avatarGitHub,
13
+ avatarLegacy: () => avatarLegacy,
14
+ dataUri: () => dataUri,
15
+ url: () => url,
16
+ urlLoremFlickr: () => urlLoremFlickr,
17
+ urlPicsumPhotos: () => urlPicsumPhotos,
18
+ urlPlaceholder: () => urlPlaceholder
19
+ });
20
+ import { faker } from "@faker-js/faker";
21
+ var avatar = makeValueConfigFn(faker.image.avatar);
22
+ var avatarGitHub = makeValueConfigFn(faker.image.avatarGitHub);
23
+ var avatarLegacy = makeValueConfigFn(faker.image.avatarLegacy);
24
+ var dataUri = makeValueConfigFn(faker.image.dataUri);
25
+ var url = makeValueConfigFn(faker.image.url);
26
+ var urlLoremFlickr = makeValueConfigFn(faker.image.urlLoremFlickr);
27
+ var urlPicsumPhotos = makeValueConfigFn(faker.image.urlPicsumPhotos);
28
+ var urlPlaceholder = makeValueConfigFn(faker.image.urlPlaceholder);
29
+
30
+ export {
31
+ avatar,
32
+ avatarGitHub,
33
+ avatarLegacy,
34
+ dataUri,
35
+ url,
36
+ urlLoremFlickr,
37
+ urlPicsumPhotos,
38
+ urlPlaceholder,
39
+ image_exports
40
+ };
@@ -0,0 +1,49 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIOXGSFEUjs = require('./chunk-IOXGSFEU.js');
4
+
5
+
6
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
7
+
8
+ // src/utils/datetime.ts
9
+ var datetime_exports = {};
10
+ _chunk4VNS5WPMjs.__export.call(void 0, datetime_exports, {
11
+ anytime: () => anytime,
12
+ between: () => between,
13
+ betweens: () => betweens,
14
+ birthdate: () => birthdate,
15
+ future: () => future,
16
+ month: () => month,
17
+ past: () => past,
18
+ recent: () => recent,
19
+ soon: () => soon,
20
+ timeZone: () => timeZone,
21
+ weekday: () => weekday
22
+ });
23
+ var _faker = require('@faker-js/faker');
24
+ var anytime = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.anytime);
25
+ var between = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.between);
26
+ var betweens = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.betweens);
27
+ var birthdate = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.birthdate);
28
+ var future = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.future);
29
+ var month = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.month);
30
+ var past = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.past);
31
+ var recent = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.recent);
32
+ var soon = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.soon);
33
+ var timeZone = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.timeZone);
34
+ var weekday = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.date.weekday);
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+ exports.anytime = anytime; exports.between = between; exports.betweens = betweens; exports.birthdate = birthdate; exports.future = future; exports.month = month; exports.past = past; exports.recent = recent; exports.soon = soon; exports.timeZone = timeZone; exports.weekday = weekday; exports.datetime_exports = datetime_exports;
@@ -0,0 +1,55 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIOXGSFEUjs = require('./chunk-IOXGSFEU.js');
4
+
5
+
6
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
7
+
8
+ // src/utils/color.ts
9
+ var color_exports = {};
10
+ _chunk4VNS5WPMjs.__export.call(void 0, color_exports, {
11
+ cmyk: () => cmyk,
12
+ colorByCSSColorSpace: () => colorByCSSColorSpace,
13
+ cssSupportedFunction: () => cssSupportedFunction,
14
+ cssSupportedSpace: () => cssSupportedSpace,
15
+ hsl: () => hsl,
16
+ human: () => human,
17
+ hwb: () => hwb,
18
+ lab: () => lab,
19
+ lch: () => lch,
20
+ rgb: () => rgb,
21
+ space: () => space
22
+ });
23
+ var _faker = require('@faker-js/faker');
24
+ var cmyk = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.cmyk);
25
+ var colorByCSSColorSpace = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
26
+ _faker.faker.color.colorByCSSColorSpace
27
+ );
28
+ var cssSupportedFunction = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
29
+ _faker.faker.color.cssSupportedFunction
30
+ );
31
+ var cssSupportedSpace = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
32
+ _faker.faker.color.cssSupportedSpace
33
+ );
34
+ var hsl = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.hsl);
35
+ var human = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.human);
36
+ var hwb = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.hwb);
37
+ var lab = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.lab);
38
+ var lch = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.lch);
39
+ var rgb = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.rgb);
40
+ var space = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.color.space);
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+ exports.cmyk = cmyk; exports.colorByCSSColorSpace = colorByCSSColorSpace; exports.cssSupportedFunction = cssSupportedFunction; exports.cssSupportedSpace = cssSupportedSpace; exports.hsl = hsl; exports.human = human; exports.hwb = hwb; exports.lab = lab; exports.lch = lch; exports.rgb = rgb; exports.space = space; exports.color_exports = color_exports;
@@ -0,0 +1,18 @@
1
+ import {
2
+ createValueConfig
3
+ } from "./chunk-ZQA42PYM.mjs";
4
+ import {
5
+ __export
6
+ } from "./chunk-XGB3TDIC.mjs";
7
+
8
+ // src/utils/common.ts
9
+ var common_exports = {};
10
+ __export(common_exports, {
11
+ constant: () => constant
12
+ });
13
+ var constant = (value) => createValueConfig(() => value);
14
+
15
+ export {
16
+ constant,
17
+ common_exports
18
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkQTT2TUDMjs = require('./chunk-QTT2TUDM.js');
10
+
11
+
12
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
13
+
14
+ // src/generator_fn.ts
15
+ var generator_fn_exports = {};
16
+ _chunk4VNS5WPMjs.__export.call(void 0, generator_fn_exports, {
17
+ genArrayFn: () => _chunkQTT2TUDMjs.createArrayGenerator,
18
+ genBoundedSeriesFn: () => _chunkQTT2TUDMjs.createBoundedSeriesGenerator,
19
+ genFn: () => _chunkQTT2TUDMjs.createGeneratorByType,
20
+ genObjectFn: () => _chunkQTT2TUDMjs.createObjectGenerator,
21
+ genSelectFn: () => _chunkQTT2TUDMjs.createSelectionGenerator,
22
+ genTupleFn: () => _chunkQTT2TUDMjs.createTupleGenerator,
23
+ genValueFn: () => _chunkQTT2TUDMjs.createValueGenerator
24
+ });
25
+
26
+
27
+
28
+ exports.generator_fn_exports = generator_fn_exports;
@@ -0,0 +1,34 @@
1
+ import {
2
+ makeValueConfigFn
3
+ } from "./chunk-3KXIZTCT.mjs";
4
+ import {
5
+ __export
6
+ } from "./chunk-XGB3TDIC.mjs";
7
+
8
+ // src/utils/number.ts
9
+ var number_exports = {};
10
+ __export(number_exports, {
11
+ bigInt: () => bigInt,
12
+ binary: () => binary,
13
+ float: () => float,
14
+ hex: () => hex,
15
+ int: () => int,
16
+ octal: () => octal
17
+ });
18
+ import { faker } from "@faker-js/faker";
19
+ var bigInt = makeValueConfigFn(faker.number.bigInt);
20
+ var binary = makeValueConfigFn(faker.number.binary);
21
+ var float = makeValueConfigFn(faker.number.float);
22
+ var hex = makeValueConfigFn(faker.number.hex);
23
+ var int = makeValueConfigFn(faker.number.int);
24
+ var octal = makeValueConfigFn(faker.number.octal);
25
+
26
+ export {
27
+ bigInt,
28
+ binary,
29
+ float,
30
+ hex,
31
+ int,
32
+ octal,
33
+ number_exports
34
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIOXGSFEUjs = require('./chunk-IOXGSFEU.js');
4
+
5
+
6
+ var _chunk4VNS5WPMjs = require('./chunk-4VNS5WPM.js');
7
+
8
+ // src/utils/company.ts
9
+ var company_exports = {};
10
+ _chunk4VNS5WPMjs.__export.call(void 0, company_exports, {
11
+ buzzAdjective: () => buzzAdjective,
12
+ buzzNoun: () => buzzNoun,
13
+ buzzPhrase: () => buzzPhrase,
14
+ buzzVerb: () => buzzVerb,
15
+ catchPhrase: () => catchPhrase,
16
+ catchPhraseAdjective: () => catchPhraseAdjective,
17
+ catchPhraseDescriptor: () => catchPhraseDescriptor,
18
+ catchPhraseNoun: () => catchPhraseNoun,
19
+ name: () => name
20
+ });
21
+ var _faker = require('@faker-js/faker');
22
+ var buzzAdjective = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.buzzAdjective);
23
+ var buzzNoun = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.buzzNoun);
24
+ var buzzPhrase = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.buzzPhrase);
25
+ var buzzVerb = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.buzzVerb);
26
+ var catchPhrase = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.catchPhrase);
27
+ var catchPhraseAdjective = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
28
+ _faker.faker.company.catchPhraseAdjective
29
+ );
30
+ var catchPhraseDescriptor = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0,
31
+ _faker.faker.company.catchPhraseDescriptor
32
+ );
33
+ var catchPhraseNoun = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.catchPhraseNoun);
34
+ var name = _chunkIOXGSFEUjs.makeValueConfigFn.call(void 0, _faker.faker.company.name);
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+ exports.buzzAdjective = buzzAdjective; exports.buzzNoun = buzzNoun; exports.buzzPhrase = buzzPhrase; exports.buzzVerb = buzzVerb; exports.catchPhrase = catchPhrase; exports.catchPhraseAdjective = catchPhraseAdjective; exports.catchPhraseDescriptor = catchPhraseDescriptor; exports.catchPhraseNoun = catchPhraseNoun; exports.name = name; exports.company_exports = company_exports;
@@ -0,0 +1,28 @@
1
+ import {
2
+ createArrayGenerator,
3
+ createBoundedSeriesGenerator,
4
+ createGeneratorByType,
5
+ createObjectGenerator,
6
+ createSelectionGenerator,
7
+ createTupleGenerator,
8
+ createValueGenerator
9
+ } from "./chunk-7TMD372Q.mjs";
10
+ import {
11
+ __export
12
+ } from "./chunk-XGB3TDIC.mjs";
13
+
14
+ // src/generator_fn.ts
15
+ var generator_fn_exports = {};
16
+ __export(generator_fn_exports, {
17
+ genArrayFn: () => createArrayGenerator,
18
+ genBoundedSeriesFn: () => createBoundedSeriesGenerator,
19
+ genFn: () => createGeneratorByType,
20
+ genObjectFn: () => createObjectGenerator,
21
+ genSelectFn: () => createSelectionGenerator,
22
+ genTupleFn: () => createTupleGenerator,
23
+ genValueFn: () => createValueGenerator
24
+ });
25
+
26
+ export {
27
+ generator_fn_exports
28
+ };