@markind-gg/tanks 1.0.25 → 1.0.26

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/main.js CHANGED
@@ -21731,11 +21731,18 @@ function dC() {
21731
21731
  return e.id = Zm, e.textContent = fC, document.head.appendChild(e), e;
21732
21732
  }
21733
21733
  const hC = (t, e) => {
21734
+ var l, r;
21734
21735
  const n = document.getElementById(t);
21735
21736
  if (!n) throw new Error(`tanks mount: container #${t} not found`);
21736
- const a = dC(), o = iS.createRoot(n, dS("tanks"));
21737
+ const a = dC();
21738
+ e.log.log("mount", {
21739
+ mode: (l = e.gameState) == null ? void 0 : l.selectedModeId,
21740
+ map: (r = e.gameState) == null ? void 0 : r.selectedMapId,
21741
+ players: e.players.length
21742
+ });
21743
+ const o = iS.createRoot(n, dS("tanks"));
21737
21744
  return o.render(wv.createElement(cC, { sdk: e })), () => {
21738
- o.unmount(), n.innerHTML = "", a.remove();
21745
+ e.log.log("unmount"), o.unmount(), n.innerHTML = "", a.remove();
21739
21746
  };
21740
21747
  };
21741
21748
  export {
@@ -94,5 +94,5 @@
94
94
  ],
95
95
  "maxBots": 9
96
96
  },
97
- "version": "1.0.25"
97
+ "version": "1.0.26"
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markind-gg/tanks",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/main.js",