react-clear-cache
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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
73437