@kubb/core 1.1.2 → 1.1.3

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
@@ -368,9 +368,14 @@ type CLIOptions = {
368
368
  */
369
369
  watch?: string;
370
370
  /**
371
- * Override input defined in `kubb.config.js`
371
+ * Override `input` defined in `kubb.config.js`
372
372
  */
373
373
  input?: string;
374
+ /**
375
+ * Override `logLevel` defined in `kubb.config.js`
376
+ * @default `'silent'`
377
+ */
378
+ logLevel?: LogLevel;
374
379
  };
375
380
  type BuildOutput = {
376
381
  files: FileManager['files'];
@@ -493,8 +498,7 @@ type TransformResult = string | null;
493
498
  type Path = string;
494
499
  type OptionalPath = Path | null | undefined;
495
500
  type FileName = string | null | undefined;
496
- type LogType = 'error' | 'info';
497
- type LogLevel = LogType | 'silent';
501
+ type LogLevel = 'error' | 'info' | 'silent';
498
502
 
499
503
  type Logger = {
500
504
  log: (message: string, logLevel: LogLevel) => void;
@@ -531,4 +535,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
531
535
  abstract build(schema: TInput, name: string, description?: string): TOutput;
532
536
  }
533
537
 
534
- export { Argument0, BuildOutput, CLIOptions, Cache, CacheStore, CorePluginOptions, Executer, File, FileManager, FileName, Generator, KubbConfig, KubbJSONPlugin, KubbObjectPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OnExecute, OptionalPath, ParallelPluginError, Path, PathMode, PluginContext, PluginError, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, Queue, QueueTask, Register, ResolveNameParams, ResolvePathParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, TreeNodeOptions, UUID, ValidationPluginError, build, clean, combineFiles, createJSDocBlockText, createPlugin, createPluginCache, build as default, defineConfig, getEncodedText, getFileSource, getPathMode, getRelativePath, getStackTrace, getUniqueName, hooks, isPromise, isURL, name, nameSorter, objectToParameters, read, renderTemplate, timeout, transformReservedWord, validatePlugins, write, writeIndexes };
538
+ export { Argument0, BuildOutput, CLIOptions, Cache, CacheStore, CorePluginOptions, Executer, File, FileManager, FileName, Generator, KubbConfig, KubbJSONPlugin, KubbObjectPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, Logger, MaybePromise, OnExecute, OptionalPath, ParallelPluginError, Path, PathMode, PluginContext, PluginError, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, Queue, QueueTask, Register, ResolveNameParams, ResolvePathParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, TreeNodeOptions, UUID, ValidationPluginError, build, clean, combineFiles, createJSDocBlockText, createPlugin, createPluginCache, build as default, defineConfig, getEncodedText, getFileSource, getPathMode, getRelativePath, getStackTrace, getUniqueName, hooks, isPromise, isURL, name, nameSorter, objectToParameters, read, renderTemplate, timeout, transformReservedWord, validatePlugins, write, writeIndexes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Generator core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "change-case": "^4.1.2",
44
44
  "directory-tree": "^3.5.1",
45
45
  "rimraf": "^5.0.1",
46
- "@kubb/ts-codegen": "1.1.2"
46
+ "@kubb/ts-codegen": "1.1.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsup": "^6.7.0",
package/src/types.ts CHANGED
@@ -100,9 +100,15 @@ export type CLIOptions = {
100
100
  */
101
101
  watch?: string
102
102
  /**
103
- * Override input defined in `kubb.config.js`
103
+ * Override `input` defined in `kubb.config.js`
104
104
  */
105
105
  input?: string
106
+
107
+ /**
108
+ * Override `logLevel` defined in `kubb.config.js`
109
+ * @default `'silent'`
110
+ */
111
+ logLevel?: LogLevel
106
112
  }
107
113
 
108
114
  export type BuildOutput = {
@@ -243,5 +249,4 @@ export type Path = string
243
249
  export type OptionalPath = Path | null | undefined
244
250
  export type FileName = string | null | undefined
245
251
 
246
- export type LogType = 'error' | 'info'
247
- export type LogLevel = LogType | 'silent'
252
+ export type LogLevel = 'error' | 'info' | 'silent'