@kubb/plugin-faker 5.1.2 → 5.1.4
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 +2 -2
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/docs/options.md +205 -0
- package/docs/overview.md +41 -0
- package/kubb-extension.json +196 -0
- package/package.json +9 -6
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./rolldown-runtime-C0LytTxp.js";
|
|
2
2
|
import { posix } from "node:path";
|
|
3
|
-
import { Resolver, addGenerator, ast, containsCircularRef, createResolver,
|
|
3
|
+
import { Resolver, addGenerator, ast, containsCircularRef, createResolver, defineExtension, defineGenerator, setMacros, setResolver } from "kubb/kit";
|
|
4
4
|
import { buildParams, createFunctionParameter, createFunctionParameters, functionPrinter, pluginTsName } from "@kubb/plugin-ts";
|
|
5
5
|
import { File, Function, jsxRenderer } from "kubb/jsx";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "kubb/jsx/jsx-runtime";
|
|
@@ -1493,8 +1493,14 @@ const fakerGenerator = defineGenerator({
|
|
|
1493
1493
|
}
|
|
1494
1494
|
});
|
|
1495
1495
|
//#endregion
|
|
1496
|
+
//#region kubb-extension.json
|
|
1497
|
+
var compatibility = {
|
|
1498
|
+
"kubb": ">=5.8.3",
|
|
1499
|
+
"node": ">=22"
|
|
1500
|
+
};
|
|
1501
|
+
//#endregion
|
|
1496
1502
|
//#region package.json
|
|
1497
|
-
var version = "5.1.
|
|
1503
|
+
var version = "5.1.4";
|
|
1498
1504
|
//#endregion
|
|
1499
1505
|
//#region src/resolvers/resolverFaker.ts
|
|
1500
1506
|
/**
|
|
@@ -1549,11 +1555,12 @@ const pluginFakerName = "plugin-faker";
|
|
|
1549
1555
|
* })
|
|
1550
1556
|
* ```
|
|
1551
1557
|
*/
|
|
1552
|
-
const pluginFaker =
|
|
1558
|
+
const pluginFaker = defineExtension({
|
|
1559
|
+
kind: "plugin",
|
|
1553
1560
|
meta: {
|
|
1554
1561
|
name: pluginFakerName,
|
|
1555
1562
|
version,
|
|
1556
|
-
compatibility
|
|
1563
|
+
compatibility
|
|
1557
1564
|
},
|
|
1558
1565
|
dependencies: { [pluginTsName]: {} },
|
|
1559
1566
|
setup(options) {
|