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

oas-resolver-browser

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oas-resolver-browser - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

.npmignore

9

index.js
'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 @@ }

2

package.json
{
"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",

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