Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-diff-apply

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-diff-apply - npm Package Compare versions

Comparing version 0.22.4 to 0.22.5

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc