Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/hilla-generator-utils

Package Overview
Dependencies
Maintainers
12
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/hilla-generator-utils - npm Package Compare versions

Comparing version 24.4.0-alpha3 to 24.4.0-alpha4

4

ast.d.ts

@@ -1,6 +0,6 @@

import { type Node, type SourceFile, type Statement, type TransformerFactory } from 'typescript';
import { type Node, type VisitResult, type SourceFile, type Statement, type TransformerFactory } from 'typescript';
export type TemplateSelector<T> = (statements: readonly Statement[]) => T;
export declare function template(code: string, transformers?: ReadonlyArray<TransformerFactory<SourceFile>>): readonly Statement[];
export declare function template<T>(code: string, selector: TemplateSelector<T>, transformers?: ReadonlyArray<TransformerFactory<SourceFile>>): T;
export declare function transform<T extends Node>(transformer: (node: Node) => Node): TransformerFactory<T>;
export declare function transform<T extends Node>(transformer: (node: Node) => VisitResult<Node | undefined>): TransformerFactory<T>;
//# sourceMappingURL=ast.d.ts.map

@@ -21,3 +21,9 @@ import ts, {

return (context) => (root) => {
const visitor = (node) => ts.visitEachChild(transformer(node), visitor, context);
const visitor = (node) => {
const transformed = transformer(node);
if (transformed !== node) {
return transformed;
}
return ts.visitEachChild(transformed, visitor, context);
};
return ts.visitEachChild(root, visitor, context);

@@ -24,0 +30,0 @@ };

{
"name": "@vaadin/hilla-generator-utils",
"version": "24.4.0-alpha3",
"version": "24.4.0-alpha4",
"description": "A set of utils for developing Hilla generator plugins",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc