Skip to content

Commit

Permalink
updates for pg and manakin.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Jun 22, 2016
1 parent c4e820d commit cbda6a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/database.js
@@ -1,7 +1,7 @@
'use strict';

var $npm = {
manakin: require('manakin'),
con: require('manakin').local,
result: require('./result'),
special: require('./special'),
context: require('./cnContext'),
Expand Down Expand Up @@ -1223,7 +1223,7 @@ function checkForDuplicates(cn, config) {
}).join('\n');
var msg = "WARNING: Creating a duplicate database object for the same connection." +
EOL + stack + EOL;
$npm.manakin.warn(msg);
$npm.con.warn(msg);
}
} else {
dbObjects[cnKey] = true;
Expand Down
6 changes: 3 additions & 3 deletions lib/events.js
@@ -1,7 +1,7 @@
'use strict';

var $npm = {
manakin: require('manakin'),
con: require('manakin').local,
main: require('./'),
utils: require('./utils')
};
Expand Down Expand Up @@ -492,9 +492,9 @@ var $events = {

/* istanbul ignore if */
if (!$npm.main.suppressErrors) {
$npm.manakin.error("Unexpected error in '" + event + "' event handler.");
$npm.con.error("Unexpected error in '" + event + "' event handler.");
if (!$npm.utils.isNull(err)) {
$npm.manakin.error(err.stack || err.message || err);
$npm.con.error(err.stack || err.message || err);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "pg-promise",
"version": "4.7.5",
"version": "4.7.6",
"description": "Promises interface for PostgreSQL",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -40,10 +40,10 @@
"npm": ">=1.4"
},
"dependencies": {
"pg": "5.x",
"pg": "5.1",
"spex": "0.4",
"pg-minify": "0.3",
"manakin": "0.2"
"manakin": "0.3"
},
"devDependencies": {
"JSONStream": "1.x",
Expand Down

0 comments on commit cbda6a0

Please sign in to comment.