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

pondjs

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pondjs - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

11

CHANGES.md
## Changelog
---
## v0.7.1
> October 2016
Patch release to fix several bugs and improve performance:
- renaming columns now does so with mapKeys, rather than breaking the whole thing apart
- fixes merging of TimeSeries so that if the result isn't chronological then it will sort them before trying to make a new TimeSeries
- fixes atTime() boundary condition (#45)
- fixed align processors to handle initial events that are already aligned
- internal calls to setCollection can skip the isChronological test with a flag since they know they are maintaining order.
## v0.7

@@ -4,0 +15,0 @@ > September 2016

6

lib/lib/base/functions.js

@@ -58,2 +58,5 @@ "use strict";

};
var noneIfEmpty = function noneIfEmpty(values) {
return values.length === 0 ? null : values;
};

@@ -64,3 +67,4 @@ var filter = exports.filter = {

zeroMissing: zeroMissing,
propagateMissing: propagateMissing
propagateMissing: propagateMissing,
noneIfEmpty: noneIfEmpty
};

@@ -67,0 +71,0 @@

8

lib/lib/collection.js

@@ -267,4 +267,6 @@ "use strict";

value: function at(pos) {
var event = new this._type(this._eventList.get(pos));
return event;
if (this._eventList.size > 0) {
var event = new this._type(this._eventList.get(pos));
return event;
}
}

@@ -284,3 +286,3 @@

var pos = this.bisect(time);
if (pos && pos < this.size()) {
if (pos >= 0 && pos < this.size()) {
return this.at(pos);

@@ -287,0 +289,0 @@ }

@@ -131,2 +131,7 @@ "use strict";

}
/**
* Return the index string given an index prefix and a datetime object.
*/
}], [{

@@ -138,2 +143,7 @@ key: "getIndexString",

}
/**
* Given the time range, return a list of strings of index values every <prefix> tick.
*/
}, {

@@ -152,2 +162,7 @@ key: "getIndexStringList",

}
/**
* Generate an index string with day granularity.
*/
}, {

@@ -163,2 +178,7 @@ key: "getDailyIndexString",

}
/**
* Generate an index string with month granularity.
*/
}, {

@@ -173,2 +193,7 @@ key: "getMonthlyIndexString",

}
/**
* Generate an index string with month granularity.
*/
}, {

@@ -175,0 +200,0 @@ key: "getYearlyIndexString",

@@ -108,3 +108,3 @@ "use strict";

var _options$method = options.method;
var method = _options$method === undefined ? "zero" : _options$method;
var method = _options$method === undefined ? "hold" : _options$method;
var _options$limit = options.limit;

@@ -135,3 +135,3 @@ var limit = _options$limit === undefined ? null : _options$limit;

if (!_underscore2.default.contains(["linear", "hold"], _this._method)) {
throw new Error("Unknown method " + _this._method + " passed to Aligner");
throw new Error("Unknown method '" + _this._method + "' passed to Aligner");
}

@@ -154,2 +154,13 @@

/**
* Test to see if an event is perfectly aligned. Used on first event.
*/
}, {
key: "isAligned",
value: function isAligned(event) {
var bound = _index2.default.getIndexString(this._window, event.timestamp());
return this.getBoundaryTime(bound) === event.timestamp().getTime();
}
/**
* Returns a list of indexes of window boundaries if the current

@@ -274,2 +285,5 @@ * event and the previous event do not lie in the same window. If

_this4._previous = event;
if (_this4.isAligned(event)) {
_this4.emit(event);
}
return {

@@ -276,0 +290,0 @@ v: void 0

{
"name": "pondjs",
"version": "0.7.0",
"version": "0.7.1",
"main": "lib/entry",

@@ -10,3 +10,3 @@ "description": "A timeseries library build on top of immutable.js",

"test": "react-scripts test",
"docs": "rm -f docs/* && node ./scripts/renderdocs.js",
"docs": "rm -f /src/website/docs/* && node ./scripts/renderdocs.js",
"build": ". ./scripts/build.sh",

@@ -13,0 +13,0 @@ "start-website": "react-scripts start",

Sorry, the diff of this file is too big to display

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