Last 12 weeks · 0 commits
1 of 6 standards met
!snyk-top-banner Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project. Snyk changed the following file(s): Vulnerabilities that will be fixed with an upgrade: :-------------------------::------------------------- !low severity 508 [!IMPORTANT] Check the changes in this PR to ensure they won't cause issues with your project. Max score is 1000. Note that the real score may have changed since the PR was raised. This PR was automatically created by Snyk using the credentials of a real user. Note: _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._ For more information: 🧐 View latest project report 📜 Customise PR templates 🛠 Adjust project settings 📚 Read about Snyk's upgrade logic Learn how to fix vulnerabilities with free interactive lessons: 🦉 Directory Traversal [//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"sirv-cli","from":"0.4.6","to":"3.0.0"}],"env":"prod","issuesToFix":["SNYK-JS-SIRV-12558119"],"prId":"95ea5bb3-c8f6-475d-8907-b3fae78a6b93","prPublicId":"95ea5bb3-c8f6-475d-8907-b3fae78a6b93","packageManager":"npm","priorityScoreList":[508],"projectPublicId":"905d59e1-4039-4a43-917f-187f5f48d287","projectUrl":"https://app.snyk.io/org/developit/project/905d59e1-4039-4a43-917f-187f5f48d287?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","priorityScore"],"type":"auto","upgrade":["SNYK-JS-SIRV-12558119"],"vulns":["SNYK-JS-SIRV-12558119"],"patch":[],"isBreakingChange":true,"remediationStrategy":"vuln"}'
Repository: developit/preact-boilerplate. Description: :guitar: Ready-to-rock Preact starter project, powered by Webpack. Stars: 966, Forks: 184. Primary language: JavaScript. Languages: JavaScript (79.1%), Less (11%), EJS (9.9%). Homepage: https://preact-boilerplate.surge.sh Topics: boilerplate, css-modules, development-workflow, preact, pwa, webpack. Open PRs: 31, open issues: 5. Last activity: 5mo ago. Community health: 28%. Top contributors: developit, greenkeeperio-bot, greenkeeper[bot], cjpatoilo, diogomoretti, BANG88, osdevisnot, AdamJo, antonk52, billneff79 and others.
JavaScript
It would be great if we could add some example on how to integrate the Service Worker with the preact app. I guess the common scenario when an update is available is to show a message for the user, for example. I'm not sure what the best way to handle that is, though. One idea is to create a middleware that listens for SW events. Any other ideas?