prettydiff
Advanced tools
Comparing version 101.0.11 to 101.0.12
@@ -122,3 +122,3 @@ /*global global, prettydiff*/ | ||
if (data.types[a] === "singleton" && a > 0 && data.types[a - 1].indexOf("attribute") > -1 && data.types[data.begin[a - 1]] === "singleton") { | ||
if (data.begin[a] < 0) { | ||
if (data.begin[a] < 0 || (data.types[data.begin[a - 1]] === "singleton" && data.begin[data.ender[a] - 1] !== a)) { | ||
level[a - 1] = indent; | ||
@@ -125,0 +125,0 @@ } else { |
@@ -113,3 +113,3 @@ /*global global, prettydiff*/ | ||
if (data.types[a] === "singleton" && a > 0 && data.types[a - 1].indexOf("attribute") > -1 && data.types[data.begin[a - 1]] === "singleton") { | ||
if (data.begin[a] < 0) { | ||
if (data.begin[a] < 0 || (data.types[data.begin[a - 1]] === "singleton" && data.begin[data.ender[a] - 1] !== a)) { | ||
level[a - 1] = indent; | ||
@@ -116,0 +116,0 @@ } |
@@ -10,3 +10,3 @@ { | ||
"file-saver": "^1.3.8", | ||
"sparser": "^1.1.16" | ||
"sparser": "^1.1.17" | ||
}, | ||
@@ -43,3 +43,3 @@ "description": "A language aware diff tool.", | ||
}, | ||
"version": "101.0.11" | ||
"version": "101.0.12" | ||
} |
# Pretty Diff | ||
A language aware diff, beautification, and minification tool. | ||
Version - 101.0.11 | ||
Version - 101.0.12 | ||
@@ -6,0 +6,0 @@ ## Try it out - https://prettydiff.com/ |
if (options.mode === "diff") | ||
{ | ||
if (prettydiff.beautify[options.lexer] === undefined && options.lexer !== "text") | ||
if ( | ||
prettydiff.beautify[options.lexer] === undefined && | ||
options.lexer !== "text" | ||
) | ||
{ | ||
@@ -5,0 +8,0 @@ options.language = "text"; |
@@ -1,2 +0,4 @@ | ||
const name = (ext === true) ? (jsxbrace === true) ? "script" : (parse.structure[parse.structure.length - 1][1] > -1) ? tagName(data.token[parse.structure[parse.structure.length - 1][1]].toLowerCase()) : tagName(data.token[data.begin[parse.count]].toLowerCase()) : "", | ||
const name = (ext === true) ? (jsxbrace === true) ? "script" : (parse.structure[parse.structure.length - 1][1] > -1) ? tagName( | ||
data.token[parse.structure[parse.structure.length - 1][1]].toLowerCase() | ||
) : tagName(data.token[data.begin[parse.count]].toLowerCase()) : "", | ||
s; |
@@ -12,7 +12,6 @@ let a = 1; | ||
if (data.stack[a] !== "attribute") { | ||
if ( | ||
ctoke !== ")" && | ||
ctoke !== "x)" && | ||
(ltype !== "markup" || (ltype === "markup" && data.token[a - 2] !== "return")) | ||
) { | ||
if (ctoke !== ")" && ctoke !== "x)" && ( | ||
ltype !== "markup" || | ||
(ltype === "markup" && data.token[a - 2] !== "return") | ||
)) { | ||
indent = indent - 1; | ||
@@ -19,0 +18,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6657891
328
100447
Updatedsparser@^1.1.17