Skip to content

Commit

Permalink
UPGRADES
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 21, 2019
1 parent 5490bc0 commit 8317c7b
Show file tree
Hide file tree
Showing 3 changed files with 1,078 additions and 1,084 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,27 @@
"global": "^4.4.0",
"is-function": "^1.0.1",
"is-regex": "^1.0.4",
"is-symbol": "^1.0.2",
"is-symbol": "^1.0.3",
"isobject": "^4.0.0",
"lodash": "^4.17.15",
"memoizerific": "^1.11.3"
},
"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/preset-typescript": "^7.6.0",
"@storybook/eslint-config-storybook": "^1.0.0",
"@types/jest": "^24.0.18",
"@types/lodash": "^4.14.141",
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-typescript": "^7.7.2",
"@storybook/eslint-config-storybook": "^2.1.0",
"@types/jest": "^24.0.23",
"@types/lodash": "^4.14.149",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"common-tags": "^1.8.0",
"eslint": "^5.0.0",
"eslint": "^6.6.0",
"jest": "^24.9.0",
"prettier": "^1.18.2",
"prettier": "^1.19.1",
"regenerator-runtime": "^0.13.3",
"typescript": "^3.6.3"
"typescript": "^3.7.2"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const defaultOptions: Options = {
};

export const stringify = (data: any, options: Partial<Options> = {}) => {
const mergedOptions: Options = Object.assign({}, defaultOptions, options);
const mergedOptions: Options = { ...defaultOptions, ...options };
return JSON.stringify(data, replacer(mergedOptions), options.space);
};

Expand Down
Loading

0 comments on commit 8317c7b

Please sign in to comment.