Comparing version 1.0.20 to 1.0.21
{ | ||
"name": "wyselib", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "WyattERP Schema Library", | ||
@@ -31,3 +31,6 @@ "main": "lib/index.js", | ||
"mocha": "^9.1.3" | ||
}, | ||
"dependencies": { | ||
"wyseman": "^1.1.2" | ||
} | ||
} |
@@ -12,3 +12,3 @@ //Build test database schema; Run first | ||
const dbConfig = {database: TestDB, user: DBAdmin, connect: true} | ||
const SchemaList = "'{wylib,base}'" | ||
const SchemaList = "'wylib','base'" | ||
var log = Log('test-schema') | ||
@@ -20,11 +20,12 @@ | ||
before('Delete sample database if it exists', function(done) { | ||
Child.exec(`dropdb --if-exists -U ${DBAdmin} ${TestDB}`, (err, out) => done()) | ||
Child.exec(`dropdb --if-exists -U ${DBAdmin} ${TestDB}`, (e) => done(e)) | ||
}) | ||
before('Build schema database', function(done) { | ||
Child.exec("wyseman objects text defs init", {cwd: __dirname}, (e,o) => {if (e) done(e); done()}) | ||
this.timeout(4000) //Build may be a little slow | ||
Child.exec("wyseman objects text defs init", {cwd: __dirname}, (e) => {done(e)}) | ||
}) | ||
before('Connect to schema database', function(done) { | ||
db = new DbClient(dbConfig, ()=>{}, ()=>{ | ||
db = new DbClient(dbConfig, null, ()=>{ | ||
log.debug("Connected to DB"); | ||
@@ -35,6 +36,6 @@ done() | ||
it('should have 9 wyseman tables built', function(done) { | ||
it('Should have 9 wyseman tables built', function(done) { | ||
let sql = "select * from pg_tables where schemaname = 'wm'" | ||
db.query(sql, null, (e, res) => {if (e) done(e) | ||
log.debug("Tables:", res.rows) | ||
//log.debug("Tables:", res.rows) | ||
assert.equal(res.rows.length, 9) | ||
@@ -45,3 +46,3 @@ done() | ||
it('should have 13 wyselib tables built', function(done) { | ||
it('Should have 13 wyselib tables built', function(done) { | ||
let sql = "select * from pg_tables where schemaname = 'base'" | ||
@@ -54,6 +55,6 @@ db.query(sql, null, (e, res) => {if (e) done(e) | ||
it('should have expected wyselib column text descriptions', function(done) { | ||
it('Should have expected wyselib column text descriptions', function(done) { | ||
let sql = "select * from wm.column_text where ct_sch = 'base'" | ||
db.query(sql, null, (e, res) => {if (e) done(e) | ||
assert.equal(res.rows.length, 176) | ||
assert.equal(res.rows.length, 172) | ||
done() | ||
@@ -80,4 +81,6 @@ }) | ||
it('check for undocumented tables', function(done) { | ||
let sql = `select sch,tab from wm.table_lang where language = 'en' and help is null and sch in (${SchemaList}) order by 1,2` | ||
let sql = `select sch,tab from wm.table_lang where help is null and sch in (${SchemaList}) order by 1,2` | ||
//log.debug("Sql:", sql) | ||
db.query(sql, (e, res) => {if (e) done(e) | ||
//log.debug("res:", res.rows ? JSON.stringify(res.rows) : null) | ||
assert.equal(res.rows.length, 0) | ||
@@ -89,4 +92,6 @@ done() | ||
it('check for undocumented columns', function(done) { | ||
let sql = `select sch,tab,col from wm.column_lang where language = 'en' and help is null and sch in (${SchemaList}) order by 1,2` | ||
let sql = `select sch,tab,col from wm.column_lang where help is null and sch in (${SchemaList}) order by 1,2` | ||
//log.debug("Sql:", sql) | ||
db.query(sql, (e, res) => {if (e) done(e) | ||
//log.debug("res:", res) | ||
assert.equal(res.rows.length, 0) | ||
@@ -93,0 +98,0 @@ done() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1101470
382
4
1
+ Addedwyseman@^1.1.2
+ Added@colors/colors@1.6.0(transitive)
+ Added@dabh/diagnostics@2.0.3(transitive)
+ Added@types/triple-beam@1.3.5(transitive)
+ Added@zxing/text-encoding@0.9.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedb64-lite@1.4.0(transitive)
+ Addedb64u-lite@1.1.0(transitive)
+ Addedbase-64@0.1.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedcolorspace@1.1.4(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedenabled@2.0.0(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.1.1(transitive)
+ Addedfecha@4.2.3(transitive)
+ Addedfn.name@1.1.0(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-arguments@1.2.0(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-generator-function@1.1.0(transitive)
+ Addedis-regex@1.2.1(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedis-typed-array@1.1.15(transitive)
+ Addedkuler@2.0.0(transitive)
+ Addedlogform@2.7.0(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedone-time@1.0.0(transitive)
+ Addedpg@8.13.1(transitive)
+ Addedpg-cloudflare@1.1.1(transitive)
+ Addedpg-connection-string@2.7.0(transitive)
+ Addedpg-format@1.0.4(transitive)
+ Addedpg-int8@1.0.1(transitive)
+ Addedpg-pool@3.7.0(transitive)
+ Addedpg-protocol@1.7.0(transitive)
+ Addedpg-types@2.2.0(transitive)
+ Addedpgpass@1.0.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedpostgres-array@2.0.0(transitive)
+ Addedpostgres-bytea@1.0.0(transitive)
+ Addedpostgres-date@1.0.7(transitive)
+ Addedpostgres-interval@1.2.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-regex-test@1.1.0(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedsplit2@4.2.0(transitive)
+ Addedstack-trace@0.0.10(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtext-hex@1.0.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtriple-beam@1.4.1(transitive)
+ Addedutil@0.12.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedweb-encoding@1.1.5(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwhich-typed-array@1.1.18(transitive)
+ Addedwinston@3.17.0(transitive)
+ Addedwinston-transport@4.9.0(transitive)
+ Addedws@7.5.10(transitive)
+ Addedwyseman@1.1.13(transitive)
+ Addedxtend@4.0.2(transitive)