@swagger-api/apidom-parser-adapter-openapi-yaml-2 1.7.0 → 1.8.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
|
+
# [1.8.0](https://github.com/swagger-api/apidom/compare/v1.7.0...v1.8.0) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
|
|
9
|
+
|
|
6
10
|
# [1.7.0](https://github.com/swagger-api/apidom/compare/v1.6.0...v1.7.0) (2026-03-17)
|
|
7
11
|
|
|
8
12
|
### Reverts
|
package/dist/{9341421b411b868e3994f2d852da162b.wasm → 77eb67fad227c765659b848dfcc82388.wasm}
RENAMED
|
Binary file
|
|
@@ -16247,6 +16247,8 @@
|
|
|
16247
16247
|
};
|
|
16248
16248
|
}
|
|
16249
16249
|
|
|
16250
|
+
const treeSitterYaml = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__dirname + '/77eb67fad227c765659b848dfcc82388.wasm').href : new URL('77eb67fad227c765659b848dfcc82388.wasm', typeof document === 'undefined' ? location.href : document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI).href);
|
|
16251
|
+
|
|
16250
16252
|
var treeSitter = {exports: {}};
|
|
16251
16253
|
|
|
16252
16254
|
var hasRequiredTreeSitter;
|
|
@@ -19481,26 +19483,15 @@
|
|
|
19481
19483
|
var treeSitterExports = requireTreeSitter();
|
|
19482
19484
|
const Parser = /*@__PURE__*/getDefaultExportFromCjs(treeSitterExports);
|
|
19483
19485
|
|
|
19484
|
-
const treeSitterYaml = (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__dirname + '/9341421b411b868e3994f2d852da162b.wasm').href : new URL('9341421b411b868e3994f2d852da162b.wasm', typeof document === 'undefined' ? location.href : document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI).href);
|
|
19485
|
-
|
|
19486
19486
|
let parser = null;
|
|
19487
19487
|
let parserInitLock = null;
|
|
19488
19488
|
let currentTree = null;
|
|
19489
|
-
|
|
19490
|
-
/**
|
|
19491
|
-
* Lexical Analysis of source string using WebTreeSitter.
|
|
19492
|
-
* This is WebAssembly version of TreeSitters Lexical Analysis.
|
|
19493
|
-
*
|
|
19494
|
-
* Given JavaScript doesn't support true parallelism, this
|
|
19495
|
-
* code should be as lazy as possible and temporal safety should be fine.
|
|
19496
|
-
* @public
|
|
19497
|
-
*/
|
|
19498
|
-
const analyze$1 = async source => {
|
|
19489
|
+
const createAnalyze = treeSitterYaml => async source => {
|
|
19499
19490
|
if (parser === null && parserInitLock === null) {
|
|
19500
19491
|
// acquire lock
|
|
19501
|
-
parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(
|
|
19492
|
+
parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(yamlLanguage => {
|
|
19502
19493
|
const parserInstance = new Parser();
|
|
19503
|
-
parserInstance.setLanguage(
|
|
19494
|
+
parserInstance.setLanguage(yamlLanguage);
|
|
19504
19495
|
return parserInstance;
|
|
19505
19496
|
}).finally(() => {
|
|
19506
19497
|
// release lock
|
|
@@ -19510,7 +19501,8 @@
|
|
|
19510
19501
|
} else if (parser === null && parserInitLock !== null) {
|
|
19511
19502
|
// await for lock to be released if there is one
|
|
19512
19503
|
parser = await parserInitLock;
|
|
19513
|
-
}
|
|
19504
|
+
}
|
|
19505
|
+
if (parser === null) {
|
|
19514
19506
|
throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
19515
19507
|
}
|
|
19516
19508
|
currentTree = parser.parse(source);
|
|
@@ -19518,6 +19510,16 @@
|
|
|
19518
19510
|
return currentTree;
|
|
19519
19511
|
};
|
|
19520
19512
|
|
|
19513
|
+
/**
|
|
19514
|
+
* Lexical Analysis of source string using WebTreeSitter.
|
|
19515
|
+
* This is WebAssembly version of TreeSitters Lexical Analysis.
|
|
19516
|
+
*
|
|
19517
|
+
* Given JavaScript doesn't support true parallelism, this
|
|
19518
|
+
* code should be as lazy as possible and temporal safety should be fine.
|
|
19519
|
+
* @public
|
|
19520
|
+
*/
|
|
19521
|
+
const analyze$1 = createAnalyze(treeSitterYaml);
|
|
19522
|
+
|
|
19521
19523
|
class TreeCursorSyntaxNode {
|
|
19522
19524
|
type;
|
|
19523
19525
|
startPositionRow;
|