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.4.1 to 1.4.2

2

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

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

@@ -123,9 +123,10 @@ var dl = require('datalib'),

var data = this.values(),
indexes = this._indexes,
fields = this._indexFields,
f = dl.$(field),
index, i, len, value;
if (!this._indexes[field]) {
index = {};
this._indexes[field] = index;
this._indexFields.push(field);
if (!indexes[field]) {
indexes[field] = index = {};
fields.push(field);
for (i=0, len=data.length; i<len; ++i) {

@@ -137,3 +138,3 @@ value = f(data[i]);

}
return this._indexes[field];
return indexes[field];
};

@@ -140,0 +141,0 @@

@@ -22,2 +22,3 @@ var dl = require('datalib'),

this._signals = {};
this._requestedIndexes = {};

@@ -95,2 +96,26 @@ this.doNotPropagate = {};

prototype.requestIndex = function(data, field) {
var ri = this._requestedIndexes,
reg = ri[data] || (ri[data] = {});
return (reg[field] = true, this);
};
prototype.buildIndexes = function() {
var ri = this._requestedIndexes,
data = dl.keys(ri),
i, len, j, jlen, d, src, fields, f;
for (i=0, len=data.length; i<len; ++i) {
src = this.data(d=data[i]);
if (!src) throw Error('Data source '+dl.str(d)+' does not exist.');
fields = dl.keys(ri[d]);
for (j=0, jlen=fields.length; j<jlen; ++j) {
if ((f=fields[j]) === null) continue;
src.getIndex(f);
ri[d][f] = null;
}
}
};
// Stamp should be specified with caution. It is necessary for inline datasources,

@@ -97,0 +122,0 @@ // which need to be populated during the same cycle even though propagation has

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