@browserless/cli 9.9.7 → 9.9.8

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 +4 -4
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@browserless/cli",
3
3
  "description": "CLI to interact with Browserless capabilities",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "9.9.7",
5
+ "version": "9.9.8",
6
6
  "bin": {
7
7
  "browserless": "src/index.js"
8
8
  },
@@ -32,15 +32,15 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "beauty-error": "~1.2.15",
35
- "browserless": "^9.9.7",
35
+ "browserless": "^9.9.8",
36
36
  "dark-mode": "~3.0.0",
37
- "exit-hook": "~2.2.1",
38
37
  "lodash": "~4.17.21",
39
38
  "meow": "~9.0.0",
40
39
  "ora": "~5.4.1",
41
40
  "picocolors": "~1.0.0",
42
41
  "pretty-bytes": "~5.6.0",
43
42
  "process-stats": "~3.7.0",
43
+ "signal-exit": "~4.0.1",
44
44
  "term-img": "~5.0.0",
45
45
  "unique-random-array": "~2.0.0"
46
46
  },
@@ -55,5 +55,5 @@
55
55
  "test": "exit 0"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "715172f624fb747fe6272977334aca2ec107cfa6"
58
+ "gitHead": "26bcbf5732cc81ca6b998f4a22060ca84225c0dd"
59
59
  }
package/src/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  const createBrowser = require('browserless')
6
6
  const beautyError = require('beauty-error')
7
- const exitHook = require('exit-hook')
7
+ const { onExit } = require('signal-exit')
8
8
  const path = require('path')
9
9
  const fs = require('fs')
10
10
 
@@ -45,7 +45,7 @@ const run = async () => {
45
45
  const browser = createBrowser({ headless })
46
46
  const browserless = await browser.createContext()
47
47
 
48
- exitHook(browser.close)
48
+ onExit(browser.close)
49
49
 
50
50
  const result = await fn({ url, browserless, opts: cli.flags })
51
51