New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
0
Versions
708
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/core - npm Package Compare versions

Comparing version

to
3.5.0

dist/chunk-EECPIRGL.cjs

4

dist/index.d.ts

@@ -1,3 +0,3 @@

import { P as PluginContext, F as FileManager, a as PluginManager, U as UserConfig, C as Config, I as InputPath, b as PluginFactoryOptions, c as UserPluginWithLifeCycle } from './FileManager-BXCK_2OY.js';
export { B as BarrelType, d as FileMetaBase, G as GetPluginFactoryOptions, o as Group, e as InputData, O as Output, i as Plugin, f as PluginKey, k as PluginLifecycle, l as PluginLifecycleHooks, m as PluginParameter, j as PluginWithLifeCycle, n as ResolveNameParams, R as ResolvePathParams, h as UserPlugin, g as getSource, p as processFiles } from './FileManager-BXCK_2OY.js';
import { P as PluginContext, F as FileManager, a as PluginManager, U as UserConfig, C as Config, I as InputPath, b as PluginFactoryOptions, c as UserPluginWithLifeCycle } from './FileManager-B-1XWq6Q.js';
export { B as BarrelType, d as FileMetaBase, G as GetPluginFactoryOptions, o as Group, e as InputData, O as Output, i as Plugin, f as PluginKey, k as PluginLifecycle, l as PluginLifecycleHooks, m as PluginParameter, j as PluginWithLifeCycle, n as ResolveNameParams, R as ResolvePathParams, h as UserPlugin, g as getSource, p as processFiles } from './FileManager-B-1XWq6Q.js';
import { L as Logger } from './logger-DvbHXjIO.js';

@@ -4,0 +4,0 @@ import { PossiblePromise } from '@kubb/types';

import { EventEmitter, createLogger } from './chunk-OL5US75J.js';
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-SX3K2Q5X.js';
export { FileManager, getSource, processFiles } from './chunk-SX3K2Q5X.js';
import { trim, transformReservedWord } from './chunk-GTR42WIS.js';
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-YYMV5PIX.js';
export { FileManager, getSource, processFiles } from './chunk-YYMV5PIX.js';
import { trim, transformReservedWord } from './chunk-O5ASNFB7.js';
import './chunk-3CLNO5VR.js';

@@ -6,0 +6,0 @@ import { getRelativePath, read, readSync, clean } from '@kubb/fs';

import { ResolvedFile, File } from '@kubb/fs/types';
import { a as PluginManager } from './FileManager-BXCK_2OY.js';
import { a as PluginManager } from './FileManager-B-1XWq6Q.js';
import { L as Logger } from './logger-DvbHXjIO.js';

@@ -4,0 +4,0 @@ import '@kubb/fs';

@@ -1,3 +0,3 @@

import { getSource, createFile } from './chunk-SX3K2Q5X.js';
import { camelCase, pascalCase } from './chunk-GTR42WIS.js';
import { getSource, createFile } from './chunk-YYMV5PIX.js';
import { camelCase, pascalCase } from './chunk-O5ASNFB7.js';
import path from 'node:path';

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

export { camelCase, combineCodes, createIndent, createJSDocBlockText, transformers_default as default, escape, isValidVarName, jsStringEscape, merge, nameSorter, orderBy, pascalCase, searchAndReplace, stringify, stringifyObject, toRegExp, toRegExpString, transformReservedWord, trim, trimQuotes } from './chunk-GTR42WIS.js';
export { camelCase, combineCodes, createIndent, createJSDocBlockText, transformers_default as default, escape, isValidVarName, jsStringEscape, merge, nameSorter, orderBy, pascalCase, searchAndReplace, stringify, stringifyObject, toRegExp, toRegExpString, transformReservedWord, trim, trimQuotes } from './chunk-O5ASNFB7.js';
//# sourceMappingURL=transformers.js.map
//# sourceMappingURL=transformers.js.map

@@ -1,4 +0,4 @@

export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-SX3K2Q5X.js';
import './chunk-GTR42WIS.js';
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-YYMV5PIX.js';
import './chunk-O5ASNFB7.js';
//# sourceMappingURL=utils.js.map
//# sourceMappingURL=utils.js.map
{
"name": "@kubb/core",
"version": "3.4.5",
"version": "3.5.0",
"description": "Generator core",

@@ -86,5 +86,5 @@ "keywords": [

"semver": "^7.6.3",
"@kubb/fs": "3.4.5",
"@kubb/parser-ts": "3.4.5",
"@kubb/types": "3.4.5"
"@kubb/fs": "3.5.0",
"@kubb/parser-ts": "3.5.0",
"@kubb/types": "3.5.0"
},

@@ -100,4 +100,4 @@ "devDependencies": {

"typescript": "^5.7.3",
"@kubb/config-ts": "3.4.5",
"@kubb/config-tsup": "3.4.5"
"@kubb/config-ts": "3.5.0",
"@kubb/config-tsup": "3.5.0"
},

@@ -104,0 +104,0 @@ "engines": {

@@ -112,3 +112,3 @@ import { clean, read } from '@kubb/fs'

})
const pluginOptions = plugin?.options as { output?: Output }
const pluginOptions = plugin?.options as { output?: Output<any> }

@@ -115,0 +115,0 @@ if (!pluginOptions || pluginOptions?.output?.barrelType === false) {

@@ -18,3 +18,3 @@ import _camelcase from 'camelcase'

return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: false, preserveConsecutiveUppercase: true })
return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: false, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')
}

@@ -28,3 +28,3 @@

return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: true, preserveConsecutiveUppercase: true })
return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: true, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')
}

@@ -294,3 +294,3 @@ import type * as KubbFile from '@kubb/fs/types'

*/
export type Output = {
export type Output<TOptions> = {
/**

@@ -308,7 +308,7 @@ * Path to the output folder or file that will contain the generated code

*/
banner?: string
banner?: string | ((options: TOptions) => string)
/**
* Add a footer text in the beginning of every file
*/
footer?: string
footer?: string | ((options: TOptions) => string)
}

@@ -315,0 +315,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet