Comparing version 1.0.1 to 1.0.2
@@ -25,5 +25,5 @@ //Low level connection to PostgreSQL database | ||
this.log = { | ||
trace: msg => logger(msg), | ||
debug: msg => logger(msg), | ||
error: msg => console.error(msg) | ||
trace: (...msg) => logger(msg.join(' ')), | ||
debug: (...msg) => logger(msg.join(' ')), | ||
error: (...msg) => console.error(...msg) | ||
} | ||
@@ -42,2 +42,3 @@ } | ||
}) | ||
this.log.trace("New database client:", conf.database) | ||
} | ||
@@ -88,8 +89,8 @@ | ||
if (err) {tclient.end(); fatal(err.message); return} | ||
this.log.debug("Will create DB with name: %s", dbname) | ||
this.log.debug("Will create DB with name:", dbname) | ||
tclient.query("create database \"" + dbname + "\"", err => { //Try to create our database | ||
tclient.query("create database \"" + dbname + "\"", err => { //Try to create our database | ||
tclient.end() //Done with temporary client | ||
if (err) {fatal("Creating database " + dbname + "(" + err + ")"); return} | ||
this.log.debug("Initialize Schema:%s", this.config.schema) | ||
if (err) {fatal("Creating database " + dbname + ": (" + err + ")"); return} | ||
this.log.debug("Initialize Schema:", this.config.schema) | ||
@@ -96,0 +97,0 @@ Fs.readFile(this.config.schema, 'utf8', (err, dat) => { |
{ | ||
"name": "wyseman", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "PostgreSQL Schema Manager with Javascript, Ruby, TCL API", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"tclpkg": "wmmkpkg wyseman 0.50 tcltk", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha test/mocha/checkdb.js" | ||
}, | ||
@@ -29,5 +29,9 @@ "keywords": [ | ||
"dependencies": { | ||
"pg": "^7.5.0" | ||
"pg": "^7.5.0", | ||
"pg-format": "^1.0.4" | ||
}, | ||
"devDependencies": {} | ||
"devDependencies": { | ||
"mocha": "^5.2.0", | ||
"wyselib": "^1.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
598819
64
450
0
2
2
3
+ Addedpg-format@^1.0.4
+ Addedpg-format@1.0.4(transitive)