diff2html
Advanced tools
Comparing version 3.4.30 to 3.4.31
@@ -183,3 +183,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
var afterNxtLine = diffLines[lineIndex + 2]; | ||
if (line.startsWith('diff')) { | ||
if (line.startsWith('diff --git') || line.startsWith('diff --combined')) { | ||
startFile(); | ||
@@ -197,2 +197,15 @@ var gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/; | ||
} | ||
if (line.startsWith('Binary files') && !(currentFile === null || currentFile === void 0 ? void 0 : currentFile.isGitDiff)) { | ||
startFile(); | ||
var unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/; | ||
if ((values = unixDiffBinaryStart.exec(line))) { | ||
possibleOldName = getFilename(values[1], undefined, config.dstPrefix); | ||
possibleNewName = getFilename(values[2], undefined, config.srcPrefix); | ||
} | ||
if (currentFile === null) { | ||
throw new Error('Where is my file !!!'); | ||
} | ||
currentFile.isBinary = true; | ||
return; | ||
} | ||
if (!currentFile || | ||
@@ -199,0 +212,0 @@ (!currentFile.isGitDiff && |
@@ -186,3 +186,3 @@ "use strict"; | ||
var afterNxtLine = diffLines[lineIndex + 2]; | ||
if (line.startsWith('diff')) { | ||
if (line.startsWith('diff --git') || line.startsWith('diff --combined')) { | ||
startFile(); | ||
@@ -200,2 +200,15 @@ var gitDiffStart = /^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/; | ||
} | ||
if (line.startsWith('Binary files') && !(currentFile === null || currentFile === void 0 ? void 0 : currentFile.isGitDiff)) { | ||
startFile(); | ||
var unixDiffBinaryStart = /^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/; | ||
if ((values = unixDiffBinaryStart.exec(line))) { | ||
possibleOldName = getFilename(values[1], undefined, config.dstPrefix); | ||
possibleNewName = getFilename(values[2], undefined, config.srcPrefix); | ||
} | ||
if (currentFile === null) { | ||
throw new Error('Where is my file !!!'); | ||
} | ||
currentFile.isBinary = true; | ||
return; | ||
} | ||
if (!currentFile || | ||
@@ -202,0 +215,0 @@ (!currentFile.isGitDiff && |
{ | ||
"name": "diff2html", | ||
"version": "3.4.30", | ||
"version": "3.4.31", | ||
"homepage": "https://diff2html.xyz", | ||
@@ -5,0 +5,0 @@ "description": "Fast Diff to colorized HTML", |
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
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 not supported yet
Sorry, the diff of this file is not supported yet
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
1922260
5369