git-diff-apply
Advanced tools
Comparing version 0.22.4 to 0.22.5
{ | ||
"name": "git-diff-apply", | ||
"version": "0.22.4", | ||
"version": "0.22.5", | ||
"description": "Use an unrelated remote repository to apply a git diff", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -61,10 +61,15 @@ 'use strict'; | ||
if (!createCustomDiff && !(startTag && endTag)) { | ||
throw 'You must supply a start tag and an end tag'; | ||
if (reset || init) { | ||
if (!endTag) { | ||
throw 'You must supply an end tag'; | ||
} | ||
} else { | ||
if (!createCustomDiff && !(startTag && endTag)) { | ||
throw 'You must supply a start tag and an end tag'; | ||
} | ||
if (createCustomDiff && !startTag && !endTag) { | ||
throw 'You must supply a start tag or an end tag'; | ||
} | ||
} | ||
if (createCustomDiff && !startTag && !endTag) { | ||
throw 'You must supply a start tag or an end tag'; | ||
} | ||
let safeStartTag = startTag || fallbackTagName; | ||
@@ -71,0 +76,0 @@ let safeEndTag = endTag || fallbackTagName; |
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
19032
512