make-fetch-happen
Advanced tools
Comparing version 10.1.2 to 10.1.3
@@ -13,3 +13,3 @@ const { FetchError, Headers, Request, Response } = require('minipass-fetch') | ||
makeFetchHappen.defaults = (defaultUrl, defaultOptions = {}) => { | ||
makeFetchHappen.defaults = (defaultUrl, defaultOptions = {}, wrappedFetch = makeFetchHappen) => { | ||
if (typeof defaultUrl === 'object') { | ||
@@ -30,6 +30,7 @@ defaultOptions = defaultUrl | ||
} | ||
return makeFetchHappen(finalUrl, finalOptions) | ||
return wrappedFetch(finalUrl, finalOptions) | ||
} | ||
defaultedFetch.defaults = makeFetchHappen.defaults | ||
defaultedFetch.defaults = (defaultUrl1, defaultOptions1 = {}) => | ||
makeFetchHappen.defaults(defaultUrl1, defaultOptions1, defaultedFetch) | ||
return defaultedFetch | ||
@@ -36,0 +37,0 @@ } |
{ | ||
"name": "make-fetch-happen", | ||
"version": "10.1.2", | ||
"version": "10.1.3", | ||
"description": "Opinionated, caching, retrying fetch client", | ||
@@ -58,3 +58,3 @@ "main": "lib/index.js", | ||
"@npmcli/eslint-config": "^3.0.1", | ||
"@npmcli/template-oss": "3.2.2", | ||
"@npmcli/template-oss": "3.4.3", | ||
"mkdirp": "^1.0.4", | ||
@@ -77,4 +77,4 @@ "nock": "^13.2.4", | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "3.2.2" | ||
"version": "3.4.3" | ||
} | ||
} |
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
59470
1132