@streamlayer/sdk-web-notifications 0.13.3 → 0.13.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/lib/queue/index.js +3 -1
- package/package.json +2 -2
package/lib/queue/index.js
CHANGED
|
@@ -89,7 +89,9 @@ export class NotificationsQueue {
|
|
|
89
89
|
const prevQueue = new Map(this.notifications.getValue());
|
|
90
90
|
const notification = prevQueue.get(notificationId);
|
|
91
91
|
if (notification) {
|
|
92
|
-
notification
|
|
92
|
+
// do not hide notification if we have more than one notification in waiting queue,
|
|
93
|
+
// because we need to show next notification immediately
|
|
94
|
+
notification.hiding = !(this.waitingQueue.size >= this.options.concurrency);
|
|
93
95
|
this.notifications.setValue(prevQueue);
|
|
94
96
|
const timeout = setTimeout(() => {
|
|
95
97
|
const prevQueue = new Map(this.notifications.getValue());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/sdk-web-notifications",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@streamlayer/sdk-web-interfaces": "^0.0.1",
|
|
13
13
|
"@streamlayer/sdk-web-types": "^0.0.1",
|
|
14
|
-
"@streamlayer/sdk-web-logger": "^0.0.
|
|
14
|
+
"@streamlayer/sdk-web-logger": "^0.0.1",
|
|
15
15
|
"@streamlayer/sdk-web-storage": "^0.0.4"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|