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

node-firebird

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-firebird - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

18

lib/index.js

@@ -409,4 +409,4 @@ var

isc_info_sql_length,
//isc_info_sql_field,
//isc_info_sql_relation,
isc_info_sql_field,
isc_info_sql_relation,
//isc_info_sql_owner,

@@ -752,3 +752,3 @@ isc_info_sql_alias,

SQLParamDouble.prototype.encode = function(data) {
if (this.value) {
if (this.value != null) {
data.addDouble(this.value);

@@ -773,3 +773,3 @@ data.addInt(0);

SQLParamString.prototype.encode = function(data) {
if (this.value) {
if (this.value != null) {
data.addText(this.value, DEFAULT_ENCODING);

@@ -795,3 +795,3 @@ data.addInt(0);

SQLParamQuad.prototype.encode = function(data) {
if (this.value) {
if (this.value != null) {
data.addInt(this.value.low);

@@ -819,3 +819,3 @@ data.addInt(this.value.high);

SQLParamDate.prototype.encode = function(data) {
if (this.value) {
if (this.value != null) {
var value = this.value.getTime() - this.value.getTimezoneOffset() * MsPerMinute;

@@ -1252,3 +1252,3 @@ var time = value % TimeCoeff;

blr.addString(1, process.env['USER'] || process.env['USERNAME'], DEFAULT_ENCODING);
blr.addString(1, process.env['USER'] || process.env['USERNAME'] || "Unknown", DEFAULT_ENCODING);
var hostname = os.hostname();

@@ -1647,3 +1647,3 @@ blr.addString(4, hostname, DEFAULT_ENCODING);

if (!(params instanceof Array)) {
if (params != undefined) {
if (params !== undefined) {
params = [params];

@@ -1654,3 +1654,3 @@ } else {

}
if (!params || params.length != input.length) {
if (params === undefined || params.length != input.length) {
throw new Error("expected parametters: " + input.length);

@@ -1657,0 +1657,0 @@ }

@@ -314,4 +314,2 @@

if (len) {
//var r = new Buffer(len);
//this.buffer.copy(r, 0, this.pos);
var r = this.buffer.slice(this.pos, this.pos + len);

@@ -328,8 +326,4 @@ this.pos += align(len);

if (len) {
//var r = new Buffer(len);
//this.buffer.copy(r, 0, this.pos);
var r = this.buffer.slice(this.pos, this.pos + len);
this.pos += align(len);
console.log(r.length);
console.log(r);
return r;

@@ -345,7 +339,9 @@ }

XdrReader.prototype.readText = function (len, encoding) {
if (len) {
if (len > 0) {
var r = this.buffer.toString(encoding, this.pos, this.pos + len);
this.pos += align(len);
return r;
} else {
return '';
}
};
{
"name": "node-firebird",
"version": "0.0.6",
"version": "0.0.7",
"description": "Firebird client - pure javascript",

@@ -5,0 +5,0 @@ "keywords": [

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