@cocreate/pwa 1.3.4 → 1.3.6

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 CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.3.6](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.3.5...v1.3.6) (2022-11-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bumped [@cocreate](https://github.com/cocreate) dependencies ([4c11170](https://github.com/CoCreate-app/CoCreate-pwa/commit/4c11170004961878ff747e4c8a49039ec7efba20))
7
+
8
+ ## [1.3.5](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.3.4...v1.3.5) (2022-11-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * apply src: {{source}} to CoCreate.config ([553fc62](https://github.com/CoCreate-app/CoCreate-pwa/commit/553fc625f3023ce780422fea415e0830b3033356))
14
+ * workflow docs ([55c5987](https://github.com/CoCreate-app/CoCreate-pwa/commit/55c5987ff2141d670eb631bada37388ef3212eb1))
15
+
1
16
  ## [1.3.4](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.3.3...v1.3.4) (2022-11-21)
2
17
 
3
18
 
@@ -1,18 +1,18 @@
1
1
  module.exports = {
2
2
  "config": {
3
3
  "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
- "organization_Id": "5ff747727005da1c272740ab",
4
+ "organization_id": "5ff747727005da1c272740ab",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
-
8
- "sources": [{
7
+ "sources": [
8
+ {
9
9
  "entry": "./docs/index.html",
10
10
  "collection": "files",
11
- "document_id": "",
12
- "key": "src",
13
11
  "document": {
12
+ "_id": "637ca5ac50234ef1671ce327",
14
13
  "name": "index.html",
15
14
  "path": "/docs/pwa/index.html",
15
+ "src": "{{source}}",
16
16
  "domains": [
17
17
  "cocreate.app",
18
18
  "general.cocreate.app"
@@ -23,21 +23,5 @@ module.exports = {
23
23
  "website_id": "614298c2829b690010a5c031"
24
24
  }
25
25
  }
26
- ],
27
-
28
- "extract": {
29
- "directory": "./src/",
30
- "extensions": [
31
- "js",
32
- "css",
33
- "html"
34
- ],
35
- "ignores": [
36
- "node_modules",
37
- "vendor",
38
- "bower_components",
39
- "archive"
40
- ]
41
- }
42
- }
43
-
26
+ ]
27
+ }
package/docs/index.html CHANGED
@@ -124,7 +124,7 @@
124
124
  var CoCreateConfig = {
125
125
  apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
126
126
  securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
127
- organization_Id: '5de0387b12e200ea63204d6c'
127
+ organization_id: '5ff747727005da1c272740ab'
128
128
  }
129
129
  </script>
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/pwa",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
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.24"
63
+ "@cocreate/docs": "^1.4.2"
64
64
  }
65
65
  }
package/src/index.js CHANGED
@@ -73,7 +73,7 @@ if ('serviceWorker' in navigator) {
73
73
  if (registrations.length === 0 || isPwa == true)
74
74
  window.addEventListener("load", function(event) {
75
75
  navigator.serviceWorker.getRegistration(workerPath).then(registration => {
76
- if(registration && registration.active) {
76
+ if (registration && registration.active) {
77
77
  console.log('Service Worker Active')
78
78
  } else {
79
79
  navigator.serviceWorker.register(workerPath)