@toptal/davinci-cli-shared 1.5.2-alpha-chore-upgrade-babel-core.96 → 1.5.2-alpha-fx-2755-split-it-workflow-in-two.103

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/utils/print.js +5 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-cli-shared",
3
- "version": "1.5.2-alpha-chore-upgrade-babel-core.96+0b7b1ccf",
3
+ "version": "1.5.2-alpha-fx-2755-split-it-workflow-in-two.103+e38f64c4",
4
4
  "description": "Shared CLI code and CLI engine for davinci",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,5 +20,5 @@
20
20
  "js-yaml": "^4.1.0",
21
21
  "vorpal": "^1.12.0"
22
22
  },
23
- "gitHead": "0b7b1ccfe086e0714360aa12d422257236444de6"
23
+ "gitHead": "e38f64c40fc6dbad4bff8836e797a52bc6320d29"
24
24
  }
@@ -3,19 +3,12 @@ const util = require('util')
3
3
 
4
4
  const isObject = obj => typeof obj === 'object'
5
5
  const inspectObject = obj =>
6
- util.inspect(
7
- obj,
8
- {
9
- colors: false,
10
- depth: null
11
- }
12
- )
6
+ util.inspect(obj, {
7
+ colors: false,
8
+ depth: null
9
+ })
13
10
  const prettifyObjectIfExist = args =>
14
- args.map(arg =>
15
- isObject(arg)
16
- ? inspectObject(arg)
17
- : arg
18
- )
11
+ args.map(arg => (isObject(arg) ? inspectObject(arg) : arg))
19
12
 
20
13
  const green = (...args) => {
21
14
  console.log(chalk.green(...prettifyObjectIfExist(args)))