ast-pretty-print
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -134,8 +134,5 @@ // @flow | ||
let printNode = (node /*: Node */, indentation, theme) => { | ||
let loc = printLoc(node.loc, theme); | ||
let res = | ||
theme.node.open + | ||
node.type + | ||
theme.node.close + | ||
' ' + | ||
printLoc(node.loc, theme); | ||
theme.node.open + node.type + theme.node.close + (loc ? ' ' + loc : ''); | ||
let keys = Object.keys(node).sort(); | ||
@@ -142,0 +139,0 @@ |
{ | ||
"name": "ast-pretty-print", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A pretty printer for AST-like structures", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
24
test.js
@@ -10,14 +10,14 @@ // @flow | ||
end: 31, | ||
loc: { | ||
start: { | ||
line: 1, | ||
column: 0, | ||
}, | ||
end: { | ||
line: 1, | ||
column: 31, | ||
}, | ||
lines: {}, | ||
indent: 0, | ||
}, | ||
// loc: { | ||
// start: { | ||
// line: 1, | ||
// column: 0, | ||
// }, | ||
// end: { | ||
// line: 1, | ||
// column: 31, | ||
// }, | ||
// lines: {}, | ||
// indent: 0, | ||
// }, | ||
id: { | ||
@@ -24,0 +24,0 @@ type: 'Identifier', |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10904
0
340