@cocreate/pwa 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/package.json +2 -2
- package/src/index.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.2.4](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.2.3...v1.2.4) (2022-10-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump [@cocreate](https://github.com/cocreate) dependencies ([4be2eda](https://github.com/CoCreate-app/CoCreate-pwa/commit/4be2eda19d799e27d25de30af12c4816a0e180b1))
|
|
7
|
+
* CoCreate.pwa global scope ([86408f3](https://github.com/CoCreate-app/CoCreate-pwa/commit/86408f30f5d6e597bdda4729e378190511d9947b))
|
|
8
|
+
* removed console.log ([10a07ff](https://github.com/CoCreate-app/CoCreate-pwa/commit/10a07ff00c96af34ea624f2db9cdf248719bedda))
|
|
9
|
+
|
|
1
10
|
## [1.2.3](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.2.2...v1.2.3) (2022-09-30)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/pwa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "A simple pwa component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pwa",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/docs": "^1.3.
|
|
63
|
+
"@cocreate/docs": "^1.3.12"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {deleteCache, deleteFile} from './cache.js'
|
|
2
2
|
|
|
3
3
|
const button = document.querySelector('[actions*="install"]');
|
|
4
4
|
|
|
@@ -70,7 +70,6 @@ if ('serviceWorker' in navigator) {
|
|
|
70
70
|
let isPwa = true
|
|
71
71
|
if (workerPath) {
|
|
72
72
|
navigator.serviceWorker.getRegistrations().then(registrations => {
|
|
73
|
-
console.log(registrations);
|
|
74
73
|
if (registrations.length === 0 || isPwa == true)
|
|
75
74
|
window.addEventListener("load", function(event) {
|
|
76
75
|
navigator.serviceWorker.getRegistration(workerPath).then(registration => {
|
|
@@ -96,4 +95,4 @@ if ('serviceWorker' in navigator) {
|
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
|
|
99
|
-
export default {
|
|
98
|
+
export default {deleteCache, deleteFile, persistData}
|