fix(core): update

This commit is contained in:
2024-03-03 10:29:18 +01:00
parent 45593168b0
commit d77c104915
7 changed files with 197 additions and 63 deletions

View File

@@ -1,9 +1,10 @@
import * as plugins from './smartjson.plugins.js';
import * as bufferhandling from './bufferhandling.js';
/**
* allows you to parse a json
*/
export const parse = plugins.bufferJson.parse;
export const parse = bufferhandling.parse;
/**
*
@@ -15,7 +16,7 @@ export const stringify = (
simpleOrderArray?: string[],
optionsArg: plugins.IStableJsonTypes['Options'] = {}
): string => {
const bufferedJson = plugins.bufferJson.stringify(objArg);
const bufferedJson = bufferhandling.stringify(objArg);
objArg = JSON.parse(bufferedJson);
let returnJson = plugins.stableJson(objArg, optionsArg);
return returnJson;