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

swr

Package Overview
Dependencies
Maintainers
8
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 2.3.1 to 2.3.2

3

dist/index/index.js

@@ -254,4 +254,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const laggyDataRef = React.useRef(data);
var _laggyDataRef_current;
const returnedData = keepPreviousData ? index_js.isUndefined(cachedData) ? (_laggyDataRef_current = laggyDataRef.current) != null ? _laggyDataRef_current : data : cachedData : data;
const returnedData = keepPreviousData ? index_js.isUndefined(cachedData) ? index_js.isUndefined(laggyDataRef.current) ? data : laggyDataRef.current : cachedData : data;
// - Suspense mode and there's stale data for the initial render.

@@ -258,0 +257,0 @@ // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.

{
"name": "swr",
"version": "2.3.1",
"version": "2.3.2",
"description": "React Hooks library for remote data fetching",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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