@kubb/core
Advanced tools
Comparing version 0.0.0-canary-20250109143608 to 0.0.0-canary-20250109213419
import { EventEmitter, createLogger } from './chunk-OL5US75J.js'; | ||
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-7MZNPFPN.js'; | ||
export { FileManager, getSource, processFiles } from './chunk-7MZNPFPN.js'; | ||
import { trim, transformReservedWord } from './chunk-MDXPT7LL.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 './chunk-3CLNO5VR.js'; | ||
@@ -6,0 +6,0 @@ import { getRelativePath, read, readSync, clean } from '@kubb/fs'; |
@@ -1,3 +0,3 @@ | ||
import { getSource, createFile } from './chunk-7MZNPFPN.js'; | ||
import { camelCase, pascalCase } from './chunk-MDXPT7LL.js'; | ||
import { getSource, createFile } from './chunk-SX3K2Q5X.js'; | ||
import { camelCase, pascalCase } from './chunk-GTR42WIS.js'; | ||
import path from 'node:path'; | ||
@@ -4,0 +4,0 @@ |
@@ -16,3 +16,2 @@ import { orderBy } from 'natural-orderby'; | ||
declare function pascalCase(text: string, { isFile, prefix, suffix }?: Options$1): string; | ||
declare function pathCase(text: string, { isFile, prefix, suffix }?: Options$1): string; | ||
@@ -85,5 +84,4 @@ declare function combineCodes(codes: string[]): string; | ||
readonly pascalCase: typeof pascalCase; | ||
readonly pathCase: typeof pathCase; | ||
}; | ||
export { camelCase, combineCodes, createIndent, createJSDocBlockText, _default as default, escape, isValidVarName, jsStringEscape, nameSorter, pascalCase, pathCase, searchAndReplace, stringify, stringifyObject, toRegExp, toRegExpString, transformReservedWord, trim, trimQuotes }; | ||
export { camelCase, combineCodes, createIndent, createJSDocBlockText, _default as default, escape, isValidVarName, jsStringEscape, nameSorter, pascalCase, searchAndReplace, stringify, stringifyObject, toRegExp, toRegExpString, transformReservedWord, trim, trimQuotes }; |
@@ -1,3 +0,3 @@ | ||
export { camelCase, combineCodes, createIndent, createJSDocBlockText, transformers_default as default, escape, isValidVarName, jsStringEscape, merge, nameSorter, orderBy, pascalCase, pathCase, searchAndReplace, stringify, stringifyObject, toRegExp, toRegExpString, transformReservedWord, trim, trimQuotes } from './chunk-MDXPT7LL.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-GTR42WIS.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-7MZNPFPN.js'; | ||
import './chunk-MDXPT7LL.js'; | ||
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-SX3K2Q5X.js'; | ||
import './chunk-GTR42WIS.js'; | ||
//# sourceMappingURL=utils.js.map | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@kubb/core", | ||
"version": "0.0.0-canary-20250109143608", | ||
"version": "0.0.0-canary-20250109213419", | ||
"description": "Generator core", | ||
@@ -78,3 +78,3 @@ "keywords": [ | ||
"dependencies": { | ||
"change-case": "^5.4.4", | ||
"camelcase": "^8.0.0", | ||
"find-up": "^7.0.0", | ||
@@ -87,5 +87,5 @@ "natural-orderby": "^5.0.0", | ||
"semver": "^7.6.3", | ||
"@kubb/fs": "0.0.0-canary-20250109143608", | ||
"@kubb/parser-ts": "0.0.0-canary-20250109143608", | ||
"@kubb/types": "0.0.0-canary-20250109143608" | ||
"@kubb/fs": "0.0.0-canary-20250109213419", | ||
"@kubb/parser-ts": "0.0.0-canary-20250109213419", | ||
"@kubb/types": "0.0.0-canary-20250109213419" | ||
}, | ||
@@ -100,5 +100,5 @@ "devDependencies": { | ||
"tsup": "^8.3.5", | ||
"typescript": "^5.7.2", | ||
"@kubb/config-ts": "0.0.0-canary-20250109143608", | ||
"@kubb/config-tsup": "0.0.0-canary-20250109143608" | ||
"typescript": "^5.7.3", | ||
"@kubb/config-ts": "0.0.0-canary-20250109213419", | ||
"@kubb/config-tsup": "0.0.0-canary-20250109213419" | ||
}, | ||
@@ -105,0 +105,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
import { camelCase as changeCamelCase, pascalCase as changePascalCase, pathCase as changePathCase } from 'change-case' | ||
import _camelcase from 'camelcase' | ||
@@ -18,6 +18,3 @@ type Options = { | ||
return changeCamelCase(`${prefix} ${text} ${suffix}`, { | ||
delimiter: '', | ||
mergeAmbiguousCharacters: true, | ||
}) | ||
return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: false, preserveConsecutiveUppercase: true }) | ||
} | ||
@@ -31,15 +28,3 @@ | ||
return changePascalCase(`${prefix} ${text} ${suffix}`, { | ||
delimiter: '', | ||
mergeAmbiguousCharacters: true, | ||
}) | ||
return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: true, preserveConsecutiveUppercase: true }) | ||
} | ||
export function pathCase(text: string, { isFile, prefix = '', suffix = '' }: Options = {}): string { | ||
if (isFile) { | ||
const splitArray = text.split('.') | ||
return splitArray.map((item, i) => (i === splitArray.length - 1 ? pathCase(item, { prefix, suffix }) : camelCase(item))).join('/') | ||
} | ||
return changePathCase(`${prefix} ${text} ${suffix}`, { delimiter: '' }) | ||
} |
import { orderBy } from 'natural-orderby' | ||
import { merge } from 'remeda' | ||
import { camelCase, pascalCase, pathCase } from './casing.ts' | ||
import { camelCase, pascalCase } from './casing.ts' | ||
import { combineCodes } from './combineCodes.ts' | ||
@@ -16,3 +16,3 @@ import { createJSDocBlockText } from './createJSDocBlockText.ts' | ||
export { camelCase, pascalCase, pathCase } from './casing.ts' | ||
export { camelCase, pascalCase } from './casing.ts' | ||
export { combineCodes } from './combineCodes.ts' | ||
@@ -53,3 +53,2 @@ export { createJSDocBlockText } from './createJSDocBlockText.ts' | ||
pascalCase, | ||
pathCase, | ||
} as const |
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
1501343
14813
+ Addedcamelcase@^8.0.0
+ Added@kubb/fs@0.0.0-canary-20250109213419(transitive)
+ Added@kubb/parser-ts@0.0.0-canary-20250109213419(transitive)
+ Added@kubb/types@0.0.0-canary-20250109213419(transitive)
+ Addedcamelcase@8.0.0(transitive)
- Removedchange-case@^5.4.4
- Removed@kubb/fs@0.0.0-canary-20250109143608(transitive)
- Removed@kubb/parser-ts@0.0.0-canary-20250109143608(transitive)
- Removed@kubb/types@0.0.0-canary-20250109143608(transitive)
- Removedchange-case@5.4.4(transitive)