@asyncapi/generator 1.9.0 → 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 +1 -1
- package/README.md +2 -9
- package/assets/readme-banner.png +0 -0
- package/lib/utils.js +6 -1
- package/package.json +2 -2
package/CODEOWNERS
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
|
|
7
7
|
# The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file.
|
|
8
8
|
|
|
9
|
-
* @fmvilas @derberg @magicmatatjahu @jonaslagoni @
|
|
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
|
|
|
@@ -62,6 +54,7 @@ Template Name | Description | Source code
|
|
|
62
54
|
`@asyncapi/markdown-template` | Generates documentation in Markdown file | [click here](https://github.com/asyncapi/markdown-template)
|
|
63
55
|
`@asyncapi/ts-nats-template` | Generates TypeScript NATS client | [click here](https://github.com/asyncapi/ts-nats-template/)
|
|
64
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)
|
|
65
58
|
|
|
66
59
|
<!-- TEMPLATES-LIST:END -->
|
|
67
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.9.
|
|
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": {
|
|
@@ -71,7 +71,7 @@
|
|
|
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"
|