Skip to content

Commit

Permalink
chore(deps): Remove collapse-white-space from deps (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy authored and armandabric committed Nov 15, 2017
1 parent 39fa1c9 commit cc4db7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"react": "^0.14.8 || ^15.0.1 || ^16.0.0"
},
"dependencies": {
"collapse-white-space": "1.0.3",
"is-plain-object": "2.0.4",
"sortobject": "1.1.1",
"stringify-object": "3.2.1"
Expand Down
4 changes: 2 additions & 2 deletions src/formatter/formatComplexDataStructure.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* @flow */

import collapse from 'collapse-white-space';
import { isValidElement } from 'react';
import stringify from 'stringify-object';
import sortobject from 'sortobject';
Expand Down Expand Up @@ -41,7 +40,8 @@ export default (
});

if (inline) {
return collapse(stringifiedValue)
return stringifiedValue
.replace(/\s+/g, ' ')
.replace(/{ /g, '{')
.replace(/ }/g, '}')
.replace(/\[ /g, '[')
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

collapse-white-space@1.0.3, collapse-white-space@^1.0.0:
collapse-white-space@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.3.tgz#4b906f670e5a963a87b76b0e1689643341b6023c"

Expand Down

0 comments on commit cc4db7d

Please sign in to comment.