@asyncapi/cli 2.0.3 → 2.1.0

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.
@@ -9,7 +9,7 @@
9
9
  "version": "0.1.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
- "@asyncapi/glee": "^0.37.0"
12
+ "@asyncapi/glee": "^0.37.4"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/node": "^20.5.9"
@@ -90,11 +90,11 @@
90
90
  }
91
91
  },
92
92
  "node_modules/@asyncapi/generator-react-sdk": {
93
- "version": "1.0.18",
94
- "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.18.tgz",
95
- "integrity": "sha512-6pGOi1ODODtfXqe+qe1F/VNZIxMB+CIMyAUOt3dC+UE12mBmQe4VTO2VZpbu2HZ2LMG5cfkf3J6S4jJWvY9cDg==",
93
+ "version": "1.0.20",
94
+ "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.20.tgz",
95
+ "integrity": "sha512-9ShFK5RK2tprRD8NvP1SQf2wN2tUOilYFnQgBiPD5AwKmlJqjR3nZUQydfuRTHmHe5pz5lzypFx5ey3f1Mvjgg==",
96
96
  "dependencies": {
97
- "@asyncapi/parser": "^3.0.14",
97
+ "@asyncapi/parser": "^3.1.0",
98
98
  "@babel/core": "7.12.9",
99
99
  "@babel/preset-env": "^7.12.7",
100
100
  "@babel/preset-react": "^7.12.7",
@@ -178,14 +178,14 @@
178
178
  "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
179
179
  },
180
180
  "node_modules/@asyncapi/glee": {
181
- "version": "0.37.0",
182
- "resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.0.tgz",
183
- "integrity": "sha512-9v9Z/gG16mSPXlfddcd69Kv86Bl4KdSUsAvmG4x8pEQ17CBFDLWnEfM37qX12yZf6kAZ0IlMBA4VyJ5L8q65JA==",
181
+ "version": "0.37.4",
182
+ "resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.4.tgz",
183
+ "integrity": "sha512-C42lSw31LYnycpSpmDNA/akxwa7xfyeKj4myuiHwd6K9GNgAd4pa//i4hks5IOoeAnjW+/+XbVJ42Z4vuoOMPA==",
184
184
  "dependencies": {
185
185
  "@asyncapi/generator": "^1.17.25",
186
- "@asyncapi/html-template": "^2.3.5",
187
- "@asyncapi/markdown-template": "^1.6.1",
188
- "@asyncapi/parser": "^3.0.14",
186
+ "@asyncapi/html-template": "^2.3.9",
187
+ "@asyncapi/markdown-template": "^1.6.3",
188
+ "@asyncapi/parser": "^3.1.0",
189
189
  "@next/env": "^14.0.4",
190
190
  "@types/jest": "^29.5.11",
191
191
  "@types/qs": "^6.9.7",
@@ -225,12 +225,12 @@
225
225
  }
226
226
  },
227
227
  "node_modules/@asyncapi/html-template": {
228
- "version": "2.3.5",
229
- "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.5.tgz",
230
- "integrity": "sha512-NZPjg7Mc1Dxn3NnZ4uIfKdv8q+0bcF4CQeeuX5nbgsEIt/ZztePGTTLp51F6aPa/6Dowf+1ZuibpOXhhb9OKAg==",
228
+ "version": "2.3.9",
229
+ "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.9.tgz",
230
+ "integrity": "sha512-Asf+cdJoP/LkcLgU/8sl5donf8pfiVMJ2ZNcdzrjl4YHQHGJv6EEABlU3UKjDT5B96I7tFI4UjI3rSN4psseEA==",
231
231
  "dependencies": {
232
- "@asyncapi/generator-react-sdk": "^1.0.18",
233
- "@asyncapi/parser": "^3.0.14",
232
+ "@asyncapi/generator-react-sdk": "^1.0.20",
233
+ "@asyncapi/parser": "^3.1.0",
234
234
  "@asyncapi/react-component": "^1.2.13",
235
235
  "highlight.js": "10.7.3",
236
236
  "puppeteer": "^14.1.0",
@@ -240,11 +240,11 @@
240
240
  }
241
241
  },
242
242
  "node_modules/@asyncapi/markdown-template": {
243
- "version": "1.6.1",
244
- "resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.1.tgz",
245
- "integrity": "sha512-OtAtp5K2Mza6187fulCsCAvdb8GbHnzZ55+Yb54PSLnm0iabsHfBLh6bVtYS3cYXSDRxjlgb8Vdr/l4ipV/xHw==",
243
+ "version": "1.6.3",
244
+ "resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.3.tgz",
245
+ "integrity": "sha512-Ccm+O89hMA/JxvXM+kD/N2s7ziLz805tSHIqPwydBhryYpnLzKp6NmM+yXhO8MfVgYaHvhlt8maYf3tNFLtBbQ==",
246
246
  "dependencies": {
247
- "@asyncapi/generator-react-sdk": "^1.0.18",
247
+ "@asyncapi/generator-react-sdk": "^1.0.20",
248
248
  "openapi-sampler": "^1.3.0",
249
249
  "yaml": "^1.10.2"
250
250
  }
@@ -290,11 +290,11 @@
290
290
  "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
291
291
  },
292
292
  "node_modules/@asyncapi/parser": {
293
- "version": "3.0.14",
294
- "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.14.tgz",
295
- "integrity": "sha512-tC2gmKkw28PWWMcGUXHQjTfVftiZdr+FQtsfapaHh36spX9uwe13iYzkcTyCkwSJAHibtg7wvStuHsiufP8xng==",
293
+ "version": "3.1.0",
294
+ "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.1.0.tgz",
295
+ "integrity": "sha512-rUd+fsPRE68o+F3gLqk7OaBj5J5VgBiLk9eJBGEXolNmKbVd45mxJm2aBpMkphQEmYHuBvxZyiNYlSCyr1D2fA==",
296
296
  "dependencies": {
297
- "@asyncapi/specs": "^6.6.0",
297
+ "@asyncapi/specs": "^6.7.1",
298
298
  "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
299
299
  "@stoplight/json": "^3.20.2",
300
300
  "@stoplight/json-ref-readers": "^1.2.2",
@@ -455,9 +455,9 @@
455
455
  }
456
456
  },
457
457
  "node_modules/@asyncapi/specs": {
458
- "version": "6.7.0",
459
- "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.0.tgz",
460
- "integrity": "sha512-TygnAHctm0e7Y55Zy2PBjE6t/jai/txu4MZiyHkcbom9WQoC6Nl7M1M3TQQMzDrb5iLZtuRDm1GAwvawZPPn5A==",
458
+ "version": "6.7.1",
459
+ "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.1.tgz",
460
+ "integrity": "sha512-jEaW2vgAwD9GboCdO/TI1zN2k+iowL8YFYwiZwTIr4U4KDmsgo3BLypScl6Jl4+IvY9RdsWE67nuzVX7jooiqQ==",
461
461
  "dependencies": {
462
462
  "@types/json-schema": "^7.0.11"
463
463
  }
@@ -5830,9 +5830,9 @@
5830
5830
  }
5831
5831
  },
