You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
node 0.6 fixes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var http = require("http"),
|
||||
sys = require("sys"),
|
||||
fs = require("fs");
|
||||
|
||||
function prettyCurrentTime() {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
if (process.versions.node.match(/^0.3/)) {
|
||||
// Support for very old versions of node. At some point, we should abandon this.
|
||||
var minor = process.versions.node.split('.')[1];
|
||||
if (minor > 2) {
|
||||
exports.util = require("util");
|
||||
} else {
|
||||
// This module is called "sys" in 0.2.x
|
||||
exports.util = require("sys");
|
||||
}
|
||||
|
Reference in New Issue
Block a user