chrome-page-eval
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -236,2 +236,4 @@ 'use strict' | ||
destroy: async () => { | ||
const pages = await browser.pages() | ||
await Promise.all(pages.map(page => page.close())) | ||
await browser.close() | ||
@@ -257,2 +259,4 @@ } | ||
debugMe('closing chrome process') | ||
const pages = await browser.pages() | ||
await Promise.all(pages.map(page => page.close())) | ||
await browser.close() | ||
@@ -273,2 +277,4 @@ debugMe('chrome process closed') | ||
debugMe('closing chrome process') | ||
const pages = await browser.pages() | ||
await Promise.all(pages.map(page => page.close())) | ||
await browser.close() | ||
@@ -275,0 +281,0 @@ debugMe('chrome process closed') |
{ | ||
"name": "chrome-page-eval", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Evaluate a script function on a page with Chrome", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,3 +69,3 @@ # chrome-page-eval | ||
- `puppeteer` **[required]** - the exported module from [puppeteer](https://github.com/GoogleChrome/puppeteer) that your app is going to use | ||
- `launchOptions` **object** - object with [any of the launch options supported by puppeteer](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions) | ||
- properties with [any of the launch options supported by puppeteer](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions) | ||
@@ -72,0 +72,0 @@ ## Evaluate options |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
23831
430
1