5832
5832
  "node_modules/dompurify": {
5833
- "version": "2.5.1",
5834
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.1.tgz",
5835
- "integrity": "sha512-HH391uRJXAAeelougod93W++2gECfHIVCqq+B/4znhjCgb2zVPL+iLOVnTYwejqAuNf69Ffc5ILQYdPHsZACJA=="
5833
+ "version": "2.5.5",
5834
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.5.tgz",
5835
+ "integrity": "sha512-FgbqnEPiv5Vdtwt6Mxl7XSylttCC03cqP5ldNT2z+Kj0nLxPHJH4+1Cyf5Jasxhw93Rl4Oo11qRoUV72fmya2Q=="
5836
5836
  },
5837
5837
  "node_modules/dotenv": {
5838
5838
  "version": "10.0.0",
@@ -9385,9 +9385,9 @@
9385
9385
  }
9386
9386
  },
9387
9387
  "node_modules/nwsapi": {
9388
- "version": "2.2.9",
9389
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.9.tgz",
9390
- "integrity": "sha512-2f3F0SEEer8bBu0dsNCFF50N0cTThV1nWFYcEYFZttdW0lDAoybv9cQoK7X7/68Z89S7FoRrVjP1LPX4XRf9vg=="
9388
+ "version": "2.2.10",
9389
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz",
9390
+ "integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ=="
9391
9391
  },
9392
9392
  "node_modules/object-assign": {
9393
9393
  "version": "4.1.1",
@@ -9517,9 +9517,9 @@
9517
9517
  }
9518
9518
  },
