@kubb/core 1.1.2 → 1.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/dist/index.d.ts CHANGED
@@ -368,9 +368,15 @@ 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;
379
+ init?: unknown;
374
380
  };
375
381
  type BuildOutput = {
376
382
  files: FileManager['files'];
@@ -493,8 +499,7 @@ type TransformResult = string | null;
493
499
  type Path = string;
494
500
  type OptionalPath = Path | null | undefined;
495
501
  type FileName = string | null | undefined;
496
- type LogType = 'error' | 'info';
497
- type LogLevel = LogType | 'silent';
502
+ type LogLevel = 'error' | 'info' | 'silent';
498
503
 
499
504
  type Logger = {
500
505
  log: (message: string, logLevel: LogLevel) => void;
@@ -531,4 +536,4 @@ declare abstract class SchemaGenerator<TOptions extends object, TInput, TOutput>
531
536
  abstract build(schema: TInput, name: string, description?: string): TOutput;
532
537
  }
533
538
 
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 };
539
+ 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.4",
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.4"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsup": "^6.7.0",
@@ -65,8 +65,7 @@
65
65
  "pre-commit": "echo 'pre-commit not configured'",
66
66
  "pre-push": "pnpm typecheck",
67
67
  "test": "vitest --passWithNoTests",
68
- "upgrade": "ncu -u",
69
- "upgrade:local": "ncu --interactive --doctor",
68
+ "upgrade": "pnpm update",
70
69
  "typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
71
70
  }
72
71
  }
package/src/types.ts CHANGED
@@ -100,9 +100,16 @@ 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
112
+ init?: unknown
106
113
  }
107
114
 
108
115
  export type BuildOutput = {
@@ -243,5 +250,4 @@ export type Path = string
243
250
  export type OptionalPath = Path | null | undefined
244
251
  export type FileName = string | null | undefined
245
252
 
246
- export type LogType = 'error' | 'info'
247
- export type LogLevel = LogType | 'silent'
253
+ export type LogLevel = 'error' | 'info' | 'silent'