Commit 657fa8e 1 parent 0676ea0 commit 657fa8e Copy full SHA for 657fa8e
File tree 8 files changed +581
-872
lines changed
8 files changed +581
-872
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @asyncapi/multi-parser " : patch
3
+ ---
4
+
5
+ Updated the method of importing the parser in the Nunjucks filter. Standardized the import of different parser functions.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const config: Config.InitialOptions = {
22
22
'src/**'
23
23
] ,
24
24
moduleNameMapper : {
25
- '^parserapiv3 $' : path . resolve ( __dirname , '../parser' )
25
+ '^@asyncapi/parser $' : path . resolve ( __dirname , '../parser' )
26
26
}
27
27
} ;
28
28
Original file line number Diff line number Diff line change 45
45
"@asyncapi/raml-dt-schema-parser" : " ^4.0.4" ,
46
46
"parserapiv1" : " npm:@asyncapi/parser@^2.1.0" ,
47
47
"parserapiv2" :
" npm:@asyncapi/[email protected] " ,
48
- "parserapiv3 " : " file:../parser "
48
+ "@asyncapi/parser " : " * "
49
49
},
50
50
"devDependencies" : {
51
51
"@jest/types" : " ^29.0.2" ,
Original file line number Diff line number Diff line change 1
1
import { createAsyncAPIDocument as createAsyncAPIDocumentParserV1 } from 'parserapiv1' ;
2
2
import { createAsyncAPIDocument as createAsyncAPIDocumentParserV2 } from 'parserapiv2' ;
3
- import { createAsyncAPIDocument as createAsyncAPIDocumentParserV3 } from 'parserapiv3/esm/index ' ;
3
+ import { createAsyncAPIDocument as createAsyncAPIDocumentParserV3 } from '@asyncapi/parser ' ;
4
4
5
5
import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV1 } from 'parserapiv1' ;
6
6
import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV2 } from 'parserapiv2' ;
7
- import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV3 } from 'parserapiv3/esm/index ' ;
7
+ import type { AsyncAPIDocumentInterface as AsyncAPIDocumentInterfaceParserV3 } from '@asyncapi/parser ' ;
8
8
9
9
import type { DetailedAsyncAPI as DetailedAsyncAPIParserV1 } from 'parserapiv1/esm/types' ;
10
10
import type { DetailedAsyncAPI as DetailedAsyncAPIParserV2 } from 'parserapiv2/esm/types' ;
11
- import type { DetailedAsyncAPI as DetailedAsyncAPIParserV3 } from 'parserapiv3 /esm/types' ;
11
+ import type { DetailedAsyncAPI as DetailedAsyncAPIParserV3 } from '@asyncapi/parser /esm/types' ;
12
12
13
13
export type AsyncAPIDocument = AsyncAPIDocumentInterfaceParserV1 | AsyncAPIDocumentInterfaceParserV2 | AsyncAPIDocumentInterfaceParserV3 ;
14
14
Original file line number Diff line number Diff line change 1
1
import { Parser as ParserV1 } from 'parserapiv1' ;
2
2
import { Parser as ParserV2 } from 'parserapiv2' ;
3
- import { Parser as ParserV3 } from 'parserapiv3/esm/index ' ;
3
+ import { Parser as ParserV3 } from '@asyncapi/parser ' ;
4
4
5
5
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser' ;
6
6
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser' ;
@@ -9,7 +9,7 @@ import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';
9
9
10
10
import type { ParserOptions as ParserOptionsParserV1 } from 'parserapiv1/esm/parser' ;
11
11
import type { ParserOptions as ParserOptionsParserV2 } from 'parserapiv2/esm/parser' ;
12
- import type { ParserOptions as ParserOptionsParserV3 } from 'parserapiv3 /esm/parser' ;
12
+ import type { ParserOptions as ParserOptionsParserV3 } from '@asyncapi/parser /esm/parser' ;
13
13
14
14
export type ParserOptions = ParserOptionsParserV1 | ParserOptionsParserV2 | ParserOptionsParserV3 ;
15
15
export type Options = {
Original file line number Diff line number Diff line change 1
1
2
2
import { Parser as ParserV1 } from 'parserapiv1' ;
3
3
import { Parser as ParserV2 } from 'parserapiv2' ;
4
- import { Parser as ParserV3 } from 'parserapiv3/esm/index ' ;
4
+ import { Parser as ParserV3 } from '@asyncapi/parser ' ;
5
5
6
6
import { AsyncAPIDocument , ConvertDocumentParserAPIVersion } from '../src/convert' ;
7
7
Original file line number Diff line number Diff line change 1
1
2
2
import { Parser as ParserV1 } from 'parserapiv1' ;
3
3
import { Parser as ParserV2 } from 'parserapiv2' ;
4
- import { Parser as ParserV3 } from 'parserapiv3/esm/index ' ;
4
+ import { Parser as ParserV3 } from '@asyncapi/parser ' ;
5
5
6
6
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser' ;
7
7
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser' ;
You can’t perform that action at this time.
0 commit comments