9519
9519
  "node_modules/openapi-sampler": {
9520
- "version": "1.5.0",
9521
- "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.0.tgz",
9522
- "integrity": "sha512-6aZ/C0/1Dr3NoIuEy+CcavOsH49I8x0jHjik0kOuNmT+qmBLPrDWMncIQhrd0zbsd/zCVzfb9Vn3BZGFGTLn7A==",
9520
+ "version": "1.5.1",
9521
+ "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.1.tgz",
9522
+ "integrity": "sha512-tIWIrZUKNAsbqf3bd9U1oH6JEXo8LNYuDlXw26By67EygpjT+ArFnsxxyTMjFWRfbqo5ozkvgSQDK69Gd8CddA==",
9523
9523
  "dependencies": {
9524
9524
  "@types/json-schema": "^7.0.7",
9525
9525
  "json-pointer": "0.6.2"
@@ -10417,7 +10417,7 @@
10417
10417
  "version": "14.4.1",
10418
10418
  "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-14.4.1.tgz",
10419
10419
  "integrity": "sha512-+H0Gm84aXUvSLdSiDROtLlOofftClgw2TdceMvvCU9UvMryappoeS3+eOLfKvoy4sm8B8MWnYmPhWxVFudAOFQ==",
10420
- "deprecated": "< 21.9.0 is no longer supported",
10420
+ "deprecated": "< 22.6.4 is no longer supported",
10421
10421
  "hasInstallScript": true,
10422
10422
  "dependencies": {
10423
10423
  "cross-fetch": "3.1.5",
@@ -12247,9 +12247,9 @@
12247
12247
  }
12248
12248
  },
12249
12249
  "node_modules/tough-cookie": {
12250
- "version": "4.1.3",
12251
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
12252
- "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
12250
+ "version": "4.1.4",
12251
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
12252
+ "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
12253
12253
  "dependencies": {
12254
12254
  "psl": "^1.1.33",
12255
12255
  "punycode": "^2.1.1",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "homepage": "https://github.com/asyncapi/glee-hello-world#readme",
26
26
  "dependencies": {
27
- "@asyncapi/glee": "^0.37.0"
27
+ "@asyncapi/glee": "^0.37.4"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^20.5.9"
@@ -9,7 +9,7 @@
9
9
  "version": "0.1.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
- "@asyncapi/glee": "^0.37.0"
12
+ "@asyncapi/glee": "^0.37.4"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14.15.1"
@@ -87,11 +87,11 @@
87
87
  }
88
88
  },
89
89
  "node_modules/@asyncapi/generator-react-sdk": {
90
- "version": "1.0.18",
91
- "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.18.tgz",
92
- "integrity": "sha512-6pGOi1ODODtfXqe+qe1F/VNZIxMB+CIMyAUOt3dC+UE12mBmQe4VTO2VZpbu2HZ2LMG5cfkf3J6S4jJWvY9cDg==",
90
+ "version": "1.0.20",
91
+ "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.20.tgz",
92
+ "integrity": "sha512-9ShFK5RK2tprRD8NvP1SQf2wN2tUOilYFnQgBiPD5AwKmlJqjR3nZUQydfuRTHmHe5pz5lzypFx5ey3f1Mvjgg==",
93
93
  "dependencies": {
94
- "@asyncapi/parser": "^3.0.14",
94
+ "@asyncapi/parser": "^3.1.0",
95
95
  "@babel/core": "7.12.9",
96
96
  "@babel/preset-env": "^7.12.7",
97
97
  "@babel/preset-react": "^7.12.7",
@@ -155,14 +155,14 @@
155
155
  }
156
156
  },
157
157
  "node_modules/@asyncapi/glee": {
158
- "version": "0.37.0",
159
- "resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.0.tgz",
160
- "integrity": "sha512-9v9Z/gG16mSPXlfddcd69Kv86Bl4KdSUsAvmG4x8pEQ17CBFDLWnEfM37qX12yZf6kAZ0IlMBA4VyJ5L8q65JA==",
158
+ "version": "0.37.4",
159
+ "resolved": "https://registry.npmjs.org/@asyncapi/glee/-/glee-0.37.4.tgz",
160
+ "integrity": "sha512-C42lSw31LYnycpSpmDNA/akxwa7xfyeKj4myuiHwd6K9GNgAd4pa//i4hks5IOoeAnjW+/+XbVJ42Z4vuoOMPA==",
161
161
  "dependencies": {
162
162
  "@asyncapi/generator": "^1.17.25",
163
- "@asyncapi/html-template": "^2.3.5",
164
- "@asyncapi/markdown-template": "^1.6.1",
165
- "@asyncapi/parser": "^3.0.14",
163
+ "@asyncapi/html-template": "^2.3.9",
164
+ "@asyncapi/markdown-template": "^1.6.3",
165
+ "@asyncapi/parser": "^3.1.0",
166
166
  "@next/env": "^14.0.4",
167
167
  "@types/jest": "^29.5.11",
168
168
  "@types/qs": "^6.9.7",
@@ -260,12 +260,12 @@
260
260
  }
261
261
  },
262
262
  "node_modules/@asyncapi/html-template": {
263
- "version": "2.3.5",
264
- "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.5.tgz",
265
- "integrity": "sha512-NZPjg7Mc1Dxn3NnZ4uIfKdv8q+0bcF4CQeeuX5nbgsEIt/ZztePGTTLp51F6aPa/6Dowf+1ZuibpOXhhb9OKAg==",
263
+ "version": "2.3.9",
264
+ "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-2.3.9.tgz",
265
+ "integrity": "sha512-Asf+cdJoP/LkcLgU/8sl5donf8pfiVMJ2ZNcdzrjl4YHQHGJv6EEABlU3UKjDT5B96I7tFI4UjI3rSN4psseEA==",
266
266
  "dependencies": {
267
- "@asyncapi/generator-react-sdk": "^1.0.18",
268
- "@asyncapi/parser": "^3.0.14",
267
+ "@asyncapi/generator-react-sdk": "^1.0.20",
268
+ "@asyncapi/parser": "^3.1.0",
269
269
  "@asyncapi/react-component": "^1.2.13",
270
270
  "highlight.js": "10.7.3",
271
271
  "puppeteer": "^14.1.0",
@@ -275,11 +275,11 @@
275
275
  }
276
276
  },
277
277
  "node_modules/@asyncapi/markdown-template": {
278
- "version": "1.6.1",
279
- "resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.1.tgz",
280
- "integrity": "sha512-OtAtp5K2Mza6187fulCsCAvdb8GbHnzZ55+Yb54PSLnm0iabsHfBLh6bVtYS3cYXSDRxjlgb8Vdr/l4ipV/xHw==",
278
+ "version": "1.6.3",
279
+ "resolved": "https://registry.npmjs.org/@asyncapi/markdown-template/-/markdown-template-1.6.3.tgz",
280
+ "integrity": "sha512-Ccm+O89hMA/JxvXM+kD/N2s7ziLz805tSHIqPwydBhryYpnLzKp6NmM+yXhO8MfVgYaHvhlt8maYf3tNFLtBbQ==",
281
281
  "dependencies": {
282
- "@asyncapi/generator-react-sdk": "^1.0.18",
282
+ "@asyncapi/generator-react-sdk": "^1.0.20",
283
283
  "openapi-sampler": "^1.3.0",
284
284
  "yaml": "^1.10.2"
285
285
  }
@@ -297,11 +297,11 @@
297
297
  }
298
298
  },
299
299
  "node_modules/@asyncapi/parser": {
300
- "version": "3.0.14",
301
- "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.14.tgz",
302
- "integrity": "sha512-tC2gmKkw28PWWMcGUXHQjTfVftiZdr+FQtsfapaHh36spX9uwe13iYzkcTyCkwSJAHibtg7wvStuHsiufP8xng==",
300
+ "version": "3.1.0",
301
+ "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.1.0.tgz",
302
+ "integrity": "sha512-rUd+fsPRE68o+F3gLqk7OaBj5J5VgBiLk9eJBGEXolNmKbVd45mxJm2aBpMkphQEmYHuBvxZyiNYlSCyr1D2fA==",
303
303
  "dependencies": {
304
- "@asyncapi/specs": "^6.6.0",
304
+ "@asyncapi/specs": "^6.7.1",
305
305
  "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0",
306
306
  "@stoplight/json": "^3.20.2",
307
307
  "@stoplight/json-ref-readers": "^1.2.2",
@@ -404,14 +404,14 @@
404
404
  }
405
405
  },
406
406
  "node_modules/@asyncapi/react-component": {
407
- "version": "1.4.8",
408
- "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.8.tgz",
409
- "integrity": "sha512-IysTbN2Kihxs8QyPw0DiN+FuUrPyi33WrcRJ6oVSq6v8WrqJZ+Jsh0K0a0rtFZgHnkTtrWzyCRRZB4+b0xraQA==",
407
+ "version": "1.4.10",
408
+ "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz",
409
+ "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==",
410
410
  "dependencies": {
411
- "@asyncapi/avro-schema-parser": "^3.0.21",
412
- "@asyncapi/openapi-schema-parser": "^3.0.21",
411
+ "@asyncapi/avro-schema-parser": "^3.0.22",
412
+ "@asyncapi/openapi-schema-parser": "^3.0.22",
413
413
  "@asyncapi/parser": "^3.0.14",
414
- "@asyncapi/protobuf-schema-parser": "^3.2.11",
414
+ "@asyncapi/protobuf-schema-parser": "^3.2.12",
415
415
  "highlight.js": "^10.7.2",
416
416
  "isomorphic-dompurify": "^0.13.0",
417
417
  "marked": "^4.0.14",
@@ -424,9 +424,9 @@
424
424
  }
425
425
  },
426
426
  "node_modules/@asyncapi/specs": {
427
- "version": "6.6.0",
428
- "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.6.0.tgz",
429
- "integrity": "sha512-pXJa0sCeBpif5al5CSa0f3HvwVBQXzd96/Xgq8Jsh6KM4CYxCe7p6paaC9fDjdBVXyWAioQmZiGRxEVUMINbUw==",
427
+ "version": "6.7.1",
428
+ "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.7.1.tgz",
429
+ "integrity": "sha512-jEaW2vgAwD9GboCdO/TI1zN2k+iowL8YFYwiZwTIr4U4KDmsgo3BLypScl6Jl4+IvY9RdsWE67nuzVX7jooiqQ==",
430
430
  "dependencies": {
431
431
  "@types/json-schema": "^7.0.11"
432
432
  }
@@ -5583,9 +5583,9 @@
5583
5583
  }
5584
5584
  },
