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.16.0 to 0.16.1

4

package.json
{
"name": "git-diff-apply",
"version": "0.16.0",
"version": "0.16.1",
"description": "Use an unrelated remote repository to apply a git diff",

@@ -59,3 +59,3 @@ "main": "src/index.js",

"eslint-plugin-prefer-let": "^1.0.1",
"git-fixtures": "^0.15.5",
"git-fixtures": "^0.15.6",
"mocha": "^6.0.2",

@@ -62,0 +62,0 @@ "mocha-helpers": "^1.2.1",

@@ -112,7 +112,9 @@ 'use strict';

function resetIgnoredFiles() {
let resetIgnoredFiles = co.wrap(function* resetIgnoredFiles() {
for (let ignoredFile of ignoredFiles) {
utils.run(`git checkout -- ${ignoredFile}`);
if (yield fs.pathExists(ignoredFile)) {
utils.run(`git checkout -- ${ignoredFile}`);
}
}
}
});

@@ -139,3 +141,3 @@ function applyDiff() {

resetIgnoredFiles();
yield resetIgnoredFiles();

@@ -168,3 +170,3 @@ return;

resetIgnoredFiles();
yield resetIgnoredFiles();

@@ -171,0 +173,0 @@ let wereAnyChanged = !isGitClean();

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