@kubb/core 0.49.0 → 0.49.1

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 CHANGED
@@ -201,6 +201,10 @@ type Options$1 = {
201
201
  };
202
202
  declare const objectToParameters: (data: Data, options?: Options$1) => string;
203
203
 
204
+ declare const nameSorter: <T extends {
205
+ name: string;
206
+ }>(a: T, b: T) => 0 | 1 | -1;
207
+
204
208
  type Import = {
205
209
  name: string | string[];
206
210
  path: string;
@@ -385,4 +389,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
385
389
  abstract build(schema: TInput, name: string, description?: string): TOutput;
386
390
  }
387
391
 
388
- 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, objectToParameters, read, validatePlugins, write };
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 };
@@ -21166,6 +21166,18 @@ var kubb = (function (exports) {
21166
21166
  }, []).join("");
21167
21167
  };
21168
21168
 
21169
+ // src/utils/nameSorter.ts
21170
+ init_define_process();
21171
+ var nameSorter = (a, b) => {
21172
+ if (a.name < b.name) {
21173
+ return -1;
21174
+ }
21175
+ if (a.name > b.name) {
21176
+ return 1;
21177
+ }
21178
+ return 0;
21179
+ };
21180
+
21169
21181
  // src/plugin.ts
21170
21182
  function createPlugin(factory) {
21171
21183
  return (options) => {
@@ -21889,6 +21901,7 @@ ${curr.source}`,
21889
21901
  exports.isPromise = isPromise;
21890
21902
  exports.isURL = isURL;
21891
21903
  exports.name = name;
21904
+ exports.nameSorter = nameSorter;
21892
21905
  exports.objectToParameters = objectToParameters;
21893
21906
  exports.read = read;
21894
21907
  exports.validatePlugins = validatePlugins;