5585
5585
  "node_modules/dompurify": {
5586
- "version": "2.5.0",
5587
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.0.tgz",
5588
- "integrity": "sha512-5RXhAXSCrKTqt9pSbobT9PVRX+oPpENplTZqCiK1l0ya+ZOzwo9kqsGLbYRsAhzIiLCwKEy99XKSSrqnRTLVcw=="
5586
+ "version": "2.5.5",
5587
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-2.5.5.tgz",
5588
+ "integrity": "sha512-FgbqnEPiv5Vdtwt6Mxl7XSylttCC03cqP5ldNT2z+Kj0nLxPHJH4+1Cyf5Jasxhw93Rl4Oo11qRoUV72fmya2Q=="
5589
5589
  },
5590
5590
  "node_modules/dotenv": {
5591
5591
  "version": "10.0.0",
@@ -9108,9 +9108,9 @@
9108
9108
  }
9109
9109
  },
9110
9110
  "node_modules/nwsapi": {
9111
- "version": "2.2.7",
9112
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz",
9113
- "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ=="
9111
+ "version": "2.2.10",
9112
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.10.tgz",
9113
+ "integrity": "sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ=="
9114
9114
  },
9115
9115
  "node_modules/object-assign": {
9116
9116
  "version": "4.1.1",
@@ -9242,9 +9242,9 @@
9242
9242
  }
