@browserless/lighthouse 9.3.14-alpha.1 → 9.3.15

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/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @browserless/lighthouse
2
+
3
+ <h1 align="center">
4
+ <img style="width: 500px; margin:3rem 0 1.5rem;" src="https://browserless.js.org/static/logo-banner.png" alt="browserless">
5
+ <br>
6
+ </h1>
7
+
8
+ > Browserless Lighthouse integration using puppeteer.
9
+
10
+ See [lighthouse](https://browserless.js.org/#%2F%3Fid=lighthouse) section our [website](https://browserless.js.org) for more information.
11
+
12
+ ## Install
13
+
14
+ Using npm:
15
+
16
+ ```sh
17
+ npm install @browserless/lighthouse --save
18
+ ```
19
+
20
+ ## License
21
+
22
+ **browserless** © [Microlink](https://microlink.io), Released under the [MIT](https://github.com/microlinkhq/browserless/blob/master/LICENSE.md) License.<br>
23
+ Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/browserless/contributors).
24
+
25
+ The [logo](https://thenounproject.com/term/browser/288309/) has been designed by [xinh studio](https://xinh.studio).
26
+
27
+ > [microlink.io](https://microlink.io) · GitHub [@MicrolinkHQ](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/lighthouse",
3
3
  "description": "Browserless Lighthouse integration using puppeteer.",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "9.3.14-alpha.1",
5
+ "version": "9.3.15",
6
6
  "main": "src",
7
7
  "repository": {
8
8
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "stats"
25
25
  ],
26
26
  "dependencies": {
27
- "@browserless/errors": "^9.3.0",
27
+ "@browserless/errors": "^9.3.15",
28
28
  "debug-logfmt": "~1.0.4",
29
29
  "execa": "~5.1.1",
30
30
  "lighthouse": "~9.5.0",
@@ -51,5 +51,5 @@
51
51
  "timeout": "2m",
52
52
  "verbose": true
53
53
  },
54
- "gitHead": "bba42d6afadb84831522db8755017bd9b1ee565b"
54
+ "gitHead": "b901fa38dd8d4f501b0b9fed5579fe0c29f5b097"
55
55
  }
package/src/index.js CHANGED
@@ -54,7 +54,7 @@ module.exports = async (
54
54
  const browser = await browserless.browser()
55
55
  const flags = await getFlags(browser, { disableStorageReset, logLevel, output })
56
56
 
57
- subprocess = execa.node(lighthousePath)
57
+ subprocess = execa.node(lighthousePath, { detached: process.platform !== 'win32' })
58
58
  subprocess.stderr.pipe(process.stderr)
59
59
  debug('spawn', { pid: subprocess.pid })
60
60
  subprocess.send({ url, flags, config })