backend-plus 2.0.0-beta.2 → 2.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/for-client/my-tables.js
CHANGED
|
@@ -652,7 +652,7 @@ myOwn.tableGrid = function tableGrid(tableName, mainElement, opts){
|
|
|
652
652
|
if (myOwn.config.config['grid-row-retain-moved-or-deleted']) {
|
|
653
653
|
var depotsToRetain = grid.depots.filter(depot => depot.tick == tick);
|
|
654
654
|
for (depot of depotsToRetain) {
|
|
655
|
-
if (depot.tr.getAttribute('not-here')) depot.tr.removeAttribute('not-here')
|
|
655
|
+
if (depot.tr && depot.tr.getAttribute('not-here')) depot.tr.removeAttribute('not-here')
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
while (depot = depotsToDelete.pop()) {
|
package/lib/backend-plus.d.ts
CHANGED
package/lib/backend-plus.js
CHANGED
|
@@ -616,6 +616,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
616
616
|
console.log('*','express server');
|
|
617
617
|
be.server.close(/** @param {Error} err */function(err){
|
|
618
618
|
if(err){
|
|
619
|
+
console.log('*', err)
|
|
619
620
|
reject(err);
|
|
620
621
|
}else{
|
|
621
622
|
resolve();
|
|
@@ -1232,6 +1233,7 @@ AppBackend.prototype.checkDatabaseStructure = async function checkDatabaseStruct
|
|
|
1232
1233
|
alter table his.bitacora alter column id type bigint;
|
|
1233
1234
|
grant usage on schema his to ${be.config.db.user};
|
|
1234
1235
|
grant select, insert, update on his.bitacora to ${be.config.db.user};
|
|
1236
|
+
alter table his.bitacora alter column parameters_definition drop not null;
|
|
1235
1237
|
`;
|
|
1236
1238
|
throw new Error(message);
|
|
1237
1239
|
}
|
|
@@ -2595,6 +2597,9 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
|
|
|
2595
2597
|
var schema=db.quoteIdent(be.config.db.schema);
|
|
2596
2598
|
linesCreate.push("set role to "+owner+";");
|
|
2597
2599
|
linesCreate.push("drop schema if exists "+schema+' cascade;');
|
|
2600
|
+
if (be.config.install.dump["drop-his"]) {
|
|
2601
|
+
linesCreate.push("drop schema if exists his cascade;");
|
|
2602
|
+
}
|
|
2598
2603
|
linesCreate.push("create schema "+schema+';');
|
|
2599
2604
|
linesCreate.push("grant usage on schema "+schema+' to '+user+';');
|
|
2600
2605
|
linesCreate.push("create schema if not exists his;");
|
package/lib/procedures-table.js
CHANGED
|
@@ -189,6 +189,9 @@ ProcedureTables = [
|
|
|
189
189
|
var updateTarget = {}
|
|
190
190
|
for(var name in parameters.newRow){
|
|
191
191
|
var defField=mainDefTable.field[name];
|
|
192
|
+
if (!defField) {
|
|
193
|
+
throw new Error("field "+name+" does not exist in "+mainDefTable.name);
|
|
194
|
+
}
|
|
192
195
|
if(!defField.allow[action] && (!opts || !opts.forImport) && (
|
|
193
196
|
!defField.isPk ||
|
|
194
197
|
parameters.primaryKeyValues[defField.isPk-1]!=parameters.newRow[name]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-plus",
|
|
3
3
|
"description": "Backend for the anti Pareto rule",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.4",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"mini-tools": "^1.12.1",
|
|
55
55
|
"moment": "^2.29.4",
|
|
56
56
|
"multiparty": "^4.2.3",
|
|
57
|
-
"nodemailer": "^6.9.
|
|
57
|
+
"nodemailer": "^6.9.4",
|
|
58
58
|
"numeral": "^2.0.6",
|
|
59
59
|
"pg-promise-strict": "^1.3.3",
|
|
60
60
|
"pikaday": "^1.8.2",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@types/js-yaml": "^4.0.5",
|
|
82
82
|
"@types/mocha": "^10.0.1",
|
|
83
83
|
"@types/multiparty": "~0.0.33",
|
|
84
|
-
"@types/node": "^20.4.
|
|
85
|
-
"@types/nodemailer": "^6.4.
|
|
84
|
+
"@types/node": "^20.4.5",
|
|
85
|
+
"@types/nodemailer": "^6.4.9",
|
|
86
86
|
"@types/numeral": "~2.0.2",
|
|
87
87
|
"@types/session-file-store": "^1.2.2",
|
|
88
88
|
"@types/stack-trace": "~0.0.30",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"kill-9": "~0.4.3",
|
|
99
99
|
"mocha": "^10.2.0",
|
|
100
100
|
"nyc": "^15.1.0",
|
|
101
|
-
"puppeteer": "^20.
|
|
101
|
+
"puppeteer": "^20.9.0",
|
|
102
102
|
"sinon": "^15.2.0",
|
|
103
103
|
"supertest": "^6.3.3",
|
|
104
|
-
"types.d.ts": "~0.6.
|
|
104
|
+
"types.d.ts": "~0.6.16",
|
|
105
105
|
"typescript": "^5.1.6",
|
|
106
106
|
"why-is-node-running": "^2.2.2"
|
|
107
107
|
},
|