ault-sdk-ts 0.7.0 → 0.7.2

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.
@@ -412,6 +412,13 @@ export interface DexWsOptions {
412
412
  * to inject a mock or polyfilled implementation.
413
413
  */
414
414
  createWebSocket?: WebSocketFactory;
415
+ /**
416
+ * `User-Agent` sent on the handshake (default: `ault-sdk-ts/<version>`).
417
+ * Only applied by the default factory, and only on runtimes whose
418
+ * `WebSocket` accepts `{ headers }` (Node, Bun); browsers send their own.
419
+ * The hosted DEX API sits behind a WAF that rejects handshakes without one.
420
+ */
421
+ userAgent?: string;
415
422
  }
416
423
  export interface DexWsEventMap {
417
424
  open: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ault-sdk-ts",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "TypeScript SDK for the Ault blockchain with high-level transaction methods and REST query clients",
5
5
  "keywords": [
6
6
  "ault",