@cocreate/notification 1.2.0 → 1.2.2

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,19 @@
1
+ ## [1.2.2](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.2.1...v1.2.2) (2023-11-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * favicon.ico path ([0e403a1](https://github.com/CoCreate-app/CoCreate-notification/commit/0e403a1f08f1bd4aa4e150002514090d50398cb8))
7
+ * update dependencies to the lates versions ([cb951cd](https://github.com/CoCreate-app/CoCreate-notification/commit/cb951cdcd704594b0f8a0872b00570e5644bb4fc))
8
+ * update method to use object.update etc ([39f2368](https://github.com/CoCreate-app/CoCreate-notification/commit/39f23689808d1a9528187d009f6aef44dd0d0c6c))
9
+
10
+ ## [1.2.1](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.2.0...v1.2.1) (2023-10-25)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * bump dependencies ([04605f3](https://github.com/CoCreate-app/CoCreate-notification/commit/04605f31e5c7fca53c8aa53c403910230b0fe850))
16
+
1
17
  # [1.2.0](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.1.5...v1.2.0) (2023-10-17)
2
18
 
3
19
 
package/demo/index.html CHANGED
@@ -5,9 +5,9 @@
5
5
  <!-- CoCreate Favicon -->
6
6
  <link
7
7
  rel="icon"
8
- href="https://cdn.cocreate.app/favicon.ico"
9
- type="image/ico"
10
- sizes="16x16" />
8
+ type="image/png"
9
+ sizes="32x32"
10
+ href="../assets/favicon.ico" />
11
11
  <link rel="manifest" href="/manifest.webmanifest" />
12
12
  </head>
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/notification",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Simple HTML5 & JavaScript component add, update & remove values in element's notification from input, select or js api. Easily configured using HTML5 notification and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "cocreate",
@@ -57,8 +57,8 @@
57
57
  "webpack-log": "^3.0.1"
58
58
  },
59
59
  "dependencies": {
60
- "@cocreate/actions": "^1.11.6",
61
- "@cocreate/socket-client": "^1.29.3",
60
+ "@cocreate/actions": "^1.12.1",
61
+ "@cocreate/socket-client": "^1.32.3",
62
62
  "web-push": "^3.6.6"
63
63
  }
64
64
  }
package/src/server.js CHANGED
@@ -23,7 +23,7 @@ class CoCreateNotification {
23
23
  // Function to generate VAPID keys (public and private)
24
24
  addUser(data) {
25
25
  this.crud.send({
26
- method: 'update.object',
26
+ method: 'object.update',
27
27
  array: 'clients',
28
28
  object: {
29
29
  _id: data.clientId,
@@ -60,7 +60,7 @@ class CoCreateNotification {
60
60
  newKeys = { ...newKeys, ...data.subscription }
61
61
  } else {
62
62
  newKeys = await this.crud.send({
63
- method: 'read.object',
63
+ method: 'object.read',
64
64
  array: 'clients',
65
65
  object: {
66
66
  _id: data.clientId
@@ -91,7 +91,7 @@ class CoCreateNotification {
91
91
  const jwt = webpush.generateRequestDetails(data.subscription, null, tokenOptions);
92
92
 
93
93
  this.crud.send({
94
- method: 'update.object',
94
+ method: 'object.update',
95
95
  array: 'clients',
96
96
  object: {
97
97
  _id: data.clientId,
@@ -111,7 +111,7 @@ class CoCreateNotification {
111
111
  if (!subscription) {
112
112
  try {
113
113
  subscription = await this.crud.send({
114
- method: 'read.object',
114
+ method: 'object.read',
115
115
  array: 'clients',
116
116
  object: {
117
117
  _id: data.clientId