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
22
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

to
9.1.3

15

lib/bundle/stoplight/generator.js

@@ -57,8 +57,19 @@ "use strict";

let { endpointUrl } = this._opts;
let { href, query } = parse(url, true);
let { pathname, href, query } = parse(url, true);
if (pathname === "/" || pathname === null) {
return url;
}
let mid = query.mid ? `_m${query.mid}` : "";
let [, filepath] = href.split(endpointUrl);
let filepath;
if (endpointUrl instanceof RegExp) {
[, filepath] = pathname.split(endpointUrl);
}
else if (href.indexOf(endpointUrl) === 0) {
filepath = href.slice(endpointUrl.length);
}
if (filepath) {

@@ -65,0 +76,0 @@ return filepath + mid;

2

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

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