@swagger-api/apidom-parser-adapter-arazzo-yaml-1 1.7.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/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.9.0](https://github.com/swagger-api/apidom/compare/v1.8.0...v1.9.0) (2026-03-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-yaml-1
|
|
9
|
+
|
|
10
|
+
# [1.8.0](https://github.com/swagger-api/apidom/compare/v1.7.0...v1.8.0) (2026-03-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-yaml-1
|
|
13
|
+
|
|
6
14
|
# [1.7.0](https://github.com/swagger-api/apidom/compare/v1.6.0...v1.7.0) (2026-03-17)
|
|
7
15
|
|
|
8
16
|
### Reverts
|
package/dist/{9341421b411b868e3994f2d852da162b.wasm → 77eb67fad227c765659b848dfcc82388.wasm}
RENAMED
|
Binary file
|
|
@@ -16443,6 +16443,8 @@
|
|
|
16443
16443
|
};
|
|
16444
16444
|
}
|
|
16445
16445
|
|
|
16446
|
+
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);
|
|
16447
|
+
|
|
16446
16448
|
var treeSitter = {exports: {}};
|
|
16447
16449
|
|
|
16448
16450
|
var hasRequiredTreeSitter;
|
|
@@ -19677,26 +19679,15 @@
|
|
|
19677
19679
|
var treeSitterExports = requireTreeSitter();
|
|
19678
19680
|
const Parser = /*@__PURE__*/getDefaultExportFromCjs(treeSitterExports);
|
|
19679
19681
|
|
|
19680
|
-
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);
|
|
19681
|
-
|
|
19682
19682
|
let parser = null;
|
|
19683
19683
|
let parserInitLock = null;
|
|
19684
19684
|
let currentTree = null;
|
|
19685
|
-
|
|
19686
|
-
/**
|
|
19687
|
-
* Lexical Analysis of source string using WebTreeSitter.
|
|
19688
|
-
* This is WebAssembly version of TreeSitters Lexical Analysis.
|
|
19689
|
-
*
|
|
19690
|
-
* Given JavaScript doesn't support true parallelism, this
|
|
19691
|
-
* code should be as lazy as possible and temporal safety should be fine.
|
|
19692
|
-
* @public
|
|
19693
|
-
*/
|
|
19694
|
-
const analyze$1 = async source => {
|
|
19685
|
+
const createAnalyze = treeSitterYaml => async source => {
|
|
19695
19686
|
if (parser === null && parserInitLock === null) {
|
|
19696
19687
|
// acquire lock
|
|
19697
|
-
parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(
|
|
19688
|
+
parserInitLock = Parser.init().then(() => Parser.Language.load(treeSitterYaml)).then(yamlLanguage => {
|
|
19698
19689
|
const parserInstance = new Parser();
|
|
19699
|
-
parserInstance.setLanguage(
|
|
19690
|
+
parserInstance.setLanguage(yamlLanguage);
|
|
19700
19691
|
return parserInstance;
|
|
19701
19692
|
}).finally(() => {
|
|
19702
19693
|
// release lock
|
|
@@ -19706,14 +19697,28 @@
|
|
|
19706
19697
|
} else if (parser === null && parserInitLock !== null) {
|
|
19707
19698
|
// await for lock to be released if there is one
|
|
19708
19699
|
parser = await parserInitLock;
|
|
19709
|
-
}
|
|
19700
|
+
}
|
|
19701
|
+
if (parser === null) {
|
|
19710
19702
|
throw new ApiDOMError('Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.');
|
|
19711
19703
|
}
|
|
19704
|
+
if (currentTree !== null) {
|
|
19705
|
+
currentTree.delete();
|
|
19706
|
+
}
|
|
19712
19707
|
currentTree = parser.parse(source);
|
|
19713
19708
|
parser.reset();
|
|
19714
19709
|
return currentTree;
|
|
19715
19710
|
};
|
|
19716
19711
|
|
|
19712
|
+
/**
|
|
19713
|
+
* Lexical Analysis of source string using WebTreeSitter.
|
|
19714
|
+
* This is WebAssembly version of TreeSitters Lexical Analysis.
|
|
19715
|
+
*
|
|
19716
|
+
* Given JavaScript doesn't support true parallelism, this
|
|
19717
|
+
* code should be as lazy as possible and temporal safety should be fine.
|
|
19718
|
+
* @public
|
|
19719
|
+
*/
|
|
19720
|
+
const analyze$1 = createAnalyze(treeSitterYaml);
|
|
19721
|
+
|
|
19717
19722
|
class TreeCursorSyntaxNode {
|
|
19718
19723
|
type;
|
|
19719
19724
|
startPositionRow;
|