@browserless/capture 10.11.4 → 10.11.5

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 +11 -3
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/capture",
3
3
  "description": "Record a Puppeteer page using tabCapture API",
4
4
  "homepage": "https://browserless.js.org/#/?id=capturepage-options",
5
- "version": "10.11.4",
5
+ "version": "10.11.5",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -54,5 +54,5 @@
54
54
  "timeout": "2m",
55
55
  "workerThreads": false
56
56
  },
57
- "gitHead": "9ff2a0f0dad20d64a5c47a04a989ee77d1ee5ae8"
57
+ "gitHead": "26dbfe9e0899c3ee98c61668a4e636a51552dfad"
58
58
  }
package/src/index.js CHANGED
@@ -3,7 +3,14 @@
3
3
  const debug = require('debug-logfmt')('browserless:capture')
4
4
  const createGoto = require('@browserless/goto')
5
5
 
6
- const { DEFAULT, EXTENSION_ID, EXTENSION_PATH, QUALITIES, TYPES } = require('./constants')
6
+ const {
7
+ DEFAULT,
8
+ DEFAULT_CODEC_BY_TYPE,
9
+ EXTENSION_ID,
10
+ EXTENSION_PATH,
11
+ QUALITIES,
12
+ TYPES
13
+ } = require('./constants')
7
14
  const runCapture = require('./capture')
8
15
 
9
16
  module.exports = ({ goto, ...gotoOpts } = {}) => {
@@ -21,6 +28,7 @@ module.exports = ({ goto, ...gotoOpts } = {}) => {
21
28
 
22
29
  module.exports.extensionPath = EXTENSION_PATH
23
30
  module.exports.extensionId = EXTENSION_ID
24
- module.exports.types = TYPES
25
- module.exports.qualities = QUALITIES
31
+ module.exports.TYPES = TYPES
32
+ module.exports.QUALITIES = QUALITIES
26
33
  module.exports.DEFAULT = DEFAULT
34
+ module.exports.DEFAULT_CODEC_BY_TYPE = DEFAULT_CODEC_BY_TYPE