@asyncapi/generator 2.4.0 → 2.4.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/CHANGELOG.md +6 -0
- package/lib/generator.js +0 -3
- package/lib/utils.js +0 -10
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @asyncapi/generator
|
|
2
2
|
|
|
3
|
+
## 2.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3a372c4: Removed the source-map-support package from the AsyncAPI Generator, as it is no longer required for version 2, which now supports Node.js version 18.12.0 and above.
|
|
8
|
+
|
|
3
9
|
## 2.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/lib/generator.js
CHANGED
|
@@ -27,7 +27,6 @@ const {
|
|
|
27
27
|
fetchSpec,
|
|
28
28
|
isReactTemplate,
|
|
29
29
|
isJsFile,
|
|
30
|
-
registerSourceMap,
|
|
31
30
|
getTemplateDetails,
|
|
32
31
|
convertCollectionToObject,
|
|
33
32
|
} = require('./utils');
|
|
@@ -57,8 +56,6 @@ const shouldIgnoreDir = dirPath =>
|
|
|
57
56
|
dirPath === '.git'
|
|
58
57
|
|| dirPath.startsWith(`.git${path.sep}`);
|
|
59
58
|
|
|
60
|
-
registerSourceMap();
|
|
61
|
-
|
|
62
59
|
class Generator {
|
|
63
60
|
/**
|
|
64
61
|
* Instantiates a new Generator object.
|
package/lib/utils.js
CHANGED
|
@@ -134,16 +134,6 @@ utils.isAsyncFunction = (fn) => {
|
|
|
134
134
|
return fn && fn.constructor && fn.constructor.name === 'AsyncFunction';
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
/**
|
|
138
|
-
* Register `source-map-support` package.
|
|
139
|
-
* This package provides source map support for stack traces in Node - also for transpiled code from TS.
|
|
140
|
-
*
|
|
141
|
-
* @private
|
|
142
|
-
*/
|
|
143
|
-
utils.registerSourceMap = () => {
|
|
144
|
-
require('source-map-support').install();
|
|
145
|
-
};
|
|
146
|
-
|
|
147
137
|
/**
|
|
148
138
|
* Register TypeScript transpiler. It enables transpilation of TS filters and hooks on the fly.
|
|
149
139
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/generator",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "The AsyncAPI generator. It can generate documentation, code, anything!",
|
|
5
5
|
"main": "./lib/generator.js",
|
|
6
6
|
"bin": {
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"resolve-pkg": "^2.0.0",
|
|
74
74
|
"semver": "^7.3.2",
|
|
75
75
|
"simple-git": "^3.3.0",
|
|
76
|
-
"source-map-support": "^0.5.19",
|
|
77
76
|
"ts-node": "^10.9.1",
|
|
78
77
|
"typescript": "^4.9.3"
|
|
79
78
|
},
|