Comparing version 0.2.2 to 0.2.3
19
index.js
@@ -10,3 +10,2 @@ var fs = require('fs'), | ||
var util = require('./lib/util.js'), | ||
stackTrace = require('stack-trace'), | ||
colors = require('colors'), | ||
@@ -209,20 +208,2 @@ mkdirp = require('mkdirp'); | ||
this.params['isNative'] = ''; | ||
if (option['stack']) { | ||
try { | ||
if (!option['msg']) { | ||
this.params['error_msg'] = this.opts['debug'] | ||
? option['stack'] | ||
: String(option['stack']).replace(/(\n)+|(\r\n)+/g, ' '); | ||
} | ||
var trace = stackTrace.parse(option['stack']); | ||
this.params['TypeName'] = trace[0].typeName; | ||
this.params['FunctionName'] = trace[0].functionName; | ||
this.params['MethodName'] = trace[0].methodName; | ||
this.params['FileName'] = trace[0].fileName; | ||
this.params['LineNumber'] = trace[0].lineNumber; | ||
this.params['isNative'] = trace[0].native; | ||
} catch (e) { | ||
//this.log('notice','wrong error obj'); | ||
} | ||
} | ||
}, | ||
@@ -229,0 +210,0 @@ |
{ | ||
"name": "yog-log", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "yog logger", | ||
@@ -17,4 +17,3 @@ "main": "index.js", | ||
"fast-strftime": "1.1.1", | ||
"mkdirp": "0.5.0", | ||
"stack-trace": "0.0.9" | ||
"mkdirp": "0.5.0" | ||
}, | ||
@@ -21,0 +20,0 @@ "keywords": [ |
4
74258
1319
- Removedstack-trace@0.0.9
- Removedstack-trace@0.0.9(transitive)