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

cube

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cube - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

3

lib/cube/evaluator.js

@@ -68,4 +68,5 @@ var endpoint = require("./endpoint"),

// Provide default start and stop times for recent metrics.
// Provide default start, stop and step times for recent metrics.
// If the limit is not specified, or too big, use the maximum limit.
if (!("step" in request)) request.step = step = 1e4;
if (!("stop" in request)) request.stop = Math.floor(Date.now() / step) * step;

@@ -72,0 +73,0 @@ if (!("start" in request)) request.start = 0;

@@ -8,3 +8,4 @@ // TODO include the event._id (and define a JSON encoding for ObjectId?)

types = require("./types"),
bisect = require("./bisect");
bisect = require("./bisect"),
ObjectID = mongodb.ObjectID;

@@ -191,3 +192,3 @@ var type_re = /^[a-z][a-zA-Z0-9_]+$/,

// A null event indicates that there are no more results.
if (event) callback({time: event.t, data: event.d});
if (event) callback({id: event._id instanceof ObjectID ? undefined : event._id, time: event.t, data: event.d});
else callback(null);

@@ -194,0 +195,0 @@ });

{
"name": "cube",
"version": "0.2.2",
"version": "0.2.3",
"description": "A system for analyzing time series data using MongoDB and Node.",

@@ -5,0 +5,0 @@ "keywords": ["time series"],

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