@puppeteer/browsers
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -236,3 +236,3 @@ "use strict"; | ||
} | ||
waitForLineOutput(regex, timeout) { | ||
waitForLineOutput(regex, timeout = 0) { | ||
if (!__classPrivateFieldGet(this, _Process_browserProcess, "f").stderr) { | ||
@@ -248,3 +248,3 @@ throw new Error('`browserProcess` does not have stderr.'); | ||
__classPrivateFieldGet(this, _Process_browserProcess, "f").on('error', onClose); | ||
const timeoutId = timeout ? setTimeout(onTimeout, timeout) : 0; | ||
const timeoutId = timeout > 0 ? setTimeout(onTimeout, timeout) : undefined; | ||
const cleanup = () => { | ||
@@ -251,0 +251,0 @@ if (timeoutId) { |
@@ -227,3 +227,3 @@ /** | ||
} | ||
waitForLineOutput(regex, timeout) { | ||
waitForLineOutput(regex, timeout = 0) { | ||
if (!__classPrivateFieldGet(this, _Process_browserProcess, "f").stderr) { | ||
@@ -239,3 +239,3 @@ throw new Error('`browserProcess` does not have stderr.'); | ||
__classPrivateFieldGet(this, _Process_browserProcess, "f").on('error', onClose); | ||
const timeoutId = timeout ? setTimeout(onTimeout, timeout) : 0; | ||
const timeoutId = timeout > 0 ? setTimeout(onTimeout, timeout) : undefined; | ||
const cleanup = () => { | ||
@@ -242,0 +242,0 @@ if (timeoutId) { |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Download and launch browsers", | ||
@@ -105,3 +105,3 @@ "scripts": { | ||
"proxy-agent": "6.2.1", | ||
"tar-fs": "3.0.2", | ||
"tar-fs": "3.0.3", | ||
"unbzip2-stream": "1.4.3", | ||
@@ -108,0 +108,0 @@ "yargs": "17.7.1" |
@@ -371,3 +371,3 @@ /** | ||
waitForLineOutput(regex: RegExp, timeout?: number): Promise<string> { | ||
waitForLineOutput(regex: RegExp, timeout = 0): Promise<string> { | ||
if (!this.#browserProcess.stderr) { | ||
@@ -384,3 +384,4 @@ throw new Error('`browserProcess` does not have stderr.'); | ||
this.#browserProcess.on('error', onClose); | ||
const timeoutId = timeout ? setTimeout(onTimeout, timeout) : 0; | ||
const timeoutId = | ||
timeout > 0 ? setTimeout(onTimeout, timeout) : undefined; | ||
@@ -387,0 +388,0 @@ const cleanup = (): void => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
417109
7504
+ Addedtar-fs@3.0.3(transitive)
- Removedtar-fs@3.0.2(transitive)
Updatedtar-fs@3.0.3