@eventcatalog/generator-asyncapi 4.5.3 → 4.5.4
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 +52 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -292,7 +292,7 @@ import path3 from "path";
|
|
|
292
292
|
// package.json
|
|
293
293
|
var package_default = {
|
|
294
294
|
name: "@eventcatalog/generator-asyncapi",
|
|
295
|
-
version: "4.5.
|
|
295
|
+
version: "4.5.4",
|
|
296
296
|
description: "AsyncAPI generator for EventCatalog",
|
|
297
297
|
scripts: {
|
|
298
298
|
build: "tsup",
|
|
@@ -330,7 +330,7 @@ var package_default = {
|
|
|
330
330
|
dependencies: {
|
|
331
331
|
"@asyncapi/avro-schema-parser": "^3.0.24",
|
|
332
332
|
"@asyncapi/parser": "^3.4.0",
|
|
333
|
-
"@eventcatalog/sdk": "^2.
|
|
333
|
+
"@eventcatalog/sdk": "^2.8.3",
|
|
334
334
|
chalk: "^4",
|
|
335
335
|
"fs-extra": "^11.2.0",
|
|
336
336
|
glob: "^11.0.0",
|
|
@@ -2720,6 +2720,8 @@ var optionsSchema = z.object({
|
|
|
2720
2720
|
draft: z.boolean().optional(),
|
|
2721
2721
|
name: z.string().optional(),
|
|
2722
2722
|
summary: z.string().optional(),
|
|
2723
|
+
writesTo: z.array(z.object({ id: z.string(), version: z.string().optional() })).optional(),
|
|
2724
|
+
readsFrom: z.array(z.object({ id: z.string(), version: z.string().optional() })).optional(),
|
|
2723
2725
|
owners: z.array(z.string()).optional(),
|
|
2724
2726
|
generateMarkdown: z.function().args(
|
|
2725
2727
|
z.object({
|
|
@@ -3099,7 +3101,9 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
3099
3101
|
...repository && { repository },
|
|
3100
3102
|
...styles2 && { styles: styles2 },
|
|
3101
3103
|
...isServiceMarkedAsDraft && { draft: true },
|
|
3102
|
-
...attachments && { attachments }
|
|
3104
|
+
...attachments && { attachments },
|
|
3105
|
+
...service.writesTo && { writesTo: service.writesTo },
|
|
3106
|
+
...service.readsFrom && { readsFrom: service.readsFrom }
|
|
3103
3107
|
},
|
|
3104
3108
|
{
|
|
3105
3109
|
path: servicePath,
|