@browserless/screenshot 9.6.11 → 9.6.12

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.
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": "9.6.11",
5
+ "version": "9.6.12",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -64,5 +64,5 @@
64
64
  "timeout": "30s",
65
65
  "verbose": true
66
66
  },
67
- "gitHead": "d47d6caceb0b6a9f30cbf3025786b705cc3e8300"
67
+ "gitHead": "1af45a13ac24009bb4dd5539711258664983c237"
68
68
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  const debug = require('debug-logfmt')('browserless:screenshot')
4
4
  const isHtmlContent = require('is-html-content')
5
- const { readFile } = require('fs').promises
5
+ const { readFile } = require('fs/promises')
6
6
  const { getExtension } = require('mime')
7
7
  const prettyMs = require('pretty-ms')
8
8
  const timeSpan = require('time-span')
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { readFile } = require('fs').promises
3
+ const { readFile } = require('fs/promises')
4
4
  const isHttpUrl = require('is-url-http')
5
5
  const path = require('path')
6
6