Comparing version 1.0.3 to 1.0.4
@@ -111,3 +111,3 @@ //Manage the connection between a User Interface and the backend database | ||
handler(msg, sender) { | ||
this.log.trace("Wyseman packet handler, msg:" + JSON.stringify(msg)) | ||
this.log.trace("Wyseman packet handler, msg:", JSON.stringify(msg)) | ||
@@ -121,5 +121,3 @@ let {id, view, action} = msg | ||
action = 'tuple' | ||
Object.assign(msg, {fields: ['obj','pkey','cols','columns'], table: 'wm.table_meta', where: {obj: view}}) | ||
//this.log.debug(" Tuple:", view, this.config.interface) | ||
if (this.config.interface && this.config.interface[view]) msg.ui = this.config.interface[view] | ||
Object.assign(msg, {fields: ['obj','pkey','cols','columns','styles','fkeys'], table: 'wm.table_meta', where: {obj: view}}) | ||
} | ||
@@ -126,0 +124,0 @@ |
{ | ||
"name": "wyseman", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "PostgreSQL Schema Manager with Javascript, Ruby, TCL API", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"tclpkg": "wmmkpkg wyseman 0.50 tcltk", | ||
"test": "mocha test/mocha/checkdb.js" | ||
"test": "mocha test/mocha/all.js" | ||
}, | ||
@@ -11,0 +11,0 @@ "keywords": [ |
//Run all tests in order | ||
require('./checkdb.js') | ||
require('./metadata.js') |
@@ -8,8 +8,4 @@ //Build test database and check it | ||
var fs = require('fs') | ||
var logger = require('util').debuglog('checkdb') | ||
var log = { | ||
trace: (...msg)=>logger(msg.join(' ')), | ||
debug: (...msg)=>logger(msg.join(' ')), | ||
error: (...msg)=>console.error(...msg), | ||
} | ||
//var logger = require('util').debuglog('checkdb') | ||
var log = new (require('../logger'))('checkdb') | ||
var dbClient = require("../../lib/dbclient.js") | ||
@@ -16,0 +12,0 @@ const dbConfig = { |
module.exports={ | ||
DatabaseName: "wysemanTestDB" | ||
DatabaseName: process.env.TEST_DB_NAME || "wysemanTestDB" | ||
} |
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
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
609775
67
526
4