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

signalk-multiplexer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signalk-multiplexer - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

37

lib/Multiplexer.js

@@ -120,2 +120,39 @@ var events = require("events")

Multiplexer.prototype.values = function(arr) {
var ts, src;
this._last = _.clone(this._data, true);
if(this._setTimestamp) {
ts = this._setTimestamp;
} else {
ts = new Date().toISOString();
}
if(this._setSource) {
src = this._setSource;
} else {
src = {};
}
for(var i in arr) {
var prop = arr[i].path;
var val = arr[i].value;
this.__select(this._setPath)[prop] = {
timestamp: ts,
source: src,
value: val
};
}
if(this.hasChanged()) {
this._lastChange = Date.now();
this.emit('change', this._data);
this.emit('change:delta', this.__generateDelta(this._context, this._setPath + '.' + prop, val, ts, src));
}
return this.root();
};
/*

@@ -122,0 +159,0 @@ * PRIVATE METHODS

2

package.json
{
"name": "signalk-multiplexer",
"version": "0.1.4",
"version": "0.1.5",
"description": "A multiplexer for Signal K that merges any incoming Signal K (either full or delta) into an in-memory Signal K tree, tracks changes and emits events when appropiate. Optionally takes a settings object with vessel information and/or filters. ",

@@ -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