starknet 7.6.2 → 7.6.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [7.6.3](https://github.com/starknet-io/starknet.js/compare/v7.6.2...v7.6.3) (2025-07-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ - check for the existence of window.WebSocket before bind ([ba7428b](https://github.com/starknet-io/starknet.js/commit/ba7428be4e6560106b8332ad8688a8f7e99a221b))
6
+
1
7
  ## [7.6.2](https://github.com/starknet-io/starknet.js/compare/v7.6.1...v7.6.2) (2025-06-24)
2
8
 
3
9
  ### Bug Fixes
@@ -13663,7 +13663,7 @@ ${indent}}` : "}";
13663
13663
  };
13664
13664
 
13665
13665
  // src/utils/connect/ws.ts
13666
- var ws_default = typeof WebSocket !== "undefined" && WebSocket || typeof globalThis !== "undefined" && globalThis.WebSocket || typeof window !== "undefined" && window.WebSocket.bind(window) || typeof global !== "undefined" && global.WebSocket || class {
13666
+ var ws_default = typeof WebSocket !== "undefined" && WebSocket || typeof globalThis !== "undefined" && globalThis.WebSocket || typeof window !== "undefined" && window.WebSocket && window.WebSocket.bind(window) || typeof global !== "undefined" && global.WebSocket || class {
13667
13667
  constructor() {
13668
13668
  throw new LibraryError(
13669
13669
  "WebSocket module not detected, use the 'websocket' constructor parameter to set a compatible connection"