New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swr

Package Overview
Dependencies
Maintainers
97
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swr - npm Package Compare versions

Comparing version 1.1.0-beta.11 to 1.1.0-beta.12

2

dist/types.d.ts

@@ -88,3 +88,3 @@ import * as revalidateEvents from './constants/revalidate-events';

export declare type SWRConfiguration<Data = any, Error = any, Fn extends BareFetcher<any> = BareFetcher<any>> = Partial<PublicConfiguration<Data, Error, Fn>>;
export interface SWRResponse<Data, Error> {
export interface SWRResponse<Data = any, Error = any> {
data?: Data;

@@ -91,0 +91,0 @@ error?: Error;

@@ -17,6 +17,6 @@ import { SWRConfiguration, SWRResponse, Arguments, BareFetcher } from 'swr';

export interface SWRInfiniteHook {
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = () => null>(getKey: KeyLoader): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = () => null>(getKey: KeyLoader, fetcher: InfiniteFetcher<Data, KeyLoader> | null): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = () => null>(getKey: KeyLoader, config: SWRInfiniteConfiguration<Data, Error, InfiniteFetcher<Data, KeyLoader>> | undefined): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = () => null>(getKey: KeyLoader, fetcher: InfiniteFetcher<Data, KeyLoader> | null, config: SWRInfiniteConfiguration<Data, Error, InfiniteFetcher<Data, KeyLoader>> | undefined): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = (index: number, previousPageData: Data | null) => null>(getKey: KeyLoader): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = (index: number, previousPageData: Data | null) => null>(getKey: KeyLoader, fetcher: InfiniteFetcher<Data, KeyLoader> | null): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = (index: number, previousPageData: Data | null) => null>(getKey: KeyLoader, config: SWRInfiniteConfiguration<Data, Error, InfiniteFetcher<Data, KeyLoader>> | undefined): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any, KeyLoader extends InfiniteKeyLoader = (index: number, previousPageData: Data | null) => null>(getKey: KeyLoader, fetcher: InfiniteFetcher<Data, KeyLoader> | null, config: SWRInfiniteConfiguration<Data, Error, InfiniteFetcher<Data, KeyLoader>> | undefined): SWRInfiniteResponse<Data, Error>;
<Data = any, Error = any>(getKey: InfiniteKeyLoader): SWRInfiniteResponse<Data, Error>;

@@ -23,0 +23,0 @@ <Data = any, Error = any>(getKey: InfiniteKeyLoader, fetcher: BareFetcher<Data> | null): SWRInfiniteResponse<Data, Error>;

{
"name": "swr",
"version": "1.1.0-beta.11",
"version": "1.1.0-beta.12",
"description": "React Hooks library for remote data fetching",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -14,3 +14,3 @@ [![SWR](https://assets.vercel.com/image/upload/v1572289618/swr/banner.png)](https://swr.vercel.app)

</a>
<a aria-label="License" href="https://github.com/zeit/swr/blob/master/LICENSE">
<a aria-label="License" href="https://github.com/zeit/swr/blob/main/LICENSE">
<img alt="" src="https://badgen.net/npm/license/swr">

@@ -17,0 +17,0 @@ </a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc