@cloudflare/realtimekit 2.0.3-staging.12 → 2.0.3-staging.13
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 +152 -152
- package/dist/browser.js +4 -4
- package/dist/dependencies.txt +2 -2
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +5 -5
- package/dist/index.es5.js +4 -4
- package/dist/index.rn.js +4 -4
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -879,7 +879,7 @@ class rT extends vt {
|
|
|
879
879
|
p(this, "eventStore");
|
|
880
880
|
p(this, "apiEndpoint");
|
|
881
881
|
p(this, "authToken");
|
|
882
|
-
this.logger = e, this.peerId = r, this.authToken = a, this.apiEndpoint = `https://${i.daCollector}
|
|
882
|
+
this.logger = e, this.peerId = r, this.authToken = a, this.apiEndpoint = `https://${i.daCollector}`, this.eventStore = new sT();
|
|
883
883
|
}
|
|
884
884
|
sendEventsChunkToServer(e) {
|
|
885
885
|
return u(this, null, function* () {
|
|
@@ -5172,7 +5172,7 @@ const kC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
5172
5172
|
}, r.src = i;
|
|
5173
5173
|
});
|
|
5174
5174
|
}, mi = {
|
|
5175
|
-
logs: "https://api.realtime.cloudflare.com/logs
|
|
5175
|
+
logs: "https://api.realtime.cloudflare.com/logs",
|
|
5176
5176
|
mock: {
|
|
5177
5177
|
url: "https://api.realtime.cloudflare.com/mock",
|
|
5178
5178
|
domain: "mock.realtime.cloudflare.com",
|
|
@@ -5293,10 +5293,10 @@ class P {
|
|
|
5293
5293
|
}
|
|
5294
5294
|
get logsEndpoint() {
|
|
5295
5295
|
const t = si.getContext(this.meetingMetadata.peerId);
|
|
5296
|
-
return
|
|
5296
|
+
return op({
|
|
5297
5297
|
servicePrefix: "logs",
|
|
5298
5298
|
baseURI: t.getValue("baseURI")
|
|
5299
|
-
})
|
|
5299
|
+
});
|
|
5300
5300
|
}
|
|
5301
5301
|
/**
|
|
5302
5302
|
* NOTE(ravindra-cloudflare):
|
|
@@ -27528,7 +27528,7 @@ let ii = (Em = class {
|
|
|
27528
27528
|
video: !0
|
|
27529
27529
|
};
|
|
27530
27530
|
return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", RC({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
|
|
27531
|
-
})), a.setValue("cachedUserDetails", Os(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.3-staging.
|
|
27531
|
+
})), a.setValue("cachedUserDetails", Os(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.3-staging.13"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new u1()), a;
|
|
27532
27532
|
}
|
|
27533
27533
|
join() {
|
|
27534
27534
|
return u(this, null, function* () {
|
package/dist/index.es5.js
CHANGED
|
@@ -1220,7 +1220,7 @@ var xm = /* @__PURE__ */ new Map([
|
|
|
1220
1220
|
}(), ty = /* @__PURE__ */ function(s) {
|
|
1221
1221
|
function r(e) {
|
|
1222
1222
|
var t, n = e.logger, i = e.peerId, a = e.apiHostnames, o = e.authToken;
|
|
1223
|
-
return P(this, r), t = C(this, r), t.logger = void 0, t.peerId = void 0, t.eventStore = void 0, t.apiEndpoint = void 0, t.authToken = void 0, t.logger = n, t.peerId = i, t.authToken = o, t.apiEndpoint = "https://".concat(a.daCollector
|
|
1223
|
+
return P(this, r), t = C(this, r), t.logger = void 0, t.peerId = void 0, t.eventStore = void 0, t.apiEndpoint = void 0, t.authToken = void 0, t.logger = n, t.peerId = i, t.authToken = o, t.apiEndpoint = "https://".concat(a.daCollector), t.eventStore = new ey(), t;
|
|
1224
1224
|
}
|
|
1225
1225
|
return R(r, s), S(r, [{ key: "sendEventsChunkToServer", value: function() {
|
|
1226
1226
|
var e = m(/* @__PURE__ */ h().m(function n(i) {
|
|
@@ -4943,7 +4943,7 @@ var CP = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m
|
|
|
4943
4943
|
}, n.src = i;
|
|
4944
4944
|
});
|
|
4945
4945
|
}
|
|
4946
|
-
}, Ns = { logs: "https://api.realtime.cloudflare.com/logs
|
|
4946
|
+
}, Ns = { logs: "https://api.realtime.cloudflare.com/logs", mock: { url: "https://api.realtime.cloudflare.com/mock", domain: "mock.realtime.cloudflare.com", app: "https://examples.realtime.cloudflare.com/meeting", stagingApp: "https://examples.staging.realtime.cloudflare.com/meeting" }, apiBase: { prod: "https://api.realtime.cloudflare.com", staging: "https://api.staging.realtime.cloudflare.com", prodAlternate: "https://api.realtime.cloudflare.com" }, baseURI: { prod: "realtime.cloudflare.com", staging: "staging.realtime.cloudflare.com" } }, _P = /\b(?:1[7-9](?:\.\d+)?|[2-9]\d(?:\.\d+)?|[1-9]\d{2,}(?:\.\d+)?)\b/, op = "__rtk_plugins__", AP = [op];
|
|
4947
4947
|
function lg(s) {
|
|
4948
4948
|
var r, e, t = typeof navigator != "undefined" && !navigator.isReactNative && typeof window != "undefined" && ((r = window.location.host) === null || r === void 0 ? void 0 : r.includes(Ns.baseURI.staging)), n = !!(s != null && (e = s.getValue("modules")) !== null && e !== void 0 && (e = e.devTools) !== null && e !== void 0 && e.logs);
|
|
4949
4949
|
return t || n;
|
|
@@ -4999,7 +4999,7 @@ var D = /* @__PURE__ */ function() {
|
|
|
4999
4999
|
return this.compressionSupported;
|
|
5000
5000
|
} }, { key: "logsEndpoint", get: function() {
|
|
5001
5001
|
var e = Ra.getContext(this.meetingMetadata.peerId), t = sp({ servicePrefix: "logs", baseURI: e.getValue("baseURI") });
|
|
5002
|
-
return
|
|
5002
|
+
return t;
|
|
5003
5003
|
} }, { key: "logsBatchSize", get: (
|
|
5004
5004
|
/**
|
|
5005
5005
|
* NOTE(ravindra-cloudflare):
|
|
@@ -28419,7 +28419,7 @@ var gr = /* @__PURE__ */ w("trackMap"), p2 = /* @__PURE__ */ function(s) {
|
|
|
28419
28419
|
}, { key: "setupContext", value: function(e, t, n, i) {
|
|
28420
28420
|
var a, o, c = Ra.createContext(e, t), l = V(V({}, PP), t == null ? void 0 : t.modules), d = t.defaults || { audio: !0, video: !0 };
|
|
28421
28421
|
return c.setValue("options", t), c.setValue("peerId", e), c.setValue("modules", l), c.setValue("sdkName", "web-core"), c.setValue("meetingId", n), c.setValue("apiBase", i.apiBase), c.setValue("baseURI", i.baseURI), c.setValue("userId", i.participantId), c.setValue("organizationId", i.orgId), c.setValue("authToken", t.authToken), c.setValue("overrides", (a = t.overrides) !== null && a !== void 0 ? a : {}), c.setValue("env", SP({ baseURI: i.baseURI })), c.setValue("defaults", d), c.setValue("onError", t.onError || function() {
|
|
28422
|
-
}), c.setValue("cachedUserDetails", ui(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.3-staging.
|
|
28422
|
+
}), c.setValue("cachedUserDetails", ui(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.3-staging.13"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && c.setValue("audioPlayback", new p2()), c;
|
|
28423
28423
|
} }]);
|
|
28424
28424
|
}());
|
|
28425
28425
|
zl([dr("0002"), Qi.executeWithLock({ methodName: "meeting.join", lockName: "Client.join", timeout: 3e3 })], Ma.prototype, "join", 1);
|