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

@voliware/logger

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voliware/logger - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

package.json
{
"name": "@voliware/logger",
"version": "2.0.7",
"version": "2.0.8",
"description": "A tiny Javascript logger with levels and several options. Supports Node, MongoDB, and all modern Browsers",

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

@@ -59,6 +59,11 @@ const Logger = require('./logger');

insertMessage(message){
if(!this.collection){
return;
}
if(!this.log_count){
this.log_count = this.collection.countDocuments();
}
// If an _id was passed, assume it's for logging purposes
// If an _id was passed, we should clone
if(message._id){

@@ -68,2 +73,3 @@ message._id_ = message._id;

}
this.collection.insertOne(message);

@@ -70,0 +76,0 @@ }

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