@kubb/parser-ts
Advanced tools
Comparing version 3.5.12 to 3.5.13
@@ -1,3 +0,3 @@ | ||
export { appendJSDocToNode, createArrayDeclaration, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createFalse, createIdentifier, createImportDeclaration, createIndexSignature, createInterfaceDeclaration, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNamespaceDeclaration, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTrue, createTupleDeclaration, createTupleTypeNode, createTypeAliasDeclaration, createTypeDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers, syntaxKind } from './chunk-HXT34ZPL.js'; | ||
export { appendJSDocToNode, createArrayDeclaration, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createFalse, createIdentifier, createImportDeclaration, createIndexSignature, createInterfaceDeclaration, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNamespaceDeclaration, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTrue, createTupleDeclaration, createTupleTypeNode, createTypeAliasDeclaration, createTypeDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers, syntaxKind } from './chunk-C3NK2LB5.js'; | ||
//# sourceMappingURL=factory.js.map | ||
//# sourceMappingURL=factory.js.map |
@@ -1,2 +0,2 @@ | ||
export { factory_exports as factory } from './chunk-HXT34ZPL.js'; | ||
export { factory_exports as factory } from './chunk-C3NK2LB5.js'; | ||
import ts from 'typescript'; | ||
@@ -3,0 +3,0 @@ import { format as format$1 } from 'prettier'; |
{ | ||
"name": "@kubb/parser-ts", | ||
"version": "3.5.12", | ||
"version": "3.5.13", | ||
"description": "TypeScript parser", | ||
@@ -51,4 +51,4 @@ "keywords": [ | ||
"dependencies": { | ||
"prettier": "^3.4.2", | ||
"remeda": "^2.20.1", | ||
"prettier": "^3.5.1", | ||
"remeda": "^2.20.2", | ||
"typescript": "^5.7.3" | ||
@@ -58,4 +58,4 @@ }, | ||
"tsup": "^8.3.6", | ||
"@kubb/config-ts": "3.5.12", | ||
"@kubb/config-tsup": "3.5.12" | ||
"@kubb/config-ts": "3.5.13", | ||
"@kubb/config-tsup": "3.5.13" | ||
}, | ||
@@ -62,0 +62,0 @@ "engines": { |
@@ -479,6 +479,8 @@ import { isNumber } from 'remeda' | ||
let initializer: ts.Expression = factory.createStringLiteral(value?.toString()) | ||
const isExactNumber = Number.parseInt(value.toString()) === value | ||
if (isNumber(Number.parseInt(value.toString()))) { | ||
if (isExactNumber && isNumber(Number.parseInt(value.toString()))) { | ||
initializer = factory.createNumericLiteral(value as number) | ||
} | ||
if (typeof value === 'boolean') { | ||
@@ -519,3 +521,3 @@ initializer = value ? factory.createTrue() : factory.createFalse() | ||
.map(([key, value]) => { | ||
let initializer: ts.Expression = factory.createStringLiteral(`${value?.toString()}`) | ||
let initializer: ts.Expression = factory.createStringLiteral(value?.toString()) | ||
@@ -522,0 +524,0 @@ if (isNumber(value)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
169540
2046
+ Addedremeda@2.21.0(transitive)
+ Addedtypescript@5.8.2(transitive)
- Removedremeda@2.20.2(transitive)
- Removedtypescript@5.7.3(transitive)
Updatedprettier@^3.5.1
Updatedremeda@^2.20.2