Skip to content

Commit

Permalink
Merge pull request #3 from Throyer/docs
Browse files Browse the repository at this point in the history
Docs
  • Loading branch information
Throyer authored Sep 8, 2020
2 parents 9211a0b + 5f5b7bb commit 2b7982f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/Diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ var DiffType;
var Audit = /** @class */ (function () {
function Audit(_a) {
var _b = _a === void 0 ? { ignore: [], options: [] } : _a, ignore = _b.ignore, options = _b.options;
this.ignore = ignore;
this.options = options;
this.ignore = ignore !== null && ignore !== void 0 ? ignore : [];
this.options = options !== null && options !== void 0 ? options : [];
}
Audit.prototype.diff = function (from, to) {
var _this = this;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "entity-diff",
"version": "1.0.5",
"version": "1.0.6",
"author": "Renato Henrique",
"main": "dist/Diff.js",
"types": "dist/Diff.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/Diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export class Audit {
private options: AuditKeyOptions[];

constructor({ ignore, options }: AuditProps = { ignore: [], options: [] }) {
this.ignore = ignore;
this.options = options;
this.ignore = ignore ?? [];
this.options = options ?? [];
}

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

0 comments on commit 2b7982f

Please sign in to comment.