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.0.19 to 1.0.20

5

dist/index.es.js

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

var _d = useState(true), loading = _d[0], setLoading = _d[1];
var _e = useState(true), isLatestVersion = _e[0], setIsLatestVersion = _e[1];
var _e = useState(false), isLatestVersion = _e[0], setIsLatestVersion = _e[1];
var useAppVersionState = createPersistedState('appVersion');

@@ -18,2 +18,5 @@ var _f = useAppVersionState(''), appVersion = _f[0], setAppVersion = _f[1];

console.log('Clearing cache and hard reloading...');
if (!latestVersion)
return;
setAppVersion(latestVersion);
if ('caches' in window) {

@@ -20,0 +23,0 @@ // Service worker cache should be cleared with caches.delete()

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

var _d = React.useState(true), loading = _d[0], setLoading = _d[1];
var _e = React.useState(true), isLatestVersion = _e[0], setIsLatestVersion = _e[1];
var _e = React.useState(false), isLatestVersion = _e[0], setIsLatestVersion = _e[1];
var useAppVersionState = createPersistedState('appVersion');

@@ -22,2 +22,5 @@ var _f = useAppVersionState(''), appVersion = _f[0], setAppVersion = _f[1];

console.log('Clearing cache and hard reloading...');
if (!latestVersion)
return;
setAppVersion(latestVersion);
if ('caches' in window) {

@@ -24,0 +27,0 @@ // Service worker cache should be cleared with caches.delete()

2

package.json
{
"name": "react-clear-cache",
"version": "1.0.19",
"version": "1.0.20",
"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