@kubb/plugin-faker 5.1.7 → 5.1.10

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.
@@ -20,7 +20,7 @@
20
20
  "dependencies": ["plugin-ts"],
21
21
  "compatibility": {
22
22
  "kubb": ">=5.8.3",
23
- "node": ">=22"
23
+ "node": ">=22.12"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -191,6 +191,36 @@
191
191
  "label": "Seed",
192
192
  "description": "Fixed seed for consistent output",
193
193
  "type": "number"
194
+ },
195
+ {
196
+ "key": "typeMode",
197
+ "path": ["typeMode"],
198
+ "label": "Type Mode",
199
+ "description": "Type the factories from the generated values (inferred) or from the API model (schema)",
200
+ "type": "select",
201
+ "default": "inferred",
202
+ "choices": [
203
+ {
204
+ "value": "inferred"
205
+ },
206
+ {
207
+ "value": "schema"
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "key": "banner",
213
+ "path": ["output", "banner"],
214
+ "label": "Banner",
215
+ "description": "Text added at the top of every generated file",
216
+ "type": "text"
217
+ },
218
+ {
219
+ "key": "footer",
220
+ "path": ["output", "footer"],
221
+ "label": "Footer",
222
+ "description": "Text added at the end of every generated file",
223
+ "type": "text"
194
224
  }
195
225
  ]
196
226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-faker",
3
- "version": "5.1.7",
3
+ "version": "5.1.10",
4
4
  "description": "Generate Faker.js mock data factories with Kubb. Produces realistic seed data and fixtures for development and testing.",
5
5
  "keywords": [
6
6
  "code-generation",
@@ -62,9 +62,14 @@
62
62
  },
63
63
  "exports": {
64
64
  ".": {
65
- "types": "./dist/index.d.ts",
66
- "import": "./dist/index.js",
67
- "require": "./dist/index.cjs"
65
+ "import": {
66
+ "types": "./dist/index.d.ts",
67
+ "default": "./dist/index.js"
68
+ },
69
+ "require": {
70
+ "types": "./dist/index.d.cts",
71
+ "default": "./dist/index.cjs"
72
+ }
68
73
  },
69
74
  "./package.json": "./package.json",
70
75
  "./kubb-extension.json": "./kubb-extension.json"
@@ -74,17 +79,17 @@
74
79
  "registry": "https://registry.npmjs.org/"
75
80
  },
76
81
  "dependencies": {
77
- "@kubb/plugin-ts": "^5.0.12"
82
+ "@kubb/plugin-ts": "^5.0.15"
78
83
  },
79
84
  "devDependencies": {
80
85
  "@faker-js/faker": "^10.6.0",
81
86
  "@internals/shared": "0.0.0",
82
87
  "@internals/utils": "0.0.0",
83
- "kubb": "^5.10.2"
88
+ "kubb": "^5.12.5"
84
89
  },
85
90
  "peerDependencies": {
86
91
  "@faker-js/faker": "^10.0.0",
87
- "kubb": "^5.10.2"
92
+ "kubb": "^5.12.5"
88
93
  },
89
94
  "peerDependenciesMeta": {
90
95
  "@faker-js/faker": {
@@ -92,7 +97,7 @@
92
97
  }
93
98
  },
94
99
  "engines": {
95
- "node": ">=22"
100
+ "node": ">=22.12"
96
101
  },
97
102
  "scripts": {
98
103
  "build": "tsdown",
@@ -1,8 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __name = (target, value) => __defProp(target, "name", {
4
- value,
5
- configurable: true
6
- });
7
- //#endregion
8
- export { __name as t };