@stoplight/yaml
Advanced tools
Comparing version 4.0.2 to 4.1.0
{ | ||
"name": "@stoplight/yaml", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "Useful functions when working with YAML.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -77,4 +77,7 @@ "use strict"; | ||
return node.items.map(item => exports.walkAST(item, options, lineMap, diagnostics)); | ||
case types_2.Kind.SCALAR: | ||
return getScalarValue(node); | ||
case types_2.Kind.SCALAR: { | ||
const bigInt = options !== void 0 && options.bigInt === true; | ||
const value = getScalarValue(node); | ||
return !bigInt && typeof value === 'bigint' ? Number(value) : value; | ||
} | ||
case types_2.Kind.ANCHOR_REF: { | ||
@@ -81,0 +84,0 @@ if (utils_1.isObject(node.value)) { |
@@ -6,2 +6,3 @@ import { IParserResult, Optional } from '@stoplight/types'; | ||
json?: boolean; | ||
bigInt?: boolean; | ||
mergeKeys?: boolean; | ||
@@ -8,0 +9,0 @@ preserveKeyOrder?: boolean; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63981
693