react-rest-cache
Advanced tools
Comparing version
@@ -49,3 +49,3 @@ var $8zHUo$react = require("react"); | ||
const $8b428f8f07e0d73c$var$addResponseToCacheAndNotifyObservers = (cache, data, observer)=>{ | ||
if (!data) return null; | ||
if (data === undefined || data === null) return data; | ||
if (Array.isArray(data)) return data.map((item)=>$8b428f8f07e0d73c$var$addResponseToCacheAndNotifyObservers(cache, item, observer)); | ||
@@ -52,0 +52,0 @@ if (typeof data === "object") { |
@@ -28,3 +28,3 @@ import $hgUW1$react, {useState as $hgUW1$useState, useCallback as $hgUW1$useCallback, useEffect as $hgUW1$useEffect} from "react"; | ||
const $0f15643d38641aec$var$addResponseToCacheAndNotifyObservers = (cache, data, observer)=>{ | ||
if (!data) return null; | ||
if (data === undefined || data === null) return data; | ||
if (Array.isArray(data)) return data.map((item)=>$0f15643d38641aec$var$addResponseToCacheAndNotifyObservers(cache, item, observer)); | ||
@@ -31,0 +31,0 @@ if (typeof data === "object") { |
{ | ||
"name": "react-rest-cache", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "React library to fetch a REST API with cache and sync capabilities", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
63359
0.27%