fix(core): update
This commit is contained in:
parent
969b892ed8
commit
e38ccd221a
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartjson',
|
||||
version: '5.0.15',
|
||||
version: '5.0.16',
|
||||
description: 'typed json handlers'
|
||||
}
|
||||
|
@ -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) => {
|
||||
firstArray.push(parse(line));
|
||||
if (line) {
|
||||
firstArray.push(parse(line));
|
||||
}
|
||||
});
|
||||
const secondArray = [];
|
||||
jsonLString2.split('\n').forEach((line) => {
|
||||
secondArray.push(parse(line));
|
||||
if (line) {
|
||||
secondArray.push(parse(line));
|
||||
}
|
||||
});
|
||||
return deepEqualObjects(firstArray, secondArray);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user