Comparing version 0.9.0 to 0.10.0
@@ -34,20 +34,11 @@ // Copyright 2011 Iris Couch | ||
// Wrap log4js so it will not be a dependency. | ||
var VERBOSE; | ||
if(require.isBrowser) | ||
VERBOSE = true; | ||
else | ||
VERBOSE = (process.env.verbose === 'true'); | ||
var debug = require('debug') | ||
var noop = function() {} | ||
if(process.env.TAP_DIAG) | ||
noop = console.error | ||
function noops() { | ||
function getLogger(name) { | ||
return { "trace": noop | ||
, "debug": VERBOSE ? console.log : noop | ||
, "info" : VERBOSE ? console.info : noop | ||
, "warn" : VERBOSE ? console.warn : noop | ||
, "error": VERBOSE ? console.error : noop | ||
, "fatal": VERBOSE ? console.error : noop | ||
, "debug": debug('follow:' + name + ':debug') | ||
, "info" : debug('follow:' + name + ':info') | ||
, "warn" : debug('follow:' + name + ':warn') | ||
, "error": debug('follow:' + name + ':error') | ||
, "fatal": debug('follow:' + name + ':fatal') | ||
@@ -59,10 +50,2 @@ , "level": {'level':0, 'levelStr':'noop'} | ||
try { | ||
if(! process.env.log_plain) | ||
exports.log4js = require('log4js'); | ||
} catch(e) { | ||
exports.log4js = null; | ||
} | ||
exports.log4js = exports.log4js || { 'getLogger': function() { return noops() } } | ||
exports.log4js = { 'getLogger': getLogger } |
{ "name": "follow" | ||
, "version": "0.9.0" | ||
, "version": "0.10.0" | ||
, "author": { "name": "Jason Smith" | ||
@@ -12,2 +12,4 @@ , "email": "jhs@iriscouch.com" } | ||
, "dependencies" : { "request" : "~2.16.2" | ||
, "browser-request" : "~0.3.0" | ||
, "debug": "~0.7.2" | ||
} | ||
@@ -17,5 +19,6 @@ , "devDependencies": { "tap": "~0.4.0" | ||
} | ||
, "browser": { "request" : "browser-request" | ||
} | ||
, "main": "./api.js" | ||
, "bin": {"follow": "./cli.js"} | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
26
21
222572
3
2865
+ Addedbrowser-request@~0.3.0
+ Addeddebug@~0.7.2
+ Addedbrowser-request@0.3.3(transitive)
+ Addeddebug@0.7.4(transitive)