Comparing version 0.2.18 to 0.2.19
@@ -37,10 +37,34 @@ | ||
var Class = require( "ee-class" ) | ||
, project = require( "ee-project" ) | ||
, type = require( "ee-types" ) | ||
, fs = require('fs') | ||
, util = require( "util" ); | ||
var project = new (new Class({ | ||
init: function() { | ||
var file = process.argv[1] | ||
, stats; | ||
if(file && file.indexOf('node_modules') >= 0) file = file.substr(0, file.indexOf('node_modules')); | ||
stats = fs.statSync(file); | ||
if(stats){ | ||
if (stats.isDirectory()){ | ||
this.root = file+'/'; | ||
} | ||
else { | ||
this.root = file.substr(0, file.lastIndexOf('/')+1); | ||
} | ||
} | ||
else { | ||
console.warn('Failed to evaluate project root dir!'); | ||
} | ||
} | ||
}))(); | ||
module.exports = new Class( { | ||
@@ -47,0 +71,0 @@ |
{ | ||
"name" : "ee-log" | ||
, "description" : "simple, helpful & colorful logs" | ||
, "version" : "0.2.18" | ||
, "version" : "0.2.19" | ||
, "homepage" : "https://github.com/eventEmitter/ee-log" | ||
@@ -20,3 +20,2 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
"ee-class" : "0.4.x" | ||
, "ee-project" : "0.2.x" | ||
, "ee-types" : "0.1.x" | ||
@@ -23,0 +22,0 @@ } |
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
2
20250
9
356
- Removedee-project@0.2.x
- Removedee-project@0.2.4(transitive)