You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@apidevtools/json-schema-ref-parser

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version

to
13.0.2

19

dist/lib/util/url.js

@@ -93,13 +93,16 @@ "use strict";

function cwd() {
if (typeof window !== "undefined") {
if (typeof window !== "undefined" && window.location) {
return location.href;
}
const path = process.cwd();
const lastChar = path.slice(-1);
if (lastChar === "/" || lastChar === "\\") {
return path;
if (typeof process !== "undefined" && process.cwd) {
const path = process.cwd();
const lastChar = path.slice(-1);
if (lastChar === "/" || lastChar === "\\") {
return path;
}
else {
return path + "/";
}
}
else {
return path + "/";
}
return "/";
}

@@ -106,0 +109,0 @@ /**

@@ -47,14 +47,17 @@ import convertPathToPosix from "./convert-path-to-posix";

export function cwd() {
if (typeof window !== "undefined") {
if (typeof window !== "undefined" && window.location) {
return location.href;
}
const path = process.cwd();
if (typeof process !== "undefined" && process.cwd) {
const path = process.cwd();
const lastChar = path.slice(-1);
if (lastChar === "/" || lastChar === "\\") {
return path;
} else {
return path + "/";
const lastChar = path.slice(-1);
if (lastChar === "/" || lastChar === "\\") {
return path;
} else {
return path + "/";
}
}
return "/";
}

@@ -61,0 +64,0 @@

{
"name": "@apidevtools/json-schema-ref-parser",
"version": "13.0.1",
"version": "13.0.2",
"description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",

@@ -5,0 +5,0 @@ "scripts": {