Compare commits

...

4 Commits

Author SHA1 Message Date
cece00a9b0 5.0.10 2023-08-24 12:01:21 +02:00
e90ae7649f fix(core): update 2023-08-24 12:01:21 +02:00
70e6150708 5.0.9 2023-08-24 10:48:52 +02:00
52928e0b9b fix(core): update 2023-08-24 10:48:51 +02:00
3 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartjson",
"version": "5.0.8",
"version": "5.0.10",
"private": false,
"description": "typed json handlers",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartjson',
version: '5.0.8',
version: '5.0.10',
description: 'typed json handlers'
}

View File

@ -21,6 +21,12 @@ export const stringify = (
return returnJson;
};
export const stringifyPretty = (objectArg: any) => {
const stringified = stringify(objectArg);
const object = JSON.parse(stringified);
return JSON.stringify(object, null, 2);
}
export const stringifyBase64 = (...args: Parameters<typeof stringify>): string => {
const stringifiedResult = stringify(...args);
return plugins.smartstring.base64.encodeUri(stringifiedResult);