@threadbase-sh/streamer 1.60.0 → 1.61.1
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/cli.cjs +631 -169
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +10 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -18
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -16613,13 +16613,16 @@ var StreamerServer = class {
|
|
|
16613
16613
|
json(res, 400, { error: "Missing token or clientPublicKey" });
|
|
16614
16614
|
return;
|
|
16615
16615
|
}
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16616
|
+
const e2eeEnabled = describeE2eeCapability(this.featureFlags.e2ee).enabled;
|
|
16617
|
+
let e2eeRequest = null;
|
|
16618
|
+
if (e2eeEnabled) {
|
|
16619
|
+
try {
|
|
16620
|
+
e2eeRequest = parseE2eeRequest(body?.e2ee);
|
|
16621
|
+
} catch (err) {
|
|
16622
|
+
const e = err;
|
|
16623
|
+
json(res, 400, { error: e.message, code: e.code });
|
|
16624
|
+
return;
|
|
16625
|
+
}
|
|
16623
16626
|
}
|
|
16624
16627
|
const precheck = this.pairTokens.wouldConsume(token);
|
|
16625
16628
|
if (!precheck.ok) {
|