@abndnce/pulsar-client 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -17,12 +17,7 @@ async function connectDirect(host, port) {
17
17
  const pc = new RTCPeerConnection();
18
18
  const keepalive = pc.createDataChannel("keepalive", { ordered: true });
19
19
  const offer = await pc.createOffer();
20
- const mungedSdp = offer.sdp.replace(/^a=ice-ufrag:.*$/m, `a=ice-ufrag:${PULSAR_UFRAG}`).replace(/^a=ice-pwd:.*$/m, `a=ice-pwd:${PULSAR_PWD}`).replace(/^a=fingerprint:.*$/m, `a=fingerprint:sha-256 ${PULSAR_FINGERPRINT}`);
21
- if (mungedSdp === offer.sdp) throw new Error("SDP munging failed – could not replace ICE credentials");
22
- await pc.setLocalDescription({
23
- type: "offer",
24
- sdp: mungedSdp
25
- });
20
+ await pc.setLocalDescription(offer);
26
21
  const remoteSdp = [
27
22
  "v=0",
28
23
  "o=- 111 222 IN IP4 0.0.0.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abndnce/pulsar-client",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "homepage": "https://github.com/abndnce/pulsar",
6
6
  "license": "MIT",
7
7
  "exports": {