-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff.js
More file actions
27 lines (27 loc) · 811 Bytes
/
diff.js
File metadata and controls
27 lines (27 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
exports.__esModule = true;
var _JSONDiffPatch = __importStar(require("jsondiffpatch"));
exports.defaultOption = {
arrays: {
detectMove: true,
includeValueOnMove: false
},
textDiff: {
minLength: 1
},
propertyFilter: function (name, context) {
return name.slice(0, 1) !== '$';
},
cloneDiffValues: false
};
exports.create = function (option) {
return _JSONDiffPatch.create(option);
};
exports.CustomizedDiffPatch = exports.create(exports.defaultOption);