backend-plus 1.14.7 → 1.14.8
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 +6 -1
- package/lib/backend-plus.js +3 -3
- package/package.json +6 -6
package/for-client/my-tables.js
CHANGED
|
@@ -2717,6 +2717,9 @@ myOwn.getReference = function getReference(referenceName, opts){
|
|
|
2717
2717
|
getLabel: function getLabel(row){
|
|
2718
2718
|
return this.getLabels(row).join(', ');
|
|
2719
2719
|
},
|
|
2720
|
+
getImage: function getImage(row){
|
|
2721
|
+
return row.image?'img/'+row.image:'';
|
|
2722
|
+
},
|
|
2720
2723
|
fixedFields:[]
|
|
2721
2724
|
},opts||{});
|
|
2722
2725
|
var reference={};
|
|
@@ -2742,6 +2745,7 @@ myOwn.getReference = function getReference(referenceName, opts){
|
|
|
2742
2745
|
reference.getValue = opts.getValue;
|
|
2743
2746
|
reference.getLabels = opts.getLabels;
|
|
2744
2747
|
reference.getLabel = opts.getLabel;
|
|
2748
|
+
reference.getImage = opts.getImage;
|
|
2745
2749
|
return rows;
|
|
2746
2750
|
});
|
|
2747
2751
|
reference=my.references[referenceName]={
|
|
@@ -2854,7 +2858,8 @@ myOwn.ExpanderReferences={
|
|
|
2854
2858
|
var menu=rows.map(function(row){
|
|
2855
2859
|
return {
|
|
2856
2860
|
value:reference.getValue(row),
|
|
2857
|
-
labels:reference.getLabels(row,true)
|
|
2861
|
+
labels:reference.getLabels(row,true),
|
|
2862
|
+
img:reference.getImage(row)
|
|
2858
2863
|
};
|
|
2859
2864
|
});
|
|
2860
2865
|
if(typeInfo.nullable){
|
package/lib/backend-plus.js
CHANGED
|
@@ -581,7 +581,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
581
581
|
console.log("==============================================");
|
|
582
582
|
console.log("ERROR controling not index.* in privates paths");
|
|
583
583
|
console.log(err);
|
|
584
|
-
process.exit();
|
|
584
|
+
process.exit(1);
|
|
585
585
|
});
|
|
586
586
|
});
|
|
587
587
|
/** @type {Express.Application} */
|
|
@@ -1092,7 +1092,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
1092
1092
|
}
|
|
1093
1093
|
if(err.dumping){
|
|
1094
1094
|
console.log('error dumping db');
|
|
1095
|
-
process.exit(
|
|
1095
|
+
process.exit(1);
|
|
1096
1096
|
}
|
|
1097
1097
|
var mailDeAvisoDeFalla = be.sendMail({
|
|
1098
1098
|
to: be.config.mailer?.supervise?.to,
|
|
@@ -1114,7 +1114,7 @@ AppBackend.prototype.start = function start(opts){
|
|
|
1114
1114
|
},function(){
|
|
1115
1115
|
console.log('no pudo avisarse por mail')
|
|
1116
1116
|
}).finally(function(){
|
|
1117
|
-
process.exit(
|
|
1117
|
+
process.exit(1);
|
|
1118
1118
|
});
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
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.8",
|
|
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.2",
|
|
34
34
|
"big.js": "^6.1.1",
|
|
35
35
|
"body-parser": "^1.19.1",
|
|
36
36
|
"cast-error": "^0.1.0",
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"stylus": "^0.56.0",
|
|
71
71
|
"type-store": "^0.2.41",
|
|
72
72
|
"typed-controls": "^0.10.0",
|
|
73
|
-
"xlsx": "^0.17.
|
|
73
|
+
"xlsx": "^0.17.5",
|
|
74
74
|
"xlsx-style": "^0.8.13"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/big.js": "^6.1.2",
|
|
78
78
|
"@types/expect.js": "~0.3.29",
|
|
79
79
|
"@types/express": "^4.17.13",
|
|
80
|
-
"@types/express-useragent": "^1.0.
|
|
80
|
+
"@types/express-useragent": "^1.0.2",
|
|
81
81
|
"@types/fs-extra": "^9.0.13",
|
|
82
82
|
"@types/js-yaml": "^4.0.5",
|
|
83
83
|
"@types/mocha": "^9.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@types/websql": "~0.0.27",
|
|
91
91
|
"esprima": "^4.0.1",
|
|
92
92
|
"expect.js": "~0.3.1",
|
|
93
|
-
"karma": "6.3.
|
|
93
|
+
"karma": "6.3.11",
|
|
94
94
|
"karma-chrome-launcher": "^3.1.0",
|
|
95
95
|
"karma-expect": "^1.1.3",
|
|
96
96
|
"karma-firefox-launcher": "^2.1.2",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"nyc": "^15.1.0",
|
|
102
102
|
"puppeteer": "^13.0.1",
|
|
103
103
|
"sinon": "^12.0.1",
|
|
104
|
-
"supertest": "^6.1
|
|
104
|
+
"supertest": "^6.2.1",
|
|
105
105
|
"types.d.ts": "~0.6.6",
|
|
106
106
|
"typescript": "^4.5.4",
|
|
107
107
|
"why-is-node-running": "^2.2.0"
|