New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

happn-logger

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happn-logger - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

lib/logger.js

@@ -300,5 +300,3 @@ var util = require('util');

var e = new Error();
var regex = /\((.*):(\d+):(\d+)\)$/
var match = regex.exec(e.stack.split("\n")[2]);
var location = new Error().stack.split("\n")[2];

@@ -308,4 +306,3 @@ if (Config.logStackTraces) array = Array.prototype.slice.call(arguments);

array.push('file path: ' + match[1] + ' line: ' + match[2] + ' column: ' + match[3]);
array.push(location);
Config.log('error', thisContext.value, component, message, array);

@@ -312,0 +309,0 @@ }

{
"name": "happn-logger",
"version": "0.1.0",
"version": "0.1.1",
"description": "Logger using log4js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -210,3 +210,3 @@ var should = require('chai').should();

var logged = fs.readFileSync('file.log').toString();
logged.should.match(/ \[ERROR\] - file path:/);
logged.should.match(/happn-logger\/test\/logger_test.js/);
fs.unlinkSync('file.log');

@@ -228,4 +228,3 @@ done();

var logged = fs.readFileSync('file.log').toString();
console.log('logged:::', logged);
logged.should.match(/ \[ERROR\] - file path:/);
logged.should.match(/happn-logger\/test\/logger_test.js/);
fs.unlinkSync('file.log');

@@ -232,0 +231,0 @@ done();

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