| var redis = require('./'), | ||
| redis2 = require('redis'), | ||
| //redis2 = require('redis'), | ||
| //redis3 = require('./bench/redis-node/redis'), | ||
@@ -8,3 +8,3 @@ //redis4 = require('./bench/redis-client'), | ||
| var clients = { 'node-redis': redis.createClient(), 'node_redis': redis2.createClient(), | ||
| var clients = { 'node-redis': redis.createClient(), /*'node_redis': redis2.createClient(),*/ | ||
| /*'redis-node': redis3.createClient(), 'redis-node-client': redis4.createClient()*/ } | ||
@@ -48,5 +48,5 @@ | ||
| for (var i = 0; i < iterations - 1; i++) { | ||
| client.lrange('bench', 0, 99); | ||
| client.lrange('bench', 0, 10); | ||
| } | ||
| client.lrange('bench', 0, 99, callback); | ||
| client.lrange('bench', 0, 10, callback); | ||
| }, | ||
@@ -53,0 +53,0 @@ hmset: function (client, callback) { |
@@ -77,3 +77,3 @@ var net = require('net'), | ||
| for (var i = 0, il = self.send_buffer.length; i < il; i++) { | ||
| if (false === self.stream.write(self.send_buffer[i])) { | ||
| if (!self.stream.writable || false === self.stream.write(self.send_buffer[i])) { | ||
| return self.send_buffer = self.send_buffer.slice(i + 1); | ||
@@ -112,3 +112,3 @@ } | ||
| var command = self.commands.shift(); | ||
| if (command[2]) command[2](null, reply); | ||
| if (command && command[2]) command[2](null, reply); | ||
| }); | ||
@@ -120,3 +120,3 @@ | ||
| error = new Error(error); | ||
| if (command[2]) command[2](error); | ||
| if (command && command[2]) command[2](error); | ||
| else self.emit('error', error); | ||
@@ -217,3 +217,3 @@ }); | ||
| // We can send this in one go. | ||
| previous += '$' + arg.length + '\r\n' + arg + '\r\n'; | ||
| previous += '$' + Buffer.byteLength(arg) + '\r\n' + arg + '\r\n'; | ||
| } else if ('number' === arg_type) { | ||
@@ -220,0 +220,0 @@ // We can send this in one go. |
| { | ||
| "name": "node-redis", | ||
| "description": "Lightweight, fast, Redis client.", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "author": "Tim Smart", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -33,3 +33,3 @@ var c = require('../').createClient(null, null, 'test'), | ||
| for (var i = 0; i < 10000; i++) { | ||
| for (var i = 0; i < 100000; i++) { | ||
| c.set('2' + i, buffer, function (error) { | ||
@@ -41,3 +41,3 @@ assert.ok(!error); | ||
| for (i = 0; i < 10000; i++) { | ||
| for (i = 0; i < 100000; i++) { | ||
| c.del('2' + i, function (error) { | ||
@@ -50,4 +50,4 @@ assert.ok(!error); | ||
| beforeExit(function () { | ||
| assert.equal(n, 10000); | ||
| assert.equal(o, 10000); | ||
| assert.equal(n, 100000); | ||
| assert.equal(o, 100000); | ||
| }); | ||
@@ -54,0 +54,0 @@ }, |
+1
-2
| { | ||
| "name": "rqueue", | ||
| "description": "A node.js implementation of RQueue, includes Worker and Queue ", | ||
| "version": "0.1.5", | ||
| "version": "0.1.6", | ||
| "author": "Tim Smart <tim@votizen.com>", | ||
| "contributors": ["Micheil Smith <micheil@votizen.com>"], | ||
| "engine": [ "node >=0.3.6" ], | ||
@@ -8,0 +7,0 @@ "main": "./", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
154317
0.01%