@swagger-api/apidom-parser-adapter-arazzo-json-1 1.2.0 → 1.2.2
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,14 @@
|
|
|
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
|
+
## [1.2.2](https://github.com/swagger-api/apidom/compare/v1.2.1...v1.2.2) (2026-01-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-json-1
|
|
9
|
+
|
|
10
|
+
## [1.2.1](https://github.com/swagger-api/apidom/compare/v1.2.0...v1.2.1) (2026-01-16)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-json-1
|
|
13
|
+
|
|
6
14
|
# [1.2.0](https://github.com/swagger-api/apidom/compare/v1.1.0...v1.2.0) (2026-01-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-json-1
|
|
@@ -3561,7 +3561,9 @@ const detect = async source => {
|
|
|
3561
3561
|
}
|
|
3562
3562
|
try {
|
|
3563
3563
|
const cst = await (0,_lexical_analysis_browser_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
3564
|
-
|
|
3564
|
+
const isError = cst.rootNode.type !== 'ERROR';
|
|
3565
|
+
cst.delete();
|
|
3566
|
+
return isError;
|
|
3565
3567
|
} catch {
|
|
3566
3568
|
return false;
|
|
3567
3569
|
}
|
|
@@ -3593,6 +3595,7 @@ const parse = async (source, {
|
|
|
3593
3595
|
sourceMap
|
|
3594
3596
|
});
|
|
3595
3597
|
}
|
|
3598
|
+
cst.delete();
|
|
3596
3599
|
return apiDOM;
|
|
3597
3600
|
};
|
|
3598
3601
|
|
|
@@ -27613,6 +27616,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27613
27616
|
|
|
27614
27617
|
let parser = null;
|
|
27615
27618
|
let parserInitLock = null;
|
|
27619
|
+
let currentTree = null;
|
|
27616
27620
|
|
|
27617
27621
|
/**
|
|
27618
27622
|
* Lexical Analysis of source string using WebTreeSitter.
|
|
@@ -27640,7 +27644,9 @@ const analyze = async source => {
|
|
|
27640
27644
|
} else if (parser === null) {
|
|
27641
27645
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_3__["default"]('Error while initializing web-tree-sitter and loading tree-sitter-json grammar.');
|
|
27642
27646
|
}
|
|
27643
|
-
|
|
27647
|
+
currentTree = parser.parse(source);
|
|
27648
|
+
parser.reset();
|
|
27649
|
+
return currentTree;
|
|
27644
27650
|
};
|
|
27645
27651
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (analyze);
|
|
27646
27652
|
|