@swagger-api/apidom-ns-openapi-3-1 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-ns-openapi-3-1
|
|
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-ns-openapi-3-1
|
|
@@ -21701,6 +21701,14 @@ const mergeAll = (visitors, {
|
|
|
21701
21701
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
21702
21702
|
if (typeof visitFn === 'function') {
|
|
21703
21703
|
const result = visitFn.call(visitors[i], currentNode, ...rest);
|
|
21704
|
+
|
|
21705
|
+
// check if the visitor is async
|
|
21706
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
21707
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
21708
|
+
visitor: visitors[i],
|
|
21709
|
+
visitFn
|
|
21710
|
+
});
|
|
21711
|
+
}
|
|
21704
21712
|
if (result === skipVisitingNodeSymbol) {
|
|
21705
21713
|
skipping[i] = node;
|
|
21706
21714
|
} else if (result === breakSymbol) {
|
|
@@ -21726,6 +21734,14 @@ const mergeAll = (visitors, {
|
|
|
21726
21734
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
|
|
21727
21735
|
if (typeof visitFn === 'function') {
|
|
21728
21736
|
const result = visitFn.call(visitors[i], node, ...rest);
|
|
21737
|
+
|
|
21738
|
+
// check if the visitor is async
|
|
21739
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
21740
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
21741
|
+
visitor: visitors[i],
|
|
21742
|
+
visitFn
|
|
21743
|
+
});
|
|
21744
|
+
}
|
|
21729
21745
|
if (result === breakSymbol) {
|
|
21730
21746
|
skipping[i] = breakSymbol;
|
|
21731
21747
|
} else if (result !== undefined && result !== skipVisitingNodeSymbol) {
|
|
@@ -21969,6 +21985,7 @@ visitor, {
|
|
|
21969
21985
|
}
|
|
21970
21986
|
let result;
|
|
21971
21987
|
if (!Array.isArray(node)) {
|
|
21988
|
+
var _result;
|
|
21972
21989
|
if (!nodePredicate(node)) {
|
|
21973
21990
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
21974
21991
|
node
|
|
@@ -21990,6 +22007,14 @@ visitor, {
|
|
|
21990
22007
|
// retrieve result
|
|
21991
22008
|
result = visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
21992
22009
|
}
|
|
22010
|
+
|
|
22011
|
+
// check if the visitor is async
|
|
22012
|
+
if (typeof ((_result = result) === null || _result === void 0 ? void 0 : _result.then) === 'function') {
|
|
22013
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
22014
|
+
visitor,
|
|
22015
|
+
visitFn
|
|
22016
|
+
});
|
|
22017
|
+
}
|
|
21993
22018
|
if (result === breakSymbol) {
|
|
21994
22019
|
break;
|
|
21995
22020
|
}
|