Skip to content

Commit

Permalink
Merge pull request #642 from softrams/dependabot/npm_and_yarn/develop…
Browse files Browse the repository at this point in the history
…/puppeteer-8.0.0

chore(deps): bump puppeteer from 5.5.0 to 8.0.0
  • Loading branch information
Whamo12 committed Mar 1, 2021
2 parents d9d4f26 + daaf8d2 commit 0df0383
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 24 deletions.
62 changes: 40 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"node-fetch": "^2.6.1",
"nodemailer": "^6.5.0",
"password-validator": "^5.1.1",
"puppeteer": "^5.5.0",
"puppeteer": "^8.0.0",
"reflect-metadata": "^0.1.13",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/puppeteer.utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const generateReport = async (req: UserRequest, res: Response) => {
localStorage.setItem('AUTH_TOKEN', token);
}, jwtToken);
await page.goto(url, { waitUntil: 'networkidle0' });
await page.pdf({ path: filePath, format: 'A4' });
await page.pdf({ path: filePath, format: 'a4' });
await browser.close();
const file = fs.createReadStream(filePath);
const stat = fs.statSync(filePath);
Expand Down

0 comments on commit 0df0383

Please sign in to comment.