@orbinum/sdk 0.14.0 → 0.14.1

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/index.js CHANGED
@@ -226,7 +226,7 @@ var SubstrateClient = class _SubstrateClient {
226
226
  * Throws if the node does not respond within `timeoutMs`.
227
227
  */
228
228
  static async connect(wsUrl, timeoutMs = 15e3) {
229
- const provider = (0, import_ws.getWsProvider)(wsUrl);
229
+ const provider = (0, import_ws.getWsProvider)(wsUrl, { heartbeatTimeout: 3e4 });
230
230
  const papi = (0, import_polkadot_api.createClient)(provider);
231
231
  let timer;
232
232
  try {
package/dist/index.mjs CHANGED
@@ -95,7 +95,7 @@ var SubstrateClient = class _SubstrateClient {
95
95
  * Throws if the node does not respond within `timeoutMs`.
96
96
  */
97
97
  static async connect(wsUrl, timeoutMs = 15e3) {
98
- const provider = getWsProvider(wsUrl);
98
+ const provider = getWsProvider(wsUrl, { heartbeatTimeout: 3e4 });
99
99
  const papi = createClient(provider);
100
100
  let timer;
101
101
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbinum/sdk",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Official TypeScript SDK for Orbinum.",
5
5
  "author": "Orbinum",
6
6
  "license": "MIT",