Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yog-log

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yog-log - npm Package Compare versions

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 @@

5

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc