Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-clear-cache

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-clear-cache - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

4

dist/index.d.ts

@@ -11,6 +11,6 @@ import * as React from 'react';

} & typeof defaultProps;
export declare const useClearCache: (props: OwnProps) => {
export declare const useClearCache: (props?: OwnProps | undefined) => {
loading: boolean;
isLatestVersion: boolean;
emptyCacheStorage: (version: string) => Promise<void>;
emptyCacheStorage: (version?: string | undefined) => Promise<void>;
latestVersion: string;

@@ -17,0 +17,0 @@ };

@@ -76,3 +76,3 @@ import { useRef, useEffect, useState } from 'react';

storageKey: STORAGE_KEY,
basePath: ''
basePath: '',
};

@@ -127,3 +127,3 @@ var useClearCache = function (props) {

fetch(baseUrl, {
cache: 'no-store'
cache: 'no-store',
})

@@ -168,3 +168,3 @@ .then(function (response) { return response.json(); })

emptyCacheStorage: emptyCacheStorage,
latestVersion: latestVersion
latestVersion: latestVersion,
};

@@ -178,3 +178,3 @@ };

isLatestVersion: isLatestVersion,
emptyCacheStorage: emptyCacheStorage
emptyCacheStorage: emptyCacheStorage,
});

@@ -181,0 +181,0 @@ };

@@ -80,3 +80,3 @@ 'use strict';

storageKey: STORAGE_KEY,
basePath: ''
basePath: '',
};

@@ -131,3 +131,3 @@ var useClearCache = function (props) {

fetch(baseUrl, {
cache: 'no-store'
cache: 'no-store',
})

@@ -172,3 +172,3 @@ .then(function (response) { return response.json(); })

emptyCacheStorage: emptyCacheStorage,
latestVersion: latestVersion
latestVersion: latestVersion,
};

@@ -182,3 +182,3 @@ };

isLatestVersion: isLatestVersion,
emptyCacheStorage: emptyCacheStorage
emptyCacheStorage: emptyCacheStorage,
});

@@ -185,0 +185,0 @@ };

{
"name": "react-clear-cache",
"version": "1.2.0",
"version": "1.3.0",
"description": "A component to manage application updates.",

@@ -5,0 +5,0 @@ "author": "noahjohn9259",

Sorry, the diff of this file is not supported yet

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