Skip to content

Commit

Permalink
Merge pull request #227 from kumavis/fast-deep-equal
Browse files Browse the repository at this point in the history
Replace deep-equal with fast-deep-equal
  • Loading branch information
warpech committed Jun 28, 2019
2 parents 476caa8 + 9fe3aea commit eac6f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
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"
}
}
6 changes: 1 addition & 5 deletions src/core.ts
Expand Up @@ -5,11 +5,7 @@
*/
declare var require: any;

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

export const JsonPatchError = PatchError;
Expand Down

0 comments on commit eac6f09

Please sign in to comment.