tuain-form-manager 1.1.20 → 1.1.21
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/lib/form-manager.js +2 -9
- package/lib/form.js +1 -1
- package/package.json +1 -1
package/lib/form-manager.js
CHANGED
|
@@ -153,24 +153,17 @@ class FormManager {
|
|
|
153
153
|
errorObj = this.errMgr.get(modErrs.formActionExec.formNotFound, errorDetail);
|
|
154
154
|
return [errorObj, null];
|
|
155
155
|
}
|
|
156
|
-
this.logger.log({
|
|
157
|
-
level: 'info',
|
|
158
|
-
label: 'FormManager',
|
|
159
|
-
action: 'executeFormAction',
|
|
160
|
-
message: `------ START FORM ACTION ${formCode} / ${actionCode} ------`
|
|
161
|
-
+ `Se da inicio a la ejecución de la acción ${actionCode} para ${formCode}`,
|
|
162
|
-
});
|
|
163
156
|
[errorObj, resultForm] = await formCustomObject.executeFormAction(actionCode);
|
|
164
157
|
this.logger.log({
|
|
165
158
|
level: 'info',
|
|
166
159
|
label: 'FormManager',
|
|
167
160
|
action: 'executeFormAction',
|
|
168
|
-
message:
|
|
161
|
+
message: `END FORM ACTION ${formCode} / ${actionCode} / ${errorObj?.errorCode ?? ''}`,
|
|
169
162
|
});
|
|
170
163
|
return [errorObj, resultForm];
|
|
171
164
|
} catch (err) {
|
|
172
165
|
const errorDetail = `Excepción no controlada: ${err.message}\n${err.stack}`
|
|
173
|
-
|
|
166
|
+
+ `------ END BY EXCEPTION FORM ACTION ${formCode} / ${actionCode} ------`;
|
|
174
167
|
this.logger.log({
|
|
175
168
|
level: 'error',
|
|
176
169
|
label: 'FormManager',
|
package/lib/form.js
CHANGED
|
@@ -497,7 +497,7 @@ class Form {
|
|
|
497
497
|
this.logger.log({
|
|
498
498
|
level: 'debug',
|
|
499
499
|
label: 'executeFormAction',
|
|
500
|
-
message: `
|
|
500
|
+
message: `START FORM ACTION ${actionCode} / ${this.formCode}/${this.formSubject ?? ''}`,
|
|
501
501
|
});
|
|
502
502
|
try {
|
|
503
503
|
errorObj = await callback(actionCode);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuain-form-manager",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "Component library to perform operations on Tuain Development Framework forms to interchange information on web or mobile applications based on the data interchange of abstract forms making trnasformation on the data upon actions required on both sides (front and back)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|