@browserless/function 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/function
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
+ > Run abritrary JavaScript inside a browser sandbox.
9
+
10
+ See our [website](https://browserless.js.org) for more information.
11
+
12
+ ## Install
13
+
14
+ Using npm:
15
+
16
+ ```sh
17
+ npm install @browserless/function --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/function",
3
3
  "description": "Run abritrary JavaScript inside a browser sandbox",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "9.3.14-alpha.1",
5
+ "version": "9.3.15",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -29,7 +29,7 @@
29
29
  "serverless"
30
30
  ],
31
31
  "dependencies": {
32
- "@browserless/errors": "^9.3.0",
32
+ "@browserless/errors": "^9.3.15",
33
33
  "debug-logfmt": "~1.0.4",
34
34
  "deepmerge": "~4.2.2",
35
35
  "execa": "~5.1.1",
@@ -60,5 +60,5 @@
60
60
  "timeout": "2m",
61
61
  "verbose": true
62
62
  },
63
- "gitHead": "bba42d6afadb84831522db8755017bd9b1ee565b"
63
+ "gitHead": "b901fa38dd8d4f501b0b9fed5579fe0c29f5b097"
64
64
  }
package/src/index.js CHANGED
@@ -28,7 +28,7 @@ module.exports = (
28
28
  const browser = await browserless.browser()
29
29
  const browserWSEndpoint = browser.wsEndpoint()
30
30
 
31
- subprocess = execa.node(execPath)
31
+ subprocess = execa.node(execPath, { detached: process.platform !== 'win32' })
32
32
  subprocess.stderr.pipe(process.stderr)
33
33
 
34
34
  debug('spawn', { pid: subprocess.pid })