@cloudflare/realtimekit 1.4.0-staging.2 → 1.4.0-staging.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/dist/EncryptionManager.cjs.js +1 -1
- package/dist/EncryptionManager.es.js +103 -103
- package/dist/browser.js +4 -4
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +18 -6
- package/dist/index.es5.js +1954 -1954
- package/dist/index.rn.js +4 -4
- package/package.json +1 -1
- package/dist/ClientMock.d.ts +0 -13
- package/dist/EncryptionManager.d.ts +0 -5006
- package/dist/index.d.ts +0 -5018
- package/dist/ts3.4/dist/ClientMock.d.ts +0 -11
- package/dist/ts3.4/dist/EncryptionManager.d.ts +0 -4959
- package/dist/ts3.4/dist/index.d.ts +0 -4957
package/dist/index.es.js
CHANGED
|
@@ -5709,7 +5709,8 @@ class P {
|
|
|
5709
5709
|
fetch(this.logsEndpoint, {
|
|
5710
5710
|
method: "POST",
|
|
5711
5711
|
headers: {
|
|
5712
|
-
"Content-Type": "application/json"
|
|
5712
|
+
"Content-Type": "application/json",
|
|
5713
|
+
Authorization: `Bearer ${e.getValue("authToken")}`
|
|
5713
5714
|
},
|
|
5714
5715
|
body: JSON.stringify({
|
|
5715
5716
|
meetingMetadata: wp(
|
|
@@ -15235,15 +15236,25 @@ class l0 {
|
|
|
15235
15236
|
}
|
|
15236
15237
|
vi = new WeakMap();
|
|
15237
15238
|
class _h {
|
|
15238
|
-
constructor(t, e, r) {
|
|
15239
|
+
constructor(t, e, r, i) {
|
|
15240
|
+
/**
|
|
15241
|
+
* The participant authToken passed to `RealtimeKitClient.init()`.
|
|
15242
|
+
* Can be used for troubleshooting.
|
|
15243
|
+
*/
|
|
15244
|
+
h(this, "authToken");
|
|
15239
15245
|
h(this, "logger");
|
|
15240
15246
|
h(this, "features");
|
|
15241
15247
|
h(this, "browserSpecs");
|
|
15242
15248
|
h(this, "callStats");
|
|
15243
|
-
this.
|
|
15249
|
+
this.authToken = t, this.logger = e, this.features = r, this.browserSpecs = _e, this.callStats = i;
|
|
15244
15250
|
}
|
|
15245
15251
|
static init(t) {
|
|
15246
|
-
return new _h(
|
|
15252
|
+
return new _h(
|
|
15253
|
+
t.getValue("authToken"),
|
|
15254
|
+
t.getValue("logger"),
|
|
15255
|
+
new l0(t),
|
|
15256
|
+
t.getValue("callstats")
|
|
15257
|
+
);
|
|
15247
15258
|
}
|
|
15248
15259
|
}
|
|
15249
15260
|
class Ch {
|
|
@@ -25391,7 +25402,8 @@ const vS = (Ag = class {
|
|
|
25391
25402
|
flags: s.getValue("flagsmith").getAllFlags(),
|
|
25392
25403
|
logger: l,
|
|
25393
25404
|
apiHostnames: GC(s),
|
|
25394
|
-
skipConnectivityChecks: p
|
|
25405
|
+
skipConnectivityChecks: p,
|
|
25406
|
+
authToken: s.getValue("authToken")
|
|
25395
25407
|
}), l.info("Callstats:: initialized");
|
|
25396
25408
|
} catch (f) {
|
|
25397
25409
|
l.error("Callstats:: initialization failed", { error: f });
|
|
@@ -28251,7 +28263,7 @@ let Qr = (Og = class {
|
|
|
28251
28263
|
video: !0
|
|
28252
28264
|
};
|
|
28253
28265
|
return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", jC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
|
|
28254
|
-
})), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.
|
|
28266
|
+
})), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new PO()), n;
|
|
28255
28267
|
}
|
|
28256
28268
|
join() {
|
|
28257
28269
|
return u(this, null, function* () {
|