@swagger-api/apidom-parser-adapter-openapi-yaml-3-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-openapi-yaml-3-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-openapi-yaml-3-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-openapi-yaml-3-1
|
|
@@ -31629,6 +31629,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31629
31629
|
|
|
31630
31630
|
let parser = null;
|
|
31631
31631
|
let parserInitLock = null;
|
|
31632
|
+
let currentTree = null;
|
|
31632
31633
|
|
|
31633
31634
|
/**
|
|
31634
31635
|
* Lexical Analysis of source string using WebTreeSitter.
|
|
@@ -31656,7 +31657,9 @@ const analyze = async source => {
|
|
|
31656
31657
|
} else if (parser === null) {
|
|
31657
31658
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_3__["default"]('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
31658
31659
|
}
|
|
31659
|
-
|
|
31660
|
+
currentTree = parser.parse(source);
|
|
31661
|
+
parser.reset();
|
|
31662
|
+
return currentTree;
|
|
31660
31663
|
};
|
|
31661
31664
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (analyze);
|
|
31662
31665
|
|
|
@@ -38412,7 +38415,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38412
38415
|
const detect = async source => {
|
|
38413
38416
|
try {
|
|
38414
38417
|
const cst = await (0,_lexical_analysis_browser_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
38415
|
-
|
|
38418
|
+
const isError = !cst.rootNode.isError;
|
|
38419
|
+
cst.delete();
|
|
38420
|
+
return isError;
|
|
38416
38421
|
} catch {
|
|
38417
38422
|
return false;
|
|
38418
38423
|
}
|
|
@@ -38433,9 +38438,11 @@ const parse = async (source, {
|
|
|
38433
38438
|
sourceMap = false
|
|
38434
38439
|
} = {}) => {
|
|
38435
38440
|
const cst = await (0,_lexical_analysis_browser_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
38436
|
-
|
|
38441
|
+
const syntacticAnalysisResult = (0,_syntactic_analysis_indirect_index_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(cst, {
|
|
38437
38442
|
sourceMap
|
|
38438
38443
|
});
|
|
38444
|
+
cst.delete();
|
|
38445
|
+
return syntacticAnalysisResult;
|
|
38439
38446
|
};
|
|
38440
38447
|
|
|
38441
38448
|
/***/ }),
|