git-diff-apply
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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) { |
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
19401
21
527