Skip to content

Commit 2b7982f

Browse files
authored
Merge pull request #3 from Throyer/docs
Docs
2 parents 9211a0b + 5f5b7bb commit 2b7982f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/Diff.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ var DiffType;
3030
var Audit = /** @class */ (function () {
3131
function Audit(_a) {
3232
var _b = _a === void 0 ? { ignore: [], options: [] } : _a, ignore = _b.ignore, options = _b.options;
33-
this.ignore = ignore;
34-
this.options = options;
33+
this.ignore = ignore !== null && ignore !== void 0 ? ignore : [];
34+
this.options = options !== null && options !== void 0 ? options : [];
3535
}
3636
Audit.prototype.diff = function (from, to) {
3737
var _this = this;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "entity-diff",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"author": "Renato Henrique",
55
"main": "dist/Diff.js",
66
"types": "dist/Diff.d.ts",

src/Diff.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export class Audit {
3636
private options: AuditKeyOptions[];
3737

3838
constructor({ ignore, options }: AuditProps = { ignore: [], options: [] }) {
39-
this.ignore = ignore;
40-
this.options = options;
39+
this.ignore = ignore ?? [];
40+
this.options = options ?? [];
4141
}
4242

4343
public diff(from: any, to: any): Diff[] {

0 commit comments

Comments
 (0)