@kubb/plugin-zod 5.4.4 → 5.4.5
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/dist/index.cjs +33 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +34 -31
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2229,6 +2229,9 @@ const zodGenerator = (0, kubb_kit.defineGenerator)({
|
|
|
2229
2229
|
}
|
|
2230
2230
|
});
|
|
2231
2231
|
//#endregion
|
|
2232
|
+
//#region package.json
|
|
2233
|
+
var version = "5.4.5";
|
|
2234
|
+
//#endregion
|
|
2232
2235
|
//#region src/resolvers/resolverZod.ts
|
|
2233
2236
|
/**
|
|
2234
2237
|
* Default resolver used by `@kubb/plugin-zod`. Decides the names and file
|
|
@@ -2315,37 +2318,37 @@ const pluginZodName = "plugin-zod";
|
|
|
2315
2318
|
* })
|
|
2316
2319
|
* ```
|
|
2317
2320
|
*/
|
|
2318
|
-
const pluginZod = (0, kubb_kit.definePlugin)(
|
|
2319
|
-
|
|
2320
|
-
path: "zod",
|
|
2321
|
-
barrel: { type: "named" }
|
|
2322
|
-
}, group, exclude = [], include, override = [], compile = false, mini = false, guidType = "uuid", regexType = "literal", importPath = mini ? "zod/mini" : "zod", coercion = false, inferred = false, typeGuards = false, printer, resolver: userResolver, macros: userMacros } = options;
|
|
2323
|
-
const groupConfig = createGroupConfig(group);
|
|
2324
|
-
return {
|
|
2321
|
+
const pluginZod = (0, kubb_kit.definePlugin)({
|
|
2322
|
+
meta: {
|
|
2325
2323
|
name: pluginZodName,
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2324
|
+
version,
|
|
2325
|
+
compatibility: { kubb: ">=5.8.0" }
|
|
2326
|
+
},
|
|
2327
|
+
setup(options) {
|
|
2328
|
+
const { output = {
|
|
2329
|
+
path: "zod",
|
|
2330
|
+
barrel: { type: "named" }
|
|
2331
|
+
}, group, exclude = [], include, override = [], compile = false, mini = false, guidType = "uuid", regexType = "literal", importPath = mini ? "zod/mini" : "zod", coercion = false, inferred = false, typeGuards = false, printer, resolver: userResolver, macros: userMacros } = options;
|
|
2332
|
+
(0, kubb_kit.setResolver)(userResolver ? kubb_kit.Resolver.merge(resolverZod, userResolver) : resolverZod);
|
|
2333
|
+
if (userMacros?.length) (0, kubb_kit.setMacros)(userMacros);
|
|
2334
|
+
(0, kubb_kit.addGenerator)(zodGenerator);
|
|
2335
|
+
return {
|
|
2336
|
+
output,
|
|
2337
|
+
exclude,
|
|
2338
|
+
include,
|
|
2339
|
+
override,
|
|
2340
|
+
group: createGroupConfig(group),
|
|
2341
|
+
importPath,
|
|
2342
|
+
coercion,
|
|
2343
|
+
inferred,
|
|
2344
|
+
guidType,
|
|
2345
|
+
regexType,
|
|
2346
|
+
compile,
|
|
2347
|
+
mini,
|
|
2348
|
+
typeGuards,
|
|
2349
|
+
printer
|
|
2350
|
+
};
|
|
2351
|
+
}
|
|
2349
2352
|
});
|
|
2350
2353
|
//#endregion
|
|
2351
2354
|
exports.default = pluginZod;
|