gitea push
This commit is contained in:
+2
@@ -21,6 +21,8 @@ class Alias extends Node.NodeBase {
|
||||
* instance of the `source` anchor before this node.
|
||||
*/
|
||||
resolve(doc, ctx) {
|
||||
if (ctx?.maxAliasCount === 0)
|
||||
throw new ReferenceError('Alias resolution is disabled');
|
||||
let nodes;
|
||||
if (ctx?.aliasResolveCache) {
|
||||
nodes = ctx.aliasResolveCache;
|
||||
|
||||
+5
-1
@@ -31,7 +31,11 @@ export declare class Scalar<T = unknown> extends NodeBase {
|
||||
* The YAML 1.1 schema also supports 'BIN' and 'TIME'
|
||||
*/
|
||||
format?: string;
|
||||
/** If `value` is a number, use this value when stringifying this node. */
|
||||
/**
|
||||
* If `value` is a number that is serialized as a decimal string
|
||||
* (i.e. not using exponential notation),
|
||||
* use this value when stringifying this node.
|
||||
*/
|
||||
minFractionDigits?: number;
|
||||
/** Set during parsing to the source string value */
|
||||
source?: string;
|
||||
|
||||
Reference in New Issue
Block a user