@reboot-dev/reboot-std 0.29.5 → 0.31.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/package.json +3 -3
- package/presence/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reboot-dev/reboot-std",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Reboot standard library.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"author": "reboot-dev",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@reboot-dev/reboot-std-api": "0.
|
|
14
|
-
"@reboot-dev/reboot": "0.
|
|
13
|
+
"@reboot-dev/reboot-std-api": "0.31.0",
|
|
14
|
+
"@reboot-dev/reboot": "0.31.0",
|
|
15
15
|
"@scarf/scarf": "1.4.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
package/presence/index.js
CHANGED
|
@@ -51,8 +51,8 @@ class PresenceServicer extends Presence.Servicer {
|
|
|
51
51
|
}
|
|
52
52
|
async watch(context, request) {
|
|
53
53
|
// We *atomically* wait until no longer present and remove.
|
|
54
|
-
await until("
|
|
55
|
-
return this.state.
|
|
54
|
+
await until("No longer present", context, async () => {
|
|
55
|
+
return this.state.always().write(context, async (state) => {
|
|
56
56
|
const subscriber = Subscriber.ref(request.subscriberId);
|
|
57
57
|
const { present } = await subscriber.status(context);
|
|
58
58
|
if (!present) {
|