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

vega-dataflow

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vega-dataflow - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"name": "vega-dataflow",
"version": "1.3.0",
"version": "1.3.1",
"description": "Vega streaming dataflow graph.",

@@ -5,0 +5,0 @@ "repository": {

var log = require('vega-logging'),
Tuple = require('./Tuple'),
Base = require('./Node').prototype;
Base = require('./Node').prototype,
ChangeSet = require('./ChangeSet');

@@ -21,10 +22,20 @@ function Collector(graph) {

// Create a new output changeset to prevent pollution when the Graph
// merges reflow and regular changesets.
var output = ChangeSet.create(input);
if (input.rem.length) {
this._data = Tuple.idFilter(this._data, input.rem);
output.rem = input.rem.slice(0);
}
if (input.add.length) {
this._data = this._data.length ? this._data.concat(input.add) : input.add;
this._data = this._data.concat(input.add);
output.add = input.add.slice(0);
}
if (input.mod.length) {
output.mod = input.mod.slice(0);
}
if (input.sort) {

@@ -35,10 +46,10 @@ this._data.sort(input.sort);

if (input.reflow) {
input.mod = input.mod.concat(
Tuple.idFilter(this._data, input.add, input.mod, input.rem));
input.reflow = false;
output.mod = output.mod.concat(
Tuple.idFilter(this._data, output.add, output.mod, output.rem));
output.reflow = false;
}
return input;
return output;
};
module.exports = Collector;
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