@kubb/plugin-faker 5.4.0-canary.20261111T122006 → 5.4.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.
- package/dist/index.cjs +244 -283
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +244 -283
- package/dist/index.js.map +1 -1
- package/docs/options.md +1 -1
- package/kubb-extension.json +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -116,8 +116,8 @@ type Options = OutputOptions & {
|
|
|
116
116
|
dateParser?: 'faker' | 'dayjs' | 'moment' | (string & {});
|
|
117
117
|
/**
|
|
118
118
|
* Library used to generate strings that satisfy a regex `pattern` keyword.
|
|
119
|
-
* - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency.
|
|
120
|
-
*
|
|
119
|
+
* - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency. Kubb rewrites `\d`, `\w`, escaped
|
|
120
|
+
* characters, and `{n,}` for faker. Groups, alternation, and `\s` need `'randexp'`.
|
|
121
121
|
* - `'randexp'` uses the `randexp` package. Supports a wider regex grammar.
|
|
122
122
|
*
|
|
123
123
|
* @default 'faker'
|
package/dist/index.d.ts
CHANGED
|
@@ -116,8 +116,8 @@ type Options = OutputOptions & {
|
|
|
116
116
|
dateParser?: 'faker' | 'dayjs' | 'moment' | (string & {});
|
|
117
117
|
/**
|
|
118
118
|
* Library used to generate strings that satisfy a regex `pattern` keyword.
|
|
119
|
-
* - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency.
|
|
120
|
-
*
|
|
119
|
+
* - `'faker'` uses `faker.helpers.fromRegExp`. No extra dependency. Kubb rewrites `\d`, `\w`, escaped
|
|
120
|
+
* characters, and `{n,}` for faker. Groups, alternation, and `\s` need `'randexp'`.
|
|
121
121
|
* - `'randexp'` uses the `randexp` package. Supports a wider regex grammar.
|
|
122
122
|
*
|
|
123
123
|
* @default 'faker'
|