backend-plus 2.5.2-betha.30 → 2.5.2-betha.32

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.
@@ -510,6 +510,7 @@ export interface AppConfig {
510
510
  results: boolean // if query results must be included in full db logs
511
511
  }
512
512
  session: boolean // if all session activity must be logged
513
+ "pass-migration"?: boolean
513
514
  }
514
515
  devel: {
515
516
  delay: number // msec avg random delay in API responses (to emulate slow nets)
@@ -1265,9 +1265,9 @@ AppBackend.prototype.start = function start(opts){
1265
1265
  }
1266
1266
  }
1267
1267
  if(needsMigration){
1268
- console.log('Ejecutando migración a SCRAM...');
1268
+ if (be.config.log["pass-migration"]) console.log('Ejecutando migración a SCRAM...');
1269
1269
  await updatePassword({client, username, password, setUpdateDate:false, errorIfNoResult:true});
1270
- console.log('Migración completada.');
1270
+ if (be.config.log["pass-migration"]) console.log('Migración completada.');
1271
1271
  }
1272
1272
  }
1273
1273
  //continua validando
@@ -1567,7 +1567,6 @@ AppBackend.prototype.checkDatabaseStructure = async function checkDatabaseStruct
1567
1567
  WHERE routine_schema in (${be.config.db.search_path.map(path => be.db.quoteLiteral(path)).join(', ')})
1568
1568
  `).fetchAll();
1569
1569
  var sqlRoutines = likeAr.createIndex(sql_routines, 'routine_name');
1570
- console.log(sqlRoutines)
1571
1570
  var set_app_user_RoutineType = sqlRoutines.set_app_user?.routine_type || 'inexsistente';
1572
1571
  if (set_app_user_RoutineType != 'PROCEDURE') {
1573
1572
  throw new Error('ERROR en la DB: set_app_user no es un PROCEDURE es ' + set_app_user_RoutineType);
@@ -2149,12 +2148,12 @@ AppBackend.prototype.addUnloggedServices = function addUnloggedServices(mainApp,
2149
2148
  })
2150
2149
  }
2151
2150
  })
2151
+ promise.catch(err=>{
2152
+ console.log('error in /new-password');
2153
+ console.log(err);
2154
+ })
2152
2155
  }
2153
2156
  res.redirect(Path.posix.join(baseUrl, be.config.login.forget?.urlPathOk+'?result'+resultCode));
2154
- promise.catch(err=>{
2155
- console.log('error in /new-password');
2156
- console.log(err);
2157
- })
2158
2157
  })
2159
2158
  mainApp.get(Path.posix.join(baseUrl,'/new-pass'), function(req,res,next){
2160
2159
  var resultCode;
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.5.2-betha.30",
4
+ "version": "2.5.2-betha.32",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -34,7 +34,7 @@
34
34
  "backend-skins": "^0.1.15",
35
35
  "best-globals": "^2.0.2",
36
36
  "big.js": "^7.0.1",
37
- "body-parser": "^2.2.0",
37
+ "body-parser": "^2.2.1",
38
38
  "cast-error": "^0.1.2",
39
39
  "castellano": "^0.1.4",
40
40
  "connect-pg-simple": "^10.0.0",
@@ -42,10 +42,10 @@
42
42
  "cors": "^2.8.5",
43
43
  "dialog-promise": "^0.10.2",
44
44
  "discrepances": "^0.2.9",
45
- "express": "^5.1.0",
45
+ "express": "^5.2.1",
46
46
  "express-session": "^1.18.2",
47
47
  "express-useragent": "^2.0.2",
48
- "fs-extra": "^11.3.2",
48
+ "fs-extra": "^11.3.3",
49
49
  "js-to-html": "^1.3.2",
50
50
  "js-yaml": "^4.1.1",
51
51
  "json4all": "^1.4.0",
@@ -56,7 +56,7 @@
56
56
  "mini-tools": "^1.13.4",
57
57
  "moment": "^2.30.1",
58
58
  "multiparty": "^4.2.3",
59
- "nodemailer": "^7.0.10",
59
+ "nodemailer": "^7.0.11",
60
60
  "numeral": "^2.0.6",
61
61
  "pg-promise-strict": "^1.4.3",
62
62
  "pg-triggers": "0.4.3",
@@ -69,7 +69,7 @@
69
69
  "serve-content": "^1.0.2",
70
70
  "session-file-store": "^1.5.0",
71
71
  "simple-git": "^3.30.0",
72
- "sql-tools": "^0.1.2",
72
+ "sql-tools": "^0.1.3",
73
73
  "stack-trace": "^0.0.10",
74
74
  "stylus": "0.64.0",
75
75
  "type-store": "^0.4.5",
@@ -79,13 +79,13 @@
79
79
  "devDependencies": {
80
80
  "@types/big.js": "^6.2.2",
81
81
  "@types/expect.js": "~0.3.32",
82
- "@types/express": "^5.0.5",
82
+ "@types/express": "^5.0.6",
83
83
  "@types/express-useragent": "^1.0.5",
84
84
  "@types/fs-extra": "^11.0.4",
85
85
  "@types/js-yaml": "^4.0.9",
86
86
  "@types/mocha": "^10.0.10",
87
87
  "@types/multiparty": "~4.2.1",
88
- "@types/node": "^24.10.1",
88
+ "@types/node": "^25.0.3",
89
89
  "@types/nodemailer": "^7.0.4",
90
90
  "@types/numeral": "~2.0.5",
91
91
  "@types/session-file-store": "^1.2.6",
@@ -102,8 +102,8 @@
102
102
  "kill-9": "~0.4.3",
103
103
  "mocha": "^11.7.5",
104
104
  "nyc": "^17.1.0",
105
- "puppeteer": "^24.31.0",
106
- "sinon": "^21.0.0",
105
+ "puppeteer": "^24.34.0",
106
+ "sinon": "^21.0.1",
107
107
  "supertest": "^7.1.4",
108
108
  "types.d.ts": "~0.6.22",
109
109
  "typescript": "^5.9.3",