@asyncapi/generator 1.10.0 → 1.10.2
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/docs/api.md +2 -2
- package/package.json +6 -5
package/docs/api.md
CHANGED
|
@@ -29,7 +29,7 @@ Reference API documentation for AsyncAPI Generator library.
|
|
|
29
29
|
* [.originalAsyncAPI](#Generator+originalAsyncAPI) : `String`
|
|
30
30
|
* [.generate(asyncapiDocument)](#Generator+generate) ⇒ `Promise`
|
|
31
31
|
* [.configureTemplate()](#Generator+configureTemplate)
|
|
32
|
-
* [.generateFromString(asyncapiString, [
|
|
32
|
+
* [.generateFromString(asyncapiString, [parseOptions])](#Generator+generateFromString) ⇒ `Promise`
|
|
33
33
|
* [.generateFromURL(asyncapiURL)](#Generator+generateFromURL) ⇒ `Promise`
|
|
34
34
|
* [.generateFromFile(asyncapiFile)](#Generator+generateFromFile) ⇒ `Promise`
|
|
35
35
|
* [.installTemplate([force])](#Generator+installTemplate)
|
|
@@ -215,7 +215,7 @@ Generates files from a given template and AsyncAPI string.
|
|
|
215
215
|
**Params**
|
|
216
216
|
|
|
217
217
|
- asyncapiString `String` - AsyncAPI string to use as source.
|
|
218
|
-
- [
|
|
218
|
+
- [parseOptions] `Object` ` = {}` - AsyncAPI Parser parse options. Check out [@asyncapi/parser](https://www.github.com/asyncapi/parser-js) for more information.
|
|
219
219
|
|
|
220
220
|
**Example**
|
|
221
221
|
```js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/generator",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "The AsyncAPI generator. It can generate documentation, code, anything!",
|
|
5
5
|
"main": "./lib/generator.js",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"asyncapi",
|
|
39
39
|
"documentation",
|
|
40
40
|
"generator",
|
|
41
|
-
"markdown"
|
|
41
|
+
"markdown",
|
|
42
|
+
"codegen"
|
|
42
43
|
],
|
|
43
44
|
"author": "Fran Mendez <fmvilas@gmail.com>",
|
|
44
45
|
"publishConfig": {
|
|
@@ -50,13 +51,12 @@
|
|
|
50
51
|
"@asyncapi/avro-schema-parser": "^3.0.0",
|
|
51
52
|
"@asyncapi/generator-react-sdk": "^0.2.23",
|
|
52
53
|
"@asyncapi/openapi-schema-parser": "^3.0.0",
|
|
53
|
-
"@asyncapi/parser": "^2.0.
|
|
54
|
+
"@asyncapi/parser": "^2.0.1",
|
|
54
55
|
"@asyncapi/raml-dt-schema-parser": "^4.0.0",
|
|
55
56
|
"@npmcli/arborist": "^2.2.4",
|
|
56
|
-
"ajv": "^
|
|
57
|
+
"ajv": "^8.12.0",
|
|
57
58
|
"chokidar": "^3.4.0",
|
|
58
59
|
"commander": "^6.1.0",
|
|
59
|
-
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
60
60
|
"filenamify": "^4.1.0",
|
|
61
61
|
"fs.extra": "^1.3.2",
|
|
62
62
|
"global-dirs": "^3.0.0",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"typescript": "^4.9.3"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
+
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
80
81
|
"eslint": "^6.8.0",
|
|
81
82
|
"eslint-plugin-jest": "^23.8.2",
|
|
82
83
|
"eslint-plugin-sonarjs": "^0.5.0",
|