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 2.0.0 to 2.0.1

src/debug.js

2

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

@@ -5,0 +5,0 @@ "main": "src",

@@ -5,3 +5,3 @@ 'use strict';

const copyRegex = require('./copy-regex');
const debug = require('debug')('git-diff-apply');
const debug = require('./debug');

@@ -8,0 +8,0 @@ module.exports = async function copy(from, to) {

@@ -8,3 +8,3 @@ 'use strict';

const uuidv1 = require('uuid').v1;
const debug = require('debug')('git-diff-apply');
const debug = require('./debug');
const utils = require('./utils');

@@ -11,0 +11,0 @@ const getRootDir = require('./get-root-dir');

'use strict';
const { spawn } = require('child_process');
const debug = require('debug')('git-diff-apply');
const debug = require('./debug');

@@ -6,0 +6,0 @@ module.exports = function resolveConflicts(options) {

@@ -5,9 +5,11 @@ 'use strict';

const { exec: _exec, spawn: _spawn } = require('child_process');
const debug = require('debug')('git-diff-apply');
const debug = require('./debug');
const execPromise = promisify(_exec);
module.exports.exec = async function exec(command, options) {
debug(command);
let { stdout } = await execPromise(command, options);
debug(stdout);
module.exports.exec = async function exec() {
debug(...arguments);
let { stdout } = await execPromise(...arguments);
if (stdout) {
debug(stdout);
}
return stdout;

@@ -17,7 +19,7 @@ };

module.exports.spawn = function spawn(cmd, args, options) {
let command = [cmd, ...args].join(' ');
let command = [cmd, ...args.map(arg => `"${arg}"`)].join(' ');
debug(command);
debug(command, options);
let child = _spawn(cmd, args, options);
let child = _spawn(...arguments);

@@ -24,0 +26,0 @@ let promise = new Promise(function(resolve, reject) {

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