Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

esrap

Package Overview
Dependencies
Maintainers
2
Versions
39
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
1.4.3
to
1.4.4
+1
-1
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);