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