@browserless/screenshot 10.7.6 → 10.7.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +3 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/screenshot",
3
3
  "description": "Take a clean screenshot of any website",
4
4
  "homepage": "https://browserless.js.org/#/?id=screenshoturl-options",
5
- "version": "10.7.6",
5
+ "version": "10.7.7",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -65,5 +65,5 @@
65
65
  "timeout": "2m",
66
66
  "workerThreads": false
67
67
  },
68
- "gitHead": "c13e129a1a20b78a0391aedc349dad90136adb6e"
68
+ "gitHead": "94347ab5501efdcac49da85f5a670821c37b5173"
69
69
  }
package/src/index.js CHANGED
@@ -48,8 +48,8 @@ const waitForElement = async (page, element) => {
48
48
  module.exports = ({ goto, ...gotoOpts }) => {
49
49
  goto = goto || createGoto(gotoOpts)
50
50
 
51
- return page =>
52
- async (
51
+ return function screenshot (page) {
52
+ return async (
53
53
  url,
54
54
  {
55
55
  element,
@@ -120,4 +120,5 @@ module.exports = ({ goto, ...gotoOpts }) => {
120
120
  ? screenshot
121
121
  : overlay(screenshot, { ...opts, ...overlayOpts, viewport: page.viewport() })
122
122
  }
123
+ }
123
124
  }