tango-app-api-analysis-traffic 3.1.0-alpha.4 → 3.1.0-alpha.5

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": "tango-app-api-analysis-traffic",
3
- "version": "3.1.0-alpha.4",
3
+ "version": "3.1.0-alpha.5",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1190,7 +1190,11 @@ const overallChart = async ( data ) => {
1190
1190
  // let chartImagePath = path.resolve( __dirname, 'emailchart-image.png' );
1191
1191
  // console.log( 'Chart Image Path:', chartImagePath );
1192
1192
 
1193
- const browser = await puppeteer.launch( { headless: true } );
1193
+ // const browser = await puppeteer.launch( { headless: true } );
1194
+ const browser = await puppeteer.launch( {
1195
+ args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
1196
+ headless: true,
1197
+ } );
1194
1198
  const page = await browser.newPage();
1195
1199
 
1196
1200
  const chartHtmlContent = `
@@ -1305,7 +1309,11 @@ const overallChart = async ( data ) => {
1305
1309
  const overallHourlyChart = async ( data ) => {
1306
1310
  console.log( 'Generating overallHourlyChart heatmap chart...' );
1307
1311
 
1308
- const browser = await puppeteer.launch( { headless: true } );
1312
+ // const browser = await puppeteer.launch( { headless: true } );
1313
+ const browser = await puppeteer.launch( {
1314
+ args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
1315
+ headless: true,
1316
+ } );
1309
1317
  const page = await browser.newPage();
1310
1318
 
1311
1319
  const chartHtmlContent = `
@@ -1478,7 +1486,11 @@ const overallHourlyChart = async ( data ) => {
1478
1486
  const footfallTrend = async ( data ) => {
1479
1487
  console.log( 'Generating footfallTrend footfall chart...' );
1480
1488
 
1481
- const browser = await puppeteer.launch( { headless: true } );
1489
+ // const browser = await puppeteer.launch( { headless: true } );
1490
+ const browser = await puppeteer.launch( {
1491
+ args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
1492
+ headless: true,
1493
+ } );
1482
1494
  const page = await browser.newPage();
1483
1495
 
1484
1496
  const chartHtmlContent = `