New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/json-schema-ref-parser

Package Overview
Dependencies
Maintainers
27
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json-schema-ref-parser - npm Package Compare versions

Comparing version 9.0.2 to 9.0.3

14

lib/parsers/yaml.js
"use strict";
const { ParserError } = require("../util/errors");
const yaml = require("js-yaml");
const yaml = require("@stoplight/yaml");

@@ -48,3 +48,13 @@ module.exports = {

try {
return yaml.safeLoad(data);
const parsed = yaml.parseWithPointers(data, {
ignoreDuplicateKeys: true,
mergeKeys: false,
});
if (parsed.diagnostics.some(diagnostic => diagnostic.severity === 0)) {
const { message, range: { start: { line, character }}} = parsed.diagnostics[0];
throw new ParserError(`${message} at line ${line + 1}, column ${character + 1}:`, file.url);
}
return parsed.data;
}

@@ -51,0 +61,0 @@ catch (e) {

6

package.json
{
"name": "@stoplight/json-schema-ref-parser",
"version": "9.0.2",
"version": "9.0.3",
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",

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

"@jsdevtools/ono": "^7.1.2",
"call-me-maybe": "^1.0.1",
"js-yaml": "^3.13.1"
"@stoplight/yaml": "^4.0.2",
"call-me-maybe": "^1.0.1"
}
}
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