@browserless/screenshot 10.7.9 → 10.7.11

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": "10.7.9",
5
+ "version": "10.7.11",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -28,7 +28,7 @@
28
28
  "screenshot"
29
29
  ],
30
30
  "dependencies": {
31
- "@browserless/goto": "^10.7.6",
31
+ "@browserless/goto": "^10.7.10",
32
32
  "@kikobeats/time-span": "~1.0.5",
33
33
  "debug-logfmt": "~1.2.3",
34
34
  "got": "~11.8.6",
@@ -37,6 +37,7 @@
37
37
  "jimp": "~1.6.0",
38
38
  "map-values-deep": "~1.0.2",
39
39
  "mime": "~3.0.0",
40
+ "null-prototype-object": "~1.0.0",
40
41
  "p-reflect": "~2.1.0",
41
42
  "pretty-ms": "~7.0.1",
42
43
  "prism-themes": "~1.9.0",
@@ -44,7 +45,7 @@
44
45
  "svg-gradient": "~1.0.3"
45
46
  },
46
47
  "devDependencies": {
47
- "@browserless/test": "^10.7.6",
48
+ "@browserless/test": "^10.7.10",
48
49
  "ava": "5",
49
50
  "cheerio": "latest"
50
51
  },
@@ -65,5 +66,5 @@
65
66
  "timeout": "2m",
66
67
  "workerThreads": false
67
68
  },
68
- "gitHead": "a82182ec098073ab2debbf60f5db8c09c177b1c5"
69
+ "gitHead": "31b1a9322e9bf17f9b569124afcdc47775fa028b"
69
70
  }
@@ -1,10 +1,11 @@
1
1
  'use strict'
2
2
 
3
+ const NullProtoObj = require('null-prototype-object')
3
4
  const { readFile } = require('fs/promises')
4
5
  const isHttpUrl = require('is-url-http')
5
6
  const path = require('path')
6
7
 
7
- const CACHE = Object.create(null)
8
+ const CACHE = new NullProtoObj()
8
9
 
9
10
  const GET_THEME_PATH = () => require('prism-themes').themesDirectory
10
11