🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-rest-cache

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rest-cache - npm Package Compare versions

Comparing version

to
0.4.5

2

dist/main.js

@@ -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