From 4cbf59c351db9cf5dbf648612a25efb204759e23 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Sat, 28 Nov 2020 16:04:46 +0000 Subject: [PATCH] Ignore HTTPS Errors. Allow people to use the CLI tool with their self-signed certificates. --- layout-shift-gif.js | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layout-shift-gif.js b/layout-shift-gif.js index 9d63354..735d145 100644 --- a/layout-shift-gif.js +++ b/layout-shift-gif.js @@ -77,7 +77,7 @@ const getColor = (cls) => { const createGif = async (url, device) => { // Launch puppeteer - const browser = await puppeteer.launch({ args: ['--no-sandbox'], timeout: 10000 }) + const browser = await puppeteer.launch({ ignoreHTTPSErrors: true, args: ['--no-sandbox'], timeout: 10000 }) try { const page = await browser.newPage() diff --git a/package.json b/package.json index 7964e91..b9a54a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "layout-shift-gif", - "version": "1.1.2", + "version": "1.1.3", "description": "Generates a .gif showing the layout shift events for a website.", "main": "./layout-shift-gif.js", "keywords": [ @@ -19,7 +19,7 @@ "dependencies": { "canvas": "^2.6.1", "gif-encoder-2": "^1.0.5", - "puppeteer": "^5.2.1", + "puppeteer": "^5.5.0", "yargs": "^15.4.1" }, "bin": { @@ -30,8 +30,8 @@ }, "homepage": "https://defaced.dev/tools/layout-shift-gif-generator/", "devDependencies": { - "eslint": "^7.13.0", - "eslint-config-standard": "^16.0.1", + "eslint": "^7.14.0", + "eslint-config-standard": "^16.0.2", "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1"