@eventcatalog/generator-asyncapi 6.0.1 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +49 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -6
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +4 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
package/dist/types.d.mts
CHANGED
|
@@ -5,6 +5,10 @@ interface MessageOperations {
|
|
|
5
5
|
addSchema: (id: string, schema: any, version: any, options: {
|
|
6
6
|
path: string;
|
|
7
7
|
}) => Promise<void>;
|
|
8
|
+
addExample: (id: string, example: {
|
|
9
|
+
content: string;
|
|
10
|
+
fileName: string;
|
|
11
|
+
}, version?: string) => Promise<void>;
|
|
8
12
|
collection: string;
|
|
9
13
|
}
|
|
10
14
|
type EventType = 'event' | 'command' | 'query';
|
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ interface MessageOperations {
|
|
|
5
5
|
addSchema: (id: string, schema: any, version: any, options: {
|
|
6
6
|
path: string;
|
|
7
7
|
}) => Promise<void>;
|
|
8
|
+
addExample: (id: string, example: {
|
|
9
|
+
content: string;
|
|
10
|
+
fileName: string;
|
|
11
|
+
}, version?: string) => Promise<void>;
|
|
8
12
|
collection: string;
|
|
9
13
|
}
|
|
10
14
|
type EventType = 'event' | 'command' | 'query';
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["// Define the types of operations available for each message type\nexport interface MessageOperations {\n write: (payload: any, options: any) => Promise<void>;\n version: (id: string) => Promise<any>;\n get: (id: string, version: string) => Promise<any>;\n addSchema: (id: string, schema: any, version: any, options: { path: string }) => Promise<void>;\n collection: string;\n}\n\n// Define valid event types\nexport type EventType = 'event' | 'command' | 'query';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["// Define the types of operations available for each message type\nexport interface MessageOperations {\n write: (payload: any, options: any) => Promise<void>;\n version: (id: string) => Promise<any>;\n get: (id: string, version: string) => Promise<any>;\n addSchema: (id: string, schema: any, version: any, options: { path: string }) => Promise<void>;\n addExample: (id: string, example: { content: string; fileName: string }, version?: string) => Promise<void>;\n collection: string;\n}\n\n// Define valid event types\nexport type EventType = 'event' | 'command' | 'query';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventcatalog/generator-asyncapi",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "AsyncAPI generator for EventCatalog",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@asyncapi/avro-schema-parser": "3.0.24",
|
|
32
32
|
"@asyncapi/parser": "3.6.0",
|
|
33
|
-
"@eventcatalog/sdk": "2.
|
|
33
|
+
"@eventcatalog/sdk": "2.17.4",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
35
|
"fs-extra": "^11.2.0",
|
|
36
|
-
"glob": "^
|
|
36
|
+
"glob": "^12.0.0",
|
|
37
37
|
"gray-matter": "^4.0.3",
|
|
38
38
|
"js-yaml": "^4.1.0",
|
|
39
39
|
"lodash": "^4.17.23",
|