struct-fakerator 2.8.9 → 3.0.0

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 (188) hide show
  1. package/LICENSE +21 -0
  2. package/dist/config.cjs +51 -0
  3. package/dist/config.js +2 -51
  4. package/dist/config_scheme.cjs +95 -0
  5. package/dist/config_scheme.js +24 -73
  6. package/dist/create_config.cjs +110 -0
  7. package/dist/create_config.js +9 -58
  8. package/dist/{create_generator_fn.mjs → create_generator_fn.cjs} +63 -11
  9. package/dist/create_generator_fn.js +11 -63
  10. package/dist/generator_fn.cjs +54 -0
  11. package/dist/generator_fn.js +2 -54
  12. package/dist/index.cjs +107 -0
  13. package/dist/index.js +6 -107
  14. package/dist/type.cjs +18 -0
  15. package/dist/type.js +0 -18
  16. package/dist/{type.d.ts → types/type.d.ts} +10 -1
  17. package/dist/types/utils/airline.d.ts +31 -0
  18. package/dist/{utils → types/utils}/animal.d.ts +2 -0
  19. package/dist/types/utils/book.d.ts +12 -0
  20. package/dist/{utils → types/utils}/color.d.ts +9 -9
  21. package/dist/{utils → types/utils}/finance.d.ts +7 -9
  22. package/dist/{utils → types/utils}/image.d.ts +0 -11
  23. package/dist/{utils → types/utils}/index.d.ts +2 -0
  24. package/dist/{utils → types/utils}/internet.d.ts +9 -7
  25. package/dist/{utils → types/utils}/location.d.ts +29 -16
  26. package/dist/{utils → types/utils}/number.d.ts +5 -0
  27. package/dist/{utils → types/utils}/person.d.ts +1 -1
  28. package/dist/{utils → types/utils}/science.d.ts +2 -2
  29. package/dist/{utils → types/utils}/string.d.ts +4 -0
  30. package/dist/utils/airline.cjs +62 -0
  31. package/dist/utils/airline.js +10 -46
  32. package/dist/utils/animal.cjs +98 -0
  33. package/dist/utils/animal.js +19 -94
  34. package/dist/utils/book.cjs +58 -0
  35. package/dist/utils/book.js +9 -0
  36. package/dist/utils/color.cjs +78 -0
  37. package/dist/utils/color.js +14 -78
  38. package/dist/utils/commerce.cjs +66 -0
  39. package/dist/utils/commerce.js +11 -66
  40. package/dist/utils/common.cjs +37 -0
  41. package/dist/utils/common.js +3 -37
  42. package/dist/utils/company.cjs +70 -0
  43. package/dist/utils/company.js +12 -70
  44. package/dist/utils/database.cjs +54 -0
  45. package/dist/utils/database.js +8 -54
  46. package/dist/utils/datatype.cjs +38 -0
  47. package/dist/utils/datatype.js +4 -38
  48. package/dist/utils/datetime.cjs +78 -0
  49. package/dist/utils/datetime.js +14 -78
  50. package/dist/utils/finance.cjs +114 -0
  51. package/dist/utils/finance.js +23 -110
  52. package/dist/utils/food.cjs +70 -0
  53. package/dist/utils/food.js +12 -70
  54. package/dist/utils/git.cjs +54 -0
  55. package/dist/utils/git.js +8 -54
  56. package/dist/utils/hacker.cjs +58 -0
  57. package/dist/utils/hacker.js +9 -58
  58. package/dist/utils/image.cjs +58 -0
  59. package/dist/utils/image.js +9 -66
  60. package/dist/utils/index.cjs +143 -0
  61. package/dist/utils/index.js +29 -136
  62. package/dist/utils/internet.cjs +118 -0
  63. package/dist/utils/internet.js +24 -114
  64. package/dist/utils/location.cjs +110 -0
  65. package/dist/utils/location.js +22 -98
  66. package/dist/utils/lorem.cjs +70 -0
  67. package/dist/utils/lorem.js +12 -70
  68. package/dist/utils/music.cjs +50 -0
  69. package/dist/utils/music.js +7 -50
  70. package/dist/utils/number.cjs +62 -0
  71. package/dist/utils/number.js +10 -58
  72. package/dist/utils/person.cjs +94 -0
  73. package/dist/utils/person.js +18 -94
  74. package/dist/utils/phone.cjs +42 -0
  75. package/dist/utils/phone.js +5 -42
  76. package/dist/utils/science.cjs +42 -0
  77. package/dist/utils/science.js +5 -42
  78. package/dist/utils/string.cjs +78 -0
  79. package/dist/utils/string.js +14 -74
  80. package/dist/utils/system.cjs +82 -0
  81. package/dist/utils/system.js +15 -82
  82. package/dist/utils/utils.cjs +39 -0
  83. package/dist/utils/utils.js +3 -37
  84. package/dist/utils/vehicle.cjs +70 -0
  85. package/dist/utils/vehicle.js +12 -70
  86. package/dist/utils/word.cjs +70 -0
  87. package/dist/utils/word.js +12 -70
  88. package/package.json +26 -36
  89. package/biome.json +0 -31
  90. package/dist/config.mjs +0 -2
  91. package/dist/config_scheme.mjs +0 -46
  92. package/dist/create_config.mjs +0 -61
  93. package/dist/generator_fn.mjs +0 -2
  94. package/dist/index.mjs +0 -6
  95. package/dist/type.mjs +0 -0
  96. package/dist/utils/airline.d.ts +0 -14
  97. package/dist/utils/airline.mjs +0 -6
  98. package/dist/utils/animal.mjs +0 -18
  99. package/dist/utils/color.mjs +0 -14
  100. package/dist/utils/commerce.mjs +0 -11
  101. package/dist/utils/common.mjs +0 -3
  102. package/dist/utils/company.mjs +0 -12
  103. package/dist/utils/database.mjs +0 -8
  104. package/dist/utils/datatype.mjs +0 -4
  105. package/dist/utils/datetime.mjs +0 -14
  106. package/dist/utils/finance.mjs +0 -22
  107. package/dist/utils/food.mjs +0 -12
  108. package/dist/utils/git.mjs +0 -8
  109. package/dist/utils/hacker.mjs +0 -9
  110. package/dist/utils/image.mjs +0 -11
  111. package/dist/utils/index.mjs +0 -27
  112. package/dist/utils/internet.mjs +0 -23
  113. package/dist/utils/location.mjs +0 -19
  114. package/dist/utils/lorem.mjs +0 -12
  115. package/dist/utils/music.mjs +0 -7
  116. package/dist/utils/number.mjs +0 -9
  117. package/dist/utils/person.mjs +0 -18
  118. package/dist/utils/phone.mjs +0 -5
  119. package/dist/utils/science.mjs +0 -5
  120. package/dist/utils/string.mjs +0 -13
  121. package/dist/utils/system.mjs +0 -15
  122. package/dist/utils/utils.mjs +0 -5
  123. package/dist/utils/vehicle.mjs +0 -12
  124. package/dist/utils/word.mjs +0 -12
  125. package/pnpm-workspace.yaml +0 -2
  126. package/rslib.config.ts +0 -26
  127. package/src/config.ts +0 -8
  128. package/src/config_scheme.ts +0 -41
  129. package/src/create_config.test.ts +0 -70
  130. package/src/create_config.ts +0 -170
  131. package/src/create_generator_fn.test.ts +0 -229
  132. package/src/create_generator_fn.ts +0 -342
  133. package/src/generator_fn.ts +0 -9
  134. package/src/index.ts +0 -5
  135. package/src/type.ts +0 -167
  136. package/src/utils/airline.ts +0 -11
  137. package/src/utils/animal.ts +0 -47
  138. package/src/utils/color.ts +0 -41
  139. package/src/utils/commerce.ts +0 -32
  140. package/src/utils/common.ts +0 -4
  141. package/src/utils/company.ts +0 -33
  142. package/src/utils/database.ts +0 -19
  143. package/src/utils/datatype.ts +0 -5
  144. package/src/utils/datetime.ts +0 -35
  145. package/src/utils/finance.ts +0 -65
  146. package/src/utils/food.ts +0 -29
  147. package/src/utils/git.ts +0 -17
  148. package/src/utils/hacker.ts +0 -20
  149. package/src/utils/image.ts +0 -26
  150. package/src/utils/index.ts +0 -26
  151. package/src/utils/internet.ts +0 -62
  152. package/src/utils/location.ts +0 -58
  153. package/src/utils/lorem.ts +0 -29
  154. package/src/utils/music.ts +0 -14
  155. package/src/utils/number.ts +0 -20
  156. package/src/utils/person.ts +0 -47
  157. package/src/utils/phone.ts +0 -8
  158. package/src/utils/science.ts +0 -8
  159. package/src/utils/string.ts +0 -32
  160. package/src/utils/system.ts +0 -40
  161. package/src/utils/utils.ts +0 -8
  162. package/src/utils/vehicle.ts +0 -29
  163. package/src/utils/word.ts +0 -29
  164. package/tsconfig.json +0 -18
  165. /package/dist/{config.d.ts → types/config.d.ts} +0 -0
  166. /package/dist/{config_scheme.d.ts → types/config_scheme.d.ts} +0 -0
  167. /package/dist/{create_config.d.ts → types/create_config.d.ts} +0 -0
  168. /package/dist/{create_config.test.d.ts → types/create_config.test.d.ts} +0 -0
  169. /package/dist/{create_generator_fn.d.ts → types/create_generator_fn.d.ts} +0 -0
  170. /package/dist/{create_generator_fn.test.d.ts → types/create_generator_fn.test.d.ts} +0 -0
  171. /package/dist/{generator_fn.d.ts → types/generator_fn.d.ts} +0 -0
  172. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
  173. /package/dist/{utils → types/utils}/commerce.d.ts +0 -0
  174. /package/dist/{utils → types/utils}/common.d.ts +0 -0
  175. /package/dist/{utils → types/utils}/company.d.ts +0 -0
  176. /package/dist/{utils → types/utils}/database.d.ts +0 -0
  177. /package/dist/{utils → types/utils}/datatype.d.ts +0 -0
  178. /package/dist/{utils → types/utils}/datetime.d.ts +0 -0
  179. /package/dist/{utils → types/utils}/food.d.ts +0 -0
  180. /package/dist/{utils → types/utils}/git.d.ts +0 -0
  181. /package/dist/{utils → types/utils}/hacker.d.ts +0 -0
  182. /package/dist/{utils → types/utils}/lorem.d.ts +0 -0
  183. /package/dist/{utils → types/utils}/music.d.ts +0 -0
  184. /package/dist/{utils → types/utils}/phone.d.ts +0 -0
  185. /package/dist/{utils → types/utils}/system.d.ts +0 -0
  186. /package/dist/{utils → types/utils}/utils.d.ts +0 -0
  187. /package/dist/{utils → types/utils}/vehicle.d.ts +0 -0
  188. /package/dist/{utils → types/utils}/word.d.ts +0 -0
