@swagger-api/apidom-parser-adapter-yaml-1-2 1.8.0 → 1.9.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-parser-adapter-yaml-1-2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Parser adapter for parsing YAML documents into base namespace.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/runtime-corejs3": "^7.26.10",
|
|
54
|
-
"@swagger-api/apidom-ast": "^1.
|
|
55
|
-
"@swagger-api/apidom-core": "^1.
|
|
56
|
-
"@swagger-api/apidom-error": "^1.
|
|
54
|
+
"@swagger-api/apidom-ast": "^1.9.0",
|
|
55
|
+
"@swagger-api/apidom-core": "^1.9.0",
|
|
56
|
+
"@swagger-api/apidom-error": "^1.9.0",
|
|
57
57
|
"@tree-sitter-grammars/tree-sitter-yaml": "=0.7.1",
|
|
58
58
|
"@types/ramda": "~0.30.0",
|
|
59
59
|
"ramda": "~0.30.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"README.md",
|
|
76
76
|
"CHANGELOG.md"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "25c005d35205319822eef5ce48cfef2081da7cc3"
|
|
79
79
|
}
|
|
@@ -27,6 +27,9 @@ const createAnalyze = treeSitterYaml => async source => {
|
|
|
27
27
|
if (parser === null) {
|
|
28
28
|
throw new _apidomError.ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
29
29
|
}
|
|
30
|
+
if (currentTree !== null) {
|
|
31
|
+
currentTree.delete();
|
|
32
|
+
}
|
|
30
33
|
currentTree = parser.parse(source);
|
|
31
34
|
parser.reset();
|
|
32
35
|
return currentTree;
|
|
@@ -22,6 +22,9 @@ const createAnalyze = treeSitterYaml => async source => {
|
|
|
22
22
|
if (parser === null) {
|
|
23
23
|
throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
24
24
|
}
|
|
25
|
+
if (currentTree !== null) {
|
|
26
|
+
currentTree.delete();
|
|
27
|
+
}
|
|
25
28
|
currentTree = parser.parse(source);
|
|
26
29
|
parser.reset();
|
|
27
30
|
return currentTree;
|