You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

esrap

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esrap - npm Package Compare versions

Comparing version

to
1.4.4

2

package.json
{
"name": "esrap",
"version": "1.4.3",
"version": "1.4.4",
"description": "Parse in reverse",

@@ -5,0 +5,0 @@ "repository": {

@@ -1509,2 +1509,18 @@ /** @import { TSESTree } from '@typescript-eslint/types' */

TSModuleBlock(node, state) {
state.commands.push(' {', indent, newline);
sequence(node.body, state, false, handle);
state.commands.push(dedent, newline, '}');
},
TSModuleDeclaration(node, state) {
if (node.declare) state.commands.push('declare ');
else state.commands.push('namespace ');
handle(node.id, state);
if (!node.body) return;
handle(node.body, state);
},
TSNonNullExpression(node, state) {

@@ -1511,0 +1527,0 @@ handle(node.expression, state);