@measurequick/measurequick-report-generator 1.2.151 → 1.2.152
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/index.js +2 -1
- package/package.json +1 -1
- package/report-gen-scripts/classic-report.js +5 -3
package/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export function getReport(payload) {
|
|
|
22
22
|
case "VitalsCoolingReport": return vitalsCoolingReport.getReport(payload, false);
|
|
23
23
|
case "VitalsHeatingReport": return vitalsHeatingReport.getReport(payload, false);
|
|
24
24
|
case "BluVacReport": return bluvacReport.getReport(payload);
|
|
25
|
-
case "ClassicReport": return classicReport.getReport(payload);
|
|
25
|
+
//case "ClassicReport": return classicReport.getReport(payload);
|
|
26
|
+
case "ClassicReport": return await Task.Run(() => classicReport.getReport(payload));
|
|
26
27
|
}
|
|
27
28
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import * as base64 from '../base-64/icons.js';
|
|
|
4
4
|
let doc, globalVars, acrConnect, projectObj, test_name, testObj, template, equipObj, siteObj, imageMap, cloud_generation, testName, units, companyLogo, profileImage;
|
|
5
5
|
|
|
6
6
|
export function getReport(payload) {
|
|
7
|
-
|
|
7
|
+
try {
|
|
8
8
|
let jsPDF = require('jspdf');
|
|
9
9
|
projectObj = payload.projectObj;
|
|
10
10
|
test_name = null;
|
|
@@ -3987,8 +3987,10 @@ export function getReport(payload) {
|
|
|
3987
3987
|
printText('The cooling efficiency is verified to test your unit’s actual electrical consumption compared to the relative efficiency of properly installed modern cooling equipment.', y, 'normal', fs);
|
|
3988
3988
|
}
|
|
3989
3989
|
|
|
3990
|
-
return
|
|
3991
|
-
})
|
|
3990
|
+
return doc.output('datauristring');
|
|
3991
|
+
} catch (error) {
|
|
3992
|
+
return error;
|
|
3993
|
+
}
|
|
3992
3994
|
}
|
|
3993
3995
|
|
|
3994
3996
|
function hasPhotos(photos) {
|