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

byteskode-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byteskode-logger - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

23

index.js

@@ -70,17 +70,18 @@ 'use strict';

//mongoose logger transports
if (!environment.isLocal() && exports.config.mongoose) {
// initialize mongoose log model
var modelName = exports.config.mongoose.model;
try {
if (!mongoose.model(modelName)) {
exports.Log = mongoose.model(modelName, LogSchema);
} else {
exports.Log = mongoose.model(modelName);
}
} catch (e) {
// initialize mongoose log model
var modelName = exports.config.mongoose.model;
try {
if (!mongoose.model(modelName)) {
exports.Log = mongoose.model(modelName, LogSchema);
} else {
exports.Log = mongoose.model(modelName);
}
} catch (e) {
exports.Log = mongoose.model(modelName, LogSchema);
}
//mongoose logger transports
if (!environment.isLocal() && exports.config.mongoose) {
transports.push(new(winston.transports.Mongoose)(exports.config.mongoose));

@@ -87,0 +88,0 @@ }

{
"name": "byteskode-logger",
"version": "0.1.0",
"version": "0.1.1",
"description": "byteskode winston logger utility",

@@ -38,3 +38,4 @@ "main": "index.js",

"mocha": "^2.3.3",
"mongoose": "^4.2.5"
"mongoose": "^4.2.5",
"winston-mongodb": "^1.4.0"
},

@@ -41,0 +42,0 @@ "dependencies": {

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