any-db-pool
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -53,3 +53,11 @@ var inherits = require('util').inherits | ||
this.acquire(function (err, conn) { | ||
if (err) return callback ? callback(err) : query.emit('error', err) | ||
if (err) { | ||
if (typeof params === 'function') { | ||
return params(err) | ||
} else if (callback) { | ||
return callback(err); | ||
} else { | ||
return query.emit('error', err); | ||
} | ||
} | ||
conn.query(query); | ||
@@ -56,0 +64,0 @@ self.emit('query', query) |
{ | ||
"name": "any-db-pool", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Any-DB connection pool", | ||
"main": "index.js", | ||
"repository": "", | ||
"author": "", | ||
"license": "BSD", | ||
"author": "Stephen Sugden <me@stephensugden.com>", | ||
"license": "BSD-2-Clause", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/grncdr/node-any-db-pool.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/grncdr/node-any-db-pool/issues" | ||
}, | ||
"dependencies": { | ||
@@ -10,0 +16,0 @@ "generic-pool": "~2.0.2", |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
7039
0
137
0
0