jp-shared 1.1.11 → 1.1.13

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": "jp-shared",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/utils/index.js CHANGED
@@ -8,4 +8,5 @@ module.exports = {
8
8
  ...require("./token-utils"),
9
9
  ...require("./otp-utils"),
10
10
  ...require("./populate-utils"),
11
+ ...require("./sendInvoice-utils")
11
12
  };
@@ -15,17 +15,17 @@ const generatePDF = async (htmlContent) => {
15
15
  // const browser = await localPuppeteer.launch();
16
16
 
17
17
  //Launch browser with necessary configuration for Firebase or serverless environments
18
- const browser = await puppeteer.launch({
19
- executablePath: await chromium.executablePath, // Path to Chromium for Firebase/Serverless
20
- args: chromium.args, // Required arguments for running headless
21
- headless: chromium.headless, // Ensure headless mode is enabled
22
- });
23
-
24
- // const browser = isProduction() || isTest() ? await puppeteer.launch({
18
+ // const browser = await puppeteer.launch({
25
19
  // executablePath: await chromium.executablePath, // Path to Chromium for Firebase/Serverless
26
20
  // args: chromium.args, // Required arguments for running headless
27
21
  // headless: chromium.headless, // Ensure headless mode is enabled
28
- // }) : await localPuppeteer.launch();
22
+ // });
23
+
24
+ const browser = isProduction() || isTest() ? await puppeteer.launch({
25
+ executablePath: await chromium.executablePath, // Path to Chromium for Firebase/Serverless
26
+ args: chromium.args, // Required arguments for running headless
27
+ headless: chromium.headless, // Ensure headless mode is enabled
28
+ }) : await localPuppeteer.launch();
29
29
 
30
30
  // Create a new page in the browser
31
31
  const page = await browser.newPage();