exp-fetch
Advanced tools
Comparing version
@@ -51,2 +51,3 @@ "use strict"; | ||
const retry = "retry" in behavior ? behavior.retry : 0; | ||
const hooks = "hooks" in behavior ? behavior.hooks : {}; // got hooks | ||
@@ -185,2 +186,3 @@ function defaultRequestTimeFn(requestOptions, took) { | ||
cache: false, | ||
hooks, | ||
}; | ||
@@ -187,0 +189,0 @@ |
{ | ||
"name": "exp-fetch", | ||
"version": "5.2.1", | ||
"version": "5.3.1", | ||
"description": "A small pluggable fetch lib", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -112,2 +112,3 @@ fetch | ||
* `timeout`: see [got](https://github.com/sindresorhus/got) for details, defaults to 20000ms | ||
* `hooks`: see [got](https://github.com/sindresorhus/got) for details, defaults to empty object | ||
@@ -114,0 +115,0 @@ The difference between `freeze` and `deepFreeze` is that `deepFreeze` walks the object graph and freezes any |
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
423
0.48%233
0.43%25387
-5.06%14
-6.67%4
33.33%