@swagger-api/apidom-parser-adapter-yaml-1-2 0.91.0 → 0.92.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/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.92.0](https://github.com/swagger-api/apidom/compare/v0.91.0...v0.92.0) (2024-01-12)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
9
+
6
10
  # [0.91.0](https://github.com/swagger-api/apidom/compare/v0.90.0...v0.91.0) (2024-01-08)
7
11
 
8
12
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
package/README.md CHANGED
@@ -89,7 +89,7 @@ const parseResult = await parse('prop: value', { sourceMap: true });
89
89
  import ApiDOMParser from '@swagger-api/apidom-parser';
90
90
  import * as yamlParserAdapter from '@swagger-api/apidom-parser-adapter-yaml-1-2';
91
91
 
92
- const parser = ApiDOMParser();
92
+ const parser = new ApiDOMParser();
93
93
 
94
94
  parser.use(yamlParserAdapter);
95
95
 
@@ -19,8 +19,8 @@ const analyze = (cst, {
19
19
  const cursor = cst.walk();
20
20
  const iterator = new _TreeCursorIterator.default(cursor);
21
21
  const [rootNode] = Array.from(iterator);
22
- const cstVisitor = (0, _CstVisitor.default)();
23
- const astVisitor = (0, _YamlAstVisitor.default)();
22
+ const cstVisitor = new _CstVisitor.default();
23
+ const astVisitor = new _YamlAstVisitor.default();
24
24
  const schema = (0, _apidomAst.YamlJsonSchema)();
25
25
  const yamlAst = (0, _apidomAst.visit)(rootNode, cstVisitor, {
26
26
  // @ts-ignore