🚀 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
0
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.11

2

dist/main.js

@@ -90,3 +90,3 @@ var $8zHUo$react = require("react");

Accept: "application/json",
...fetchOptions?.headers || {}
...typeof fetchOptions?.headers === "function" ? fetchOptions.headers() : fetchOptions?.headers || {}
}

@@ -93,0 +93,0 @@ });

@@ -69,3 +69,3 @@ import $hgUW1$react, {useState as $hgUW1$useState, useCallback as $hgUW1$useCallback, useEffect as $hgUW1$useEffect} from "react";

Accept: "application/json",
...fetchOptions?.headers || {}
...typeof fetchOptions?.headers === "function" ? fetchOptions.headers() : fetchOptions?.headers || {}
}

@@ -72,0 +72,0 @@ });

import { PropsWithChildren } from "react";
interface ReactRestCacheOptions {
baseUrl: string;
fetchOptions?: Partial<RequestInit>;
fetchOptions?: Partial<RequestInit> & {
headers?: () => HeadersInit;
};
}

@@ -6,0 +8,0 @@ interface QueryOptions {

{
"name": "react-rest-cache",
"version": "0.4.10",
"version": "0.4.11",
"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

Sorry, the diff of this file is not supported yet