backend-plus 1.14.0 → 1.14.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-menu.js +2 -2
- package/lib/backend-plus.js +8 -0
- package/lib/procedures-table.js +1 -1
- package/package.json +10 -10
package/for-client/my-menu.js
CHANGED
|
@@ -77,7 +77,7 @@ myOwn.wScreens.procAux = {
|
|
|
77
77
|
...addrParams,
|
|
78
78
|
autoproced:true,
|
|
79
79
|
directUrl:true,
|
|
80
|
-
...(formDef
|
|
80
|
+
...(formDef && formDef.proceedLabel ? {label} : {}),
|
|
81
81
|
...params
|
|
82
82
|
})
|
|
83
83
|
}
|
|
@@ -111,7 +111,7 @@ myOwn.wScreens.procAux = {
|
|
|
111
111
|
}
|
|
112
112
|
control.addEventListener('update', function(){
|
|
113
113
|
params[parameterDef.name] = control.getTypedValue();
|
|
114
|
-
|
|
114
|
+
myOwn.replaceAddrParams(addrParams);
|
|
115
115
|
setHref();
|
|
116
116
|
});
|
|
117
117
|
controls.push(control);
|
package/lib/backend-plus.js
CHANGED
|
@@ -251,6 +251,7 @@ AppBackend.prototype.i18n.messages.en={
|
|
|
251
251
|
oldPassDontMatch:'old password does not matchs or username is not longer valid or token is invalid',
|
|
252
252
|
passChangedSuccesfully: 'password was changed successfully',
|
|
253
253
|
passDontMatch:'passwords does not matchs or password is not long enough',
|
|
254
|
+
prefilledField1IsInConflictWithImportedField:'Prefilled field "$1" is in conclict with imported field',
|
|
254
255
|
primarKeyCantBeNull4:'error at line $1. Primary key field "$2" can not be #NULL',
|
|
255
256
|
spreadsheetProcessed:'spread sheet processed',
|
|
256
257
|
unkownHashValue4Import:'unknown # code in value import',
|
|
@@ -327,6 +328,7 @@ AppBackend.prototype.i18n.messages.es={
|
|
|
327
328
|
oldPassDontMatch:'la clave anterior no coincide o el usuario es inválido o el token está vencido',
|
|
328
329
|
passChangedSuccesfully: 'password was changed successfully',
|
|
329
330
|
passDontMatch:'las claves no coinciden o son muy cortas',
|
|
331
|
+
prefilledField1IsInConflictWithImportedField:'El valor del campo "$1" está en conflicto con el esperado',
|
|
330
332
|
primarKeyCantBeNull4:'error en la línea $1. El campo "$2" de la clave principal no puede ser #NULL',
|
|
331
333
|
spreadsheetProcessed:'hoja de datos procesada',
|
|
332
334
|
unkownHashValue4Import:'código # desconocido en la importación de un valor',
|
|
@@ -887,6 +889,12 @@ AppBackend.prototype.start = function start(opts){
|
|
|
887
889
|
var kill9 = require('kill-9');
|
|
888
890
|
mainApp.use(be.config.server["base-url"], kill9(be.config.server["kill-9"]));
|
|
889
891
|
}
|
|
892
|
+
if(be.config.server["base-url"] && be.config.server["base-url"]!='/'){
|
|
893
|
+
mainApp.get('/favicon.ico', function(req,res,next){
|
|
894
|
+
console.log('quieren el favicon')
|
|
895
|
+
MiniTools.serveFile(__dirname+'/../for-client/img/warning128.png')(req,res,next)
|
|
896
|
+
})
|
|
897
|
+
}
|
|
890
898
|
be.addUnloggedServices(mainApp, be.config.server["base-url"]);
|
|
891
899
|
var unloggedApp = await be.addProcedureServices(true);
|
|
892
900
|
if(be.config.nologin){
|
package/lib/procedures-table.js
CHANGED
|
@@ -910,7 +910,7 @@ ProcedureTables = [
|
|
|
910
910
|
return aux.fieldName === field.name;
|
|
911
911
|
});
|
|
912
912
|
if(prefilledField && prefilledField.value != value){
|
|
913
|
-
throw new Error(
|
|
913
|
+
throw new Error(be.messages.server.prefilledField1IsInConflictWithImportedField.replace('$1',prefilledField.fieldName);
|
|
914
914
|
}
|
|
915
915
|
if(field.isPk){
|
|
916
916
|
primaryKeyValues[field.isPk-1]=value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-plus",
|
|
3
3
|
"description": "Backend for typed controls",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.4",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"ajax-best-promise": "^0.3.7",
|
|
32
32
|
"backend-skins": "^0.1.15",
|
|
33
|
-
"best-globals": "^1.0.
|
|
33
|
+
"best-globals": "^1.0.1",
|
|
34
34
|
"big.js": "^6.1.1",
|
|
35
35
|
"body-parser": "^1.19.1",
|
|
36
36
|
"cast-error": "^0.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"cookie-parser": "^1.4.6",
|
|
40
40
|
"dialog-promise": "^0.9.14",
|
|
41
41
|
"discrepances": "^0.2.6",
|
|
42
|
-
"express": "^4.17.
|
|
42
|
+
"express": "^4.17.2",
|
|
43
43
|
"express-session": "^1.17.2",
|
|
44
44
|
"express-useragent": "^1.0.15",
|
|
45
45
|
"fs-extra": "^10.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@upgraded/locate-path": "^6.0.0-alfa.1",
|
|
52
52
|
"login-plus": "^1.6.2",
|
|
53
53
|
"memorystore": "^1.6.6",
|
|
54
|
-
"mini-tools": "^1.11.
|
|
54
|
+
"mini-tools": "^1.11.2",
|
|
55
55
|
"nodemailer": "^6.7.2",
|
|
56
56
|
"moment": "^2.29.1",
|
|
57
57
|
"multiparty": "^4.2.2",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"pug": "^3.0.2",
|
|
62
62
|
"read-yaml-promise": "^1.0.2",
|
|
63
63
|
"regexplicit": "^0.1.3",
|
|
64
|
-
"require-bro": "^0.
|
|
64
|
+
"require-bro": "^0.3.0",
|
|
65
65
|
"self-explain": "^0.10.22",
|
|
66
|
-
"serve-content": "^0.3.
|
|
66
|
+
"serve-content": "^0.3.17",
|
|
67
67
|
"session-file-store": "^1.5.0",
|
|
68
68
|
"sql-tools": "^0.1.0",
|
|
69
69
|
"stack-trace": "^0.0.10",
|
|
70
|
-
"stylus": "^0.
|
|
70
|
+
"stylus": "^0.56.0",
|
|
71
71
|
"type-store": "^0.2.41",
|
|
72
72
|
"typed-controls": "^0.10.0",
|
|
73
73
|
"xlsx": "^0.17.4",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@types/mocha": "^9.0.0",
|
|
84
84
|
"@types/nodemailer": "^6.4.4",
|
|
85
85
|
"@types/multiparty": "~0.0.33",
|
|
86
|
-
"@types/node": "^17.0.
|
|
86
|
+
"@types/node": "^17.0.6",
|
|
87
87
|
"@types/numeral": "~2.0.2",
|
|
88
88
|
"@types/session-file-store": "^1.2.2",
|
|
89
89
|
"@types/stack-trace": "~0.0.29",
|
|
@@ -99,10 +99,10 @@
|
|
|
99
99
|
"kill-9": "~0.4.3",
|
|
100
100
|
"mocha": "^9.1.3",
|
|
101
101
|
"nyc": "^15.1.0",
|
|
102
|
-
"puppeteer": "^13.0.
|
|
102
|
+
"puppeteer": "^13.0.1",
|
|
103
103
|
"sinon": "^12.0.1",
|
|
104
104
|
"supertest": "^6.1.6",
|
|
105
|
-
"types.d.ts": "~0.6.
|
|
105
|
+
"types.d.ts": "~0.6.6",
|
|
106
106
|
"typescript": "^4.5.4",
|
|
107
107
|
"why-is-node-running": "^2.2.0"
|
|
108
108
|
},
|