@swagger-api/apidom-parser-adapter-openapi-yaml-2 0.99.0 → 0.99.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
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.99.1](https://github.com/swagger-api/apidom/compare/v0.99.0...v0.99.1) (2024-04-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
|
|
9
|
+
|
|
6
10
|
# [0.99.0](https://github.com/swagger-api/apidom/compare/v0.98.3...v0.99.0) (2024-04-03)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
|
|
@@ -17798,6 +17798,14 @@ const mergeAll = (visitors, {
|
|
|
17798
17798
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
17799
17799
|
if (typeof visitFn === 'function') {
|
|
17800
17800
|
const result = visitFn.call(visitors[i], currentNode, ...rest);
|
|
17801
|
+
|
|
17802
|
+
// check if the visitor is async
|
|
17803
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
17804
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
17805
|
+
visitor: visitors[i],
|
|
17806
|
+
visitFn
|
|
17807
|
+
});
|
|
17808
|
+
}
|
|
17801
17809
|
if (result === skipVisitingNodeSymbol) {
|
|
17802
17810
|
skipping[i] = node;
|
|
17803
17811
|
} else if (result === breakSymbol) {
|
|
@@ -17823,6 +17831,14 @@ const mergeAll = (visitors, {
|
|
|
17823
17831
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
|
|
17824
17832
|
if (typeof visitFn === 'function') {
|
|
17825
17833
|
const result = visitFn.call(visitors[i], node, ...rest);
|
|
17834
|
+
|
|
17835
|
+
// check if the visitor is async
|
|
17836
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
17837
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
17838
|
+
visitor: visitors[i],
|
|
17839
|
+
visitFn
|
|
17840
|
+
});
|
|
17841
|
+
}
|
|
17826
17842
|
if (result === breakSymbol) {
|
|
17827
17843
|
skipping[i] = breakSymbol;
|
|
17828
17844
|
} else if (result !== undefined && result !== skipVisitingNodeSymbol) {
|
|
@@ -18066,6 +18082,7 @@ visitor, {
|
|
|
18066
18082
|
}
|
|
18067
18083
|
let result;
|
|
18068
18084
|
if (!Array.isArray(node)) {
|
|
18085
|
+
var _result;
|
|
18069
18086
|
if (!nodePredicate(node)) {
|
|
18070
18087
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
18071
18088
|
node
|
|
@@ -18087,6 +18104,14 @@ visitor, {
|
|
|
18087
18104
|
// retrieve result
|
|
18088
18105
|
result = visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
18089
18106
|
}
|
|
18107
|
+
|
|
18108
|
+
// check if the visitor is async
|
|
18109
|
+
if (typeof ((_result = result) === null || _result === void 0 ? void 0 : _result.then) === 'function') {
|
|
18110
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
18111
|
+
visitor,
|
|
18112
|
+
visitFn
|
|
18113
|
+
});
|
|
18114
|
+
}
|
|
18090
18115
|
if (result === breakSymbol) {
|
|
18091
18116
|
break;
|
|
18092
18117
|
}
|