@swagger-api/apidom-parser-adapter-openapi-json-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-parser-adapter-openapi-json-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-parser-adapter-openapi-json-3-1
|
|
@@ -16378,6 +16378,14 @@ const mergeAll = (visitors, {
|
|
|
16378
16378
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
16379
16379
|
if (typeof visitFn === 'function') {
|
|
16380
16380
|
const result = visitFn.call(visitors[i], currentNode, ...rest);
|
|
16381
|
+
|
|
16382
|
+
// check if the visitor is async
|
|
16383
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
16384
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
16385
|
+
visitor: visitors[i],
|
|
16386
|
+
visitFn
|
|
16387
|
+
});
|
|
16388
|
+
}
|
|
16381
16389
|
if (result === skipVisitingNodeSymbol) {
|
|
16382
16390
|
skipping[i] = node;
|
|
16383
16391
|
} else if (result === breakSymbol) {
|
|
@@ -16403,6 +16411,14 @@ const mergeAll = (visitors, {
|
|
|
16403
16411
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
|
|
16404
16412
|
if (typeof visitFn === 'function') {
|
|
16405
16413
|
const result = visitFn.call(visitors[i], node, ...rest);
|
|
16414
|
+
|
|
16415
|
+
// check if the visitor is async
|
|
16416
|
+
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
16417
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
16418
|
+
visitor: visitors[i],
|
|
16419
|
+
visitFn
|
|
16420
|
+
});
|
|
16421
|
+
}
|
|
16406
16422
|
if (result === breakSymbol) {
|
|
16407
16423
|
skipping[i] = breakSymbol;
|
|
16408
16424
|
} else if (result !== undefined && result !== skipVisitingNodeSymbol) {
|
|
@@ -16646,6 +16662,7 @@ visitor, {
|
|
|
16646
16662
|
}
|
|
16647
16663
|
let result;
|
|
16648
16664
|
if (!Array.isArray(node)) {
|
|
16665
|
+
var _result;
|
|
16649
16666
|
if (!nodePredicate(node)) {
|
|
16650
16667
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
16651
16668
|
node
|
|
@@ -16667,6 +16684,14 @@ visitor, {
|
|
|
16667
16684
|
// retrieve result
|
|
16668
16685
|
result = visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
16669
16686
|
}
|
|
16687
|
+
|
|
16688
|
+
// check if the visitor is async
|
|
16689
|
+
if (typeof ((_result = result) === null || _result === void 0 ? void 0 : _result.then) === 'function') {
|
|
16690
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"]('Async visitor not supported in sync mode', {
|
|
16691
|
+
visitor,
|
|
16692
|
+
visitFn
|
|
16693
|
+
});
|
|
16694
|
+
}
|
|
16670
16695
|
if (result === breakSymbol) {
|
|
16671
16696
|
break;
|
|
16672
16697
|
}
|