Socket
Socket
Sign inDemoInstall

@stoplight/yaml

Package Overview
Dependencies
Maintainers
27
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/yaml - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc