Skip to content

Commit

Permalink
fix(deps): Replace dependency stringify-object with pretty-print-object
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Baker authored and armandabric committed Sep 15, 2019
1 parent 4af3325 commit 940a413
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0"
},
"dependencies": {
"@base2/pretty-print-object": "^1.0.0",
"is-plain-object": "3.0.0",
"stringify-object": "3.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/formatter/formatComplexDataStructure.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import { isValidElement } from 'react';
import stringify from 'stringify-object';
import { prettyPrint } from '@base2/pretty-print-object';
import sortObject from './sortObject';
import parseReactElement from './../parser/parseReactElement';
import formatTreeNode from './formatTreeNode';
Expand All @@ -17,7 +17,7 @@ export default (
): string => {
const normalizedValue = sortObject(value);

const stringifiedValue = stringify(normalizedValue, {
const stringifiedValue = prettyPrint(normalizedValue, {
transform: (currentObj, prop, originalResult) => {
const currentValue = currentObj[prop];

Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
lodash "^4.17.10"
to-fast-properties "^2.0.0"

"@base2/pretty-print-object@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@base2/pretty-print-object/-/pretty-print-object-1.0.0.tgz#860ce718b0b73f4009e153541faff2cb6b85d047"
integrity sha512-4Th98KlMHr5+JkxfcoDT//6vY8vM+iSPrLNpHhRyLx2CFYi8e2RfqPLdpbnpo0Q5lQC5hNB79yes07zb02fvCw==

"@commitlint/cli@7.6.1":
version "7.6.1"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-7.6.1.tgz#a93cf995082831999937f6d5ec1a582c8fc0393a"
Expand Down

0 comments on commit 940a413

Please sign in to comment.