File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 82
82
"react-dom" : " ^0.14.8 || ^15.0.1 || ^16.0.0"
83
83
},
84
84
"dependencies" : {
85
+ "@base2/pretty-print-object" : " ^1.0.0" ,
85
86
"is-plain-object" : " 3.0.0" ,
86
87
"stringify-object" : " 3.3.0"
87
88
},
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
3
3
import { isValidElement } from 'react' ;
4
- import stringify from 'stringify -object' ;
4
+ import { prettyPrint } from '@base2/pretty-print -object' ;
5
5
import sortObject from './sortObject' ;
6
6
import parseReactElement from './../parser/parseReactElement' ;
7
7
import formatTreeNode from './formatTreeNode' ;
@@ -17,7 +17,7 @@ export default (
17
17
) : string => {
18
18
const normalizedValue = sortObject ( value ) ;
19
19
20
- const stringifiedValue = stringify ( normalizedValue , {
20
+ const stringifiedValue = prettyPrint ( normalizedValue , {
21
21
transform : ( currentObj , prop , originalResult ) => {
22
22
const currentValue = currentObj [ prop ] ;
23
23
Original file line number Diff line number Diff line change 94
94
lodash "^4.17.10"
95
95
to-fast-properties "^2.0.0"
96
96
97
+ " @base2/pretty-print-object@^1.0.0 " :
98
+ version "1.0.0"
99
+ resolved "https://registry.yarnpkg.com/@base2/pretty-print-object/-/pretty-print-object-1.0.0.tgz#860ce718b0b73f4009e153541faff2cb6b85d047"
100
+ integrity sha512-4Th98KlMHr5+JkxfcoDT//6vY8vM+iSPrLNpHhRyLx2CFYi8e2RfqPLdpbnpo0Q5lQC5hNB79yes07zb02fvCw==
101
+
97
102
" @commitlint/cli@7.6.1 " :
98
103
version "7.6.1"
99
104
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-7.6.1.tgz#a93cf995082831999937f6d5ec1a582c8fc0393a"
You can’t perform that action at this time.
0 commit comments