struct-fakerator 2.6.9 → 2.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -93
- package/biome.json +30 -26
- package/dist/config.d.ts +1 -2
- package/dist/config.js +51 -19
- package/dist/config.mjs +2 -19
- package/dist/config_scheme.d.ts +7 -10
- package/dist/config_scheme.js +95 -17
- package/dist/config_scheme.mjs +46 -17
- package/dist/create_config.d.ts +9 -11
- package/dist/create_config.js +110 -18
- package/dist/create_config.mjs +60 -17
- package/dist/create_config.test.d.ts +1 -2
- package/dist/create_generator_fn.d.ts +9 -11
- package/dist/create_generator_fn.js +168 -21
- package/dist/create_generator_fn.mjs +115 -20
- package/dist/create_generator_fn.test.d.ts +1 -2
- package/dist/generator_fn.d.ts +1 -2
- package/dist/generator_fn.js +54 -22
- package/dist/generator_fn.mjs +2 -22
- package/dist/index.d.ts +5 -5
- package/dist/index.js +107 -44
- package/dist/index.mjs +6 -44
- package/dist/type.d.ts +10 -12
- package/dist/type.js +18 -1
- package/dist/type.mjs +0 -1
- package/dist/utils/airline.d.ts +14 -3
- package/dist/utils/airline.js +46 -15
- package/dist/utils/airline.mjs +6 -15
- package/dist/utils/animal.d.ts +30 -2
- package/dist/utils/animal.js +94 -39
- package/dist/utils/animal.mjs +18 -39
- package/dist/utils/color.d.ts +41 -3
- package/dist/utils/color.js +78 -31
- package/dist/utils/color.mjs +14 -31
- package/dist/utils/commerce.d.ts +24 -2
- package/dist/utils/commerce.js +66 -25
- package/dist/utils/commerce.mjs +11 -25
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/common.js +37 -9
- package/dist/utils/common.mjs +3 -9
- package/dist/utils/company.d.ts +18 -2
- package/dist/utils/company.js +70 -27
- package/dist/utils/company.mjs +12 -27
- package/dist/utils/database.d.ts +10 -2
- package/dist/utils/database.js +54 -19
- package/dist/utils/database.mjs +8 -19
- package/dist/utils/datatype.d.ts +4 -2
- package/dist/utils/datatype.js +38 -11
- package/dist/utils/datatype.mjs +4 -11
- package/dist/utils/datetime.d.ts +59 -2
- package/dist/utils/datetime.js +78 -31
- package/dist/utils/datetime.mjs +14 -31
- package/dist/utils/finance.d.ts +62 -3
- package/dist/utils/finance.js +110 -47
- package/dist/utils/finance.mjs +22 -47
- package/dist/utils/food.d.ts +18 -2
- package/dist/utils/food.js +70 -27
- package/dist/utils/food.mjs +12 -27
- package/dist/utils/git.d.ts +18 -2
- package/dist/utils/git.js +54 -19
- package/dist/utils/git.mjs +8 -19
- package/dist/utils/hacker.d.ts +12 -2
- package/dist/utils/hacker.js +58 -21
- package/dist/utils/hacker.mjs +9 -21
- package/dist/utils/image.d.ts +40 -2
- package/dist/utils/image.js +66 -25
- package/dist/utils/image.mjs +11 -25
- package/dist/utils/index.d.ts +26 -28
- package/dist/utils/index.js +136 -110
- package/dist/utils/index.mjs +27 -110
- package/dist/utils/internet.d.ts +77 -3
- package/dist/utils/internet.js +114 -49
- package/dist/utils/internet.mjs +23 -49
- package/dist/utils/location.d.ts +56 -2
- package/dist/utils/location.js +98 -41
- package/dist/utils/location.mjs +19 -41
- package/dist/utils/lorem.d.ts +45 -2
- package/dist/utils/lorem.js +70 -27
- package/dist/utils/lorem.mjs +12 -27
- package/dist/utils/music.d.ts +8 -2
- package/dist/utils/music.js +50 -17
- package/dist/utils/music.mjs +7 -17
- package/dist/utils/number.d.ts +34 -2
- package/dist/utils/number.js +58 -21
- package/dist/utils/number.mjs +9 -21
- package/dist/utils/person.d.ts +34 -3
- package/dist/utils/person.js +94 -39
- package/dist/utils/person.mjs +18 -39
- package/dist/utils/phone.d.ts +6 -2
- package/dist/utils/phone.js +42 -13
- package/dist/utils/phone.mjs +5 -13
- package/dist/utils/science.d.ts +4 -3
- package/dist/utils/science.js +42 -13
- package/dist/utils/science.mjs +5 -13
- package/dist/utils/string.d.ts +69 -2
- package/dist/utils/string.js +74 -29
- package/dist/utils/string.mjs +13 -29
- package/dist/utils/system.d.ts +35 -2
- package/dist/utils/system.js +82 -33
- package/dist/utils/system.mjs +15 -33
- package/dist/utils/utils.d.ts +2 -2
- package/dist/utils/utils.js +39 -9
- package/dist/utils/utils.mjs +5 -9
- package/dist/utils/vehicle.d.ts +18 -2
- package/dist/utils/vehicle.js +70 -27
- package/dist/utils/vehicle.mjs +12 -27
- package/dist/utils/word.d.ts +18 -22
- package/dist/utils/word.js +70 -31
- package/dist/utils/word.mjs +12 -31
- package/package.json +10 -31
- package/pnpm-workspace.yaml +2 -0
- package/rslib.config.ts +26 -0
- package/src/config.ts +3 -3
- package/src/config_scheme.ts +1 -1
- package/src/create_config.test.ts +0 -1
- package/src/create_config.ts +1 -1
- package/src/create_generator_fn.test.ts +13 -2
- package/src/create_generator_fn.ts +5 -5
- package/src/generator_fn.ts +1 -1
- package/src/index.ts +2 -2
- package/src/type.ts +1 -1
- package/src/utils/index.ts +1 -2
- package/src/utils/internet.ts +1 -1
- package/src/utils/utils.ts +1 -1
- package/tsconfig.json +2 -1
- package/dist/airline-98MCzMN8.d.ts +0 -26
- package/dist/airline-CuAxOEYH.d.mts +0 -26
- package/dist/animal-BohQ7s0w.d.mts +0 -53
- package/dist/animal-o8BFF7gd.d.ts +0 -53
- package/dist/chunk-23I6D5SJ.js +0 -57
- package/dist/chunk-3KXIZTCT.mjs +0 -20
- package/dist/chunk-3U6BNHWG.mjs +0 -2040
- package/dist/chunk-4DDCMYY5.mjs +0 -57
- package/dist/chunk-4VNS5WPM.js +0 -42
- package/dist/chunk-5KF6D2RT.js +0 -63
- package/dist/chunk-5O3L5474.mjs +0 -45
- package/dist/chunk-5PCDQHI5.mjs +0 -21
- package/dist/chunk-62INTWCD.mjs +0 -36
- package/dist/chunk-6HRHPVPM.js +0 -35
- package/dist/chunk-6UFUX7X4.js +0 -51
- package/dist/chunk-6ZK2LMFM.js +0 -21
- package/dist/chunk-7BIWHK77.js +0 -42
- package/dist/chunk-7UQSPUCL.mjs +0 -0
- package/dist/chunk-7VOPOQZO.js +0 -45
- package/dist/chunk-C3RGM3CB.js +0 -67
- package/dist/chunk-DGW666Q6.mjs +0 -48
- package/dist/chunk-DM5VFX6B.js +0 -17008
- package/dist/chunk-DTC7Q7P5.js +0 -45
- package/dist/chunk-EM67LVYX.mjs +0 -18
- package/dist/chunk-EMCK2BLM.js +0 -45
- package/dist/chunk-ES2CYGB7.js +0 -24
- package/dist/chunk-ET6EJB33.js +0 -36
- package/dist/chunk-EYOBG3PQ.mjs +0 -45
- package/dist/chunk-F4GVSNLH.js +0 -30
- package/dist/chunk-G43WDHZO.mjs +0 -63
- package/dist/chunk-GJSTX6ZS.mjs +0 -24
- package/dist/chunk-GYF6YSNX.js +0 -74
- package/dist/chunk-HBJP434N.mjs +0 -78
- package/dist/chunk-IAR3DUKD.js +0 -49
- package/dist/chunk-IL4E3ZNB.js +0 -78
- package/dist/chunk-IOXGSFEU.js +0 -20
- package/dist/chunk-JB6NCVX3.mjs +0 -63
- package/dist/chunk-JGY3KVDU.mjs +0 -45
- package/dist/chunk-JWCDEYMY.js +0 -48
- package/dist/chunk-LSFOERXQ.js +0 -18
- package/dist/chunk-MGR2M7BS.mjs +0 -56
- package/dist/chunk-MLJAHDYX.mjs +0 -167
- package/dist/chunk-MROZIQOV.mjs +0 -51
- package/dist/chunk-NHYNERHW.js +0 -56
- package/dist/chunk-PGSJJESY.js +0 -27
- package/dist/chunk-QTVSUA5W.mjs +0 -24
- package/dist/chunk-QZQ32UPU.mjs +0 -28
- package/dist/chunk-R2MQ3IW5.mjs +0 -33
- package/dist/chunk-RD2SB2KT.js +0 -36
- package/dist/chunk-RDZI4CMI.mjs +0 -42
- package/dist/chunk-RTYV5XDU.mjs +0 -36
- package/dist/chunk-RZPUHXXO.mjs +0 -49
- package/dist/chunk-SD3HVRQN.mjs +0 -48
- package/dist/chunk-SN4QTD6R.js +0 -1
- package/dist/chunk-TA725QXR.mjs +0 -35
- package/dist/chunk-TXAOQHVV.mjs +0 -27
- package/dist/chunk-TZ2RKEBF.js +0 -2040
- package/dist/chunk-U7MLTDS4.js +0 -167
- package/dist/chunk-UIYW7U2O.js +0 -28
- package/dist/chunk-UP2JIDGZ.js +0 -81
- package/dist/chunk-USLYTOPD.mjs +0 -41
- package/dist/chunk-V2AWKRQI.js +0 -26
- package/dist/chunk-VE3Q5LC3.mjs +0 -26
- package/dist/chunk-VG6JYCUC.mjs +0 -74
- package/dist/chunk-VMSMHNPY.js +0 -48
- package/dist/chunk-VSZRD7CB.js +0 -33
- package/dist/chunk-VX2IFBCP.mjs +0 -17008
- package/dist/chunk-WLKNXHFN.mjs +0 -30
- package/dist/chunk-XGB3TDIC.mjs +0 -42
- package/dist/chunk-YXGKUR3R.js +0 -63
- package/dist/chunk-Z5BNMPTX.mjs +0 -81
- package/dist/chunk-ZQA42PYM.mjs +0 -67
- package/dist/chunk-ZSR4TJQG.js +0 -24
- package/dist/chunk-ZWLHVT5O.js +0 -41
- package/dist/color-BT6BF8oV.d.mts +0 -61
- package/dist/color-lBH29suB.d.ts +0 -61
- package/dist/commerce-BqVjXEhQ.d.mts +0 -40
- package/dist/commerce-mdOpchjx.d.ts +0 -40
- package/dist/common-IR_KozaJ.d.mts +0 -11
- package/dist/common-t-ZQebCq.d.ts +0 -11
- package/dist/company-C3EU1J7k.d.ts +0 -35
- package/dist/company-cR_0hm6U.d.mts +0 -35
- package/dist/config-BTjogu5M.d.ts +0 -7
- package/dist/config-C1N2Brw-.d.mts +0 -7
- package/dist/config.d.mts +0 -2
- package/dist/config_scheme.d.mts +0 -32
- package/dist/create_config.d.mts +0 -58
- package/dist/create_config.test.d.mts +0 -2
- package/dist/create_config.test.js +0 -63
- package/dist/create_config.test.mjs +0 -63
- package/dist/create_generator_fn.d.mts +0 -12
- package/dist/create_generator_fn.test.d.mts +0 -2
- package/dist/create_generator_fn.test.js +0 -191
- package/dist/create_generator_fn.test.mjs +0 -191
- package/dist/database-DV9wgnca.d.ts +0 -23
- package/dist/database-UzO1Lwec.d.mts +0 -23
- package/dist/datatype-C92TZLxo.d.ts +0 -13
- package/dist/datatype-DZjmP0fA.d.mts +0 -13
- package/dist/datetime-CSUpnUXU.d.ts +0 -78
- package/dist/datetime-dnPA_lnt.d.mts +0 -78
- package/dist/finance-CstKW1nH.d.mts +0 -90
- package/dist/finance-gj0fiEmf.d.ts +0 -90
- package/dist/food-CInj1GX2.d.ts +0 -35
- package/dist/food-Dk3-40CY.d.mts +0 -35
- package/dist/generator_fn-CJDbnCZl.d.mts +0 -7
- package/dist/generator_fn-D-npAfnC.d.ts +0 -7
- package/dist/generator_fn.d.mts +0 -2
- package/dist/git-BHL1ppL4.d.ts +0 -31
- package/dist/git-w0nznSjX.d.mts +0 -31
- package/dist/hacker-DL7pR6JO.d.ts +0 -26
- package/dist/hacker-FcQXZGtz.d.mts +0 -26
- package/dist/image-B5OPCNhD.d.mts +0 -56
- package/dist/image-IyGCgqNf.d.ts +0 -56
- package/dist/index.d.mts +0 -5
- package/dist/internet-BukCBMX-.d.ts +0 -106
- package/dist/internet-C2ElurWb.d.mts +0 -106
- package/dist/location-BIZ-KsaI.d.ts +0 -80
- package/dist/location-WU_nRdjx.d.mts +0 -80
- package/dist/lorem-OlHaVntu.d.mts +0 -62
- package/dist/lorem-yMyLb-d-.d.ts +0 -62
- package/dist/magic-string.es-2DLPM6Q3.js +0 -1299
- package/dist/magic-string.es-NHTKQXSF.mjs +0 -1299
- package/dist/music-P8XZ4JSO.d.ts +0 -20
- package/dist/music-vcWm9dzu.d.mts +0 -20
- package/dist/number-BfwwKvTJ.d.mts +0 -48
- package/dist/number-D5QmTRsK.d.ts +0 -48
- package/dist/person-DXne2mKX.d.ts +0 -58
- package/dist/person-Si_vy67g.d.mts +0 -58
- package/dist/phone-Cbxvm_Qv.d.ts +0 -16
- package/dist/phone-g4FDs50M.d.mts +0 -16
- package/dist/science-BX8WhoEY.d.ts +0 -15
- package/dist/science-BfA9sVXz.d.mts +0 -15
- package/dist/string-DGScZrrP.d.mts +0 -87
- package/dist/string-Do4vhsl0.d.ts +0 -87
- package/dist/system-BpxbduIr.d.ts +0 -55
- package/dist/system-Cy0e05Cr.d.mts +0 -55
- package/dist/test.d.mts +0 -2
- package/dist/test.d.ts +0 -2
- package/dist/test.js +0 -15
- package/dist/test.mjs +0 -15
- package/dist/type.d.mts +0 -93
- package/dist/utils/airline.d.mts +0 -3
- package/dist/utils/animal.d.mts +0 -2
- package/dist/utils/color.d.mts +0 -3
- package/dist/utils/commerce.d.mts +0 -2
- package/dist/utils/common.d.mts +0 -2
- package/dist/utils/company.d.mts +0 -2
- package/dist/utils/database.d.mts +0 -2
- package/dist/utils/datatype.d.mts +0 -2
- package/dist/utils/datetime.d.mts +0 -2
- package/dist/utils/finance.d.mts +0 -3
- package/dist/utils/food.d.mts +0 -2
- package/dist/utils/git.d.mts +0 -2
- package/dist/utils/hacker.d.mts +0 -2
- package/dist/utils/image.d.mts +0 -2
- package/dist/utils/index.d.mts +0 -28
- package/dist/utils/internet.d.mts +0 -3
- package/dist/utils/location.d.mts +0 -2
- package/dist/utils/lorem.d.mts +0 -2
- package/dist/utils/music.d.mts +0 -2
- package/dist/utils/number.d.mts +0 -2
- package/dist/utils/person.d.mts +0 -3
- package/dist/utils/phone.d.mts +0 -2
- package/dist/utils/science.d.mts +0 -3
- package/dist/utils/string.d.mts +0 -2
- package/dist/utils/system.d.mts +0 -2
- package/dist/utils/utils.d.mts +0 -2
- package/dist/utils/vehicle.d.mts +0 -2
- package/dist/utils/word.d.mts +0 -75
- package/dist/utils-BImnOpvp.d.ts +0 -10
- package/dist/utils-zJKwaMUY.d.mts +0 -10
- package/dist/vehicle-D4yBDYMc.d.mts +0 -35
- package/dist/vehicle-Ufz4AoXu.d.ts +0 -35
- package/src/test.ts +0 -10
- package/tsup.config.ts +0 -8
package/dist/utils/phone.js
CHANGED
|
@@ -1,13 +1,42 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
imei: ()=>imei,
|
|
28
|
+
number: ()=>number
|
|
29
|
+
});
|
|
30
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
31
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
32
|
+
const imei = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.phone.imei);
|
|
33
|
+
const number = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.phone.number);
|
|
34
|
+
exports.imei = __webpack_exports__.imei;
|
|
35
|
+
exports.number = __webpack_exports__.number;
|
|
36
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
37
|
+
"imei",
|
|
38
|
+
"number"
|
|
39
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
40
|
+
Object.defineProperty(exports, '__esModule', {
|
|
41
|
+
value: true
|
|
42
|
+
});
|
package/dist/utils/phone.mjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
7
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
8
|
-
import "../chunk-USLYTOPD.mjs";
|
|
9
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
10
|
-
export {
|
|
11
|
-
imei,
|
|
12
|
-
number
|
|
13
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const imei = makeValueConfigFn(faker.phone.imei);
|
|
4
|
+
const number = makeValueConfigFn(faker.phone.number);
|
|
5
|
+
export { imei, number };
|
package/dist/utils/science.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
/** Science [chemicalElement](https://fakerjs.dev/api/science.html#chemicalElement) */
|
|
2
|
+
export declare const chemicalElement: () => import("..").ValueConfig<import("@faker-js/faker/.").ChemicalElement>;
|
|
3
|
+
/** Science [unit](https://fakerjs.dev/api/science.html#unit) */
|
|
4
|
+
export declare const unit: () => import("..").ValueConfig<import("@faker-js/faker/.").Unit>;
|
package/dist/utils/science.js
CHANGED
|
@@ -1,13 +1,42 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
chemicalElement: ()=>chemicalElement,
|
|
28
|
+
unit: ()=>unit
|
|
29
|
+
});
|
|
30
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
31
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
32
|
+
const chemicalElement = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.science.chemicalElement);
|
|
33
|
+
const unit = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.science.unit);
|
|
34
|
+
exports.chemicalElement = __webpack_exports__.chemicalElement;
|
|
35
|
+
exports.unit = __webpack_exports__.unit;
|
|
36
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
37
|
+
"chemicalElement",
|
|
38
|
+
"unit"
|
|
39
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
40
|
+
Object.defineProperty(exports, '__esModule', {
|
|
41
|
+
value: true
|
|
42
|
+
});
|
package/dist/utils/science.mjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
7
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
8
|
-
import "../chunk-USLYTOPD.mjs";
|
|
9
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
10
|
-
export {
|
|
11
|
-
chemicalElement,
|
|
12
|
-
unit
|
|
13
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const chemicalElement = makeValueConfigFn(faker.science.chemicalElement);
|
|
4
|
+
const unit = makeValueConfigFn(faker.science.unit);
|
|
5
|
+
export { chemicalElement, unit };
|
package/dist/utils/string.d.ts
CHANGED
|
@@ -1,2 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
/** String [alpha](https://fakerjs.dev/api/string.html#alpha) */
|
|
2
|
+
export declare const alpha: (options?: number | {
|
|
3
|
+
length?: number | {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
};
|
|
7
|
+
casing?: "lower" | "upper" | "mixed";
|
|
8
|
+
exclude?: ReadonlyArray<(("a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")) | (string & {
|
|
9
|
+
zz_IGNORE_ME?: never;
|
|
10
|
+
})> | string;
|
|
11
|
+
}) => import("..").ValueConfig<string>;
|
|
12
|
+
/** String [alphanumeric](https://fakerjs.dev/api/string.html#alphanumeric) */
|
|
13
|
+
export declare const alphanumeric: (options?: number | {
|
|
14
|
+
length?: number | {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
};
|
|
18
|
+
casing?: "lower" | "upper" | "mixed";
|
|
19
|
+
exclude?: ReadonlyArray<(string & {
|
|
20
|
+
zz_IGNORE_ME?: never;
|
|
21
|
+
}) | ((("a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | ("A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")) | ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"))> | string;
|
|
22
|
+
}) => import("..").ValueConfig<string>;
|
|
23
|
+
/** String [binary](https://fakerjs.dev/api/string.html#binary) */
|
|
24
|
+
export declare const binary: (options?: {
|
|
25
|
+
length?: number | {
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
};
|
|
29
|
+
prefix?: string;
|
|
30
|
+
}) => import("..").ValueConfig<string>;
|
|
31
|
+
/** String [fromCharacters](https://fakerjs.dev/api/string.html#fromCharacters) */
|
|
32
|
+
export declare const fromCharacters: (characters: string | readonly string[], length?: number | {
|
|
33
|
+
min: number;
|
|
34
|
+
max: number;
|
|
35
|
+
}) => import("..").ValueConfig<string>;
|
|
36
|
+
/** String [hexadecimal](https://fakerjs.dev/api/string.html#hexadecimal) */
|
|
37
|
+
export declare const hexadecimal: (options?: {
|
|
38
|
+
length?: number | {
|
|
39
|
+
min: number;
|
|
40
|
+
max: number;
|
|
41
|
+
};
|
|
42
|
+
casing?: "lower" | "upper" | "mixed";
|
|
43
|
+
prefix?: string;
|
|
44
|
+
}) => import("..").ValueConfig<string>;
|
|
45
|
+
/** String [nanoid](https://fakerjs.dev/api/string.html#nanoid) */
|
|
46
|
+
export declare const nanoid: (length?: number | {
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
}) => import("..").ValueConfig<string>;
|
|
50
|
+
/** String [octal](https://fakerjs.dev/api/string.html#octal) */
|
|
51
|
+
export declare const octal: (options?: {
|
|
52
|
+
length?: number | {
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
};
|
|
56
|
+
prefix?: string;
|
|
57
|
+
}) => import("..").ValueConfig<string>;
|
|
58
|
+
/** String [sample](https://fakerjs.dev/api/string.html#sample) */
|
|
59
|
+
export declare const sample: (length?: number | {
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
}) => import("..").ValueConfig<string>;
|
|
63
|
+
/** String [symbol](https://fakerjs.dev/api/string.html#symbol) */
|
|
64
|
+
export declare const symbol: (length?: number | {
|
|
65
|
+
min: number;
|
|
66
|
+
max: number;
|
|
67
|
+
}) => import("..").ValueConfig<string>;
|
|
68
|
+
/** String [uuid](https://fakerjs.dev/api/string.html#uuid) */
|
|
69
|
+
export declare const uuid: () => import("..").ValueConfig<string>;
|
package/dist/utils/string.js
CHANGED
|
@@ -1,29 +1,74 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
+
fromCharacters: ()=>fromCharacters,
|
|
28
|
+
alpha: ()=>alpha,
|
|
29
|
+
nanoid: ()=>nanoid,
|
|
30
|
+
symbol: ()=>symbol,
|
|
31
|
+
sample: ()=>sample,
|
|
32
|
+
binary: ()=>binary,
|
|
33
|
+
uuid: ()=>uuid,
|
|
34
|
+
hexadecimal: ()=>hexadecimal,
|
|
35
|
+
octal: ()=>octal,
|
|
36
|
+
alphanumeric: ()=>alphanumeric
|
|
37
|
+
});
|
|
38
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
39
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
40
|
+
const alpha = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.alpha);
|
|
41
|
+
const alphanumeric = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.alphanumeric);
|
|
42
|
+
const binary = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.binary);
|
|
43
|
+
const fromCharacters = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.fromCharacters);
|
|
44
|
+
const hexadecimal = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.hexadecimal);
|
|
45
|
+
const nanoid = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.nanoid);
|
|
46
|
+
const octal = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.octal);
|
|
47
|
+
const sample = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.sample);
|
|
48
|
+
const symbol = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.symbol);
|
|
49
|
+
const uuid = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.string.uuid);
|
|
50
|
+
exports.alpha = __webpack_exports__.alpha;
|
|
51
|
+
exports.alphanumeric = __webpack_exports__.alphanumeric;
|
|
52
|
+
exports.binary = __webpack_exports__.binary;
|
|
53
|
+
exports.fromCharacters = __webpack_exports__.fromCharacters;
|
|
54
|
+
exports.hexadecimal = __webpack_exports__.hexadecimal;
|
|
55
|
+
exports.nanoid = __webpack_exports__.nanoid;
|
|
56
|
+
exports.octal = __webpack_exports__.octal;
|
|
57
|
+
exports.sample = __webpack_exports__.sample;
|
|
58
|
+
exports.symbol = __webpack_exports__.symbol;
|
|
59
|
+
exports.uuid = __webpack_exports__.uuid;
|
|
60
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
61
|
+
"alpha",
|
|
62
|
+
"alphanumeric",
|
|
63
|
+
"binary",
|
|
64
|
+
"fromCharacters",
|
|
65
|
+
"hexadecimal",
|
|
66
|
+
"nanoid",
|
|
67
|
+
"octal",
|
|
68
|
+
"sample",
|
|
69
|
+
"symbol",
|
|
70
|
+
"uuid"
|
|
71
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
72
|
+
Object.defineProperty(exports, '__esModule', {
|
|
73
|
+
value: true
|
|
74
|
+
});
|
package/dist/utils/string.mjs
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
15
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
16
|
-
import "../chunk-USLYTOPD.mjs";
|
|
17
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
18
|
-
export {
|
|
19
|
-
alpha,
|
|
20
|
-
alphanumeric,
|
|
21
|
-
binary,
|
|
22
|
-
fromCharacters,
|
|
23
|
-
hexadecimal,
|
|
24
|
-
nanoid,
|
|
25
|
-
octal,
|
|
26
|
-
sample,
|
|
27
|
-
symbol,
|
|
28
|
-
uuid
|
|
29
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const alpha = makeValueConfigFn(faker.string.alpha);
|
|
4
|
+
const alphanumeric = makeValueConfigFn(faker.string.alphanumeric);
|
|
5
|
+
const binary = makeValueConfigFn(faker.string.binary);
|
|
6
|
+
const fromCharacters = makeValueConfigFn(faker.string.fromCharacters);
|
|
7
|
+
const hexadecimal = makeValueConfigFn(faker.string.hexadecimal);
|
|
8
|
+
const nanoid = makeValueConfigFn(faker.string.nanoid);
|
|
9
|
+
const octal = makeValueConfigFn(faker.string.octal);
|
|
10
|
+
const sample = makeValueConfigFn(faker.string.sample);
|
|
11
|
+
const symbol = makeValueConfigFn(faker.string.symbol);
|
|
12
|
+
const uuid = makeValueConfigFn(faker.string.uuid);
|
|
13
|
+
export { alpha, alphanumeric, binary, fromCharacters, hexadecimal, nanoid, octal, sample, symbol, uuid };
|
package/dist/utils/system.d.ts
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
/** System [commonFileExt](https://fakerjs.dev/api/system.html#commonFileExt) */
|
|
2
|
+
export declare const commonFileExt: () => import("..").ValueConfig<string>;
|
|
3
|
+
/** System [commonFileName](https://fakerjs.dev/api/system.html#commonFileName) */
|
|
4
|
+
export declare const commonFileName: (extension?: string) => import("..").ValueConfig<string>;
|
|
5
|
+
/** System [commonFileType](https://fakerjs.dev/api/system.html#commonFileType) */
|
|
6
|
+
export declare const commonFileType: () => import("..").ValueConfig<string>;
|
|
7
|
+
/** System [cron](https://fakerjs.dev/api/system.html#cron) */
|
|
8
|
+
export declare const cron: (options?: {
|
|
9
|
+
includeYear?: boolean;
|
|
10
|
+
includeNonStandard?: boolean;
|
|
11
|
+
}) => import("..").ValueConfig<string>;
|
|
12
|
+
/** System [directoryPath](https://fakerjs.dev/api/system.html#directoryPath) */
|
|
13
|
+
export declare const directoryPath: () => import("..").ValueConfig<string>;
|
|
14
|
+
/** System [fileExt](https://fakerjs.dev/api/system.html#fileExt) */
|
|
15
|
+
export declare const fileExt: (mimeType?: string) => import("..").ValueConfig<string>;
|
|
16
|
+
/** System [fileName](https://fakerjs.dev/api/system.html#fileName) */
|
|
17
|
+
export declare const fileName: (options?: {
|
|
18
|
+
extensionCount?: number | {
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
};
|
|
22
|
+
}) => import("..").ValueConfig<string>;
|
|
23
|
+
/** System [filePath](https://fakerjs.dev/api/system.html#filePath) */
|
|
24
|
+
export declare const filePath: () => import("..").ValueConfig<string>;
|
|
25
|
+
/** System [fileType](https://fakerjs.dev/api/system.html#fileType) */
|
|
26
|
+
export declare const fileType: () => import("..").ValueConfig<string>;
|
|
27
|
+
/** System [mimeType](https://fakerjs.dev/api/system.html#mimeType) */
|
|
28
|
+
export declare const mimeType: () => import("..").ValueConfig<string>;
|
|
29
|
+
/** System [networkInterface](https://fakerjs.dev/api/system.html#networkInterface) */
|
|
30
|
+
export declare const networkInterface: (options?: {
|
|
31
|
+
interfaceType?: "en" | "wl" | "ww";
|
|
32
|
+
interfaceSchema?: "index" | "slot" | "mac" | "pci";
|
|
33
|
+
}) => import("..").ValueConfig<string>;
|
|
34
|
+
/** System [semver](https://fakerjs.dev/api/system.html#semver) */
|
|
35
|
+
export declare const semver: () => import("..").ValueConfig<string>;
|
package/dist/utils/system.js
CHANGED
|
@@ -1,33 +1,82 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
commonFileType: ()=>commonFileType,
|
|
28
|
+
commonFileExt: ()=>commonFileExt,
|
|
29
|
+
directoryPath: ()=>directoryPath,
|
|
30
|
+
mimeType: ()=>mimeType,
|
|
31
|
+
fileExt: ()=>fileExt,
|
|
32
|
+
fileType: ()=>fileType,
|
|
33
|
+
networkInterface: ()=>networkInterface,
|
|
34
|
+
fileName: ()=>fileName,
|
|
35
|
+
semver: ()=>semver,
|
|
36
|
+
filePath: ()=>filePath,
|
|
37
|
+
commonFileName: ()=>commonFileName,
|
|
38
|
+
cron: ()=>cron
|
|
39
|
+
});
|
|
40
|
+
const faker_namespaceObject = require("@faker-js/faker");
|
|
41
|
+
const external_utils_js_namespaceObject = require("./utils.js");
|
|
42
|
+
const commonFileExt = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.commonFileExt);
|
|
43
|
+
const commonFileName = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.commonFileName);
|
|
44
|
+
const commonFileType = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.commonFileType);
|
|
45
|
+
const cron = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.cron);
|
|
46
|
+
const directoryPath = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.directoryPath);
|
|
47
|
+
const fileExt = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.fileExt);
|
|
48
|
+
const fileName = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.fileName);
|
|
49
|
+
const filePath = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.filePath);
|
|
50
|
+
const fileType = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.fileType);
|
|
51
|
+
const mimeType = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.mimeType);
|
|
52
|
+
const networkInterface = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.networkInterface);
|
|
53
|
+
const semver = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.system.semver);
|
|
54
|
+
exports.commonFileExt = __webpack_exports__.commonFileExt;
|
|
55
|
+
exports.commonFileName = __webpack_exports__.commonFileName;
|
|
56
|
+
exports.commonFileType = __webpack_exports__.commonFileType;
|
|
57
|
+
exports.cron = __webpack_exports__.cron;
|
|
58
|
+
exports.directoryPath = __webpack_exports__.directoryPath;
|
|
59
|
+
exports.fileExt = __webpack_exports__.fileExt;
|
|
60
|
+
exports.fileName = __webpack_exports__.fileName;
|
|
61
|
+
exports.filePath = __webpack_exports__.filePath;
|
|
62
|
+
exports.fileType = __webpack_exports__.fileType;
|
|
63
|
+
exports.mimeType = __webpack_exports__.mimeType;
|
|
64
|
+
exports.networkInterface = __webpack_exports__.networkInterface;
|
|
65
|
+
exports.semver = __webpack_exports__.semver;
|
|
66
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
67
|
+
"commonFileExt",
|
|
68
|
+
"commonFileName",
|
|
69
|
+
"commonFileType",
|
|
70
|
+
"cron",
|
|
71
|
+
"directoryPath",
|
|
72
|
+
"fileExt",
|
|
73
|
+
"fileName",
|
|
74
|
+
"filePath",
|
|
75
|
+
"fileType",
|
|
76
|
+
"mimeType",
|
|
77
|
+
"networkInterface",
|
|
78
|
+
"semver"
|
|
79
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
80
|
+
Object.defineProperty(exports, '__esModule', {
|
|
81
|
+
value: true
|
|
82
|
+
});
|
package/dist/utils/system.mjs
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import "../chunk-ZQA42PYM.mjs";
|
|
17
|
-
import "../chunk-3U6BNHWG.mjs";
|
|
18
|
-
import "../chunk-USLYTOPD.mjs";
|
|
19
|
-
import "../chunk-XGB3TDIC.mjs";
|
|
20
|
-
export {
|
|
21
|
-
commonFileExt,
|
|
22
|
-
commonFileName,
|
|
23
|
-
commonFileType,
|
|
24
|
-
cron,
|
|
25
|
-
directoryPath,
|
|
26
|
-
fileExt,
|
|
27
|
-
fileName,
|
|
28
|
-
filePath,
|
|
29
|
-
fileType,
|
|
30
|
-
mimeType,
|
|
31
|
-
networkInterface,
|
|
32
|
-
semver
|
|
33
|
-
};
|
|
1
|
+
import { faker } from "@faker-js/faker";
|
|
2
|
+
import { makeValueConfigFn } from "./utils.mjs";
|
|
3
|
+
const commonFileExt = makeValueConfigFn(faker.system.commonFileExt);
|
|
4
|
+
const commonFileName = makeValueConfigFn(faker.system.commonFileName);
|
|
5
|
+
const commonFileType = makeValueConfigFn(faker.system.commonFileType);
|
|
6
|
+
const cron = makeValueConfigFn(faker.system.cron);
|
|
7
|
+
const directoryPath = makeValueConfigFn(faker.system.directoryPath);
|
|
8
|
+
const fileExt = makeValueConfigFn(faker.system.fileExt);
|
|
9
|
+
const fileName = makeValueConfigFn(faker.system.fileName);
|
|
10
|
+
const filePath = makeValueConfigFn(faker.system.filePath);
|
|
11
|
+
const fileType = makeValueConfigFn(faker.system.fileType);
|
|
12
|
+
const mimeType = makeValueConfigFn(faker.system.mimeType);
|
|
13
|
+
const networkInterface = makeValueConfigFn(faker.system.networkInterface);
|
|
14
|
+
const semver = makeValueConfigFn(faker.system.semver);
|
|
15
|
+
export { commonFileExt, commonFileName, commonFileType, cron, directoryPath, fileExt, fileName, filePath, fileType, mimeType, networkInterface, semver };
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
1
|
+
import type { ValueConfig } from "../type";
|
|
2
|
+
export declare function makeValueConfigFn<Args extends Array<unknown>, R>(fn: (...options: Args) => R): (...options: Args) => ValueConfig<R>;
|
package/dist/utils/utils.js
CHANGED
|
@@ -1,9 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
makeValueConfigFn: ()=>makeValueConfigFn
|
|
28
|
+
});
|
|
29
|
+
const external_create_config_js_namespaceObject = require("../create_config.js");
|
|
30
|
+
function makeValueConfigFn(fn) {
|
|
31
|
+
return (...options)=>(0, external_create_config_js_namespaceObject.createValueConfig)(()=>fn(...options));
|
|
32
|
+
}
|
|
33
|
+
exports.makeValueConfigFn = __webpack_exports__.makeValueConfigFn;
|
|
34
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
35
|
+
"makeValueConfigFn"
|
|
36
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
37
|
+
Object.defineProperty(exports, '__esModule', {
|
|
38
|
+
value: true
|
|
39
|
+
});
|