@measurequick/measurequick-report-generator 1.2.119 → 1.2.120

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.2.119",
3
+ "version": "1.2.120",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -100,12 +100,10 @@ export async function getReport(payload) {
100
100
  try {
101
101
  let correctiveMeasuresBase64 = await correctiveMeasures.getReport(payload);
102
102
  const correctiveMeasuresDoc = correctiveMeasuresBase64 ? await PDFDocument.load(util._base64ToArrayBuffer(correctiveMeasuresBase64)) : false;
103
- const [_correctiveMeasuresDoc] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [0]) : false;
103
+ let [_correctiveMeasuresDoc] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [0]) : false;
104
104
  if (correctiveMeasuresDoc.getPages().length > 1) {
105
105
  const [_correctiveMeasuresDocPage2] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [1]) : false;
106
- console.log(_correctiveMeasuresDocPage2);
107
106
  if (_correctiveMeasuresDoc && _correctiveMeasuresDocPage2) _correctiveMeasuresDoc = [_correctiveMeasuresDoc, _correctiveMeasuresDocPage2];
108
- console.log(_correctiveMeasuresDoc);
109
107
  }
110
108
  if (_correctiveMeasuresDoc) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDoc);
111
109
  } catch (e) { console.log(e) }