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

babel-walk

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-walk - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0-canary-4

15

lib/index.d.ts

@@ -6,3 +6,3 @@ import * as t from '@babel/types';

export declare type SimpleFunction<TKey extends string, TState> = (node: NodeType<TKey>, state: TState) => void;
export declare function simple<TState>(node: t.Node, visitors: {
export declare type SimpleVisitors<TState = void> = {
[key in keyof t.Aliases | t.Node['type']]?: SimpleFunction<key, TState> | {

@@ -12,5 +12,6 @@ enter?: SimpleFunction<key, TState>;

};
}, state: TState): void;
};
export declare function simple<TState>(node: t.Node, visitors: SimpleVisitors<TState>, state: TState): void;
export declare type AncestorFunction<TKey extends string, TState> = (node: NodeType<TKey>, state: TState, ancestors: t.Node[]) => void;
export declare function ancestor<TState>(node: t.Node, visitors: {
export declare type AncestorVisitor<TState = void> = {
[key in keyof t.Aliases | t.Node['type']]?: AncestorFunction<key, TState> | {

@@ -20,5 +21,7 @@ enter?: AncestorFunction<key, TState>;

};
}, state: TState): void;
export declare function recursive<TState>(node: t.Node, visitors: {
};
export declare function ancestor<TState = void>(node: t.Node, visitors: AncestorVisitor<TState>, state: TState): void;
export declare type RecursiveVisitors<TState = void> = {
[key in keyof t.Aliases | t.Node['type']]?: (node: NodeType<key>, state: TState, recurse: (node: t.Node) => void) => void;
}, state: TState): void;
};
export declare function recursive<TState>(node: t.Node, visitors: RecursiveVisitors<TState>, state: TState): void;

2

package.json
{
"name": "babel-walk",
"version": "2.0.0",
"version": "2.1.0-canary-4",
"description": "Lightweight Babel AST traversal",

@@ -5,0 +5,0 @@ "main": "lib/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