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

wyseman

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wyseman - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

test/makeschema

15

lib/dbclient.js

@@ -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

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