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

libesvm

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libesvm - npm Package Compare versions

Comparing version 3.4.5 to 3.5.0

38

lib/node.js

@@ -17,2 +17,5 @@ var child_process = require('child_process');

var startOfStackTraceRE = /^Exception in thread /;
var continueOfStackTraceRE = /^\s*(at |Refer to the log for complete error details)/;
var Node = module.exports = function Node (options) {

@@ -85,8 +88,31 @@ this.version = options.version;

var self = this;
var stack = null;
return through2(function (line, enc, cb) {
cb();
line = line.toString('utf8');
var message = line.toString('utf8').trim();
if (stack) {
if (continueOfStackTraceRE.test(line)) {
stack.push(' ' + line.trim());
return;
} else {
self.parseLog(stream, stack.join('\n'));
stack = null;
}
}
if (startOfStackTraceRE.test(line)) {
stack = [line];
return;
}
var message = line.trim();
if (!message) return;
self.parseLog(stream, message);
}, function () {
if (stack) {
self.parseLog(stream, stack.join('\n'));
stack = null;
}
});

@@ -121,2 +147,12 @@ };

if (matches = line.match(startOfStackTraceRE)) {
return {
timestamp: moment().toDate(),
level: 'warning',
type: 'stack',
node: '-',
message: line
};
}
if (matches = line.match(/^\[([^\]]+)\]\[([^\]]+)\]\[([^\]]+)\]\s*\[([^\]]+)\](.+)/)) {

@@ -123,0 +159,0 @@ return {

2

package.json
{
"name": "libesvm",
"version": "3.4.5",
"version": "3.5.0",
"description": "libesvm is a library for managning an Elasticsearch process for development and testing.",

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

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