oas-resolver
Advanced tools
Comparing version 2.3.2 to 2.4.0
@@ -187,3 +187,4 @@ 'use strict'; | ||
else if (effectiveProtocol && effectiveProtocol.startsWith('http')) { | ||
return fetch(target, { agent: options.agent }) | ||
const fetchOptions = Object.assign({}, options.fetchOptions, { agent: options.agent }); | ||
return options.fetch(target, fetchOptions) | ||
.then(function (res) { | ||
@@ -457,2 +458,3 @@ if (res.status !== 200) throw new Error(`Received status code ${res.status}: ${target}`); | ||
if (!options.cache) options.cache = {}; | ||
if (!options.fetch) options.fetch = fetch; | ||
@@ -459,0 +461,0 @@ if (options.source) { |
{ | ||
"name": "oas-resolver", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"description": "Resolve external $refs in OpenAPI (swagger) 2.0 / 3.x definitions", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"oas-kit-common": "^1.0.8", | ||
"reftools": "^1.1.1", | ||
"reftools": "^1.1.2", | ||
"yaml": "^1.8.3", | ||
@@ -40,3 +40,3 @@ "yargs": "^15.3.1" | ||
}, | ||
"gitHead": "33e314acc5ff77e912a0ad88e1c472d140194a6e" | ||
"gitHead": "562683f0ea02a3f5b68a6cb4518fc1d5a2e5c22c" | ||
} |
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
521
26843
5
Updatedreftools@^1.1.2