@kubb/parser
Advanced tools
Comparing version 1.12.0-canary.20231018T090810 to 1.12.0-canary.20231018T095824
@@ -114,3 +114,3 @@ import ts from 'typescript'; | ||
declare function print(elements: ts.Node | Array<ts.Node | undefined> | null, fileName?: string): string; | ||
declare function print(elements: ts.Node | Array<ts.Node | undefined> | null, baseName?: string): string; | ||
@@ -117,0 +117,0 @@ type ParseResult = { |
@@ -290,3 +290,3 @@ import { createRequire } from 'module'; | ||
var { factory: factory2 } = ts; | ||
function print(elements, fileName = "print.ts") { | ||
function print(elements, baseName = "print.ts") { | ||
let nodes = []; | ||
@@ -302,3 +302,3 @@ if (!elements) { | ||
const nodesArray = factory2.createNodeArray(nodes.filter(Boolean)); | ||
const sourceFile = ts.createSourceFile(fileName, "", ts.ScriptTarget.ESNext, true, ts.ScriptKind.TS); | ||
const sourceFile = ts.createSourceFile(baseName, "", ts.ScriptTarget.ESNext, true, ts.ScriptKind.TS); | ||
const printer = ts.createPrinter({ omitTrailingSemicolon: false, newLine: ts.NewLineKind.LineFeed }); | ||
@@ -305,0 +305,0 @@ const outputFile = printer.printList(ts.ListFormat.MultiLine, nodesArray, sourceFile); |
{ | ||
"name": "@kubb/parser", | ||
"version": "1.12.0-canary.20231018T090810", | ||
"version": "1.12.0-canary.20231018T095824", | ||
"description": "Generator parser", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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