1
0
Fork 0

chore: Reconfigure packages

This commit is contained in:
Joost De Cock 2021-04-24 10:21:48 +02:00
parent 7d6aabfaaf
commit 4003c1425c
157 changed files with 878 additions and 858 deletions

View file

@ -53,7 +53,7 @@ export function register(config) {
function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then(registration => {
.then((registration) => {
registration.onupdatefound = () => {
const installingWorker = registration.installing
installingWorker.onstatechange = () => {
@ -84,7 +84,7 @@ function registerValidSW(swUrl, config) {
}
}
})
.catch(error => {
.catch((error) => {
console.error('Error during service worker registration:', error)
})
}
@ -92,14 +92,14 @@ function registerValidSW(swUrl, config) {
function checkValidServiceWorker(swUrl, config) {
// Check if the service worker can be found. If it can't reload the page.
fetch(swUrl)
.then(response => {
.then((response) => {
// Ensure service worker exists, and that we really are getting a JS file.
if (
response.status === 404 ||
response.headers.get('content-type').indexOf('javascript') === -1
) {
// No service worker found. Probably a different app. Reload the page.
navigator.serviceWorker.ready.then(registration => {
navigator.serviceWorker.ready.then((registration) => {
registration.unregister().then(() => {
window.location.reload()
})
@ -116,7 +116,7 @@ function checkValidServiceWorker(swUrl, config) {
export function unregister() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.ready.then(registration => {
navigator.serviceWorker.ready.then((registration) => {
registration.unregister()
})
}

View file

@ -1,6 +1,6 @@
{
"name": "@freesewing/breanna",
"version": "2.15.1-rc.1",
"version": "2.15.1",
"description": "A FreeSewing pattern for a basic body block for womenswear",
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
"homepage": "https://freesewing.org/",
@ -34,9 +34,9 @@
"testci": "BABEL_ENV=production ./node_modules/.bin/_mocha tests/*.test.js --require @babel/register"
},
"peerDependencies": {
"@freesewing/core": "^2.15.1-rc.1",
"@freesewing/plugin-bundle": "^2.15.1-rc.1",
"@freesewing/brian": "^2.15.1-rc.1"
"@freesewing/core": "^2.15.1",
"@freesewing/plugin-bundle": "^2.15.1",
"@freesewing/brian": "^2.15.1"
},
"dependencies": {},
"devDependencies": {
@ -47,14 +47,14 @@
"eslint": "^7.6.0",
"babel-jest": "^26.2.2",
"jest": "26.2.2",
"@freesewing/components": "^2.15.1-rc.1",
"@freesewing/css-theme": "^2.15.1-rc.1",
"@freesewing/i18n": "^2.15.1-rc.1",
"@freesewing/mui-theme": "^2.15.1-rc.1",
"@freesewing/plugin-bust": "^2.15.1-rc.1",
"@freesewing/plugin-buttons": "^2.15.1-rc.1",
"@freesewing/plugin-flip": "^2.15.1-rc.1",
"@freesewing/utils": "^2.15.1-rc.1",
"@freesewing/components": "^2.15.1",
"@freesewing/css-theme": "^2.15.1",
"@freesewing/i18n": "^2.15.1",
"@freesewing/mui-theme": "^2.15.1",
"@freesewing/plugin-bust": "^2.15.1",
"@freesewing/plugin-buttons": "^2.15.1",
"@freesewing/plugin-flip": "^2.15.1",
"@freesewing/utils": "^2.15.1",
"@svgr/rollup": "^2.4.1",
"cross-env": "^7.0.2",
"react-scripts": "^3.4.1",
@ -84,7 +84,7 @@
],
"publishConfig": {
"access": "public",
"tag": "next"
"tag": "latest"
},
"engines": {
"node": ">=12.0.0",