Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/yaml

Package Overview
Dependencies
Maintainers
18
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 3.0.2 to 3.1.0

2

package.json
{
"name": "@stoplight/yaml",
"version": "3.0.2",
"version": "3.1.0",
"description": "Useful functions when working with YAML.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -61,3 +61,3 @@ "use strict";

case yaml_ast_parser_1.Kind.SCALAR:
return 'valueObject' in node ? node.valueObject : node.value;
return getScalarValue(node);
case yaml_ast_parser_1.Kind.ANCHOR_REF:

@@ -107,2 +107,16 @@ if (node.value !== void 0 && isCircularAnchorRef(node)) {

};
function getScalarValue(node) {
switch (yaml_ast_parser_1.determineScalarType(node)) {
case yaml_ast_parser_1.ScalarType.null:
return null;
case yaml_ast_parser_1.ScalarType.string:
return String(node.value);
case yaml_ast_parser_1.ScalarType.bool:
return yaml_ast_parser_1.parseYamlBoolean(node.value);
case yaml_ast_parser_1.ScalarType.int:
return yaml_ast_parser_1.parseYamlInteger(node.value);
case yaml_ast_parser_1.ScalarType.float:
return yaml_ast_parser_1.parseYamlFloat(node.value);
}
}
const computeLineMap = (input) => {

@@ -109,0 +123,0 @@ const lineMap = [];

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