@simple-reporting/base 1.0.20 → 1.0.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/dev/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "postinstall": "srl prepare"
20
20
  },
21
21
  "dependencies": {
22
- "@simple-reporting/base": "^1.0.20",
22
+ "@simple-reporting/base": "^1.0.21",
23
23
  "axios": "^1.12.2",
24
24
  "chalk": "^5.6.2",
25
25
  "exceljs": "^4.4.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-reporting/base",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Manage srl templates, build and publish",
5
5
  "bin": {
6
6
  "srl": "cli.js"
package/scripts/build.js CHANGED
@@ -562,13 +562,13 @@ async function buildPdfCustomer(customer) {
562
562
  } catch (e) {
563
563
  console.error(e);
564
564
  }
565
- jsReferences.push(join(customer, 'custom.js'));
565
+ jsReferences.push(join(customerName, 'custom.js'));
566
566
  } catch (e) {}
567
567
 
568
568
  try {
569
569
  const cssPath = join(customerTarget, 'custom.css');
570
570
  statSync(cssPath);
571
- cssReferences.push(join(customer, 'custom.css'));
571
+ cssReferences.push(join(customerName, 'custom.css'));
572
572
  } catch (e) {}
573
573
 
574
574
  try {
@@ -602,7 +602,7 @@ async function buildPdfCustomer(customer) {
602
602
  })
603
603
 
604
604
  jsReferences.forEach( p => {
605
- pdfConfig.push(` <userScripts><uri>${nsWowUrl}/${p}</uri></userScripts>`);
605
+ pdfConfig.push(` <userScripts><beforeDocumentScripts>true</beforeDocumentScripts><uri>${nsWowUrl}/${p}</uri></userScripts>`);
606
606
  })
607
607
 
608
608
  const pdfConfigContent = pdfXmlStart