Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushmau5 committed Dec 10, 2024
1 parent fd85a25 commit 7830f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helpers/DiffHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function formatDiffOutput(

export function getDocumentMajorVersion(document: any): string {
const asyncapiVersion: string = document.asyncapi;
return asyncapiVersion.split('.')[0] as string;
return asyncapiVersion.split('.')[0];
}

export function incompatibleDocuments(
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function diff(
const diffOutput = generateDiff(firstDocument, secondDocument);
const output = categorizeChanges(standard as OverrideStandard, diffOutput);
return new AsyncAPIDiff(JSON.stringify(output), {
outputType: config.outputType || 'json',
markdownSubtype: config.markdownSubtype || 'json',
outputType: config.outputType ?? 'json',
markdownSubtype: config.markdownSubtype ?? 'json',
});
}

0 comments on commit 7830f56

Please sign in to comment.