starknet 10.6.4 → 10.6.5
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 +6 -0
- package/dist/index.global.js +10 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [10.6.5](https://github.com/starknet-io/starknet.js/compare/v10.6.4...v10.6.5) (2026-08-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **ws:** guard malformed frames and honour request id 0 ([cf1f4e2](https://github.com/starknet-io/starknet.js/commit/cf1f4e2c1f58eba5f1d63628959fe2ee47387025))
|
|
6
|
+
|
|
1
7
|
## [10.6.4](https://github.com/starknet-io/starknet.js/compare/v10.6.3...v10.6.4) (2026-08-04)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.global.js
CHANGED
|
@@ -12654,7 +12654,7 @@ ${indent}}` : "}";
|
|
|
12654
12654
|
this.websocket.addEventListener("error", this.errorListener);
|
|
12655
12655
|
}
|
|
12656
12656
|
idResolver(id) {
|
|
12657
|
-
if (id) return id;
|
|
12657
|
+
if (id !== void 0) return id;
|
|
12658
12658
|
return this.sendId++;
|
|
12659
12659
|
}
|
|
12660
12660
|
/**
|
|
@@ -12712,7 +12712,15 @@ ${indent}}` : "}";
|
|
|
12712
12712
|
logger.warn("WebSocket received non-string message data:", event.data);
|
|
12713
12713
|
return;
|
|
12714
12714
|
}
|
|
12715
|
-
|
|
12715
|
+
let message;
|
|
12716
|
+
try {
|
|
12717
|
+
message = JSON.parse(event.data);
|
|
12718
|
+
} catch (error) {
|
|
12719
|
+
logger.error(
|
|
12720
|
+
`WebSocketChannel: Error parsing incoming message: ${event.data}, Error: ${error}`
|
|
12721
|
+
);
|
|
12722
|
+
return;
|
|
12723
|
+
}
|
|
12716
12724
|
if (message.id === sendId) {
|
|
12717
12725
|
clearTimeout(timeoutId);
|
|
12718
12726
|
this.websocket.removeEventListener("message", messageHandler);
|