9243
9243
  },
9244
9244
  "node_modules/openapi-sampler": {
9245
- "version": "1.4.0",
9246
- "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.4.0.tgz",
9247
- "integrity": "sha512-3FKJQCHAMG9T7RsRy9u5Ft4ERPq1QQmn77C8T3OSofYL9uur59AqychvQ0YQKijrqRwIkAbzkh+nQnAE3gjMVA==",
9245
+ "version": "1.5.1",
9246
+ "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.5.1.tgz",
9247
+ "integrity": "sha512-tIWIrZUKNAsbqf3bd9U1oH6JEXo8LNYuDlXw26By67EygpjT+ArFnsxxyTMjFWRfbqo5ozkvgSQDK69Gd8CddA==",
9248
9248
  "dependencies": {
9249
9249
  "@types/json-schema": "^7.0.7",
9250
9250
  "json-pointer": "0.6.2"
@@ -9964,7 +9964,7 @@
9964
9964
  "version": "14.4.1",
9965
9965
  "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-14.4.1.tgz",
9966
9966
  "integrity": "sha512-+H0Gm84aXUvSLdSiDROtLlOofftClgw2TdceMvvCU9UvMryappoeS3+eOLfKvoy4sm8B8MWnYmPhWxVFudAOFQ==",
9967
- "deprecated": "< 21.8.0 is no longer supported",
9967
+ "deprecated": "< 22.6.4 is no longer supported",
9968
9968
  "hasInstallScript": true,
9969
9969
  "dependencies": {
9970
9970
  "cross-fetch": "3.1.5",
@@ -11760,9 +11760,9 @@
11760
11760
  }
11761
11761
  },
11762
11762
  "node_modules/tough-cookie": {
11763
- "version": "4.1.3",
11764
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
11765
- "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
11763
+ "version": "4.1.4",
11764
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
11765
+ "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
11766
11766
  "dependencies": {
11767
11767
  "psl": "^1.1.33",
11768
11768
  "punycode": "^2.1.1",
@@ -16,6 +16,6 @@
16
16
  "author": "Fran Mendez",
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@asyncapi/glee": "^0.37.0"
19
+ "@asyncapi/glee": "^0.37.4"
20
20
  }
21
21
  }
@@ -0,0 +1,34 @@
1
+ asyncapi: 3.0.0
2
+ info:
3
+ title: Temperature Service
4
+ version: 1.0.0
5
+ description: This service is in charge of processing all the events related to temperature.
6
+
7
+ servers:
8
+ dev:
9
+ url: test.mosquitto.org
10
+ protocol: mqtt
11
+
12
+ channels:
13
+ temperature/changed:
14
+ description: Updates the bedroom temperature in the database when the temperature drops or goes up.
15
+ publish:
16
+ operationId: temperatureChange
17
+ message:
18
+ description: Message that is being sent when the temperature in the bedroom changes.
19
+ contentType: application/json
20
+ payload:
21
+ type: object
22
+ additionalProperties: false
23
+ properties:
24
+ temperatureId:
25
+ type: string
26
+
27
+ components:
28
+ schemas:
29
+ temperatureId:
30
+ type: object
31
+ additionalProperties: false
32
+ properties:
33
+ temperatureId:
34
+ type: string
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "myTemplate",
3
+ "generator": {
4
+ "renderer": "react",
5
+ "supportedProtocols": []
6
+ },
7
+ "dependencies": {
8
+ "@asyncapi/generator-react-sdk": "^1.0.20"
9
+ }
10
+ }
@@ -0,0 +1,4 @@
1
+ ### First install all the dependencies for template using below command:
2
+ npm install
3
+ ### Run the template using for a specific asyncapi document
4
+ asyncapi generate fromTemplate <templateName> ../asyncapi-template
@@ -0,0 +1,11 @@
1
+ import { File, Text } from '@asyncapi/generator-react-sdk';
2
+
3
+ // Pass the others parameters to get the specificatin of the asyncapi document
4
+ export default function ({ asyncapi }) {
5
+ return (
6
+ <File name="asyncapi.md">
7
+ <Text>My application's markdown file.</Text>
8
+ <Text>App name: **{asyncapi.info().title()}**</Text>
9
+ </File>
10
+ );
11
+ }
@@ -7,9 +7,11 @@ export default class Models extends Command {
7
7
  'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
8
8
  'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
9
9
  'no-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ pyDantic: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
11
  javaIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
12
  javaJackson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
13
  javaConstraints: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
+ javaArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
13
15
  csharpAutoImplement: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
16
  csharpNewtonsoft: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
17
  csharpArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
@@ -23,9 +23,6 @@ class Models extends base_1.default {
23
23
  output = parsedArgs.output;
24
24
  }
25
25
  const inputFile = (yield (0, SpecificationFile_1.load)(file)) || (yield (0, SpecificationFile_1.load)());
26
- if (inputFile.isAsyncAPI3()) {
27
- this.error('Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376');
28
- }
29
26
  const { document, diagnostics, status } = yield (0, parser_1.parse)(this, inputFile, flags);
30
27
  if (!document || status === 'invalid') {
31
28
  const severityErrors = diagnostics.filter((obj) => obj.severity === 0);
@@ -0,0 +1,19 @@
1
+ import Command from '../../core/base';
2
+ export declare const successMessage: (projectName: string) => string;
3
+ export default class template extends Command {
4
+ static description: string;
5
+ protected commandName: string;
6
+ static readonly successMessage: (projectName: string) => string;
7
+ static readonly errorMessages: {
8
+ alreadyExists: (projectName: string) => string;
9
+ };
10
+ static flags: {
11
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
12
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ template: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
14
+ file: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
15
+ 'force-write': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
+ renderer: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
17
+ };
18
+ run(): Promise<void>;
19
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.successMessage = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const fs_1 = require("fs");
6
+ const base_1 = tslib_1.__importDefault(require("../../core/base"));
7
+ const path_1 = require("path");
8
+ const SpecificationFile_1 = require("../../core/models/SpecificationFile");
9
+ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
10
+ const template_flags_1 = require("../../core/flags/new/template.flags");
11
+ const picocolors_1 = require("picocolors");
12
+ const jsonfile_1 = tslib_1.__importDefault(require("jsonfile"));
13
+ const path_2 = tslib_1.__importDefault(require("path"));
14
+ const successMessage = (projectName) => `🎉 Your template is succesfully created
15
+ ⏩ Next steps: follow the instructions ${(0, picocolors_1.cyan)('below')} to manage your project:
16
+
17
+ cd ${projectName}\t\t ${(0, picocolors_1.gray)('# Navigate to the project directory')}
18
+ npm install\t\t ${(0, picocolors_1.gray)('# Install the project dependencies')}
19
+ asyncapi generate fromTemplate <templateName> ../${projectName} \t\t ${(0, picocolors_1.gray)('# Execute the template from anasyncapi document')}
20
+
21
+ You can also open the project in your favourite editor and start tweaking it.
22
+ `;
23
+ exports.successMessage = successMessage;
24
+ const errorMessages = {
25
+ alreadyExists: (projectName) => `Unable to create the project because the directory "${(0, picocolors_1.cyan)(projectName)}" already exists at "${process.cwd()}/${projectName}".
26
+ To specify a different name for the new project, please run the command below with a unique project name:
27
+
28
+ ${(0, picocolors_1.gray)('asyncapi new template --name ') + (0, picocolors_1.gray)(projectName) + (0, picocolors_1.gray)('-1')}`,
29
+ };
30
+ class template extends base_1.default {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.commandName = 'template';
34
+ }
35
+ run() {
36
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
+ const { flags } = yield this.parse(template); // NOSONAR
38
+ const { name: projectName, template: templateName, renderer: rendererName } = flags;
39
+ const PROJECT_DIRECTORY = (0, path_1.join)(process.cwd(), projectName);
40
+ if (rendererName !== 'nunjucks' && rendererName !== 'react') {
41
+ this.error('Invalid flag check the flag name of renderer');
42
+ }
43
+ const templateDirectory = (0, path_1.resolve)(__dirname, '../../../assets/create-template/templates/', templateName);
44
+ {
45
+ try {
46
+ yield fs_1.promises.mkdir(PROJECT_DIRECTORY);
47
+ }
48
+ catch (err) {
49
+ switch (err.code) {
50
+ case 'EEXIST':
51
+ this.error(errorMessages.alreadyExists(projectName));
52
+ break;
53
+ case 'EACCES':
54
+ this.error(`Unable to create the project. We tried to access the "${PROJECT_DIRECTORY}" directory but it was not possible due to file access permissions. Please check the write permissions of your current working directory ("${process.cwd()}").`);
55
+ break;
56
+ case 'EPERM':
57
+ this.error(`Unable to create the project. We tried to create the "${PROJECT_DIRECTORY}" directory but the operation requires elevated privileges. Please check the privileges for your current user.`);
58
+ break;
59
+ default:
60
+ this.error(`Unable to create the project. Please check the following message for further info about the error:\n\n${err}`);
61
+ }
62
+ }
63
+ try {
64
+ yield copyAndModify(templateDirectory, PROJECT_DIRECTORY, rendererName, projectName);
65
+ this.log((0, exports.successMessage)(projectName));
66
+ }
67
+ catch (err) {
68
+ this.error(`Unable to create the project. Please check the following message for further info about the error:\n\n${err}`);
69
+ }
70
+ this.specFile = yield (0, SpecificationFile_1.load)(`${templateDirectory}/asyncapi.yaml`);
71
+ this.metricsMetadata.template = flags.template;
72
+ }
73
+ });
74
+ }
75
+ }
76
+ exports.default = template;
77
+ template.description = 'Creates a new template';
78
+ template.successMessage = exports.successMessage;
79
+ template.errorMessages = errorMessages;
80
+ template.flags = (0, template_flags_1.templateFlags)();
81
+ function copyAndModify(templateDirectory, PROJECT_DIRECTORY, rendererName, projectName) {
82
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
+ const packageJsonPath = path_2.default.join(templateDirectory, 'package.json');
84
+ try {
85
+ yield fs_extra_1.default.copy(templateDirectory, PROJECT_DIRECTORY, {
86
+ filter: (src) => {
87
+ return !src.endsWith('package.json');
88
+ }
89
+ });
90
+ const packageData = yield jsonfile_1.default.readFile(packageJsonPath);
91
+ if ((packageData.generator && 'renderer' in packageData.generator)) {
92
+ packageData.generator.renderer = rendererName;
93
+ }
94
+ if (packageData.name) {
95
+ packageData.name = projectName;
96
+ }
97
+ yield fs_extra_1.default.writeJSON(`${PROJECT_DIRECTORY}/package.json`, packageData, { spaces: 2 });
98
+ }
99
+ catch (err) {
100
+ console.error('Error:', err);
101
+ }
102
+ });
103
+ }
@@ -3,9 +3,11 @@ export declare const modelsFlags: () => {
3
3
  'diagnostics-format': import("@oclif/core/lib/interfaces").OptionFlag<import("@stoplight/spectral-cli/dist/services/config").OutputFormat, import("@oclif/core/lib/interfaces").CustomOptions>;
4
4
  'fail-severity': import("@oclif/core/lib/interfaces").OptionFlag<"error" | "warn" | "info" | "hint", import("@oclif/core/lib/interfaces").CustomOptions>;
5
5
  'no-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
+ pyDantic: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
7
  javaIncludeComments: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
8
  javaJackson: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
9
  javaConstraints: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ javaArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
9
11
  csharpAutoImplement: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
12
  csharpNewtonsoft: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
13
  csharpArrayType: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
@@ -0,0 +1,8 @@
1
+ export declare const templateFlags: () => {
2
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
3
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
4
+ template: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
5
+ file: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
6
+ 'force-write': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ renderer: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateFlags = void 0;
4
+ const core_1 = require("@oclif/core");
5
+ const templateFlags = () => {
6
+ return {
7
+ help: core_1.Flags.help({ char: 'h' }),
8
+ name: core_1.Flags.string({
9
+ char: 'n',
10
+ description: 'Name of the Project',
11
+ default: 'project',
12
+ }),
13
+ template: core_1.Flags.string({
14
+ char: 't',
15
+ description: 'Name of the Template',
16
+ default: 'default',
17
+ }),
18
+ file: core_1.Flags.string({
19
+ char: 'f',
20
+ description: 'The path to the AsyncAPI file for generating a template.',
21
+ }),
22
+ 'force-write': core_1.Flags.boolean({
23
+ default: false,
24
+ description: 'Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)',
25
+ }),
26
+ renderer: core_1.Flags.string({
27
+ char: 'r',
28
+ default: 'react',
29
+ description: 'Creating a template for particular engine, Its value can be either react or nunjucks.'
30
+ })
31
+ };
32
+ };
33
+ exports.templateFlags = templateFlags;
@@ -881,6 +881,26 @@
881
881
  "allowNo": false,
882
882
  "type": "boolean"
883
883
  },
884
+ "javaArrayType": {
885
+ "description": "Java specific, define which type of array needs to be generated.",
886
+ "name": "javaArrayType",
887
+ "required": false,
888
+ "default": "Array",
889
+ "hasDynamicHelp": false,
890
+ "multiple": false,
891
+ "options": [
892
+ "Array",
893
+ "List"
894
+ ],
895
+ "type": "option"
896
+ },
897
+ "pyDantic": {
898
+ "description": "Python specific, generate the Pydantic models.",
899
+ "name": "pyDantic",
900
+ "required": false,
901
+ "allowNo": false,
902
+ "type": "boolean"
903
+ },
884
904
  "no-interactive": {
885
905
  "description": "Disable interactive mode and run with the provided flags.",
886
906
  "name": "no-interactive",
@@ -1139,6 +1159,76 @@
1139
1159
  "index.js"
1140
1160
  ]
1141
1161
  },
