Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Apr 16, 2024
1 parent d830837 commit 0a2f495
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v6.5.0

- :rocket: Add ability to ignore `dest` section in diff

### v6.4.0

- :rocket: Add ability to ignore `flow` section in diff
Expand Down
6 changes: 6 additions & 0 deletions lib/cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default class CoT {
opts = {
diffMetadata: false,
diffStaleStartTime: false,
diffDest: false,
diffFlow: false
}
): boolean {
Expand All @@ -77,6 +78,11 @@ export default class CoT {
if (!a.properties) a.properties = {};
if (!b.properties) b.properties = {};

if (!opts.diffDest) {
delete a.properties.dest;
delete b.properties.dest;
}

if (!opts.diffMetadata) {
delete a.properties.metadata;
delete b.properties.metadata;
Expand Down

0 comments on commit 0a2f495

Please sign in to comment.