Comparing version 0.2.1 to 0.2.2
var util = require("util"), | ||
url = require("url"), | ||
http = require("./emitter-http"), | ||
udp = require("./emitter-udp"), | ||
@@ -12,4 +13,5 @@ ws = require("./emitter-ws"); | ||
case "ws:": case "wss:": emitter = ws; break; | ||
case "http:": emitter = http; break; | ||
} | ||
return emitter(u.protocol, u.hostname, u.port); | ||
}; |
@@ -109,3 +109,4 @@ // TODO include the event._id (and define a JSON encoding for ObjectId?) | ||
i = bisect(tierTimes, tierTime); | ||
if (tierTimes[i] > tierTime) tierTimes.splice(i, 0, tierTime); | ||
if (i >= tierTimes.length) tierTimes.push(tierTime); | ||
else if (tierTimes[i] > tierTime) tierTimes.splice(i, 0, tierTime); | ||
} | ||
@@ -112,0 +113,0 @@ } else { |
@@ -134,5 +134,5 @@ var util = require("util"), | ||
file.serve(request, response, function(error) { | ||
if (error && error.status == 404) { | ||
response.writeHead(404, {"Content-Type": "text/plain"}); | ||
response.end("404 Not Found"); | ||
if (error) { | ||
response.writeHead(error.status, {"Content-Type": "text/plain"}); | ||
response.end(error.status + ""); | ||
} | ||
@@ -139,0 +139,0 @@ }); |
{ | ||
"name": "cube", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A system for analyzing time series data using MongoDB and Node.", | ||
@@ -11,3 +11,3 @@ "keywords": ["time series"], | ||
"dependencies": { | ||
"mongodb": "0.9.9-8", | ||
"mongodb": "1.0.1", | ||
"node-static": "0.5.9", | ||
@@ -14,0 +14,0 @@ "pegjs": "0.6.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
739767
49
18556
5
+ Addedbson@0.0.5(transitive)
+ Addedmongodb@1.0.1(transitive)
- Removedbson@0.0.4(transitive)
- Removedmongodb@0.9.9-8(transitive)
Updatedmongodb@1.0.1