grover 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grover/js/processor.js +7 -0
- data/lib/grover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afca67d672e63071ee66a65dc2d2a65e728eb06715b2c59b43cf44dce587ab1c
|
4
|
+
data.tar.gz: 50313e3201d5f1bbbf8e6d9c92147c3ddc373fbdd51145ee3315a616b69b303c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8aa164f8b52ef008c70fe7ff4918194859db0be10cee102556cc67d49fe9cf5035ee181f9dac64dce87dfa7b7295effe090b851504dd9774e33a23ecab7e15e
|
7
|
+
data.tar.gz: cd5b46accc2bbbdc5f3d149d62099c4d47c36744aa877876966680e687bfa0fc69f9ad6045c0a4b9a1e3f135c90279ffd595d526f373daddda02a5fb42db754d
|
data/lib/grover/js/processor.js
CHANGED
@@ -184,6 +184,13 @@ const _processPage = (async (convertAction, urlOrHtml, options) => {
|
|
184
184
|
await page.waitForSelector(waitForSelector, waitForSelectorOptions);
|
185
185
|
}
|
186
186
|
|
187
|
+
// If specified, wait for function
|
188
|
+
const waitForFunction = options.waitForFunction; delete options.waitForFunction;
|
189
|
+
const waitForFunctionOptions = options.waitForFunctionOptions; delete options.waitForFunctionOptions;
|
190
|
+
if (waitForFunction !== undefined) {
|
191
|
+
await page.waitForFunction(waitForFunction, waitForFunctionOptions);
|
192
|
+
}
|
193
|
+
|
187
194
|
// If specified, wait for timeout
|
188
195
|
const waitForTimeout = options.waitForTimeout; delete options.waitForTimeout;
|
189
196
|
if (waitForTimeout !== undefined) {
|
data/lib/grover/version.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Bromwich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: combine_pdf
|