@kubb/kit 5.18.6 → 5.18.7
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 +4 -4
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +10 -10
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -5,14 +5,14 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
5
5
|
value,
|
|
6
6
|
configurable: true
|
|
7
7
|
});
|
|
8
|
-
var __exportAll = (all,
|
|
9
|
-
let target = {};
|
|
8
|
+
var __exportAll = (all, flags) => {
|
|
9
|
+
let target = Object.setPrototypeOf({}, null);
|
|
10
10
|
for (var name in all) __defProp(target, name, {
|
|
11
11
|
get: all[name],
|
|
12
12
|
enumerable: true
|
|
13
13
|
});
|
|
14
|
-
if (!
|
|
15
|
-
return target;
|
|
14
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
16
16
|
};
|
|
17
17
|
let _kubb_ast = require("@kubb/ast");
|
|
18
18
|
let _kubb_core = require("@kubb/core");
|
package/dist/index.d.cts
CHANGED
|
@@ -191,5 +191,4 @@ export declare function childName(parentName: string | null | undefined, propNam
|
|
|
191
191
|
* `enumPropName('Order', 'status', 'enum') // 'OrderStatusEnum'`
|
|
192
192
|
*/
|
|
193
193
|
export declare function enumPropName(parentName: string | null | undefined, propName: string, enumSuffix: string): string;
|
|
194
|
-
export { type Adapter, type AdapterDefinition, type AdapterFactory, type AdapterFactoryOptions, type AdapterSource, type BannerMeta, type Config, type Diagnostic, Diagnostics, type Exclude, type ExtensionDependencies, type ExtensionDependency, type ExtensionDependencyRecord, type ExtensionFactory, type ExtensionKind, type ExtensionManifest, type ExtensionManifestOption, type ExtensionMeta, type Generator$1 as Generator, type GeneratorContext, type Group, Hookable, type Include, type KubbHooks, type KubbPluginEndContext, type KubbPluginSetupContext, type KubbPluginStartContext, type Memo, type NormalizedPlugin, type Output, type OutputOptions, type Override, type Parser, type ParserDefinition, type ParserFactory, type Plugin, type PluginDefinition, type PluginFactory, type PluginType, type Renderer, type RendererFactory, type ResolveFileOptions, type ResolveImportsOptions, type ResolveNameOptions, type ResolvePathOptions, Resolver, type ResolverFile, type ResolverFileParams, type ResolverFilePathParams, type ResolverPatch, type Storage, addGenerator, addMacro, assertPluginOption, ast, casing_d_exports as casing, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, requirePlugin, setMacros, setOptions, setResolver, text_d_exports as text, tryUseKubb, useConfig, useKubb, useOptions };
|
|
195
|
-
//# sourceMappingURL=index.d.cts.map
|
|
194
|
+
export { type Adapter, type AdapterDefinition, type AdapterFactory, type AdapterFactoryOptions, type AdapterSource, type BannerMeta, type Config, type Diagnostic, Diagnostics, type Exclude, type ExtensionDependencies, type ExtensionDependency, type ExtensionDependencyRecord, type ExtensionFactory, type ExtensionKind, type ExtensionManifest, type ExtensionManifestOption, type ExtensionMeta, type Generator$1 as Generator, type GeneratorContext, type Group, Hookable, type Include, type KubbHooks, type KubbPluginEndContext, type KubbPluginSetupContext, type KubbPluginStartContext, type Memo, type NormalizedPlugin, type Output, type OutputOptions, type Override, type Parser, type ParserDefinition, type ParserFactory, type Plugin, type PluginDefinition, type PluginFactory, type PluginType, type Renderer, type RendererFactory, type ResolveFileOptions, type ResolveImportsOptions, type ResolveNameOptions, type ResolvePathOptions, Resolver, type ResolverFile, type ResolverFileParams, type ResolverFilePathParams, type ResolverPatch, type Storage, addGenerator, addMacro, assertPluginOption, ast, casing_d_exports as casing, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, requirePlugin, setMacros, setOptions, setResolver, text_d_exports as text, tryUseKubb, useConfig, useKubb, useOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -191,5 +191,4 @@ export declare function childName(parentName: string | null | undefined, propNam
|
|
|
191
191
|
* `enumPropName('Order', 'status', 'enum') // 'OrderStatusEnum'`
|
|
192
192
|
*/
|
|
193
193
|
export declare function enumPropName(parentName: string | null | undefined, propName: string, enumSuffix: string): string;
|
|
194
|
-
export { type Adapter, type AdapterDefinition, type AdapterFactory, type AdapterFactoryOptions, type AdapterSource, type BannerMeta, type Config, type Diagnostic, Diagnostics, type Exclude, type ExtensionDependencies, type ExtensionDependency, type ExtensionDependencyRecord, type ExtensionFactory, type ExtensionKind, type ExtensionManifest, type ExtensionManifestOption, type ExtensionMeta, type Generator$1 as Generator, type GeneratorContext, type Group, Hookable, type Include, type KubbHooks, type KubbPluginEndContext, type KubbPluginSetupContext, type KubbPluginStartContext, type Memo, type NormalizedPlugin, type Output, type OutputOptions, type Override, type Parser, type ParserDefinition, type ParserFactory, type Plugin, type PluginDefinition, type PluginFactory, type PluginType, type Renderer, type RendererFactory, type ResolveFileOptions, type ResolveImportsOptions, type ResolveNameOptions, type ResolvePathOptions, Resolver, type ResolverFile, type ResolverFileParams, type ResolverFilePathParams, type ResolverPatch, type Storage, addGenerator, addMacro, assertPluginOption, ast, casing_d_exports as casing, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, requirePlugin, setMacros, setOptions, setResolver, text_d_exports as text, tryUseKubb, useConfig, useKubb, useOptions };
|
|
195
|
-
//# sourceMappingURL=index.d.ts.map
|
|
194
|
+
export { type Adapter, type AdapterDefinition, type AdapterFactory, type AdapterFactoryOptions, type AdapterSource, type BannerMeta, type Config, type Diagnostic, Diagnostics, type Exclude, type ExtensionDependencies, type ExtensionDependency, type ExtensionDependencyRecord, type ExtensionFactory, type ExtensionKind, type ExtensionManifest, type ExtensionManifestOption, type ExtensionMeta, type Generator$1 as Generator, type GeneratorContext, type Group, Hookable, type Include, type KubbHooks, type KubbPluginEndContext, type KubbPluginSetupContext, type KubbPluginStartContext, type Memo, type NormalizedPlugin, type Output, type OutputOptions, type Override, type Parser, type ParserDefinition, type ParserFactory, type Plugin, type PluginDefinition, type PluginFactory, type PluginType, type Renderer, type RendererFactory, type ResolveFileOptions, type ResolveImportsOptions, type ResolveNameOptions, type ResolvePathOptions, Resolver, type ResolverFile, type ResolverFileParams, type ResolverFilePathParams, type ResolverPatch, type Storage, addGenerator, addMacro, assertPluginOption, ast, casing_d_exports as casing, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, requirePlugin, setMacros, setOptions, setResolver, text_d_exports as text, tryUseKubb, useConfig, useKubb, useOptions };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ast, ast as ast$1, createPrinter as createPrinter$1, defineMacro as defineMacro$1 } from "@kubb/ast";
|
|
2
|
-
import { Diagnostics, Hookable, Resolver, addGenerator, addMacro, assertPluginOption, camelCase as camel, camelCase as camelCase$1, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, pascalCase as pascal, pascalCase as pascalCase$
|
|
2
|
+
import { Diagnostics, Hookable, Resolver, addGenerator, addMacro, assertPluginOption, camelCase as camel, camelCase as camelCase$1, createAdapter, createRenderer, createResolver, createStorage, defineExtension, defineGenerator, defineParser, definePlugin, fsStorage, injectFile, isExtensionManifest, kubbContext, manifestProblems, memo, memoryStorage, pascalCase as pascal, pascalCase as pascalCase$2, requirePlugin, setMacros, setOptions, setResolver, tryUseKubb, useConfig, useKubb, useOptions } from "@kubb/core";
|
|
3
3
|
import { hash } from "node:crypto";
|
|
4
4
|
// \0rolldown/runtime.js
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -7,14 +7,14 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
7
7
|
value,
|
|
8
8
|
configurable: true
|
|
9
9
|
});
|
|
10
|
-
var __exportAll = (all,
|
|
11
|
-
let target = {};
|
|
10
|
+
var __exportAll = (all, flags) => {
|
|
11
|
+
let target = Object.setPrototypeOf({}, null);
|
|
12
12
|
for (var name in all) __defProp(target, name, {
|
|
13
13
|
get: all[name],
|
|
14
14
|
enumerable: true
|
|
15
15
|
});
|
|
16
|
-
if (!
|
|
17
|
-
return target;
|
|
16
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
18
18
|
};
|
|
19
19
|
// ../../internals/utils/src/casing.ts
|
|
20
20
|
/**
|
|
@@ -50,10 +50,10 @@ function toCamelOrPascal(text, pascal) {
|
|
|
50
50
|
* @example With a suffix
|
|
51
51
|
* `pascalCase('tag', { suffix: 'schema' }) // 'TagSchema'`
|
|
52
52
|
*/
|
|
53
|
-
function pascalCase$
|
|
53
|
+
function pascalCase$1(text, { prefix = "", suffix = "" } = {}) {
|
|
54
54
|
return toCamelOrPascal(`${prefix} ${text} ${suffix}`, true);
|
|
55
55
|
}
|
|
56
|
-
__name(pascalCase$
|
|
56
|
+
__name(pascalCase$1, "pascalCase");
|
|
57
57
|
const wordStart = /(?<=[a-z\d])(?=[A-Z])|(?<=[A-Z]{2})(?=[A-Z][a-z]{2})/;
|
|
58
58
|
function words(text) {
|
|
59
59
|
return text.split(/[\s\-_./\\:]+/).filter(Boolean).flatMap((segment) => segment === segment.toUpperCase() ? segment : segment.split(wordStart));
|
|
@@ -209,7 +209,7 @@ const macroDedupeUnion = defineMacro({
|
|
|
209
209
|
/** @deprecated Use `casing.camel`. Removed in Kubb v6. */
|
|
210
210
|
const camelCase = camelCase$1;
|
|
211
211
|
/** @deprecated Use `casing.pascal`. Removed in Kubb v6. */
|
|
212
|
-
const pascalCase = pascalCase$
|
|
212
|
+
const pascalCase = pascalCase$2;
|
|
213
213
|
/** @deprecated Use `ast.ref.getName`. Removed in Kubb v6. */
|
|
214
214
|
const extractRefName = ast$1.ref.getName;
|
|
215
215
|
/** @deprecated Use `ast.ref.mergeSchema`. Removed in Kubb v6. */
|
|
@@ -349,7 +349,7 @@ function macroDiscriminatorEnum({ propertyName, values, enumName }) {
|
|
|
349
349
|
* `childName(undefined, 'params') // null`
|
|
350
350
|
*/
|
|
351
351
|
function childName(parentName, propName) {
|
|
352
|
-
return parentName ? pascalCase$
|
|
352
|
+
return parentName ? pascalCase$1([parentName, propName].join(" ")) : null;
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
355
|
* Builds a PascalCase enum name from the parent name, property name, and a suffix, skipping any
|
|
@@ -359,7 +359,7 @@ function childName(parentName, propName) {
|
|
|
359
359
|
* `enumPropName('Order', 'status', 'enum') // 'OrderStatusEnum'`
|
|
360
360
|
*/
|
|
361
361
|
function enumPropName(parentName, propName, enumSuffix) {
|
|
362
|
-
return pascalCase$
|
|
362
|
+
return pascalCase$1([
|
|
363
363
|
parentName,
|
|
364
364
|
propName,
|
|
365
365
|
enumSuffix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/kit",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.7",
|
|
4
4
|
"description": "Authoring toolkit for Kubb plugins, generators, adapters, resolvers, and renderers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"registry": "https://registry.npmjs.org/"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@kubb/ast": "^5.18.
|
|
67
|
-
"@kubb/core": "^5.18.
|
|
66
|
+
"@kubb/ast": "^5.18.7",
|
|
67
|
+
"@kubb/core": "^5.18.7"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@internals/utils": "0.0.1"
|