Comparing version 1.0.4 to 1.1.0
@@ -186,2 +186,3 @@ var arrayParser = require(__dirname + "/arrayParser.js"); | ||
register(17, parseByteA); | ||
register(114, JSON.parse.bind(JSON)); | ||
}; | ||
@@ -188,0 +189,0 @@ |
@@ -58,3 +58,6 @@ var url = require('url'); | ||
} | ||
return val === null ? null : val.toString(); | ||
if(!val || typeof val !== 'object') { | ||
return val === null ? null : val.toString(); | ||
} | ||
return JSON.stringify(val); | ||
}; | ||
@@ -61,0 +64,0 @@ |
{ | ||
"name": "pg", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "PostgreSQL client - pure javascript & libpq with the same API", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "make test-all connectionString=pg://postgres@localhost:5432/postgres", | ||
"test": "make test-travis connectionString=pg://postgres@localhost:5432/postgres", | ||
"prepublish": "rm -r build || (exit 0)", | ||
@@ -32,0 +32,0 @@ "install": "node-gyp rebuild || (exit 0)" |
@@ -9,3 +9,2 @@ var helper = require(__dirname + '/test-helper'); | ||
assert.emits(process, 'uncaughtException', function() { | ||
console.log('got uncaught exception') | ||
assert.equal(client.activeQuery, null, 'should remove active query even if error happens in callback'); | ||
@@ -12,0 +11,0 @@ client.query('SELECT * FROM blah', assert.success(function(result) { |
Sorry, the diff of this file is not supported yet
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
1513037
114
7137
206