grover 1.2.7 → 1.2.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7db2892eede2403ccadf9ba0f08437a0baa981891cfa15b352a9a93540fa210e
4
- data.tar.gz: 7d1e39781fb526c53f3445545ee810d275cea55c1216b08b1b3f8135027c0d58
3
+ metadata.gz: 5073ac021055fe2d39ca21ffed39548b1db0defa1b873fc7da189a7c8e63b675
4
+ data.tar.gz: e9a8d1b23ea6a0095d1f9565293fcd5d97e539402e2b86b9b785e3c5f61f1332
5
5
  SHA512:
6
- metadata.gz: d54d14998ffe44d160b5b4586dc7a41a09f80a63a362b0745916052fc06d126b273c358992fc4a5273e6d7c2c668d18120cad4392409905de56ffa54e0850648
7
- data.tar.gz: 58c59d86aceb48f4968bcc1c0ad6bd44b8e7602450e24304da1d61249b6e529ae9614e6c9d15c1fdad1e49f8575cd6a6c282a634af24000532573a68e03f8ca1
6
+ metadata.gz: a3967dfa189c95e870a5258557fd6bfd2a595c1407ead503e3d9b2b2d1eddfcf07b1b55a5fa12bdf115caf32dabfd298e68625cf481b8f9da8cafe2f45f83f4f
7
+ data.tar.gz: e68da45a7a2646baa448913d71e8f7cf0193a805947c45575872bb51694810615d3de506d55bb03ec72ab2bc8211102fbba71cf77c18211558df7e57573d1486
@@ -104,6 +104,12 @@ const _processPage = (async (convertAction, uriOrHtml, options) => {
104
104
  launchParams.executablePath = executablePath;
105
105
  }
106
106
 
107
+ // Set launch timeout if given
108
+ const launchTimeout = options.launchTimeout; delete options.launchTimeout;
109
+ if (launchTimeout) {
110
+ launchParams.timeout = launchTimeout;
111
+ }
112
+
107
113
  // Launch the browser and create a page
108
114
  browser = await puppeteer.launch(launchParams);
109
115
  }
@@ -41,7 +41,8 @@ class Grover
41
41
 
42
42
  def fix_integer_options!
43
43
  fix_options!(
44
- 'viewport.height', 'viewport.width', 'wait_for_timeout',
44
+ 'viewport.height', 'viewport.width',
45
+ 'timeout', 'launch_timeout', 'request_timeout', 'convert_timeout', 'wait_for_timeout',
45
46
  &:to_i
46
47
  )
47
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Grover
4
- VERSION = '1.2.7'
4
+ VERSION = '1.2.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grover
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Bromwich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-06 00:00:00.000000000 Z
11
+ date: 2026-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri