backend-plus 2.2.4 → 2.2.6

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.
@@ -502,12 +502,6 @@ myOwn.TableConnectorLocal.prototype.getData = function getData(){
502
502
  return bestGlobals.compareForOrder(connector.def.sortColumns)(a,b);
503
503
  })
504
504
  }
505
- /*
506
- if(connector.def.sortColumns || connector.def.sortColumns == null){
507
- var ordenator=bestGlobals.compareForOrder(connector.def.sortColumns || connector.def.primaryKey.map(function(k){ return {column:k}}));
508
- return result.sort(ordenator)
509
- }
510
- */
511
505
  return result;
512
506
  })
513
507
  }).then(function(rows){
@@ -914,6 +914,10 @@ myOwn.createSmartButton = function createSmartButton(opts){
914
914
  return button;
915
915
  };
916
916
 
917
+ myOwn.registerPostInput = function registerPostInput(postInputName, postInputFunction){
918
+ TypeStore.type.text.postInputs[postInputName]=postInputFunction;
919
+ }
920
+
917
921
  return myOwn;
918
922
 
919
923
  });
@@ -373,7 +373,7 @@ export interface OptsClientPage {
373
373
  baseUrlForRelativePaths?:boolean
374
374
  }
375
375
 
376
- export type DumpOptions={complete?:boolean, skipEnance?:boolean, disableDBFunctions?:boolean}
376
+ export type DumpOptions={complete?:boolean, skipEnance?:boolean, disableDBFunctions?:boolean, commonFunsToDisable?:string[]}
377
377
 
378
378
  export interface Caches {
379
379
  procedures:Record<string, {timestamp:number, result:any}>
@@ -174,6 +174,9 @@ function tableDefAdapt(tableDef, context){
174
174
  if(resultTableDef.sortColumns){
175
175
  resultTableDef.sortColumns.map(function(sortColumn){
176
176
  sortColumn.order = sortColumn.order || 1;
177
+ if (!resultTableDef.field[sortColumn.column]) {
178
+ throw new Error("unkown column " + JSON.stringify(sortColumn.column) + " in sortColumn (or Primarykey) of " + resultTableDef.name);
179
+ }
177
180
  });
178
181
  }
179
182
  resultTableDef.tableName = resultTableDef.tableName || resultTableDef.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.2.4",
4
+ "version": "2.2.6",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -32,8 +32,8 @@
32
32
  "@upgraded/locate-path": "^6.0.0-alfa.1",
33
33
  "ajax-best-promise": "^0.4.2",
34
34
  "backend-skins": "^0.1.15",
35
- "best-globals": "^1.1.6",
36
- "big.js": "^6.2.2",
35
+ "best-globals": "^2.0.1",
36
+ "big.js": "^7.0.1",
37
37
  "body-parser": "^2.2.0",
38
38
  "cast-error": "^0.1.1",
39
39
  "castellano": "^0.1.4",
@@ -41,7 +41,7 @@
41
41
  "cookie-parser": "^1.4.7",
42
42
  "dialog-promise": "^0.10.1",
43
43
  "discrepances": "^0.2.8",
44
- "express": "^4.21.2",
44
+ "express": "^5.1.0",
45
45
  "express-session": "^1.18.1",
46
46
  "express-useragent": "^1.0.15",
47
47
  "fs-extra": "^11.3.0",
@@ -55,7 +55,7 @@
55
55
  "mini-tools": "^1.13.2",
56
56
  "moment": "^2.30.1",
57
57
  "multiparty": "^4.2.3",
58
- "nodemailer": "^6.10.0",
58
+ "nodemailer": "^7.0.3",
59
59
  "numeral": "^2.0.6",
60
60
  "pg-promise-strict": "^1.4.2",
61
61
  "pikaday": "^1.8.2",
@@ -76,13 +76,13 @@
76
76
  "devDependencies": {
77
77
  "@types/big.js": "^6.2.2",
78
78
  "@types/expect.js": "~0.3.32",
79
- "@types/express": "^5.0.1",
79
+ "@types/express": "^5.0.2",
80
80
  "@types/express-useragent": "^1.0.5",
81
81
  "@types/fs-extra": "^11.0.4",
82
82
  "@types/js-yaml": "^4.0.9",
83
83
  "@types/mocha": "^10.0.10",
84
84
  "@types/multiparty": "~4.2.1",
85
- "@types/node": "^22.14.0",
85
+ "@types/node": "^22.15.21",
86
86
  "@types/nodemailer": "^6.4.17",
87
87
  "@types/numeral": "~2.0.5",
88
88
  "@types/session-file-store": "^1.2.5",
@@ -97,11 +97,11 @@
97
97
  "karma-ie-launcher": "^1.0.0",
98
98
  "karma-mocha": "^2.0.1",
99
99
  "kill-9": "~0.4.3",
100
- "mocha": "^11.1.0",
100
+ "mocha": "^11.5.0",
101
101
  "nyc": "^17.1.0",
102
- "puppeteer": "^24.6.0",
102
+ "puppeteer": "^24.9.0",
103
103
  "sinon": "^20.0.0",
104
- "supertest": "^7.1.0",
104
+ "supertest": "^7.1.1",
105
105
  "types.d.ts": "~0.6.22",
106
106
  "typescript": "^5.8.3",
107
107
  "why-is-node-running": "^3.2.2"