Skip to content

Commit

Permalink
fix: update @asyncapi/converter to 1.5.0 version and others (#1497)
Browse files Browse the repository at this point in the history
* fix: update @asyncapi/converter to 1.5.0 version and others

* chore: update according to converter changes

---------

Co-authored-by: asyncapi-bot <[email protected]>
Co-authored-by: Ashish Padhy <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent d640047 commit 95cbd2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.23",
"@asyncapi/bundler": "^0.6.1",
"@asyncapi/converter": "^1.4.20",
"@asyncapi/converter": "^1.5.0",
"@asyncapi/diff": "^0.4.1",
"@asyncapi/generator": "^1.17.25",
"@asyncapi/modelina": "^3.7.0",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ValidationError } from '../core/errors/validation-error';
import { load } from '../core/models/SpecificationFile';
import { SpecificationFileNotFound } from '../core/errors/specification-file';
import { convert } from '@asyncapi/converter';
import type { ConvertVersion } from '@asyncapi/converter';
import type { AsyncAPIConvertVersion } from '@asyncapi/converter';
import { cyan, green } from 'picocolors';

// @ts-ignore
Expand Down Expand Up @@ -37,7 +37,7 @@ export default class Convert extends Command {
this.metricsMetadata.to_version = flags['target-version'];

// CONVERSION
convertedFile = convert(this.specFile.text(), flags['target-version'] as ConvertVersion);
convertedFile = convert(this.specFile.text(), flags['target-version'] as AsyncAPIConvertVersion);
if (convertedFile) {
if (this.specFile.getFilePath()) {
this.log(`🎉 The ${cyan(this.specFile.getFilePath())} file has been successfully converted to version ${green(flags['target-version'])}!!`);
Expand Down

0 comments on commit 95cbd2c

Please sign in to comment.