oas-resolver-browser
Advanced tools
Comparing version 2.5.1 to 2.5.2
'use strict'; | ||
const fs = require('fs'); | ||
const path = typeof process === 'object' ? require('path') : require('path-browserify'); | ||
var path = require('path'); | ||
var pathBrowserify = require('path-browserify'); | ||
const url = require('url'); | ||
@@ -175,2 +176,5 @@ | ||
if (effectiveProtocol === 'file:') { | ||
if (options.browser) { | ||
path = pathBrowserify; | ||
} | ||
target = path.resolve(base ? base + '/' : '', pointer); | ||
@@ -511,2 +515,5 @@ } | ||
if (!srcUrl.protocol || srcUrl.protocol.length <= 2) { // windows drive-letters | ||
if (options.browser) { | ||
path = pathBrowserify; | ||
} | ||
options.source = path.resolve(options.source); | ||
@@ -513,0 +520,0 @@ } |
{ | ||
"name": "oas-resolver-browser", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "Resolve external $refs in OpenAPI (swagger) 2.0 / 3.x definitions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38500
7
817
4