1162
+ "new:template": {
1163
+ "aliases": [],
1164
+ "args": {},
1165
+ "description": "Creates a new template",
1166
+ "flags": {
1167
+ "help": {
1168
+ "char": "h",
1169
+ "description": "Show CLI help.",
1170
+ "name": "help",
1171
+ "allowNo": false,
1172
+ "type": "boolean"
1173
+ },
1174
+ "name": {
1175
+ "char": "n",
1176
+ "description": "Name of the Project",
1177
+ "name": "name",
1178
+ "default": "project",
1179
+ "hasDynamicHelp": false,
1180
+ "multiple": false,
1181
+ "type": "option"
1182
+ },
1183
+ "template": {
1184
+ "char": "t",
1185
+ "description": "Name of the Template",
1186
+ "name": "template",
1187
+ "default": "default",
1188
+ "hasDynamicHelp": false,
1189
+ "multiple": false,
1190
+ "type": "option"
1191
+ },
1192
+ "file": {
1193
+ "char": "f",
1194
+ "description": "The path to the AsyncAPI file for generating a template.",
1195
+ "name": "file",
1196
+ "hasDynamicHelp": false,
1197
+ "multiple": false,
1198
+ "type": "option"
1199
+ },
1200
+ "force-write": {
1201
+ "description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
1202
+ "name": "force-write",
1203
+ "allowNo": false,
1204
+ "type": "boolean"
1205
+ },
1206
+ "renderer": {
1207
+ "char": "r",
1208
+ "description": "Creating a template for particular engine, Its value can be either react or nunjucks.",
1209
+ "name": "renderer",
1210
+ "default": "react",
1211
+ "hasDynamicHelp": false,
1212
+ "multiple": false,
1213
+ "type": "option"
1214
+ }
1215
+ },
1216
+ "hasDynamicHelp": false,
1217
+ "hiddenAliases": [],
1218
+ "id": "new:template",
1219
+ "pluginAlias": "@asyncapi/cli",
1220
+ "pluginName": "@asyncapi/cli",
1221
+ "pluginType": "core",
1222
+ "strict": true,
1223
+ "errorMessages": {},
1224
+ "isESM": false,
1225
+ "relativePath": [
1226
+ "lib",
1227
+ "commands",
1228
+ "new",
1229
+ "template.js"
1230
+ ]
1231
+ },
1142
1232
  "start": {
1143
1233
  "aliases": [],
1144
1234
  "args": {},
@@ -1477,5 +1567,5 @@
1477
1567
  ]
