Skip to content

Commit

Permalink
Replace deep-equal with fast-deep-equal
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis committed Jun 15, 2019
1 parent 476caa8 commit 724aa84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"bench-duplex": "node test/spec/coreBenchmark.js DUPLEX=yes && node test/spec/duplexBenchmark.js"
},
"dependencies": {
"deep-equal": "^1.0.1"
"fast-deep-equal": "^2.0.1"
}
}
5 changes: 2 additions & 3 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
*/
declare var require: any;

const equalsOptions = { strict: true };
const _equals = require('deep-equal');
const _equals = require('fast-deep-equal');
const areEquals = (a: any, b: any): boolean => {
return _equals(a, b, equalsOptions)
return _equals(a, b)
}
import { PatchError, _deepClone, isInteger, unescapePathComponent, hasUndefined } from './helpers';

Expand Down

0 comments on commit 724aa84

Please sign in to comment.