@robono/calling-react-native 0.9.2 → 0.9.3
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/SBOM.spdx.json +14 -14
- package/dist/messenger.js +32 -5
- package/dist/versions.d.ts +2 -2
- package/dist/versions.js +2 -2
- package/package.json +2 -2
package/SBOM.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@robono/calling-react-native@0.9.
|
|
6
|
-
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.
|
|
5
|
+
"name": "@robono/calling-react-native@0.9.3",
|
|
6
|
+
"documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.3/f8e71d64ff823acacea2f7b5e02f04fa8c1965a9",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-06T15:14:00.148Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Organization: Robono (support@robono.com)"
|
|
11
11
|
]
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "@robono/calling-react-native",
|
|
16
16
|
"SPDXID": "SPDXRef-Package",
|
|
17
|
-
"versionInfo": "0.9.
|
|
17
|
+
"versionInfo": "0.9.3",
|
|
18
18
|
"downloadLocation": "NOASSERTION",
|
|
19
19
|
"filesAnalyzed": true,
|
|
20
20
|
"packageVerificationCode": {
|
|
21
|
-
"packageVerificationCodeValue": "
|
|
21
|
+
"packageVerificationCodeValue": "f8e71d64ff823acacea2f7b5e02f04fa8c1965a9"
|
|
22
22
|
},
|
|
23
23
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
24
24
|
"licenseDeclared": "LicenseRef-RobonoSDK",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"LicenseRef-RobonoSDK"
|
|
27
27
|
],
|
|
28
28
|
"copyrightText": "Copyright (c) 2026 Add to Loop LLC.",
|
|
29
|
-
"comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.6.
|
|
29
|
+
"comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.6.2\",\"react\":\">=18.2 <20\",\"react-native\":\">=0.76 <1\",\"react-native-svg\":\">=15 <16\",\"react-native-safe-area-context\":\">=5 <6\",\"react-native-webrtc\":\">=124 <125\",\"react-native-incall-manager\":\">=4.2 <5\",\"expo-audio\":\">=1.1.1 <2 || >=55 <57\",\"expo-crypto\":\">=15.0.9 <16 || >=55 <57\",\"expo-notifications\":\">=0.32.17 <0.33 || >=55 <57\",\"expo-asset\":\">=12 <13 || >=55 <57\"}"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"files": [
|
|
@@ -5850,11 +5850,11 @@
|
|
|
5850
5850
|
"checksums": [
|
|
5851
5851
|
{
|
|
5852
5852
|
"algorithm": "SHA256",
|
|
5853
|
-
"checksumValue": "
|
|
5853
|
+
"checksumValue": "aafc997af1ba710d8926b1b92cc07aec9ce1a6b3938fc389f7c77f1a160b6d36"
|
|
5854
5854
|
},
|
|
5855
5855
|
{
|
|
5856
5856
|
"algorithm": "SHA1",
|
|
5857
|
-
"checksumValue": "
|
|
5857
|
+
"checksumValue": "f944021285c0048bee85e50b475829c0b6d7e96b"
|
|
5858
5858
|
}
|
|
5859
5859
|
],
|
|
5860
5860
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6211,11 +6211,11 @@
|
|
|
6211
6211
|
"checksums": [
|
|
6212
6212
|
{
|
|
6213
6213
|
"algorithm": "SHA256",
|
|
6214
|
-
"checksumValue": "
|
|
6214
|
+
"checksumValue": "71d3d14bd830f03b24d7db7a47e3a9d54a44a859481df717aebd0dcea5464f62"
|
|
6215
6215
|
},
|
|
6216
6216
|
{
|
|
6217
6217
|
"algorithm": "SHA1",
|
|
6218
|
-
"checksumValue": "
|
|
6218
|
+
"checksumValue": "ed7c4275a02a879fcd9532dc2bb7d7e14c42baac"
|
|
6219
6219
|
}
|
|
6220
6220
|
],
|
|
6221
6221
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6230,11 +6230,11 @@
|
|
|
6230
6230
|
"checksums": [
|
|
6231
6231
|
{
|
|
6232
6232
|
"algorithm": "SHA256",
|
|
6233
|
-
"checksumValue": "
|
|
6233
|
+
"checksumValue": "f1206233f7756d2e634be2307a272018bf5ad7dbe22f9815240ab8bbd178d403"
|
|
6234
6234
|
},
|
|
6235
6235
|
{
|
|
6236
6236
|
"algorithm": "SHA1",
|
|
6237
|
-
"checksumValue": "
|
|
6237
|
+
"checksumValue": "4f1fbbee36d0230fcf7b057160d22c9a083f52a2"
|
|
6238
6238
|
}
|
|
6239
6239
|
],
|
|
6240
6240
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -6591,11 +6591,11 @@
|
|
|
6591
6591
|
"checksums": [
|
|
6592
6592
|
{
|
|
6593
6593
|
"algorithm": "SHA256",
|
|
6594
|
-
"checksumValue": "
|
|
6594
|
+
"checksumValue": "0677303379499d46f84a814a203ec834a3bf4572be387131d2a6ceebc844fac2"
|
|
6595
6595
|
},
|
|
6596
6596
|
{
|
|
6597
6597
|
"algorithm": "SHA1",
|
|
6598
|
-
"checksumValue": "
|
|
6598
|
+
"checksumValue": "ee207aab0d2f09d768f9fc99c6c8afd4a697fd94"
|
|
6599
6599
|
}
|
|
6600
6600
|
],
|
|
6601
6601
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
package/dist/messenger.js
CHANGED
|
@@ -7,16 +7,35 @@ import { parseCallingNotification } from './notifications.js';
|
|
|
7
7
|
export function createMessengerCalling(options) {
|
|
8
8
|
let state = { direct: null, group: null, features: { voice: false, video: false }, loading: false, error: '' };
|
|
9
9
|
let closed = false, pending = null, transport, timer;
|
|
10
|
+
let recoveryTimer, stableTimer, recoveryFailures = 0;
|
|
10
11
|
let adapters = [], detach = [];
|
|
11
12
|
const dismissed = new Set();
|
|
12
13
|
const listeners = new Set();
|
|
13
14
|
const emit = (patch) => { state = { ...state, ...patch }; listeners.forEach(fn => fn()); };
|
|
14
15
|
const active = () => [state.direct, state.group].some(c => c && !['idle', 'error'].includes(c.getSnapshot().phase));
|
|
15
16
|
const deviceCheck = options.deviceCheck?.(active);
|
|
16
|
-
const
|
|
17
|
-
|
|
17
|
+
const recover = (status) => {
|
|
18
|
+
if (closed || status === 403 || recoveryTimer || recoveryFailures >= 6)
|
|
19
|
+
return;
|
|
20
|
+
clearTimeout(stableTimer);
|
|
21
|
+
const delay = Math.min(60000, 1000 * 2 ** recoveryFailures++);
|
|
22
|
+
emit({ error: 'Reconnecting calls…' });
|
|
23
|
+
const attempt = () => { recoveryTimer = undefined; if (closed)
|
|
24
|
+
return; if (active()) {
|
|
25
|
+
recoveryTimer = setTimeout(attempt, 15000);
|
|
26
|
+
return;
|
|
27
|
+
} void start().catch(() => { }); };
|
|
28
|
+
recoveryTimer = setTimeout(attempt, delay);
|
|
29
|
+
};
|
|
30
|
+
const watchCheck = (controller) => controller.subscribe(() => {
|
|
31
|
+
if (deviceCheck?.getSnapshot().phase !== 'idle' && active())
|
|
32
|
+
void deviceCheck?.close();
|
|
33
|
+
if (controller.client.closed && controller.client.state?.listeningStatus === 'session_expired')
|
|
34
|
+
recover(401);
|
|
35
|
+
});
|
|
18
36
|
const release = async () => {
|
|
19
37
|
clearTimeout(timer);
|
|
38
|
+
clearTimeout(stableTimer);
|
|
20
39
|
const controllers = [state.direct, state.group], old = transport, owned = adapters;
|
|
21
40
|
transport = undefined;
|
|
22
41
|
adapters = [];
|
|
@@ -46,6 +65,8 @@ export function createMessengerCalling(options) {
|
|
|
46
65
|
return pending;
|
|
47
66
|
if (transport && Date.now() < transport.expiresAt && !state.direct?.client.closed && !state.group?.client.closed)
|
|
48
67
|
return Promise.resolve();
|
|
68
|
+
clearTimeout(recoveryTimer);
|
|
69
|
+
recoveryTimer = undefined;
|
|
49
70
|
emit({ loading: true, error: '' });
|
|
50
71
|
pending = (async () => {
|
|
51
72
|
await release();
|
|
@@ -82,10 +103,16 @@ export function createMessengerCalling(options) {
|
|
|
82
103
|
await release();
|
|
83
104
|
return;
|
|
84
105
|
}
|
|
106
|
+
const failed = [state.direct, state.group].find(c => c?.client.closed);
|
|
107
|
+
if (failed)
|
|
108
|
+
throw Object.assign(Error('Calling session could not connect.'), { status: failed.client.state?.listeningStatus === 'access_revoked' ? 403 : 401 });
|
|
85
109
|
emit({ loading: false, error: '' });
|
|
110
|
+
stableTimer = setTimeout(() => { recoveryFailures = 0; }, 60000);
|
|
86
111
|
renew();
|
|
87
|
-
})().catch(async (error) => { await release(); if (!closed)
|
|
88
|
-
emit({ loading: false, error: 'Calls could not connect. Check your connection and try again.' });
|
|
112
|
+
})().catch(async (error) => { await release(); if (!closed) {
|
|
113
|
+
emit({ loading: false, error: error?.status === 403 ? 'Calling is no longer allowed.' : 'Calls could not connect. Check your connection and try again.' });
|
|
114
|
+
recover(error?.status);
|
|
115
|
+
} throw error; }).finally(() => { pending = null; });
|
|
89
116
|
return pending;
|
|
90
117
|
};
|
|
91
118
|
return {
|
|
@@ -133,6 +160,6 @@ export function createMessengerCalling(options) {
|
|
|
133
160
|
await state.direct.call(conversationId, undefined, { kind });
|
|
134
161
|
},
|
|
135
162
|
async dispose() { if (closed)
|
|
136
|
-
return; closed = true; clearTimeout(timer); await deviceCheck?.dispose(); await pending?.catch(() => { }); await release(); listeners.clear(); },
|
|
163
|
+
return; closed = true; clearTimeout(timer); clearTimeout(recoveryTimer); clearTimeout(stableTimer); await deviceCheck?.dispose(); await pending?.catch(() => { }); await release(); listeners.clear(); },
|
|
137
164
|
};
|
|
138
165
|
}
|
package/dist/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const mobileVersion = "0.9.
|
|
2
|
-
export declare const engineVersion = "0.6.
|
|
1
|
+
export declare const mobileVersion = "0.9.3";
|
|
2
|
+
export declare const engineVersion = "0.6.2";
|
package/dist/versions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated from the package manifests by build.mjs.
|
|
2
|
-
export const mobileVersion = "0.9.
|
|
3
|
-
export const engineVersion = "0.6.
|
|
2
|
+
export const mobileVersion = "0.9.3";
|
|
3
|
+
export const engineVersion = "0.6.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robono/calling-react-native",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Optional branded calling screens, sounds and native audio adapters for Robono calling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@types/react": "~19.2.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@robono/calling": "^0.6.
|
|
84
|
+
"@robono/calling": "^0.6.2",
|
|
85
85
|
"react": ">=18.2 <20",
|
|
86
86
|
"react-native": ">=0.76 <1",
|
|
87
87
|
"react-native-svg": ">=15 <16",
|