@kubb/core 0.49.1 → 0.50.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.d.ts +5 -1
- package/dist/index.global.js +16 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -205,6 +205,10 @@ declare const nameSorter: <T extends {
|
|
|
205
205
|
name: string;
|
|
206
206
|
}>(a: T, b: T) => 0 | 1 | -1;
|
|
207
207
|
|
|
208
|
+
declare const createJSDocBlockText: ({ comments }: {
|
|
209
|
+
comments: Array<string | undefined>;
|
|
210
|
+
}) => string | undefined;
|
|
211
|
+
|
|
208
212
|
type Import = {
|
|
209
213
|
name: string | string[];
|
|
210
214
|
path: string;
|
|
@@ -389,4 +393,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
|
|
|
389
393
|
abstract build(schema: TInput, name: string, description?: string): TOutput;
|
|
390
394
|
}
|
|
391
395
|
|
|
392
|
-
export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createPlugin, createPluginCache, build as default, defineConfig, format, getPathMode, getRelativePath, hooks, isPromise, isURL, name, nameSorter, objectToParameters, read, validatePlugins, write };
|
|
396
|
+
export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createJSDocBlockText, createPlugin, createPluginCache, build as default, defineConfig, format, getPathMode, getRelativePath, hooks, isPromise, isURL, name, nameSorter, objectToParameters, read, validatePlugins, write };
|
package/dist/index.global.js
CHANGED
|
@@ -21178,6 +21178,21 @@ var kubb = (function (exports) {
|
|
|
21178
21178
|
return 0;
|
|
21179
21179
|
};
|
|
21180
21180
|
|
|
21181
|
+
// src/utils/jsdoc.ts
|
|
21182
|
+
init_define_process();
|
|
21183
|
+
var createJSDocBlockText = ({ comments }) => {
|
|
21184
|
+
const filteredComments = comments.filter(Boolean);
|
|
21185
|
+
if (!filteredComments.length) {
|
|
21186
|
+
return void 0;
|
|
21187
|
+
}
|
|
21188
|
+
const text = filteredComments.reduce((acc, comment) => {
|
|
21189
|
+
return `${acc}
|
|
21190
|
+
* ${comment}`;
|
|
21191
|
+
}, "/**");
|
|
21192
|
+
return `${text}
|
|
21193
|
+
*/`;
|
|
21194
|
+
};
|
|
21195
|
+
|
|
21181
21196
|
// src/plugin.ts
|
|
21182
21197
|
function createPlugin(factory) {
|
|
21183
21198
|
return (options) => {
|
|
@@ -21890,6 +21905,7 @@ ${curr.source}`,
|
|
|
21890
21905
|
exports.ValidationPluginError = ValidationPluginError;
|
|
21891
21906
|
exports.build = build;
|
|
21892
21907
|
exports.clean = clean;
|
|
21908
|
+
exports.createJSDocBlockText = createJSDocBlockText;
|
|
21893
21909
|
exports.createPlugin = createPlugin;
|
|
21894
21910
|
exports.createPluginCache = createPluginCache;
|
|
21895
21911
|
exports.default = src_default;
|