@asyncapi/generator 1.8.26 → 1.9.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/CODEOWNERS +9 -0
- package/README.md +4 -9
- package/assets/readme-banner.png +0 -0
- package/lib/utils.js +6 -1
- package/package.json +5 -5
package/CODEOWNERS
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This file provides an overview of code owners in this repository.
|
|
2
|
+
|
|
3
|
+
# Each line is a file pattern followed by one or more owners.
|
|
4
|
+
# The last matching pattern has the most precedence.
|
|
5
|
+
# For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/.
|
|
6
|
+
|
|
7
|
+
# The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file.
|
|
8
|
+
|
|
9
|
+
* @fmvilas @derberg @magicmatatjahu @jonaslagoni @asyncapi-bot-eve
|
package/README.md
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
<br>
|
|
3
|
-
<a href="https://www.asyncapi.org"><img src="https://github.com/asyncapi/parser-nodejs/raw/master/assets/logo.png" alt="AsyncAPI logo" width="200"></a>
|
|
4
|
-
<br>
|
|
5
|
-
AsyncAPI Generator
|
|
6
|
-
</h5>
|
|
7
|
-
<p align="center">
|
|
8
|
-
<em>Use your AsyncAPI definition to generate literally anything. Markdown documentation, Node.js code, HTML documentation, anything!</em>
|
|
9
|
-
</p>
|
|
1
|
+
[](https://www.asyncapi.com/tools/generator)
|
|
10
2
|
|
|
11
3
|
 
|
|
12
4
|
|
|
@@ -54,12 +46,15 @@ Template Name | Description | Source code
|
|
|
54
46
|
---|---|---
|
|
55
47
|
`@asyncapi/nodejs-template` | Generates Nodejs service that uses Hermes package | [click here](https://github.com/asyncapi/nodejs-template)
|
|
56
48
|
`@asyncapi/nodejs-ws-template` | Generates Nodejs service that supports WebSockets protocol only | [click here](https://github.com/asyncapi/nodejs-ws-template)
|
|
49
|
+
`@asyncapi/java-template` | Generates Java JMS application | [click here](https://github.com/asyncapi/java-template)
|
|
57
50
|
`@asyncapi/java-spring-template` | Generates Java Spring service | [click here](https://github.com/asyncapi/java-spring-template)
|
|
58
51
|
`@asyncapi/java-spring-cloud-stream-template` | Generates Java Spring Cloud Stream service | [click here](https://github.com/asyncapi/java-spring-cloud-stream-template)
|
|
59
52
|
`@asyncapi/python-paho-template` | Generates Python service that uses Paho library | [click here](https://github.com/asyncapi/python-paho-template)
|
|
60
53
|
`@asyncapi/html-template` | Generates HTML documentation site | [click here](https://github.com/asyncapi/html-template)
|
|
61
54
|
`@asyncapi/markdown-template` | Generates documentation in Markdown file | [click here](https://github.com/asyncapi/markdown-template)
|
|
62
55
|
`@asyncapi/ts-nats-template` | Generates TypeScript NATS client | [click here](https://github.com/asyncapi/ts-nats-template/)
|
|
56
|
+
`@asyncapi/go-watermill-template` | Generates Go client using Watermill | [click here](https://github.com/asyncapi/go-watermill-template)
|
|
57
|
+
`@asyncapi/dotnet-nats-template` | Generates .NET C# client using NATS | [click here](https://github.com/asyncapi/dotnet-nats-template)
|
|
63
58
|
|
|
64
59
|
<!-- TEMPLATES-LIST:END -->
|
|
65
60
|
|
|
Binary file
|
package/lib/utils.js
CHANGED
|
@@ -150,7 +150,12 @@ utils.registerSourceMap = () => {
|
|
|
150
150
|
* @private
|
|
151
151
|
*/
|
|
152
152
|
utils.registerTypeScript = () => {
|
|
153
|
-
require('ts-node')
|
|
153
|
+
const { REGISTER_INSTANCE, register } = require('ts-node');
|
|
154
|
+
// if the ts-node has already been registered before, do not register it again.
|
|
155
|
+
if (process[REGISTER_INSTANCE]) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
register();
|
|
154
159
|
};
|
|
155
160
|
|
|
156
161
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "The AsyncAPI generator. It can generate documentation, code, anything!",
|
|
5
5
|
"main": "./lib/generator.js",
|
|
6
6
|
"bin": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"license": "Apache-2.0",
|
|
49
49
|
"homepage": "https://github.com/asyncapi/generator",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@asyncapi/avro-schema-parser": "^0.
|
|
51
|
+
"@asyncapi/avro-schema-parser": "^1.0.0",
|
|
52
52
|
"@asyncapi/generator-react-sdk": "^0.2.23",
|
|
53
53
|
"@asyncapi/openapi-schema-parser": "^2.0.1",
|
|
54
|
-
"@asyncapi/parser": "^1.
|
|
54
|
+
"@asyncapi/parser": "^1.14.0",
|
|
55
55
|
"@asyncapi/raml-dt-schema-parser": "^2.0.1",
|
|
56
56
|
"@npmcli/arborist": "^2.2.4",
|
|
57
57
|
"ajv": "^6.10.2",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"js-yaml": "^3.13.1",
|
|
65
65
|
"levenshtein-edit-distance": "^2.0.5",
|
|
66
66
|
"loglevel": "^1.6.8",
|
|
67
|
-
"markdown-it": "^
|
|
67
|
+
"markdown-it": "^12.3.2",
|
|
68
68
|
"minimatch": "^3.0.4",
|
|
69
69
|
"node-fetch": "^2.6.0",
|
|
70
70
|
"nunjucks": "^3.2.0",
|
|
71
71
|
"resolve-from": "^5.0.0",
|
|
72
72
|
"resolve-pkg": "^2.0.0",
|
|
73
73
|
"semver": "^7.3.2",
|
|
74
|
-
"simple-git": "^
|
|
74
|
+
"simple-git": "^3.3.0",
|
|
75
75
|
"source-map-support": "^0.5.19",
|
|
76
76
|
"ts-node": "^9.1.1",
|
|
77
77
|
"typescript": "^4.2.2"
|