rethinkdbdash
Advanced tools
Comparing version 1.13.6 to 1.13.7
@@ -58,3 +58,2 @@ var net = require('net'); | ||
initBuffer.writeUInt32LE(protodef.VersionDummy.Version.V0_3, 0) | ||
self.connection.write(initBuffer); | ||
@@ -64,8 +63,6 @@ var authBuffer = new Buffer(self.authKey, 'ascii') | ||
lengthBuffer.writeUInt32LE(authBuffer.length, 0) | ||
self.connection.write(lengthBuffer); | ||
self.connection.write(authBuffer); | ||
var protocolBuffer = new Buffer(4) | ||
protocolBuffer.writeUInt32LE(protodef.VersionDummy.Protocol.JSON, 0) | ||
self.connection.write(protocolBuffer); | ||
self.connection.write(Buffer.concat([initBuffer, lengthBuffer, authBuffer, protocolBuffer])); | ||
}); | ||
@@ -368,4 +365,2 @@ self.connection.once("error", function(error) { | ||
self.connection.write(tokenBuffer); | ||
var data = new Buffer(JSON.stringify(query)); | ||
@@ -389,4 +384,3 @@ var lengthBuffer = new Buffer(4); | ||
// This will emit an error if the connection is closed | ||
self.connection.write(lengthBuffer); | ||
self.connection.write(data); | ||
self.connection.write(Buffer.concat([tokenBuffer, lengthBuffer, data])); | ||
}; | ||
@@ -393,0 +387,0 @@ |
{ | ||
"name": "rethinkdbdash", | ||
"version": "1.13.6", | ||
"version": "1.13.7", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
454883
13375