fix(core): update
This commit is contained in:
		
							
								
								
									
										11
									
								
								ts/index.ts
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								ts/index.ts
									
									
									
									
									
								
							@@ -1,5 +1,10 @@
 | 
			
		||||
import * as plugins from './smartobject.plugins';
 | 
			
		||||
 | 
			
		||||
const fastDeepEqual = plugins.fastDeepEqual;
 | 
			
		||||
export {
 | 
			
		||||
  fastDeepEqual
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export interface IObjectCompareResult {
 | 
			
		||||
  presentInBothProperties: string[];
 | 
			
		||||
  missingProperties: string[];
 | 
			
		||||
@@ -60,8 +65,10 @@ export const compareObjects = (referenceObjectArg: any, comparisonObjectArg: any
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  for (const currentProperty of Object.keys(returnComparisonObject)) {
 | 
			
		||||
    const propertySet = new Set(returnComparisonObject[currentProperty]);
 | 
			
		||||
    const uniqueArray = [...propertySet];
 | 
			
		||||
    const onlyUnique = (value, index, self) => {
 | 
			
		||||
      return self.indexOf(value) === index;
 | 
			
		||||
    };
 | 
			
		||||
    const uniqueArray = returnComparisonObject[currentProperty].filter(onlyUnique);
 | 
			
		||||
    returnComparisonObject[currentProperty] = uniqueArray;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,6 @@
 | 
			
		||||
const removeme = {};
 | 
			
		||||
export { removeme };
 | 
			
		||||
// tslint:disable-next-line: no-submodule-imports
 | 
			
		||||
import fastDeepEqual from 'fast-deep-equal/es6';
 | 
			
		||||
 | 
			
		||||
export {
 | 
			
		||||
  fastDeepEqual
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user