@kubb/core 4.4.0 → 4.4.1
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/{URLPath-Bpc_OJmh.js → URLPath-DbWtfVa1.js} +2 -2
- package/dist/{URLPath-Bpc_OJmh.js.map → URLPath-DbWtfVa1.js.map} +1 -1
- package/dist/{URLPath-Bu6Wkco7.cjs → URLPath-Dir2mxRT.cjs} +2 -2
- package/dist/{URLPath-Bu6Wkco7.cjs.map → URLPath-Dir2mxRT.cjs.map} +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +5 -5
- package/dist/hooks.d.ts +5 -5
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +87 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +79 -8
- package/dist/index.js.map +1 -1
- package/dist/{logger-C7JFdYpj.cjs → logger-BIzTtBYJ.cjs} +47 -4
- package/dist/logger-BIzTtBYJ.cjs.map +1 -0
- package/dist/{logger-DpoDtxfo.d.cts → logger-BjfDkvkn.d.cts} +1 -1
- package/dist/{logger-D_jvWsUF.d.ts → logger-BwhJWK-H.d.ts} +1 -1
- package/dist/{logger-khF_Lft4.js → logger-Bxe022ug.js} +39 -4
- package/dist/logger-Bxe022ug.js.map +1 -0
- package/dist/logger.cjs +1 -2
- package/dist/logger.d.cts +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +1 -2
- package/dist/{prompt-CgJLZzbf.cjs → prompt-D5DZPtWc.cjs} +1 -1
- package/dist/{prompt-CgJLZzbf.cjs.map → prompt-D5DZPtWc.cjs.map} +1 -1
- package/dist/{prompt-CIpZjUDy.js → prompt-xM0onfy8.js} +1 -1
- package/dist/{prompt-CIpZjUDy.js.map → prompt-xM0onfy8.js.map} +1 -1
- package/dist/{transformers-BN5jfIAt.js → transformers-CeNW0G32.js} +1 -1
- package/dist/{transformers-BN5jfIAt.js.map → transformers-CeNW0G32.js.map} +1 -1
- package/dist/{transformers-BpnIvSiH.cjs → transformers-DWLXDYKb.cjs} +1 -1
- package/dist/{transformers-BpnIvSiH.cjs.map → transformers-DWLXDYKb.cjs.map} +1 -1
- package/dist/transformers.cjs +1 -1
- package/dist/transformers.js +1 -1
- package/dist/{types-CCUiy4jG.d.ts → types-CVONMhN_.d.cts} +14 -14
- package/dist/{types-EV6-sImo.d.cts → types-CyDeSlGF.d.ts} +14 -14
- package/dist/{types-ClXc6HFo.d.ts → types-DCR_QgGt.d.ts} +1 -1
- package/dist/{types-C3ea5qNG.d.cts → types-DueAg3XP.d.cts} +1 -1
- package/dist/utils.cjs +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +12 -11
- package/src/BarrelManager.ts +1 -1
- package/src/FileManager.ts +5 -2
- package/src/PluginManager.ts +1 -1
- package/src/build.ts +2 -1
- package/src/fs/index.ts +0 -7
- package/src/hooks/useMode.ts +1 -1
- package/src/types.ts +1 -1
- package/src/utils/TreeNode.ts +1 -1
- package/dist/fs-BIPMUfpW.js +0 -90
- package/dist/fs-BIPMUfpW.js.map +0 -1
- package/dist/fs-CM7ohZSu.cjs +0 -141
- package/dist/fs-CM7ohZSu.cjs.map +0 -1
- package/dist/fs.cjs +0 -17
- package/dist/fs.d.cts +0 -2
- package/dist/fs.d.ts +0 -2
- package/dist/fs.js +0 -4
- package/dist/index-BmQIxvw0.d.cts +0 -144
- package/dist/index-DdO15F70.d.ts +0 -144
- package/dist/logger-C7JFdYpj.cjs.map +0 -1
- package/dist/logger-khF_Lft4.js.map +0 -1
- package/dist/write-BsFt8M9e.cjs +0 -49
- package/dist/write-BsFt8M9e.cjs.map +0 -1
- package/dist/write-CxO1CDML.js +0 -40
- package/dist/write-CxO1CDML.js.map +0 -1
- package/src/fs/types.ts +0 -132
- package/src/fs/unlink.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformers-BpnIvSiH.cjs","names":["preserveConsecutiveUppercase","camelCase","_camelcase","value"],"sources":["../src/transformers/transformReservedWord.ts","../src/transformers/trim.ts","../../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js","../src/transformers/casing.ts","../src/transformers/combineCodes.ts","../src/transformers/createJSDocBlockText.ts","../src/transformers/escape.ts","../src/transformers/indent.ts","../src/transformers/nameSorter.ts","../src/transformers/searchAndReplace.ts","../src/transformers/stringify.ts","../src/transformers/toRegExp.ts","../src/transformers/index.ts"],"sourcesContent":["/**\n * @link https://github.com/jonschlinkert/reserved/blob/master/index.js\n */\nconst reservedWords = [\n 'abstract',\n 'arguments',\n 'boolean',\n 'break',\n 'byte',\n 'case',\n 'catch',\n 'char',\n 'class',\n 'const',\n 'continue',\n 'debugger',\n 'default',\n 'delete',\n 'do',\n 'double',\n 'else',\n 'enum',\n 'eval',\n 'export',\n 'extends',\n 'false',\n 'final',\n 'finally',\n 'float',\n 'for',\n 'function',\n 'goto',\n 'if',\n 'implements',\n 'import',\n 'in',\n 'instanceof',\n 'int',\n 'interface',\n 'let',\n 'long',\n 'native',\n 'new',\n 'null',\n 'package',\n 'private',\n 'protected',\n 'public',\n 'return',\n 'short',\n 'static',\n 'super',\n 'switch',\n 'synchronized',\n 'this',\n 'throw',\n 'throws',\n 'transient',\n 'true',\n 'try',\n 'typeof',\n 'var',\n 'void',\n 'volatile',\n 'while',\n 'with',\n 'yield',\n\n 'Array',\n 'Date',\n 'eval',\n 'function',\n 'hasOwnProperty',\n 'Infinity',\n 'isFinite',\n 'isNaN',\n 'isPrototypeOf',\n 'length',\n 'Math',\n 'name',\n 'NaN',\n 'Number',\n 'Object',\n 'prototype',\n 'String',\n 'toString',\n 'undefined',\n 'valueOf',\n]\n\nexport function transformReservedWord(word: string): string {\n if ((word && reservedWords.includes(word)) || word?.match(/^\\d/)) {\n return `_${word}`\n }\n\n return word\n}\n\nexport function isValidVarName(name: string) {\n try {\n Function(`var ${name}`)\n } catch (_e) {\n return false\n }\n return true\n}\n","export function trim(text: string): string {\n return text.replaceAll(/\\n/g, '').trim()\n}\n\nexport function trimQuotes(text: string): string {\n if (text.match(/^\"(.*)\"$/)) {\n return text.replace(/^\"(.*)\"$/, '$1')\n }\n if (text.match(/^'(.*)'$/)) {\n return text.replace(/^'(.*)'$/, '$1')\n }\n\n if (text.match(/^`(.*)`$/)) {\n return text.replace(/^`(.*)`$/, '$1')\n }\n\n return text\n}\n","const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase)) {\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replaceAll(LEADING_CAPITAL, match => toLowerCase(match));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ['_', '-'].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match))\n\t\t.replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\tinput = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n}\n","import _camelcase from 'camelcase'\n\ntype Options = {\n /**\n * When set it will replace all `.` with `/`.\n */\n isFile?: boolean\n prefix?: string\n suffix?: string\n}\n\nexport function camelCase(text: string, { isFile, prefix = '', suffix = '' }: Options = {}): string {\n if (isFile) {\n const splitArray = text.split('.')\n return splitArray.map((item, i) => (i === splitArray.length - 1 ? camelCase(item, { prefix, suffix }) : camelCase(item))).join('/')\n }\n\n return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: false, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')\n}\n\nexport function pascalCase(text: string, { isFile, prefix = '', suffix = '' }: Options = {}): string {\n if (isFile) {\n const splitArray = text.split('.')\n return splitArray.map((item, i) => (i === splitArray.length - 1 ? pascalCase(item, { prefix, suffix }) : camelCase(item))).join('/')\n }\n\n return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: true, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')\n}\n","export function combineCodes(codes: string[]): string {\n return codes.join('\\n')\n}\n","export function createJSDocBlockText({ comments }: { comments: Array<string> }): string {\n const filteredComments = comments.filter(Boolean)\n\n if (!filteredComments.length) {\n return ''\n }\n\n return `/**\\n * ${filteredComments.join('\\n * ')}\\n */`\n}\n","export function escape(text?: string): string {\n return text ? text.replaceAll('`', '\\\\`') : ''\n}\n\n/**\n * Escape all characters not included in SingleStringCharacters and DoubleStringCharacters on\n * @link http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4\n * @link https://github.com/joliss/js-string-escape/blob/master/index.js\n */\n\nexport function jsStringEscape(input: any): string {\n return `${input}`.replace(/[\"'\\\\\\n\\r\\u2028\\u2029]/g, (character) => {\n switch (character) {\n case '\"':\n case \"'\":\n case '\\\\':\n return `\\\\${character}`\n // Four possible LineTerminator characters need to be escaped:\n case '\\n':\n return '\\\\n'\n case '\\r':\n return '\\\\r'\n case '\\u2028':\n return '\\\\u2028'\n case '\\u2029':\n return '\\\\u2029'\n default:\n return ''\n }\n })\n}\n","export function createIndent(size: number): string {\n return Array.from({ length: size + 1 }).join(' ')\n}\n","export function nameSorter<T extends { name: string }>(a: T, b: T): 0 | 1 | -1 {\n if (a.name < b.name) {\n return -1\n }\n if (a.name > b.name) {\n return 1\n }\n return 0\n}\n","type Options = {\n text: string\n replaceBy: string\n prefix?: string\n key: string\n searchValues?: (prefix: string, key: string) => Array<RegExp | string>\n}\n\nexport function searchAndReplace(options: Options): string {\n const { text, replaceBy, prefix = '', key } = options\n\n const searchValues = options.searchValues?.(prefix, key) || [\n `${prefix}[\"${key}\"]`,\n `${prefix}['${key}']`,\n `${prefix}[\\`${key}\\`]`,\n `${prefix}\"${key}\"`,\n `${prefix}'${key}'`,\n `${prefix}\\`${key}\\``,\n new RegExp(`${prefix}${key}`, 'g'),\n ]\n\n return searchValues.reduce((prev, searchValue) => {\n return prev.toString().replaceAll(searchValue, replaceBy)\n }, text) as string\n}\n","import { trimQuotes } from './trim'\n\nexport function stringify(value: string | number | boolean | undefined): string {\n if (value === undefined || value === null) {\n return '\"\"'\n }\n\n return JSON.stringify(trimQuotes(value.toString()))\n}\n\nexport function stringifyObject(value: object): string {\n const items = Object.entries(value)\n .map(([key, value]) => {\n if (typeof value === 'object') {\n return `${key}: {\n ${stringifyObject(value)}\n }`\n }\n\n return `${key}: ${value}`\n })\n .filter(Boolean)\n\n return items.join(',\\n')\n}\n","import { trimQuotes } from './trim'\n\nexport function toRegExpString(text: string, func: string | null = 'RegExp'): string {\n const raw = trimQuotes(text)\n\n const [, replacementTarget = '', matchedFlags] = raw.match(/^\\^(\\(\\?([igmsuy]+)\\))/i) ?? []\n const cleaned = raw\n .replace(/^\\\\?\\//, '')\n .replace(/\\\\?\\/$/, '')\n .replace(replacementTarget, '')\n\n const regex = new RegExp(cleaned, matchedFlags)\n const source = regex.source\n const flags = regex.flags\n\n if (func === null) {\n return `/${source}/${flags}`\n }\n\n // return as constructor → new RegExp(\"pattern\", \"flags\")\n return `new ${func}(${JSON.stringify(source)}${flags ? `, ${JSON.stringify(flags)}` : ''})`\n}\n","import { orderBy } from 'natural-orderby'\nimport { merge } from 'remeda'\n\nimport { camelCase, pascalCase } from './casing.ts'\nimport { combineCodes } from './combineCodes.ts'\nimport { createJSDocBlockText } from './createJSDocBlockText.ts'\nimport { escape, jsStringEscape } from './escape.ts'\nimport { createIndent } from './indent.ts'\nimport { nameSorter } from './nameSorter.ts'\nimport { searchAndReplace } from './searchAndReplace.ts'\nimport { stringify, stringifyObject } from './stringify.ts'\nimport { toRegExpString } from './toRegExp.ts'\nimport { isValidVarName, transformReservedWord } from './transformReservedWord.ts'\nimport { trim, trimQuotes } from './trim.ts'\n\nexport { orderBy } from 'natural-orderby'\nexport { merge } from 'remeda'\nexport { camelCase, pascalCase } from './casing.ts'\nexport { combineCodes } from './combineCodes.ts'\nexport { createJSDocBlockText } from './createJSDocBlockText.ts'\nexport { escape, jsStringEscape } from './escape.ts'\nexport { createIndent } from './indent.ts'\nexport { nameSorter } from './nameSorter.ts'\nexport { searchAndReplace } from './searchAndReplace.ts'\nexport { stringify, stringifyObject } from './stringify.ts'\nexport { toRegExpString } from './toRegExp.ts'\nexport { isValidVarName, transformReservedWord } from './transformReservedWord.ts'\nexport { trim, trimQuotes } from './trim.ts'\n\nexport default {\n combineCodes,\n escape,\n jsStringEscape,\n createIndent,\n transformReservedWord,\n isValidVarName,\n nameSorter,\n searchAndReplace,\n stringify,\n stringifyObject,\n toRegExpString,\n trim,\n trimQuotes,\n JSDoc: {\n createJSDocBlockText,\n },\n orderBy,\n merge,\n camelCase,\n pascalCase,\n} as const\n"],"x_google_ignoreList":[2],"mappings":";;;;;;;;;;AAGA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,sBAAsB,MAAsB;AAC1D,KAAK,QAAQ,cAAc,SAAS,KAAK,IAAK,MAAM,MAAM,MAAM,CAC9D,QAAO,IAAI;AAGb,QAAO;;AAGT,SAAgB,eAAe,MAAc;AAC3C,KAAI;AACF,WAAS,OAAO,OAAO;UAChB,IAAI;AACX,SAAO;;AAET,QAAO;;;;;ACxGT,SAAgB,KAAK,MAAsB;AACzC,QAAO,KAAK,WAAW,OAAO,GAAG,CAAC,MAAM;;AAG1C,SAAgB,WAAW,MAAsB;AAC/C,KAAI,KAAK,MAAM,WAAW,CACxB,QAAO,KAAK,QAAQ,YAAY,KAAK;AAEvC,KAAI,KAAK,MAAM,WAAW,CACxB,QAAO,KAAK,QAAQ,YAAY,KAAK;AAGvC,KAAI,KAAK,MAAM,WAAW,CACxB,QAAO,KAAK,QAAQ,YAAY,KAAK;AAGvC,QAAO;;;;;AChBT,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,aAAa;AAEnB,MAAM,qCAAqB,IAAI,OAAO,MAAM,WAAW,OAAO;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,CACrB,QAAQ,UAAU,GAAG,CACrB,QAAQ,mBAAmB,GAAG;CAEjC,MAAM,QAAQ,IAAI,OAAO,SAAS,aAAa;CAC/C,MAAM,SAAS,MAAM;CACrB,MAAM,QAAQ,MAAM;AAEpB,KAAI,SAAS,KACX,QAAO,IAAI,OAAO,GAAG;AAIvB,QAAO,OAAO,KAAK,GAAG,KAAK,UAAU,OAAO,GAAG,QAAQ,KAAK,KAAK,UAAU,MAAM,KAAK,GAAG;;;;;ACS3F,2BAAe;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,OAAO,EACL,sBACD;CACD;CACA;CACA;CACA;CACD"}
|
|
1
|
+
{"version":3,"file":"transformers-DWLXDYKb.cjs","names":["preserveConsecutiveUppercase","camelCase","_camelcase","value"],"sources":["../src/transformers/transformReservedWord.ts","../src/transformers/trim.ts","../../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js","../src/transformers/casing.ts","../src/transformers/combineCodes.ts","../src/transformers/createJSDocBlockText.ts","../src/transformers/escape.ts","../src/transformers/indent.ts","../src/transformers/nameSorter.ts","../src/transformers/searchAndReplace.ts","../src/transformers/stringify.ts","../src/transformers/toRegExp.ts","../src/transformers/index.ts"],"sourcesContent":["/**\n * @link https://github.com/jonschlinkert/reserved/blob/master/index.js\n */\nconst reservedWords = [\n 'abstract',\n 'arguments',\n 'boolean',\n 'break',\n 'byte',\n 'case',\n 'catch',\n 'char',\n 'class',\n 'const',\n 'continue',\n 'debugger',\n 'default',\n 'delete',\n 'do',\n 'double',\n 'else',\n 'enum',\n 'eval',\n 'export',\n 'extends',\n 'false',\n 'final',\n 'finally',\n 'float',\n 'for',\n 'function',\n 'goto',\n 'if',\n 'implements',\n 'import',\n 'in',\n 'instanceof',\n 'int',\n 'interface',\n 'let',\n 'long',\n 'native',\n 'new',\n 'null',\n 'package',\n 'private',\n 'protected',\n 'public',\n 'return',\n 'short',\n 'static',\n 'super',\n 'switch',\n 'synchronized',\n 'this',\n 'throw',\n 'throws',\n 'transient',\n 'true',\n 'try',\n 'typeof',\n 'var',\n 'void',\n 'volatile',\n 'while',\n 'with',\n 'yield',\n\n 'Array',\n 'Date',\n 'eval',\n 'function',\n 'hasOwnProperty',\n 'Infinity',\n 'isFinite',\n 'isNaN',\n 'isPrototypeOf',\n 'length',\n 'Math',\n 'name',\n 'NaN',\n 'Number',\n 'Object',\n 'prototype',\n 'String',\n 'toString',\n 'undefined',\n 'valueOf',\n]\n\nexport function transformReservedWord(word: string): string {\n if ((word && reservedWords.includes(word)) || word?.match(/^\\d/)) {\n return `_${word}`\n }\n\n return word\n}\n\nexport function isValidVarName(name: string) {\n try {\n Function(`var ${name}`)\n } catch (_e) {\n return false\n }\n return true\n}\n","export function trim(text: string): string {\n return text.replaceAll(/\\n/g, '').trim()\n}\n\nexport function trimQuotes(text: string): string {\n if (text.match(/^\"(.*)\"$/)) {\n return text.replace(/^\"(.*)\"$/, '$1')\n }\n if (text.match(/^'(.*)'$/)) {\n return text.replace(/^'(.*)'$/, '$1')\n }\n\n if (text.match(/^`(.*)`$/)) {\n return text.replace(/^`(.*)`$/, '$1')\n }\n\n return text\n}\n","const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase)) {\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replaceAll(LEADING_CAPITAL, match => toLowerCase(match));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ['_', '-'].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match))\n\t\t.replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\tinput = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n}\n","import _camelcase from 'camelcase'\n\ntype Options = {\n /**\n * When set it will replace all `.` with `/`.\n */\n isFile?: boolean\n prefix?: string\n suffix?: string\n}\n\nexport function camelCase(text: string, { isFile, prefix = '', suffix = '' }: Options = {}): string {\n if (isFile) {\n const splitArray = text.split('.')\n return splitArray.map((item, i) => (i === splitArray.length - 1 ? camelCase(item, { prefix, suffix }) : camelCase(item))).join('/')\n }\n\n return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: false, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')\n}\n\nexport function pascalCase(text: string, { isFile, prefix = '', suffix = '' }: Options = {}): string {\n if (isFile) {\n const splitArray = text.split('.')\n return splitArray.map((item, i) => (i === splitArray.length - 1 ? pascalCase(item, { prefix, suffix }) : camelCase(item))).join('/')\n }\n\n return _camelcase(`${prefix} ${text} ${suffix}`, { pascalCase: true, preserveConsecutiveUppercase: true }).replace(/[^a-zA-Z0-9]/g, '')\n}\n","export function combineCodes(codes: string[]): string {\n return codes.join('\\n')\n}\n","export function createJSDocBlockText({ comments }: { comments: Array<string> }): string {\n const filteredComments = comments.filter(Boolean)\n\n if (!filteredComments.length) {\n return ''\n }\n\n return `/**\\n * ${filteredComments.join('\\n * ')}\\n */`\n}\n","export function escape(text?: string): string {\n return text ? text.replaceAll('`', '\\\\`') : ''\n}\n\n/**\n * Escape all characters not included in SingleStringCharacters and DoubleStringCharacters on\n * @link http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4\n * @link https://github.com/joliss/js-string-escape/blob/master/index.js\n */\n\nexport function jsStringEscape(input: any): string {\n return `${input}`.replace(/[\"'\\\\\\n\\r\\u2028\\u2029]/g, (character) => {\n switch (character) {\n case '\"':\n case \"'\":\n case '\\\\':\n return `\\\\${character}`\n // Four possible LineTerminator characters need to be escaped:\n case '\\n':\n return '\\\\n'\n case '\\r':\n return '\\\\r'\n case '\\u2028':\n return '\\\\u2028'\n case '\\u2029':\n return '\\\\u2029'\n default:\n return ''\n }\n })\n}\n","export function createIndent(size: number): string {\n return Array.from({ length: size + 1 }).join(' ')\n}\n","export function nameSorter<T extends { name: string }>(a: T, b: T): 0 | 1 | -1 {\n if (a.name < b.name) {\n return -1\n }\n if (a.name > b.name) {\n return 1\n }\n return 0\n}\n","type Options = {\n text: string\n replaceBy: string\n prefix?: string\n key: string\n searchValues?: (prefix: string, key: string) => Array<RegExp | string>\n}\n\nexport function searchAndReplace(options: Options): string {\n const { text, replaceBy, prefix = '', key } = options\n\n const searchValues = options.searchValues?.(prefix, key) || [\n `${prefix}[\"${key}\"]`,\n `${prefix}['${key}']`,\n `${prefix}[\\`${key}\\`]`,\n `${prefix}\"${key}\"`,\n `${prefix}'${key}'`,\n `${prefix}\\`${key}\\``,\n new RegExp(`${prefix}${key}`, 'g'),\n ]\n\n return searchValues.reduce((prev, searchValue) => {\n return prev.toString().replaceAll(searchValue, replaceBy)\n }, text) as string\n}\n","import { trimQuotes } from './trim'\n\nexport function stringify(value: string | number | boolean | undefined): string {\n if (value === undefined || value === null) {\n return '\"\"'\n }\n\n return JSON.stringify(trimQuotes(value.toString()))\n}\n\nexport function stringifyObject(value: object): string {\n const items = Object.entries(value)\n .map(([key, value]) => {\n if (typeof value === 'object') {\n return `${key}: {\n ${stringifyObject(value)}\n }`\n }\n\n return `${key}: ${value}`\n })\n .filter(Boolean)\n\n return items.join(',\\n')\n}\n","import { trimQuotes } from './trim'\n\nexport function toRegExpString(text: string, func: string | null = 'RegExp'): string {\n const raw = trimQuotes(text)\n\n const [, replacementTarget = '', matchedFlags] = raw.match(/^\\^(\\(\\?([igmsuy]+)\\))/i) ?? []\n const cleaned = raw\n .replace(/^\\\\?\\//, '')\n .replace(/\\\\?\\/$/, '')\n .replace(replacementTarget, '')\n\n const regex = new RegExp(cleaned, matchedFlags)\n const source = regex.source\n const flags = regex.flags\n\n if (func === null) {\n return `/${source}/${flags}`\n }\n\n // return as constructor → new RegExp(\"pattern\", \"flags\")\n return `new ${func}(${JSON.stringify(source)}${flags ? `, ${JSON.stringify(flags)}` : ''})`\n}\n","import { orderBy } from 'natural-orderby'\nimport { merge } from 'remeda'\n\nimport { camelCase, pascalCase } from './casing.ts'\nimport { combineCodes } from './combineCodes.ts'\nimport { createJSDocBlockText } from './createJSDocBlockText.ts'\nimport { escape, jsStringEscape } from './escape.ts'\nimport { createIndent } from './indent.ts'\nimport { nameSorter } from './nameSorter.ts'\nimport { searchAndReplace } from './searchAndReplace.ts'\nimport { stringify, stringifyObject } from './stringify.ts'\nimport { toRegExpString } from './toRegExp.ts'\nimport { isValidVarName, transformReservedWord } from './transformReservedWord.ts'\nimport { trim, trimQuotes } from './trim.ts'\n\nexport { orderBy } from 'natural-orderby'\nexport { merge } from 'remeda'\nexport { camelCase, pascalCase } from './casing.ts'\nexport { combineCodes } from './combineCodes.ts'\nexport { createJSDocBlockText } from './createJSDocBlockText.ts'\nexport { escape, jsStringEscape } from './escape.ts'\nexport { createIndent } from './indent.ts'\nexport { nameSorter } from './nameSorter.ts'\nexport { searchAndReplace } from './searchAndReplace.ts'\nexport { stringify, stringifyObject } from './stringify.ts'\nexport { toRegExpString } from './toRegExp.ts'\nexport { isValidVarName, transformReservedWord } from './transformReservedWord.ts'\nexport { trim, trimQuotes } from './trim.ts'\n\nexport default {\n combineCodes,\n escape,\n jsStringEscape,\n createIndent,\n transformReservedWord,\n isValidVarName,\n nameSorter,\n searchAndReplace,\n stringify,\n stringifyObject,\n toRegExpString,\n trim,\n trimQuotes,\n JSDoc: {\n createJSDocBlockText,\n },\n orderBy,\n merge,\n camelCase,\n pascalCase,\n} as const\n"],"x_google_ignoreList":[2],"mappings":";;;;;;;;;;AAGA,MAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,sBAAsB,MAAsB;AAC1D,KAAK,QAAQ,cAAc,SAAS,KAAK,IAAK,MAAM,MAAM,MAAM,CAC9D,QAAO,IAAI;AAGb,QAAO;;AAGT,SAAgB,eAAe,MAAc;AAC3C,KAAI;AACF,WAAS,OAAO,OAAO;UAChB,IAAI;AACX,SAAO;;AAET,QAAO;;;;;ACxGT,SAAgB,KAAK,MAAsB;AACzC,QAAO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D,SAAgB,gBAAgB,OAAuB;AAarD,QAZc,OAAO,QAAQ,MAAM,CAChC,KAAK,CAAC,KAAKC,aAAW;AACrB,MAAI,OAAOA,YAAU,SACnB,QAAO,GAAG,IAAI;UACZ,gBAAgBA,QAAM,CAAC;;AAI3B,SAAO,GAAG,IAAI,IAAIA;GAClB,CACD,OAAO,QAAQ,CAEL,KAAK,MAAM;;;;;ACrB1B,SAAgB,eAAe,MAAc,OAAsB,UAAkB;CACnF,MAAM,MAAM,WAAW,KAAK;CAE5B,MAAM,GAAG,oBAAoB,IAAI,gBAAgB,IAAI,MAAM,0BAA0B,IAAI,EAAE;CAC3F,MAAM,UAAU,IACb,QAAQ,UAAU,GAAG,CACrB,QAAQ,UAAU,GAAG,CACrB,QAAQ,mBAAmB,GAAG;CAEjC,MAAM,QAAQ,IAAI,OAAO,SAAS,aAAa;CAC/C,MAAM,SAAS,MAAM;CACrB,MAAM,QAAQ,MAAM;AAEpB,KAAI,SAAS,KACX,QAAO,IAAI,OAAO,GAAG;AAIvB,QAAO,OAAO,KAAK,GAAG,KAAK,UAAU,OAAO,GAAG,QAAQ,KAAK,KAAK,UAAU,MAAM,KAAK,GAAG;;;;;ACS3F,2BAAe;CACb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,OAAO,EACL,sBACD;CACD;CACA;CACA;CACA;CACD"}
|
package/dist/transformers.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
3
|
-
const require_transformers = require('./transformers-
|
|
3
|
+
const require_transformers = require('./transformers-DWLXDYKb.cjs');
|
|
4
4
|
let natural_orderby = require("natural-orderby");
|
|
5
5
|
natural_orderby = require_chunk.__toESM(natural_orderby);
|
|
6
6
|
let remeda = require("remeda");
|
package/dist/transformers.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as trimQuotes, a as stringify, c as nameSorter, d as jsStringEscape, f as createJSDocBlockText, g as trim, h as pascalCase, i as toRegExpString, l as createIndent, m as camelCase, n as orderBy, o as stringifyObject, p as combineCodes, r as transformers_default, s as searchAndReplace, t as merge, u as escape, v as isValidVarName, y as transformReservedWord } from "./transformers-
|
|
1
|
+
import { _ as trimQuotes, a as stringify, c as nameSorter, d as jsStringEscape, f as createJSDocBlockText, g as trim, h as pascalCase, i as toRegExpString, l as createIndent, m as camelCase, n as orderBy, o as stringifyObject, p as combineCodes, r as transformers_default, s as searchAndReplace, t as merge, u as escape, v as isValidVarName, y as transformReservedWord } from "./transformers-CeNW0G32.js";
|
|
2
2
|
|
|
3
3
|
export { camelCase, combineCodes, createIndent, createJSDocBlockText, transformers_default as default, escape, isValidVarName, jsStringEscape, merge, nameSorter, orderBy, pascalCase, searchAndReplace, stringify, stringifyObject, toRegExpString, transformReservedWord, trim, trimQuotes };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as Logger, o as EventEmitter } from "./logger-BjfDkvkn.cjs";
|
|
2
|
+
import { t as PossiblePromise } from "./types-DueAg3XP.cjs";
|
|
3
|
+
import { KubbFile } from "@kubb/fabric-core/types";
|
|
4
4
|
import { Fabric, FileManager } from "@kubb/react-fabric";
|
|
5
5
|
|
|
6
6
|
//#region src/PluginManager.d.ts
|
|
@@ -34,8 +34,8 @@ type Events = {
|
|
|
34
34
|
};
|
|
35
35
|
type GetFileProps<TOptions = object> = {
|
|
36
36
|
name: string;
|
|
37
|
-
mode?: Mode;
|
|
38
|
-
extname: Extname;
|
|
37
|
+
mode?: KubbFile.Mode;
|
|
38
|
+
extname: KubbFile.Extname;
|
|
39
39
|
pluginKey: Plugin['key'];
|
|
40
40
|
options?: TOptions;
|
|
41
41
|
};
|
|
@@ -54,10 +54,10 @@ declare class PluginManager {
|
|
|
54
54
|
extname,
|
|
55
55
|
pluginKey,
|
|
56
56
|
options
|
|
57
|
-
}: GetFileProps<TOptions>): File<{
|
|
57
|
+
}: GetFileProps<TOptions>): KubbFile.File<{
|
|
58
58
|
pluginKey: Plugin['key'];
|
|
59
59
|
}>;
|
|
60
|
-
resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => OptionalPath;
|
|
60
|
+
resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => KubbFile.OptionalPath;
|
|
61
61
|
resolveName: (params: ResolveNameParams) => string;
|
|
62
62
|
/**
|
|
63
63
|
* Instead of calling `pluginManager.events.on` you can use `pluginManager.on`. This one also has better types.
|
|
@@ -241,7 +241,7 @@ type Config<TInput = Input> = {
|
|
|
241
241
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
242
242
|
* @default { '.ts': '.ts'}
|
|
243
243
|
*/
|
|
244
|
-
extension?: Record<Extname, Extname | ''>;
|
|
244
|
+
extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
|
|
245
245
|
/**
|
|
246
246
|
* Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
|
|
247
247
|
* @default 'named'
|
|
@@ -374,7 +374,7 @@ type PluginLifecycle<TOptions extends PluginFactoryOptions = PluginFactoryOption
|
|
|
374
374
|
* @type hookFirst
|
|
375
375
|
* @example ('./Pet.ts', './src/gen/') => '/src/gen/Pet.ts'
|
|
376
376
|
*/
|
|
377
|
-
resolvePath?: (this: PluginContext<TOptions>, baseName: BaseName, mode?: Mode, options?: TOptions['resolvePathOptions']) => OptionalPath;
|
|
377
|
+
resolvePath?: (this: PluginContext<TOptions>, baseName: KubbFile.BaseName, mode?: KubbFile.Mode, options?: TOptions['resolvePathOptions']) => KubbFile.OptionalPath;
|
|
378
378
|
/**
|
|
379
379
|
* Resolve to a name based on a string.
|
|
380
380
|
* Useful when converting to PascalCase or camelCase.
|
|
@@ -392,8 +392,8 @@ type PluginLifecycleHooks = keyof PluginLifecycle;
|
|
|
392
392
|
type PluginParameter<H extends PluginLifecycleHooks> = Parameters<Required<PluginLifecycle>[H]>;
|
|
393
393
|
type ResolvePathParams<TOptions = object> = {
|
|
394
394
|
pluginKey?: Plugin['key'];
|
|
395
|
-
baseName: BaseName;
|
|
396
|
-
mode?: Mode;
|
|
395
|
+
baseName: KubbFile.BaseName;
|
|
396
|
+
mode?: KubbFile.Mode;
|
|
397
397
|
/**
|
|
398
398
|
* Options to be passed to 'resolvePath' 3th parameter
|
|
399
399
|
*/
|
|
@@ -418,8 +418,8 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
|
|
|
418
418
|
*/
|
|
419
419
|
fileManager: FileManager;
|
|
420
420
|
pluginManager: PluginManager;
|
|
421
|
-
addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
|
|
422
|
-
resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => OptionalPath;
|
|
421
|
+
addFile: (...file: Array<KubbFile.File>) => Promise<Array<KubbFile.ResolvedFile>>;
|
|
422
|
+
resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => KubbFile.OptionalPath;
|
|
423
423
|
resolveName: (params: ResolveNameParams) => string;
|
|
424
424
|
logger: Logger;
|
|
425
425
|
/**
|
|
@@ -468,4 +468,4 @@ type Group = {
|
|
|
468
468
|
};
|
|
469
469
|
//#endregion
|
|
470
470
|
export { ResolvePathParams as _, InputData as a, UserPluginWithLifeCycle as b, Plugin as c, PluginKey as d, PluginLifecycle as f, ResolveNameParams as g, PluginWithLifeCycle as h, Group as i, PluginContext as l, PluginParameter as m, Config as n, InputPath as o, PluginLifecycleHooks as p, GetPluginFactoryOptions as r, Output as s, BarrelType as t, PluginFactoryOptions as u, UserConfig as v, PluginManager as x, UserPlugin as y };
|
|
471
|
-
//# sourceMappingURL=types-
|
|
471
|
+
//# sourceMappingURL=types-CVONMhN_.d.cts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as PossiblePromise } from "./types-C3ea5qNG.cjs";
|
|
1
|
+
import { n as Logger, o as EventEmitter } from "./logger-BwhJWK-H.js";
|
|
2
|
+
import { t as PossiblePromise } from "./types-DCR_QgGt.js";
|
|
4
3
|
import { Fabric, FileManager } from "@kubb/react-fabric";
|
|
4
|
+
import { KubbFile } from "@kubb/fabric-core/types";
|
|
5
5
|
|
|
6
6
|
//#region src/PluginManager.d.ts
|
|
7
7
|
type RequiredPluginLifecycle = Required<PluginLifecycle>;
|
|
@@ -34,8 +34,8 @@ type Events = {
|
|
|
34
34
|
};
|
|
35
35
|
type GetFileProps<TOptions = object> = {
|
|
36
36
|
name: string;
|
|
37
|
-
mode?: Mode;
|
|
38
|
-
extname: Extname;
|
|
37
|
+
mode?: KubbFile.Mode;
|
|
38
|
+
extname: KubbFile.Extname;
|
|
39
39
|
pluginKey: Plugin['key'];
|
|
40
40
|
options?: TOptions;
|
|
41
41
|
};
|
|
@@ -54,10 +54,10 @@ declare class PluginManager {
|
|
|
54
54
|
extname,
|
|
55
55
|
pluginKey,
|
|
56
56
|
options
|
|
57
|
-
}: GetFileProps<TOptions>): File<{
|
|
57
|
+
}: GetFileProps<TOptions>): KubbFile.File<{
|
|
58
58
|
pluginKey: Plugin['key'];
|
|
59
59
|
}>;
|
|
60
|
-
resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => OptionalPath;
|
|
60
|
+
resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => KubbFile.OptionalPath;
|
|
61
61
|
resolveName: (params: ResolveNameParams) => string;
|
|
62
62
|
/**
|
|
63
63
|
* Instead of calling `pluginManager.events.on` you can use `pluginManager.on`. This one also has better types.
|
|
@@ -241,7 +241,7 @@ type Config<TInput = Input> = {
|
|
|
241
241
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
242
242
|
* @default { '.ts': '.ts'}
|
|
243
243
|
*/
|
|
244
|
-
extension?: Record<Extname, Extname | ''>;
|
|
244
|
+
extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
|
|
245
245
|
/**
|
|
246
246
|
* Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
|
|
247
247
|
* @default 'named'
|
|
@@ -374,7 +374,7 @@ type PluginLifecycle<TOptions extends PluginFactoryOptions = PluginFactoryOption
|
|
|
374
374
|
* @type hookFirst
|
|
375
375
|
* @example ('./Pet.ts', './src/gen/') => '/src/gen/Pet.ts'
|
|
376
376
|
*/
|
|
377
|
-
resolvePath?: (this: PluginContext<TOptions>, baseName: BaseName, mode?: Mode, options?: TOptions['resolvePathOptions']) => OptionalPath;
|
|
377
|
+
resolvePath?: (this: PluginContext<TOptions>, baseName: KubbFile.BaseName, mode?: KubbFile.Mode, options?: TOptions['resolvePathOptions']) => KubbFile.OptionalPath;
|
|
378
378
|
/**
|
|
379
379
|
* Resolve to a name based on a string.
|
|
380
380
|
* Useful when converting to PascalCase or camelCase.
|
|
@@ -392,8 +392,8 @@ type PluginLifecycleHooks = keyof PluginLifecycle;
|
|
|
392
392
|
type PluginParameter<H extends PluginLifecycleHooks> = Parameters<Required<PluginLifecycle>[H]>;
|
|
393
393
|
type ResolvePathParams<TOptions = object> = {
|
|
394
394
|
pluginKey?: Plugin['key'];
|
|
395
|
-
baseName: BaseName;
|
|
396
|
-
mode?: Mode;
|
|
395
|
+
baseName: KubbFile.BaseName;
|
|
396
|
+
mode?: KubbFile.Mode;
|
|
397
397
|
/**
|
|
398
398
|
* Options to be passed to 'resolvePath' 3th parameter
|
|
399
399
|
*/
|
|
@@ -418,8 +418,8 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
|
|
|
418
418
|
*/
|
|
419
419
|
fileManager: FileManager;
|
|
420
420
|
pluginManager: PluginManager;
|
|
421
|
-
addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
|
|
422
|
-
resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => OptionalPath;
|
|
421
|
+
addFile: (...file: Array<KubbFile.File>) => Promise<Array<KubbFile.ResolvedFile>>;
|
|
422
|
+
resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => KubbFile.OptionalPath;
|
|
423
423
|
resolveName: (params: ResolveNameParams) => string;
|
|
424
424
|
logger: Logger;
|
|
425
425
|
/**
|
|
@@ -468,4 +468,4 @@ type Group = {
|
|
|
468
468
|
};
|
|
469
469
|
//#endregion
|
|
470
470
|
export { ResolvePathParams as _, InputData as a, UserPluginWithLifeCycle as b, Plugin as c, PluginKey as d, PluginLifecycle as f, ResolveNameParams as g, PluginWithLifeCycle as h, Group as i, PluginContext as l, PluginParameter as m, Config as n, InputPath as o, PluginLifecycleHooks as p, GetPluginFactoryOptions as r, Output as s, BarrelType as t, PluginFactoryOptions as u, UserConfig as v, PluginManager as x, UserPlugin as y };
|
|
471
|
-
//# sourceMappingURL=types-
|
|
471
|
+
//# sourceMappingURL=types-CyDeSlGF.d.ts.map
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_transformers = require('./transformers-
|
|
3
|
-
const require_URLPath = require('./URLPath-
|
|
2
|
+
const require_transformers = require('./transformers-DWLXDYKb.cjs');
|
|
3
|
+
const require_URLPath = require('./URLPath-Dir2mxRT.cjs');
|
|
4
4
|
let natural_orderby = require("natural-orderby");
|
|
5
5
|
natural_orderby = require_chunk.__toESM(natural_orderby);
|
|
6
6
|
|
package/dist/utils.d.cts
CHANGED
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as camelCase } from "./transformers-
|
|
2
|
-
import { n as getUniqueName, r as setUniqueName, t as URLPath } from "./URLPath-
|
|
1
|
+
import { m as camelCase } from "./transformers-CeNW0G32.js";
|
|
2
|
+
import { n as getUniqueName, r as setUniqueName, t as URLPath } from "./URLPath-DbWtfVa1.js";
|
|
3
3
|
import { orderBy } from "natural-orderby";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/Cache.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
4
4
|
"description": "Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
"import": "./dist/index.js",
|
|
27
27
|
"require": "./dist/index.cjs"
|
|
28
28
|
},
|
|
29
|
-
"./fs": {
|
|
30
|
-
"import": "./dist/fs.js",
|
|
31
|
-
"require": "./dist/fs.cjs"
|
|
32
|
-
},
|
|
33
29
|
"./hooks": {
|
|
34
30
|
"import": "./dist/hooks.js",
|
|
35
31
|
"require": "./dist/hooks.cjs"
|
|
@@ -79,8 +75,15 @@
|
|
|
79
75
|
"!/**/**.test.**",
|
|
80
76
|
"!/**/__tests__/**"
|
|
81
77
|
],
|
|
78
|
+
"size-limit": [
|
|
79
|
+
{
|
|
80
|
+
"path": "./dist/*.js",
|
|
81
|
+
"limit": "510 KiB",
|
|
82
|
+
"gzip": true
|
|
83
|
+
}
|
|
84
|
+
],
|
|
82
85
|
"dependencies": {
|
|
83
|
-
"@kubb/react-fabric": "0.2.
|
|
86
|
+
"@kubb/react-fabric": "0.2.10",
|
|
84
87
|
"camelcase": "^8.0.0",
|
|
85
88
|
"find-up": "^7.0.0",
|
|
86
89
|
"fs-extra": "^11.3.2",
|
|
@@ -99,15 +102,13 @@
|
|
|
99
102
|
"@types/seedrandom": "^3.0.8",
|
|
100
103
|
"@types/semver": "^7.7.1",
|
|
101
104
|
"consola": "^3.4.2",
|
|
102
|
-
"tsdown": "^0.15.11",
|
|
103
|
-
"typescript": "^5.9.3",
|
|
104
105
|
"zod": "^4.1.12"
|
|
105
106
|
},
|
|
106
107
|
"optionalDependencies": {
|
|
107
|
-
"@kubb/fabric-core": "0.2.
|
|
108
|
+
"@kubb/fabric-core": "0.2.10"
|
|
108
109
|
},
|
|
109
110
|
"peerDependencies": {
|
|
110
|
-
"@kubb/react-fabric": "0.2.
|
|
111
|
+
"@kubb/react-fabric": "0.2.10"
|
|
111
112
|
},
|
|
112
113
|
"engines": {
|
|
113
114
|
"node": ">=20"
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
"registry": "https://registry.npmjs.org/"
|
|
118
119
|
},
|
|
119
120
|
"scripts": {
|
|
120
|
-
"build": "tsdown",
|
|
121
|
+
"build": "tsdown && size-limit",
|
|
121
122
|
"clean": "npx rimraf ./dist",
|
|
122
123
|
"lint": "bun biome lint .",
|
|
123
124
|
"lint:fix": "bun biome lint --fix --unsafe .",
|
package/src/BarrelManager.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** biome-ignore-all lint/suspicious/useIterableCallbackReturn: not needed */
|
|
2
2
|
import { join } from 'node:path'
|
|
3
|
+
import type { KubbFile } from '@kubb/fabric-core/types'
|
|
3
4
|
import type { FileMetaBase } from './FileManager.ts'
|
|
4
|
-
import type { KubbFile } from './fs/index.ts'
|
|
5
5
|
import { getRelativePath } from './fs/index.ts'
|
|
6
6
|
import type { Logger } from './logger.ts'
|
|
7
7
|
import { TreeNode } from './utils/TreeNode.ts'
|
package/src/FileManager.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { extname, join } from 'node:path'
|
|
2
|
+
import type { KubbFile } from '@kubb/fabric-core/types'
|
|
2
3
|
import { BarrelManager } from './BarrelManager.ts'
|
|
3
|
-
import type { KubbFile } from './fs/index.ts'
|
|
4
|
-
import { trimExtName } from './fs/index.ts'
|
|
5
4
|
import type { Logger } from './logger.ts'
|
|
6
5
|
import type { BarrelType, Plugin } from './types.ts'
|
|
7
6
|
|
|
@@ -37,6 +36,10 @@ export function getMode(path: string | undefined | null): KubbFile.Mode {
|
|
|
37
36
|
return extname(path) ? 'single' : 'split'
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
function trimExtName(text: string): string {
|
|
40
|
+
return text.replace(/\.[^/.]+$/, '')
|
|
41
|
+
}
|
|
42
|
+
|
|
40
43
|
export async function getBarrelFiles(
|
|
41
44
|
files: Array<KubbFile.ResolvedFile>,
|
|
42
45
|
{ type, meta = {}, root, output, logger }: AddIndexesProps,
|
package/src/PluginManager.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { KubbFile } from '@kubb/fabric-core/types'
|
|
1
2
|
import type { Fabric } from '@kubb/react-fabric'
|
|
2
3
|
import { ValidationPluginError } from './errors.ts'
|
|
3
|
-
import type { KubbFile } from './fs/index.ts'
|
|
4
4
|
import type { Logger } from './logger.ts'
|
|
5
5
|
import { isPromiseRejectedResult, PromiseManager } from './PromiseManager.ts'
|
|
6
6
|
import type { PluginCore } from './plugin.ts'
|
package/src/build.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join, relative, resolve } from 'node:path'
|
|
2
|
+
import type { KubbFile } from '@kubb/fabric-core/types'
|
|
2
3
|
import type { Fabric } from '@kubb/react-fabric'
|
|
3
4
|
import { createFabric } from '@kubb/react-fabric'
|
|
4
5
|
import { typescriptParser } from '@kubb/react-fabric/parsers'
|
|
@@ -6,7 +7,7 @@ import { fsPlugin } from '@kubb/react-fabric/plugins'
|
|
|
6
7
|
import pc from 'picocolors'
|
|
7
8
|
import { isDeepEqual } from 'remeda'
|
|
8
9
|
import { isInputPath } from './config.ts'
|
|
9
|
-
import { clean, exists, getRelativePath,
|
|
10
|
+
import { clean, exists, getRelativePath, write } from './fs/index.ts'
|
|
10
11
|
import type { Logger } from './logger.ts'
|
|
11
12
|
import { createLogger } from './logger.ts'
|
|
12
13
|
import { PluginManager } from './PluginManager.ts'
|
package/src/fs/index.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export { clean } from './clean.ts'
|
|
2
2
|
export { exists } from './exists.ts'
|
|
3
3
|
export { read, readSync } from './read.ts'
|
|
4
|
-
export { unlink } from './unlink.ts'
|
|
5
4
|
export { getRelativePath } from './utils.ts'
|
|
6
5
|
export { write } from './write.ts'
|
|
7
|
-
|
|
8
|
-
export function trimExtName(text: string): string {
|
|
9
|
-
return text.replace(/\.[^/.]+$/, '')
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export * as KubbFile from './types.ts'
|
package/src/hooks/useMode.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { KubbFile } from '@kubb/fabric-core/types'
|
|
1
2
|
import type { Fabric, FileManager } from '@kubb/react-fabric'
|
|
2
|
-
import type { KubbFile } from './fs/index.ts'
|
|
3
3
|
import type { Logger } from './logger.ts'
|
|
4
4
|
import type { PluginManager } from './PluginManager.ts'
|
|
5
5
|
import type { PossiblePromise } from './utils/types.ts'
|
package/src/utils/TreeNode.ts
CHANGED
package/dist/fs-BIPMUfpW.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { normalize, relative } from "node:path";
|
|
2
|
-
import fs from "fs-extra";
|
|
3
|
-
import { switcher } from "js-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/fs/clean.ts
|
|
6
|
-
async function clean(path$1) {
|
|
7
|
-
return fs.remove(path$1);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/fs/exists.ts
|
|
12
|
-
const reader$1 = switcher({
|
|
13
|
-
node: async (path$1) => {
|
|
14
|
-
return fs.pathExists(path$1);
|
|
15
|
-
},
|
|
16
|
-
bun: async (path$1) => {
|
|
17
|
-
return Bun.file(path$1).exists();
|
|
18
|
-
}
|
|
19
|
-
}, "node");
|
|
20
|
-
const syncReader$1 = switcher({
|
|
21
|
-
node: (path$1) => {
|
|
22
|
-
return fs.pathExistsSync(path$1);
|
|
23
|
-
},
|
|
24
|
-
bun: () => {
|
|
25
|
-
throw new Error("Bun cannot read sync");
|
|
26
|
-
}
|
|
27
|
-
}, "node");
|
|
28
|
-
async function exists(path$1) {
|
|
29
|
-
return reader$1(path$1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/fs/read.ts
|
|
34
|
-
const reader = switcher({
|
|
35
|
-
node: async (path$1) => {
|
|
36
|
-
return fs.readFile(path$1, { encoding: "utf8" });
|
|
37
|
-
},
|
|
38
|
-
bun: async (path$1) => {
|
|
39
|
-
return Bun.file(path$1).text();
|
|
40
|
-
}
|
|
41
|
-
}, "node");
|
|
42
|
-
const syncReader = switcher({
|
|
43
|
-
node: (path$1) => {
|
|
44
|
-
return fs.readFileSync(path$1, { encoding: "utf8" });
|
|
45
|
-
},
|
|
46
|
-
bun: () => {
|
|
47
|
-
throw new Error("Bun cannot read sync");
|
|
48
|
-
}
|
|
49
|
-
}, "node");
|
|
50
|
-
async function read(path$1) {
|
|
51
|
-
return reader(path$1);
|
|
52
|
-
}
|
|
53
|
-
function readSync(path$1) {
|
|
54
|
-
return syncReader(path$1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/fs/unlink.ts
|
|
59
|
-
async function unlink(path$1) {
|
|
60
|
-
return fs.unlink(path$1);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/fs/utils.ts
|
|
65
|
-
function slash(path$1, platform = "linux") {
|
|
66
|
-
const isWindowsPath = /^\\\\\?\\/.test(path$1);
|
|
67
|
-
const normalizedPath = normalize(path$1);
|
|
68
|
-
if (["linux", "mac"].includes(platform) && !isWindowsPath) return normalizedPath.replaceAll(/\\/g, "/").replace("../", "");
|
|
69
|
-
return normalizedPath.replaceAll(/\\/g, "/").replace("../", "");
|
|
70
|
-
}
|
|
71
|
-
function getRelativePath(rootDir, filePath, platform = "linux") {
|
|
72
|
-
if (!rootDir || !filePath) throw new Error(`Root and file should be filled in when retrieving the relativePath, ${rootDir || ""} ${filePath || ""}`);
|
|
73
|
-
const slashedPath = slash(relative(rootDir, filePath), platform);
|
|
74
|
-
if (slashedPath.startsWith("../")) return slashedPath;
|
|
75
|
-
return `./${slashedPath}`;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/fs/types.ts
|
|
80
|
-
var types_exports = {};
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/fs/index.ts
|
|
84
|
-
function trimExtName(text) {
|
|
85
|
-
return text.replace(/\.[^/.]+$/, "");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
//#endregion
|
|
89
|
-
export { read as a, clean as c, unlink as i, types_exports as n, readSync as o, getRelativePath as r, exists as s, trimExtName as t };
|
|
90
|
-
//# sourceMappingURL=fs-BIPMUfpW.js.map
|
package/dist/fs-BIPMUfpW.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fs-BIPMUfpW.js","names":["path","reader","path","syncReader","path","path","path"],"sources":["../src/fs/clean.ts","../src/fs/exists.ts","../src/fs/read.ts","../src/fs/unlink.ts","../src/fs/utils.ts","../src/fs/types.ts","../src/fs/index.ts"],"sourcesContent":["import fs from 'fs-extra'\n\nexport async function clean(path: string): Promise<void> {\n return fs.remove(path)\n}\n","import fs from 'fs-extra'\nimport { switcher } from 'js-runtime'\n\nconst reader = switcher(\n {\n node: async (path: string) => {\n return fs.pathExists(path)\n },\n bun: async (path: string) => {\n const file = Bun.file(path)\n\n return file.exists()\n },\n },\n 'node',\n)\n\nconst syncReader = switcher(\n {\n node: (path: string) => {\n return fs.pathExistsSync(path)\n },\n bun: () => {\n throw new Error('Bun cannot read sync')\n },\n },\n 'node',\n)\n\nexport async function exists(path: string): Promise<boolean> {\n return reader(path)\n}\n\nexport function existsSync(path: string): boolean {\n return syncReader(path)\n}\n","import fs from 'fs-extra'\nimport { switcher } from 'js-runtime'\n\nconst reader = switcher(\n {\n node: async (path: string) => {\n return fs.readFile(path, { encoding: 'utf8' })\n },\n bun: async (path: string) => {\n const file = Bun.file(path)\n\n return file.text()\n },\n },\n 'node',\n)\n\nconst syncReader = switcher(\n {\n node: (path: string) => {\n return fs.readFileSync(path, { encoding: 'utf8' })\n },\n bun: () => {\n throw new Error('Bun cannot read sync')\n },\n },\n 'node',\n)\n\nexport async function read(path: string): Promise<string> {\n return reader(path)\n}\n\nexport function readSync(path: string): string {\n return syncReader(path)\n}\n","import fs from 'fs-extra'\n\nexport async function unlink(path: string): Promise<void> {\n return fs.unlink(path)\n}\n","import { normalize, relative } from 'node:path'\n\nfunction slash(path: string, platform: 'windows' | 'mac' | 'linux' = 'linux') {\n const isWindowsPath = /^\\\\\\\\\\?\\\\/.test(path)\n const normalizedPath = normalize(path)\n\n if (['linux', 'mac'].includes(platform) && !isWindowsPath) {\n // linux and mac\n return normalizedPath.replaceAll(/\\\\/g, '/').replace('../', '')\n }\n\n // windows\n return normalizedPath.replaceAll(/\\\\/g, '/').replace('../', '')\n}\n\nexport function getRelativePath(rootDir?: string | null, filePath?: string | null, platform: 'windows' | 'mac' | 'linux' = 'linux'): string {\n if (!rootDir || !filePath) {\n throw new Error(`Root and file should be filled in when retrieving the relativePath, ${rootDir || ''} ${filePath || ''}`)\n }\n\n const relativePath = relative(rootDir, filePath)\n\n // On Windows, paths are separated with a \"\\\"\n // However, web browsers use \"/\" no matter the platform\n const slashedPath = slash(relativePath, platform)\n\n if (slashedPath.startsWith('../')) {\n return slashedPath\n }\n\n return `./${slashedPath}`\n}\n","type BasePath<T extends string = string> = `${T}/`\n\nexport type Import = {\n /**\n * Import name to be used\n * @example [\"useState\"]\n * @example \"React\"\n */\n name:\n | string\n | Array<\n | string\n | {\n propertyName: string\n name?: string\n }\n >\n /**\n * Path for the import\n * @example '@kubb/core'\n */\n path: string\n /**\n * Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.\n */\n isTypeOnly?: boolean\n\n isNameSpace?: boolean\n /**\n * When root is set it will get the path with relative getRelativePath(root, path).\n */\n root?: string\n}\n\nexport type Source = {\n name?: string\n value?: string\n isTypeOnly?: boolean\n /**\n * Has const or type 'export'\n * @default false\n */\n isExportable?: boolean\n /**\n * When set, barrel generation will add this\n * @default false\n */\n isIndexable?: boolean\n}\n\nexport type Export = {\n /**\n * Export name to be used.\n * @example [\"useState\"]\n * @example \"React\"\n */\n name?: string | Array<string>\n /**\n * Path for the import.\n * @example '@kubb/core'\n */\n path: string\n /**\n * Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.\n */\n isTypeOnly?: boolean\n /**\n * Make it possible to override the name, this will result in: `export * as aliasName from './path'`.\n */\n asAlias?: boolean\n}\n\nexport type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`\n\nexport type Mode = 'single' | 'split'\n\n/**\n * Name to be used to dynamicly create the baseName(based on input.path)\n * Based on UNIX basename\n * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix\n */\nexport type BaseName = `${string}.${string}`\n\n/**\n * Path will be full qualified path to a specified file\n */\nexport type Path = string\n\nexport type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`\n\nexport type OptionalPath = Path | undefined | null\n\nexport type File<TMeta extends object = object> = {\n /**\n * Name to be used to create the path\n * Based on UNIX basename, `${name}.extname`\n * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix\n */\n baseName: BaseName\n /**\n * Path will be full qualified path to a specified file\n */\n path: AdvancedPath<BaseName> | Path\n sources: Array<Source>\n imports?: Array<Import>\n exports?: Array<Export>\n /**\n * Use extra meta, this is getting used to generate the barrel/index files.\n */\n meta?: TMeta\n banner?: string\n footer?: string\n}\n\nexport type ResolvedImport = Import\n\nexport type ResolvedExport = Export\n\nexport type ResolvedFile<TMeta extends object = object> = File<TMeta> & {\n /**\n * @default object-hash\n */\n id: string\n /**\n * Contains the first part of the baseName, generated based on baseName\n * @link https://nodejs.org/api/path.html#pathformatpathobject\n */\n name: string\n extname: Extname\n imports: Array<ResolvedImport>\n exports: Array<ResolvedExport>\n}\n","export { clean } from './clean.ts'\nexport { exists } from './exists.ts'\nexport { read, readSync } from './read.ts'\nexport { unlink } from './unlink.ts'\nexport { getRelativePath } from './utils.ts'\nexport { write } from './write.ts'\n\nexport function trimExtName(text: string): string {\n return text.replace(/\\.[^/.]+$/, '')\n}\n\nexport * as KubbFile from './types.ts'\n"],"mappings":";;;;;AAEA,eAAsB,MAAM,QAA6B;AACvD,QAAO,GAAG,OAAOA,OAAK;;;;;ACAxB,MAAMC,WAAS,SACb;CACE,MAAM,OAAO,WAAiB;AAC5B,SAAO,GAAG,WAAWC,OAAK;;CAE5B,KAAK,OAAO,WAAiB;AAG3B,SAFa,IAAI,KAAKA,OAAK,CAEf,QAAQ;;CAEvB,EACD,OACD;AAED,MAAMC,eAAa,SACjB;CACE,OAAO,WAAiB;AACtB,SAAO,GAAG,eAAeD,OAAK;;CAEhC,WAAW;AACT,QAAM,IAAI,MAAM,uBAAuB;;CAE1C,EACD,OACD;AAED,eAAsB,OAAO,QAAgC;AAC3D,QAAOD,SAAOC,OAAK;;;;;AC3BrB,MAAM,SAAS,SACb;CACE,MAAM,OAAO,WAAiB;AAC5B,SAAO,GAAG,SAASE,QAAM,EAAE,UAAU,QAAQ,CAAC;;CAEhD,KAAK,OAAO,WAAiB;AAG3B,SAFa,IAAI,KAAKA,OAAK,CAEf,MAAM;;CAErB,EACD,OACD;AAED,MAAM,aAAa,SACjB;CACE,OAAO,WAAiB;AACtB,SAAO,GAAG,aAAaA,QAAM,EAAE,UAAU,QAAQ,CAAC;;CAEpD,WAAW;AACT,QAAM,IAAI,MAAM,uBAAuB;;CAE1C,EACD,OACD;AAED,eAAsB,KAAK,QAA+B;AACxD,QAAO,OAAOA,OAAK;;AAGrB,SAAgB,SAAS,QAAsB;AAC7C,QAAO,WAAWA,OAAK;;;;;AChCzB,eAAsB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