@nil-/xit 0.2.5 → 0.2.7

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/assets/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  import { create_component } from "/assets/index.js";
22
22
  const params = new URLSearchParams(location.search);
23
23
  const destroy = await create_component(document.getElementById("xit"), {
24
- host: `${location.host}/ws`,
24
+ host: "/ws",
25
25
  frame: params.get("frame") ?? "index",
26
26
  tag: params.get("tag"),
27
27
  cdn_url: "https://unpkg.com"
package/assets/index.js CHANGED
@@ -32,7 +32,7 @@ class ft {
32
32
  // non-blocking (run is blocking in c++)
33
33
  // calling it again should not do anything
34
34
  start() {
35
- u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(`ws://${u(this, x)}`)), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
35
+ u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(u(this, x))), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
36
36
  u(this, v) == 3 ? this.stop() : (w(this, v, 1), u(this, rt) && u(this, rt).call(this, u(this, x)));
37
37
  }, u(this, g).onclose = () => {
38
38
  u(this, v) === 1 && (u(this, ot) && u(this, ot).call(this, u(this, x)), w(this, v, 2), wt(this, _t, Ft).call(this));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nil-/xit",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "peerDependencies": {
5
5
  "svelte": "^5.7.1"
6
6
  },