@speclynx/apidom-parser-adapter-arazzo-yaml-1 4.9.0 → 4.10.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
|
+
# [4.10.0](https://github.com/speclynx/apidom/compare/v4.9.1...v4.10.0) (2026-05-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
9
|
+
|
|
10
|
+
## [4.9.1](https://github.com/speclynx/apidom/compare/v4.9.0...v4.9.1) (2026-04-21)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
13
|
+
|
|
6
14
|
# [4.9.0](https://github.com/speclynx/apidom/compare/v4.8.0...v4.9.0) (2026-04-17)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
@@ -22813,7 +22813,7 @@ function doubleQuotedValue(source, onError) {
|
|
|
22813
22813
|
next = source[++i + 1];
|
|
22814
22814
|
}
|
|
22815
22815
|
else if (next === 'x' || next === 'u' || next === 'U') {
|
|
22816
|
-
const length =
|
|
22816
|
+
const length = next === 'x' ? 2 : next === 'u' ? 4 : 8;
|
|
22817
22817
|
res += parseCharCode(source, i + 1, length, onError);
|
|
22818
22818
|
i += length;
|
|
22819
22819
|
}
|
|
@@ -22883,12 +22883,14 @@ function parseCharCode(source, offset, length, onError) {
|
|
|
22883
22883
|
const cc = source.substr(offset, length);
|
|
22884
22884
|
const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
|
|
22885
22885
|
const code = ok ? parseInt(cc, 16) : NaN;
|
|
22886
|
-
|
|
22886
|
+
try {
|
|
22887
|
+
return String.fromCodePoint(code);
|
|
22888
|
+
}
|
|
22889
|
+
catch {
|
|
22887
22890
|
const raw = source.substr(offset - 2, length + 2);
|
|
22888
22891
|
onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`);
|
|
22889
22892
|
return raw;
|
|
22890
22893
|
}
|
|
22891
|
-
return String.fromCodePoint(code);
|
|
22892
22894
|
}
|
|
22893
22895
|
|
|
22894
22896
|
|
|
@@ -24201,6 +24203,8 @@ class Alias extends _Node_js__WEBPACK_IMPORTED_MODULE_3__.NodeBase {
|
|
|
24201
24203
|
* instance of the `source` anchor before this node.
|
|
24202
24204
|
*/
|
|
24203
24205
|
resolve(doc, ctx) {
|
|
24206
|
+
if (ctx?.maxAliasCount === 0)
|
|
24207
|
+
throw new ReferenceError('Alias resolution is disabled');
|
|
24204
24208
|
let nodes;
|
|
24205
24209
|
if (ctx?.aliasResolveCache) {
|
|
24206
24210
|
nodes = ctx.aliasResolveCache;
|
|
@@ -28380,18 +28384,18 @@ const isMergeKey = (ctx, key) => (merge.identify(key) ||
|
|
|
28380
28384
|
merge.identify(key.value))) &&
|
|
28381
28385
|
ctx?.doc.schema.tags.some(tag => tag.tag === merge.tag && tag.default);
|
|
28382
28386
|
function addMergeToJSMap(ctx, map, value) {
|
|
28383
|
-
|
|
28384
|
-
if ((0,_nodes_identity_js__WEBPACK_IMPORTED_MODULE_0__.isSeq)(
|
|
28385
|
-
for (const it of
|
|
28387
|
+
const source = resolveAliasValue(ctx, value);
|
|
28388
|
+
if ((0,_nodes_identity_js__WEBPACK_IMPORTED_MODULE_0__.isSeq)(source))
|
|
28389
|
+
for (const it of source.items)
|
|
28386
28390
|
mergeValue(ctx, map, it);
|
|
28387
|
-
else if (Array.isArray(
|
|
28388
|
-
for (const it of
|
|
28391
|
+
else if (Array.isArray(source))
|
|
28392
|
+
for (const it of source)
|
|
28389
28393
|
mergeValue(ctx, map, it);
|
|
28390
28394
|
else
|
|
28391
|
-
mergeValue(ctx, map,
|
|
28395
|
+
mergeValue(ctx, map, source);
|
|
28392
28396
|
}
|
|
28393
28397
|
function mergeValue(ctx, map, value) {
|
|
28394
|
-
const source = ctx
|
|
28398
|
+
const source = resolveAliasValue(ctx, value);
|
|
28395
28399
|
if (!(0,_nodes_identity_js__WEBPACK_IMPORTED_MODULE_0__.isMap)(source))
|
|
28396
28400
|
throw new Error('Merge sources must be maps or map aliases');
|
|
28397
28401
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
@@ -28414,6 +28418,9 @@ function mergeValue(ctx, map, value) {
|
|
|
28414
28418
|
}
|
|
28415
28419
|
return map;
|
|
28416
28420
|
}
|
|
28421
|
+
function resolveAliasValue(ctx, value) {
|
|
28422
|
+
return ctx && (0,_nodes_identity_js__WEBPACK_IMPORTED_MODULE_0__.isAlias)(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
28423
|
+
}
|
|
28417
28424
|
|
|
28418
28425
|
|
|
28419
28426
|
|
|
@@ -29524,7 +29531,8 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
|
29524
29531
|
if (!format &&
|
|
29525
29532
|
minFractionDigits &&
|
|
29526
29533
|
(!tag || tag === 'tag:yaml.org,2002:float') &&
|
|
29527
|
-
|
|
29534
|
+
/^-?\d/.test(n) &&
|
|
29535
|
+
!n.includes('e')) {
|
|
29528
29536
|
let i = n.indexOf('.');
|
|
29529
29537
|
if (i < 0) {
|
|
29530
29538
|
i = n.length;
|