pangea-server 3.3.126 → 3.3.128

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.
@@ -141,7 +141,8 @@ class Arca {
141
141
  const month = String(localDate.getMonth() + 1).padStart(2, '0');
142
142
  const year = localDate.getFullYear();
143
143
  const issueDate = `${day}/${month}/${year}`;
144
- const caeDueDate = `${res.CAEFchVto.slice(6, 8)}/${res.CAEFchVto.slice(4, 6)}/${res.CAEFchVto.slice(0, 4)}`;
144
+ const caeDateStr = String(res.CAEFchVto);
145
+ const caeDueDate = `${caeDateStr.slice(6, 8)}/${caeDateStr.slice(4, 6)}/${caeDateStr.slice(0, 4)}`;
145
146
  const timestamp = localDate
146
147
  .toISOString()
147
148
  .replace(/[-:T.]/g, '')
@@ -199,7 +200,7 @@ class Arca {
199
200
  }
200
201
  catch (pdfErr) {
201
202
  (0, helpers_1.printDanger)('arca', 'Error creating PDF (voucher was created)');
202
- console.log(pdfErr);
203
+ console.log(JSON.stringify(pdfErr.data || pdfErr, null, 2));
203
204
  }
204
205
  (0, helpers_1.printSuccess)('arca', 'Voucher created successfully');
205
206
  console.log('params:');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.126",
4
+ "version": "3.3.128",
5
5
  "files": [
6
6
  "dist"
7
7
  ],