fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-19 13:50:06 +01:00
parent 969b892ed8
commit e38ccd221a
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -119,11 +119,15 @@ export const deepEqualObjects = (object1: any, object2: any): boolean => {
export const deepEqualJsonLStrings = (jsonLString1: string, jsonLString2: string): boolean => {
const firstArray = [];
jsonLString1.split('\n').forEach((line) => {
if (line) {
firstArray.push(parse(line));
}
});
const secondArray = [];
jsonLString2.split('\n').forEach((line) => {
if (line) {
secondArray.push(parse(line));
}
});
return deepEqualObjects(firstArray, secondArray);
}