Skip to content

Commit 940a413

Browse files
Chris Bakerarmandabric
authored andcommitted
fix(deps): Replace dependency stringify-object with pretty-print-object
1 parent 4af3325 commit 940a413

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0"
8383
},
8484
"dependencies": {
85+
"@base2/pretty-print-object": "^1.0.0",
8586
"is-plain-object": "3.0.0",
8687
"stringify-object": "3.3.0"
8788
},

src/formatter/formatComplexDataStructure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @flow */
22

33
import { isValidElement } from 'react';
4-
import stringify from 'stringify-object';
4+
import { prettyPrint } from '@base2/pretty-print-object';
55
import sortObject from './sortObject';
66
import parseReactElement from './../parser/parseReactElement';
77
import formatTreeNode from './formatTreeNode';
@@ -17,7 +17,7 @@ export default (
1717
): string => {
1818
const normalizedValue = sortObject(value);
1919

20-
const stringifiedValue = stringify(normalizedValue, {
20+
const stringifiedValue = prettyPrint(normalizedValue, {
2121
transform: (currentObj, prop, originalResult) => {
2222
const currentValue = currentObj[prop];
2323

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
lodash "^4.17.10"
9595
to-fast-properties "^2.0.0"
9696

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+
97102
"@commitlint/cli@7.6.1":
98103
version "7.6.1"
99104
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-7.6.1.tgz#a93cf995082831999937f6d5ec1a582c8fc0393a"

0 commit comments

Comments
 (0)