Fix fetch binding issue in browser environments

Fixed error: "'fetch' called on an object that does not implement interface Window"

The fetch function reference was not properly bound to the global context.
Now using globalThis.fetch.bind(globalThis) to ensure correct binding.

Bumped version to 0.0.2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-02 14:58:28 +01:00
parent 6e496fbd50
commit bfb2ec2172
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@xtr-dev/rondevu-client",
"version": "0.0.1",
"version": "0.0.2",
"description": "TypeScript client for Rondevu peer signaling and discovery server",
"main": "dist/index.js",
"types": "dist/index.d.ts",