@@ -1,110 +1,23 @@
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
- bitcoinAddress: ()=>bitcoinAddress,
28
- litecoinAddress: ()=>litecoinAddress,
29
- creditCardNumber: ()=>creditCardNumber,
30
- iban: ()=>iban,
31
- ethereumAddress: ()=>ethereumAddress,
32
- creditCardCVV: ()=>creditCardCVV,
33
- bic: ()=>bic,
34
- amount: ()=>amount,
35
- currencyCode: ()=>currencyCode,
36
- routingNumber: ()=>routingNumber,
37
- currencySymbol: ()=>currencySymbol,
38
- transactionDescription: ()=>transactionDescription,
39
- accountNumber: ()=>accountNumber,
40
- transactionType: ()=>transactionType,
41
- accountName: ()=>accountName,
42
- maskedNumber: ()=>maskedNumber,
43
- currency: ()=>currency,
44
- pin: ()=>pin,
45
- creditCardIssuer: ()=>creditCardIssuer
46
- });
47
- const faker_namespaceObject = require("@faker-js/faker");
48
- const external_utils_js_namespaceObject = require("./utils.js");
49
- const accountName = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.accountName);
50
- const accountNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.accountNumber);
51
- const amount = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.amount);
52
- const bic = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.bic);
53
- const bitcoinAddress = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.bitcoinAddress);
54
- const creditCardCVV = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.creditCardCVV);
55
- const creditCardIssuer = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.creditCardIssuer);
56
- const creditCardNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.creditCardNumber);
57
- const currency = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.currency);
58
- const currencyCode = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.currencyCode);
59
- const currencySymbol = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.currencySymbol);
60
- const ethereumAddress = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.ethereumAddress);
61
- const iban = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.iban);
62
- const litecoinAddress = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.litecoinAddress);
63
- const maskedNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.maskedNumber);
64
- const pin = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.pin);
65
- const routingNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.routingNumber);
66
- const transactionDescription = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.transactionDescription);
67
- const transactionType = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.finance.transactionType);
68
- exports.accountName = __webpack_exports__.accountName;
69
- exports.accountNumber = __webpack_exports__.accountNumber;
70
- exports.amount = __webpack_exports__.amount;
71
- exports.bic = __webpack_exports__.bic;
72
- exports.bitcoinAddress = __webpack_exports__.bitcoinAddress;
73
- exports.creditCardCVV = __webpack_exports__.creditCardCVV;
74
- exports.creditCardIssuer = __webpack_exports__.creditCardIssuer;
75
- exports.creditCardNumber = __webpack_exports__.creditCardNumber;
76
- exports.currency = __webpack_exports__.currency;
77
- exports.currencyCode = __webpack_exports__.currencyCode;
78
- exports.currencySymbol = __webpack_exports__.currencySymbol;
79
- exports.ethereumAddress = __webpack_exports__.ethereumAddress;
80
- exports.iban = __webpack_exports__.iban;
81
- exports.litecoinAddress = __webpack_exports__.litecoinAddress;
82
- exports.maskedNumber = __webpack_exports__.maskedNumber;
83
- exports.pin = __webpack_exports__.pin;
84
- exports.routingNumber = __webpack_exports__.routingNumber;
85
- exports.transactionDescription = __webpack_exports__.transactionDescription;
86
- exports.transactionType = __webpack_exports__.transactionType;
87
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
88
- "accountName",
89
- "accountNumber",
90
- "amount",
91
- "bic",
92
- "bitcoinAddress",
93
- "creditCardCVV",
94
- "creditCardIssuer",
95
- "creditCardNumber",
96
- "currency",
97
- "currencyCode",
98
- "currencySymbol",
99
- "ethereumAddress",
100
- "iban",
101
- "litecoinAddress",
102
- "maskedNumber",
103
- "pin",
104
- "routingNumber",
105
- "transactionDescription",
106
- "transactionType"
107
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
108
- Object.defineProperty(exports, '__esModule', {
109
- value: true
110
- });
1
+ import { faker } from "@faker-js/faker";
2
+ import { makeValueConfigFn } from "./utils.js";
3
+ const accountName = makeValueConfigFn(faker.finance.accountName);
4
+ const accountNumber = makeValueConfigFn(faker.finance.accountNumber);
5
+ const amount = makeValueConfigFn(faker.finance.amount);
6
+ const bic = makeValueConfigFn(faker.finance.bic);
7
+ const bitcoinAddress = makeValueConfigFn(faker.finance.bitcoinAddress);
8
+ const creditCardCVV = makeValueConfigFn(faker.finance.creditCardCVV);
9
+ const creditCardIssuer = makeValueConfigFn(faker.finance.creditCardIssuer);
10
+ const creditCardNumber = makeValueConfigFn(faker.finance.creditCardNumber);
11
+ const currency = makeValueConfigFn(faker.finance.currency);
12
+ const currencyCode = makeValueConfigFn(faker.finance.currencyCode);
13
+ const currencyName = makeValueConfigFn(faker.finance.currencyName);
14
+ const currencyNumericCode = makeValueConfigFn(faker.finance.currencyNumericCode);
15
+ const currencySymbol = makeValueConfigFn(faker.finance.currencySymbol);
16
+ const ethereumAddress = makeValueConfigFn(faker.finance.ethereumAddress);
17
+ const iban = makeValueConfigFn(faker.finance.iban);
18
+ const litecoinAddress = makeValueConfigFn(faker.finance.litecoinAddress);
19
+ const pin = makeValueConfigFn(faker.finance.pin);
20
+ const routingNumber = makeValueConfigFn(faker.finance.routingNumber);
21
+ const transactionDescription = makeValueConfigFn(faker.finance.transactionDescription);
22
+ const transactionType = makeValueConfigFn(faker.finance.transactionType);
23
+ export { accountName, accountNumber, amount, bic, bitcoinAddress, creditCardCVV, creditCardIssuer, creditCardNumber, currency, currencyCode, currencyName, currencyNumericCode, currencySymbol, ethereumAddress, iban, litecoinAddress, pin, routingNumber, transactionDescription, transactionType };
@@ -0,0 +1,70 @@
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
+ dish: ()=>dish,
28
+ ethnicCategory: ()=>ethnicCategory,
29
+ ingredient: ()=>ingredient,
30
+ spice: ()=>spice,
31
+ vegetable: ()=>vegetable,
32
+ adjective: ()=>adjective,
33
+ description: ()=>description,
34
+ meat: ()=>meat,
35
+ fruit: ()=>fruit
36
+ });
37
+ const faker_namespaceObject = require("@faker-js/faker");
38
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
39
+ const adjective = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.adjective);
40
+ const description = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.description);
41
+ const dish = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.dish);
42
+ const ethnicCategory = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.ethnicCategory);
43
+ const fruit = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.fruit);
44
+ const ingredient = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.ingredient);
45
+ const meat = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.meat);
46
+ const spice = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.spice);
47
+ const vegetable = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.vegetable);
48
+ exports.adjective = __webpack_exports__.adjective;
49
+ exports.description = __webpack_exports__.description;
50
+ exports.dish = __webpack_exports__.dish;
51
+ exports.ethnicCategory = __webpack_exports__.ethnicCategory;
52
+ exports.fruit = __webpack_exports__.fruit;
53
+ exports.ingredient = __webpack_exports__.ingredient;
54
+ exports.meat = __webpack_exports__.meat;
55
+ exports.spice = __webpack_exports__.spice;
56
+ exports.vegetable = __webpack_exports__.vegetable;
57
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
58
+ "adjective",
59
+ "description",
60
+ "dish",
61
+ "ethnicCategory",
62
+ "fruit",
63
+ "ingredient",
64
+ "meat",
65
+ "spice",
66
+ "vegetable"
67
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
68
+ Object.defineProperty(exports, '__esModule', {
69
+ value: true
70
+ });
@@ -1,70 +1,12 @@
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
- dish: ()=>dish,
28
- ethnicCategory: ()=>ethnicCategory,
29
- ingredient: ()=>ingredient,
30
- spice: ()=>spice,
31
- vegetable: ()=>vegetable,
32
- adjective: ()=>adjective,
33
- description: ()=>description,
34
- meat: ()=>meat,
35
- fruit: ()=>fruit
36
- });
37
- const faker_namespaceObject = require("@faker-js/faker");
38
- const external_utils_js_namespaceObject = require("./utils.js");
39
- const adjective = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.adjective);
40
- const description = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.description);
41
- const dish = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.dish);
42
- const ethnicCategory = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.ethnicCategory);
43
- const fruit = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.fruit);
44
- const ingredient = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.ingredient);
45
- const meat = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.meat);
46
- const spice = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.spice);
47
- const vegetable = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.food.vegetable);
48
- exports.adjective = __webpack_exports__.adjective;
49
- exports.description = __webpack_exports__.description;
50
- exports.dish = __webpack_exports__.dish;
51
- exports.ethnicCategory = __webpack_exports__.ethnicCategory;
52
- exports.fruit = __webpack_exports__.fruit;
53
- exports.ingredient = __webpack_exports__.ingredient;
54
- exports.meat = __webpack_exports__.meat;
55
- exports.spice = __webpack_exports__.spice;
56
- exports.vegetable = __webpack_exports__.vegetable;
57
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
58
- "adjective",
59
- "description",
60
- "dish",
61
- "ethnicCategory",
62
- "fruit",
63
- "ingredient",
64
- "meat",
65
- "spice",
66
- "vegetable"
67
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
68
- Object.defineProperty(exports, '__esModule', {
69
- value: true
70
- });
1
+ import { faker } from "@faker-js/faker";
2
+ import { makeValueConfigFn } from "./utils.js";
3
+ const adjective = makeValueConfigFn(faker.food.adjective);
4
+ const description = makeValueConfigFn(faker.food.description);
5
+ const dish = makeValueConfigFn(faker.food.dish);
6
+ const ethnicCategory = makeValueConfigFn(faker.food.ethnicCategory);
7
+ const fruit = makeValueConfigFn(faker.food.fruit);
8
+ const ingredient = makeValueConfigFn(faker.food.ingredient);
9
+ const meat = makeValueConfigFn(faker.food.meat);
10
+ const spice = makeValueConfigFn(faker.food.spice);
11
+ const vegetable = makeValueConfigFn(faker.food.vegetable);
12
+ export { adjective, description, dish, ethnicCategory, fruit, ingredient, meat, spice, vegetable };
@@ -0,0 +1,54 @@
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
+ branch: ()=>branch,
28
+ commitSha: ()=>commitSha,
29
+ commitDate: ()=>commitDate,
30
+ commitMessage: ()=>commitMessage,
31
+ commitEntry: ()=>commitEntry
32
+ });
33
+ const faker_namespaceObject = require("@faker-js/faker");
34
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
35
+ const branch = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.branch);
36
+ const commitDate = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitDate);
37
+ const commitEntry = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitEntry);
38
+ const commitMessage = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitMessage);
39
+ const commitSha = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitSha);
40
+ exports.branch = __webpack_exports__.branch;
41
+ exports.commitDate = __webpack_exports__.commitDate;
42
+ exports.commitEntry = __webpack_exports__.commitEntry;
43
+ exports.commitMessage = __webpack_exports__.commitMessage;
44
+ exports.commitSha = __webpack_exports__.commitSha;
45
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
46
+ "branch",
47
+ "commitDate",
48
+ "commitEntry",
49
+ "commitMessage",
50
+ "commitSha"
51
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
52
+ Object.defineProperty(exports, '__esModule', {
53
+ value: true
54
+ });
package/dist/utils/git.js CHANGED
@@ -1,54 +1,8 @@
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
- branch: ()=>branch,
28
- commitSha: ()=>commitSha,
29
- commitDate: ()=>commitDate,
30
- commitMessage: ()=>commitMessage,
31
- commitEntry: ()=>commitEntry
32
- });
33
- const faker_namespaceObject = require("@faker-js/faker");
34
- const external_utils_js_namespaceObject = require("./utils.js");
35
- const branch = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.branch);
36
- const commitDate = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitDate);
37
- const commitEntry = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitEntry);
38
- const commitMessage = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitMessage);
39
- const commitSha = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.git.commitSha);
40
- exports.branch = __webpack_exports__.branch;
41
- exports.commitDate = __webpack_exports__.commitDate;
42
- exports.commitEntry = __webpack_exports__.commitEntry;
43
- exports.commitMessage = __webpack_exports__.commitMessage;
44
- exports.commitSha = __webpack_exports__.commitSha;
45
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
46
- "branch",
47
- "commitDate",
48
- "commitEntry",
49
- "commitMessage",
50
- "commitSha"
51
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
52
- Object.defineProperty(exports, '__esModule', {
53
- value: true
54
- });
1
+ import { faker } from "@faker-js/faker";
2
+ import { makeValueConfigFn } from "./utils.js";
3
+ const branch = makeValueConfigFn(faker.git.branch);
4
+ const commitDate = makeValueConfigFn(faker.git.commitDate);
5
+ const commitEntry = makeValueConfigFn(faker.git.commitEntry);
6
+ const commitMessage = makeValueConfigFn(faker.git.commitMessage);
7
+ const commitSha = makeValueConfigFn(faker.git.commitSha);
8
+ export { branch, commitDate, commitEntry, commitMessage, commitSha };
@@ -0,0 +1,58 @@
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
+ noun: ()=>noun,
28
+ adjective: ()=>adjective,
29
+ ingverb: ()=>ingverb,
30
+ verb: ()=>verb,
31
+ phrase: ()=>phrase,
32
+ abbreviation: ()=>abbreviation
33
+ });
34
+ const faker_namespaceObject = require("@faker-js/faker");
35
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
36
+ const abbreviation = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.abbreviation);
37
+ const adjective = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.adjective);
38
+ const ingverb = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.ingverb);
39
+ const noun = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.noun);
40
+ const phrase = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.phrase);
41
+ const verb = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.verb);
42
+ exports.abbreviation = __webpack_exports__.abbreviation;
43
+ exports.adjective = __webpack_exports__.adjective;
44
+ exports.ingverb = __webpack_exports__.ingverb;
45
+ exports.noun = __webpack_exports__.noun;
46
+ exports.phrase = __webpack_exports__.phrase;
47
+ exports.verb = __webpack_exports__.verb;
48
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
49
+ "abbreviation",
50
+ "adjective",
51
+ "ingverb",
52
+ "noun",
53
+ "phrase",
54
+ "verb"
55
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
56
+ Object.defineProperty(exports, '__esModule', {
57
+ value: true
58
+ });
@@ -1,58 +1,9 @@
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
- noun: ()=>noun,
28
- adjective: ()=>adjective,
29
- ingverb: ()=>ingverb,
30
- verb: ()=>verb,
31
- phrase: ()=>phrase,
32
- abbreviation: ()=>abbreviation
33
- });
34
- const faker_namespaceObject = require("@faker-js/faker");
35
- const external_utils_js_namespaceObject = require("./utils.js");
36
- const abbreviation = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.abbreviation);
37
- const adjective = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.adjective);
38
- const ingverb = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.ingverb);
39
- const noun = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.noun);
40
- const phrase = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.phrase);
41
- const verb = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.hacker.verb);
42
- exports.abbreviation = __webpack_exports__.abbreviation;
43
- exports.adjective = __webpack_exports__.adjective;
44
- exports.ingverb = __webpack_exports__.ingverb;
45
- exports.noun = __webpack_exports__.noun;
46
- exports.phrase = __webpack_exports__.phrase;
47
- exports.verb = __webpack_exports__.verb;
48
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
49
- "abbreviation",
50
- "adjective",
51
- "ingverb",
52
- "noun",
53
- "phrase",
54
- "verb"
55
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
56
- Object.defineProperty(exports, '__esModule', {
57
- value: true
58
- });
1
+ import { faker } from "@faker-js/faker";
2
+ import { makeValueConfigFn } from "./utils.js";
3
+ const abbreviation = makeValueConfigFn(faker.hacker.abbreviation);
4
+ const adjective = makeValueConfigFn(faker.hacker.adjective);
5
+ const ingverb = makeValueConfigFn(faker.hacker.ingverb);
6
+ const noun = makeValueConfigFn(faker.hacker.noun);
7
+ const phrase = makeValueConfigFn(faker.hacker.phrase);
8
+ const verb = makeValueConfigFn(faker.hacker.verb);
9
+ export { abbreviation, adjective, ingverb, noun, phrase, verb };
@@ -0,0 +1,58 @@
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
+ avatarGitHub: ()=>avatarGitHub,
28
+ avatar: ()=>avatar,
29
+ dataUri: ()=>dataUri,
30
+ urlPicsumPhotos: ()=>urlPicsumPhotos,
31
+ urlLoremFlickr: ()=>urlLoremFlickr,
32
+ url: ()=>url
33
+ });
34
+ const faker_namespaceObject = require("@faker-js/faker");
35
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
36
+ const avatar = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.avatar);
37
+ const avatarGitHub = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.avatarGitHub);
38
+ const dataUri = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.dataUri);
39
+ const url = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.url);
40
+ const urlLoremFlickr = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.urlLoremFlickr);
41
+ const urlPicsumPhotos = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.image.urlPicsumPhotos);
42
+ exports.avatar = __webpack_exports__.avatar;
43
+ exports.avatarGitHub = __webpack_exports__.avatarGitHub;
44
+ exports.dataUri = __webpack_exports__.dataUri;
45
+ exports.url = __webpack_exports__.url;
46
+ exports.urlLoremFlickr = __webpack_exports__.urlLoremFlickr;
47
+ exports.urlPicsumPhotos = __webpack_exports__.urlPicsumPhotos;
48
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
49
+ "avatar",
50
+ "avatarGitHub",
51
+ "dataUri",
52
+ "url",
53
+ "urlLoremFlickr",
54
+ "urlPicsumPhotos"
55
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
56
+ Object.defineProperty(exports, '__esModule', {
57
+ value: true
58
+ });