import axios from 'axios' ; import { getUpdateUrl } from './get-update-url' ; export async function isUpdateAvailable ( ) { let isNewVersionAvailable = false ; try { const { data } = await axios ( getUpdateUrl ( ) ) ; isNewVersionAvailable = Boolean ( data ) ; } catch { isNewVersionAvailable = false ; } return isNewVersionAvailable ; }