simple-git
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -5,7 +5,6 @@ (function () { | ||
var Buffer = require('buffer').Buffer; | ||
var warn = function (message) { | ||
if (!/prod/.test(process.env.NODE_ENV)) { | ||
console.warn(message); | ||
} | ||
}; | ||
var log = 'info warn error'.split(' ').reduce(function (log, level) { | ||
log[level] = /prod/.test(process.env.NODE_ENV) ? function () {} : console[level].bind(console); | ||
return log; | ||
}, {}); | ||
@@ -266,3 +265,3 @@ /** | ||
if (typeof args === 'string') { | ||
warn('Git#listRemote: args should be supplied as an array of individual arguments'); | ||
log.warn('Git#listRemote: args should be supplied as an array of individual arguments'); | ||
} | ||
@@ -419,3 +418,3 @@ | ||
else if (typeof args[0] === "string" || typeof args[1] === "string") { | ||
warn("Git#log: supplying to or from as strings is now deprecated, switch to an options configuration object"); | ||
log.warn("Git#log: supplying to or from as strings is now deprecated, switch to an options configuration object"); | ||
opt = { | ||
@@ -630,3 +629,3 @@ from: args[0], | ||
console.error(stdErr); | ||
log.error(stdErr); | ||
this._runCache = []; | ||
@@ -633,0 +632,0 @@ then.call(this, stdErr, null); |
27919
600