@cocreate/notification 1.5.1 → 1.6.0

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,15 @@
1
+ # [1.6.0](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.5.1...v1.6.0) (2024-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * applied host to define environment/branch ([2bb6e41](https://github.com/CoCreate-app/CoCreate-notification/commit/2bb6e413827d17a2cf927ee5b8b18da325e7049a))
7
+
8
+
9
+ ### Features
10
+
11
+ * bumped CoCreate dependencies to their latest versions ([b90262a](https://github.com/CoCreate-app/CoCreate-notification/commit/b90262a061b44d0d2a9eb828b7127387b5b3cc21))
12
+
1
13
  ## [1.5.1](https://github.com/CoCreate-app/CoCreate-notification/compare/v1.5.0...v1.5.1) (2023-12-05)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/notification",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
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.14.0",
61
- "@cocreate/socket-client": "^1.35.0",
60
+ "@cocreate/actions": "^1.15.1",
61
+ "@cocreate/socket-client": "^1.36.1",
62
62
  "web-push": "^3.6.6"
63
63
  }
64
64
  }
package/src/server.js CHANGED
@@ -24,6 +24,7 @@ class CoCreateNotification {
24
24
  addUser(data) {
25
25
  this.crud.send({
26
26
  method: 'object.update',
27
+ host: data.host,
27
28
  array: 'clients',
28
29
  object: {
29
30
  _id: data.clientId,
@@ -61,6 +62,7 @@ class CoCreateNotification {
61
62
  } else {
62
63
  newKeys = await this.crud.send({
63
64
  method: 'object.read',
65
+ host: data.host,
64
66
  array: 'clients',
65
67
  object: {
66
68
  _id: data.clientId
@@ -92,6 +94,7 @@ class CoCreateNotification {
92
94
 
93
95
  this.crud.send({
94
96
  method: 'object.update',
97
+ host: data.host,
95
98
  array: 'clients',
96
99
  object: {
97
100
  _id: data.clientId,
@@ -112,6 +115,7 @@ class CoCreateNotification {
112
115
  try {
113
116
  subscription = await this.crud.send({
114
117
  method: 'object.read',
118
+ host: data.host,
115
119
  array: 'clients',
116
120
  object: {
117
121
  _id: data.clientId