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

winston-elasticsearch-apm

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-elasticsearch-apm - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

18

legacy.js
var Transport = require('winston-compat').Transport;
var util = require('util');
var defaultsDeep=require("lodash.defaultsdeep");

@@ -31,12 +32,17 @@ var ElasticsearchApm = function(options) {

var errorMsg = null;
if (meta == null || !Object.keys(meta).length) {
var customData = {};
if (meta != null && Object.keys(meta).length && (meta.message != null || meta.stack != null)) {
errorMsg = meta;
customData = { label: this.label };
} else {
errorMsg = msg;
} else {
errorMsg = meta;
if (meta != null && typeof meta !== 'object') {
meta = { meta: meta }
}
customData = defaultsDeep({ label: this.label }, meta || {});
}
this.apm.captureError(errorMsg, {
custom: {
label: this.label
}
custom: customData
});

@@ -43,0 +49,0 @@ }

{
"name": "winston-elasticsearch-apm",
"version": "0.0.5",
"version": "0.0.7",
"description": "Winston transport to send error stacks to Elasticsearch APM",

@@ -21,2 +21,4 @@ "main": "index.js",

"dependencies": {
"lodash": "^4.17.11",
"lodash.defaultsdeep": "^4.6.0",
"winston-compat": "^0.1.4",

@@ -23,0 +25,0 @@ "winston-transport": "^4.2.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