@swagger-api/apidom-parser-adapter-openapi-yaml-2 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-2
|
|
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-2
|
|
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-2
|
|
@@ -23590,6 +23590,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23590
23590
|
|
|
23591
23591
|
let parser = null;
|
|
23592
23592
|
let parserInitLock = null;
|
|
23593
|
+
let currentTree = null;
|
|
23593
23594
|
|
|
23594
23595
|
/**
|
|
23595
23596
|
* Lexical Analysis of source string using WebTreeSitter.
|
|
@@ -23617,7 +23618,9 @@ const analyze = async source => {
|
|
|
23617
23618
|
} else if (parser === null) {
|
|
23618
23619
|
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_3__["default"]('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
23619
23620
|
}
|
|
23620
|
-
|
|
23621
|
+
currentTree = parser.parse(source);
|
|
23622
|
+
parser.reset();
|
|
23623
|
+
return currentTree;
|
|
23621
23624
|
};
|
|
23622
23625
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (analyze);
|
|
23623
23626
|
|
|
@@ -28691,7 +28694,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28691
28694
|
const detect = async source => {
|
|
28692
28695
|
try {
|
|
28693
28696
|
const cst = await (0,_lexical_analysis_browser_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
28694
|
-
|
|
28697
|
+
const isError = !cst.rootNode.isError;
|
|
28698
|
+
cst.delete();
|
|
28699
|
+
return isError;
|
|
28695
28700
|
} catch {
|
|
28696
28701
|
return false;
|
|
28697
28702
|
}
|
|
@@ -28712,9 +28717,11 @@ const parse = async (source, {
|
|
|
28712
28717
|
sourceMap = false
|
|
28713
28718
|
} = {}) => {
|
|
28714
28719
|
const cst = await (0,_lexical_analysis_browser_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
28715
|
-
|
|
28720
|
+
const syntacticAnalysisResult = (0,_syntactic_analysis_indirect_index_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(cst, {
|
|
28716
28721
|
sourceMap
|
|
28717
28722
|
});
|
|
28723
|
+
cst.delete();
|
|
28724
|
+
return syntacticAnalysisResult;
|
|
28718
28725
|
};
|
|
28719
28726
|
|
|
28720
28727
|
/***/ }),
|