fix(core): update

This commit is contained in:
2019-05-05 19:01:19 +02:00
parent a5b9bbd376
commit 6e2c86dbb4
5 changed files with 229 additions and 154 deletions

View File

@ -6,7 +6,9 @@ export class Smartjson {
// ======
static parse = JSON.parse;
static stringify = plugins.stableJson;
static stringify = async (objArg: any, optionsArg: plugins.stableJson.Options) => {
return plugins.stableJson(objArg, optionsArg)
};
// ========
// INSTANCE

View File

@ -1,5 +1,5 @@
import * as lodash from 'lodash';
import * as stableJson from 'fast-json-stable-stringify';
import stableJson from 'fast-json-stable-stringify';
export {
lodash,