1478
1568
  }
1479
1569
  },
1480
- "version": "2.0.3"
1570
+ "version": "2.1.0"
1481
1571
  }
package/package.json CHANGED
@@ -1,24 +1,25 @@
1
1
  {
2
2
  "name": "@asyncapi/cli",
3
3
  "description": "All in one CLI for all AsyncAPI tools",
4
- "version": "2.0.3",
4
+ "version": "2.1.0",
5
5
  "author": "@asyncapi",
6
6
  "bin": {
7
7
  "asyncapi": "./bin/run_bin"
8
8
  },
9
9
  "bugs": "https://github.com/asyncapi/cli/issues",
10
10
  "dependencies": {
11
- "@asyncapi/avro-schema-parser": "^3.0.22",
12
- "@asyncapi/bundler": "^0.5.2",
13
- "@asyncapi/converter": "^1.4.19",
11
+ "@asyncapi/avro-schema-parser": "^3.0.23",
12
+ "@asyncapi/bundler": "^0.5.3",
13
+ "@asyncapi/converter": "^1.4.20",
14
14
  "@asyncapi/diff": "^0.4.1",
15
15
  "@asyncapi/generator": "^1.17.25",
16
+ "@asyncapi/modelina": "^3.6.0",
16
17
  "@asyncapi/modelina-cli": "^4.0.0-next.48",
17
- "@asyncapi/openapi-schema-parser": "^3.0.22",
18
+ "@asyncapi/openapi-schema-parser": "^3.0.24",
18
19
  "@asyncapi/optimizer": "^1.0.2",
19
20
  "@asyncapi/parser": "^3.1.0",
20
- "@asyncapi/protobuf-schema-parser": "^3.2.12",
21
- "@asyncapi/raml-dt-schema-parser": "^4.0.22",
21
+ "@asyncapi/protobuf-schema-parser": "^3.2.13",
22
+ "@asyncapi/raml-dt-schema-parser": "^4.0.24",
22
23
  "@asyncapi/studio": "^0.20.0",
23
24
  "@clack/prompts": "^0.7.0",
24
25
  "@oclif/core": "^3",