@vaadin/hilla-generator-utils
Advanced tools
Comparing version 24.5.0-alpha9 to 24.5.0-beta1
@@ -6,2 +6,3 @@ import { type Node, type VisitResult, type SourceFile, type Statement, type TransformerFactory } from 'typescript'; | ||
export declare function transform<T extends Node>(transformer: (node: Node) => VisitResult<Node | undefined>): TransformerFactory<T>; | ||
export declare function traverse<T extends Node>(node: Node, visitor: (node: Node) => T | undefined): T | undefined; | ||
//# sourceMappingURL=ast.d.ts.map |
@@ -31,6 +31,13 @@ import ts, { | ||
} | ||
function traverse(node, visitor) { | ||
function _visitor(n) { | ||
return visitor(n) ?? ts.forEachChild(n, _visitor); | ||
} | ||
return _visitor(node); | ||
} | ||
export { | ||
template, | ||
transform | ||
transform, | ||
traverse | ||
}; | ||
//# sourceMappingURL=ast.js.map |
import ts, {} from "typescript"; | ||
function createSourceFile(statements, fileName) { | ||
const sourceFile = ts.createSourceFile(fileName, "", ts.ScriptTarget.ES2019, void 0, ts.ScriptKind.TS); | ||
const sourceFile = ts.createSourceFile(fileName, "", ts.ScriptTarget.ES2021, void 0, ts.ScriptKind.TS); | ||
return ts.factory.updateSourceFile(sourceFile, statements); | ||
@@ -5,0 +5,0 @@ } |
{ | ||
"name": "@vaadin/hilla-generator-utils", | ||
"version": "24.5.0-alpha9", | ||
"version": "24.5.0-beta1", | ||
"description": "A set of utils for developing Hilla generator plugins", | ||
@@ -62,3 +62,3 @@ "main": "index.js", | ||
"pino-pretty": "^10.2.0", | ||
"typescript": "5.5.2" | ||
"typescript": "5.6.2" | ||
}, | ||
@@ -65,0 +65,0 @@ "devDependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83084
767
+ Addedtypescript@5.6.2(transitive)
- Removedtypescript@5.5.2(transitive)
Updatedtypescript@5.6.2