Comparing version 1.0.20 to 1.0.21
@@ -179,3 +179,3 @@ "use strict"; | ||
case 14: | ||
if (!(cachePolicy === CACHE_FIRST)) return [3 /*break*/, 16]; | ||
if (!(cachePolicy === CACHE_FIRST && !response.isCached)) return [3 /*break*/, 16]; | ||
return [4 /*yield*/, cache.set(response.id, newRes.clone())]; | ||
@@ -182,0 +182,0 @@ case 15: |
@@ -173,3 +173,3 @@ var __assign = (this && this.__assign) || function () { | ||
case 14: | ||
if (!(cachePolicy === CACHE_FIRST)) return [3 /*break*/, 16]; | ||
if (!(cachePolicy === CACHE_FIRST && !response.isCached)) return [3 /*break*/, 16]; | ||
return [4 /*yield*/, cache.set(response.id, newRes.clone())]; | ||
@@ -176,0 +176,0 @@ case 15: |
{ | ||
"name": "use-http", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"homepage": "https://use-http.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
225139