@custom-js/n8n-nodes-pdf-toolkit 1.31.0 → 1.32.0

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.
@@ -176,8 +176,11 @@ class InvoiceGenerator {
176
176
  const templateString = await fetch(tpl).then(r => r.text());
177
177
  const renderedHtml = await nunjucks.renderString(
178
178
  templateString,
179
- { invoiceData: JSON.stringify(input).replace(/\\/g, '\\\\').replace(/'/g, "\\'").replace(/\n/g, '\\n') }
179
+ { invoiceData: JSON.stringify(input).replace(/\\\\/g, '\\\\\\\\').replace(/'/g, \"\\\\'\").replace(/\\n/g, '\\\\n')
180
+
181
+ }
180
182
  );
183
+ console.log('renderedHtml', renderedHtml);
181
184
  return HTML2PDF(renderedHtml);
182
185
  `;
183
186
  const options = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@custom-js/n8n-nodes-pdf-toolkit",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "This is official node for interacting with APIs from customjs.space",
5
5
  "keywords": [
6
6
  "customjs",