@browserless/cli 9.10.2 → 9.11.1

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/LICENSE.md CHANGED
File without changes
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.10.2",
5
+ "version": "9.11.1",
6
6
  "bin": {
7
7
  "browserless": "src/index.js"
8
8
  },
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "beauty-error": "~1.2.15",
35
- "browserless": "^9.10.2",
35
+ "browserless": "^9.11.1",
36
36
  "dark-mode": "~3.0.0",
37
37
  "dset": "~3.1.2",
38
38
  "mri": "~1.2.0",
@@ -51,10 +51,10 @@
51
51
  "files": [
52
52
  "src"
53
53
  ],
54
- "license": "MIT",
55
- "gitHead": "878aab8fd97879b6ab7729b4d15945a235c3a203",
56
54
  "scripts": {
57
55
  "coverage": "exit 0",
58
56
  "test": "exit 0"
59
- }
60
- }
57
+ },
58
+ "license": "MIT",
59
+ "gitHead": "27c817029945630ccaede934c8a7e9fa5c2800aa"
60
+ }
package/src/index.js CHANGED
@@ -10,6 +10,8 @@ const path = require('path')
10
10
  const mri = require('mri')
11
11
  const fs = require('fs')
12
12
 
13
+ const noop = () => {}
14
+
13
15
  const commands = fs.readdirSync(path.resolve(__dirname, 'commands'))
14
16
 
15
17
  const { _, ...flags } = mri(process.argv.slice(2), {
@@ -32,11 +34,11 @@ const cli = {
32
34
 
33
35
  const { verbose, headless } = cli.flags
34
36
 
35
- const spinner = verbose ? require('./spinner') : { start: () => {}, stop: () => {} }
37
+ const spinner = verbose ? require('./spinner') : { start: noop, stop: noop, clear: noop }
36
38
 
37
39
  process.on('SIGINT', () => {
38
40
  spinner.stop({ force: true })
39
- process.exit(1)
41
+ process.exit(130)
40
42
  })
41
43
 
42
44
  const run = async () => {