univo 0.2.19 → 0.2.21

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/cli.mjs CHANGED
@@ -4,8 +4,8 @@ import open from 'open';
4
4
  import { config } from 'dotenv';
5
5
  import { WebSocket } from 'partysocket';
6
6
  import { defineCommand, runMain } from 'citty';
7
- import { h as http } from './shared/univo.D1x0MkrS.mjs';
8
- import { c as createLogger, v as version, b as name } from './shared/univo.bwpFiVa7.mjs';
7
+ import { h as http } from './shared/univo.DB3LVZYu.mjs';
8
+ import { c as createLogger, v as version, b as name } from './shared/univo.lpJwPpJF.mjs';
9
9
 
10
10
  const log = createLogger({ quiet: false });
11
11
  const dev = defineCommand({
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { StorageError } from '@storagesdk/core';
2
- import { g as getException, c as createException, a as catchException, l as local } from './shared/univo.D1x0MkrS.mjs';
3
- import { c as createLogger, d as decompress, e as decoder, r as retry, v as version, h as hexToNumber, a as isHexEqual, n as numberToHex, f as normalizeHex, g as compress } from './shared/univo.bwpFiVa7.mjs';
2
+ import { g as getException, c as createException, a as catchException, l as local } from './shared/univo.DB3LVZYu.mjs';
3
+ import { c as createLogger, d as decompress, e as decoder, r as retry, v as version, h as hexToNumber, a as isHexEqual, n as numberToHex, f as normalizeHex, g as compress } from './shared/univo.lpJwPpJF.mjs';
4
4
  import 'ws';
5
5
  import 'partysocket';
6
6
 
package/dist/realtime.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createLogger, i as iife, h as hexToNumber, n as numberToHex, m as mutex, r as retry, a as isHexEqual } from './shared/univo.bwpFiVa7.mjs';
1
+ import { c as createLogger, i as iife, h as hexToNumber, n as numberToHex, m as mutex, r as retry, a as isHexEqual } from './shared/univo.lpJwPpJF.mjs';
2
2
 
3
3
  function defineBlockchain(opts) {
4
4
  const log = createLogger({ quiet: opts.quiet });
@@ -189,10 +189,11 @@ function realtime(opts) {
189
189
  return log.debug("No new finalized heads to deliver, ignoring...");
190
190
  }
191
191
  log.debug(`Delivering ${newHeads.length} finalized head(s)...`);
192
+ const controller = new AbortController();
192
193
  await opts.indexer.request({
193
194
  params: [newHeads],
194
- method: "public_writeFinalizedHeads",
195
- signal: AbortSignal.timeout(Number.POSITIVE_INFINITY)
195
+ signal: controller.signal,
196
+ method: "public_writeFinalizedHeads"
196
197
  });
197
198
  log.debug(`Delivered ${newHeads.length} finalized head(s)`);
198
199
  indexerHeight = hexToNumber(finalizedBlock.number);
@@ -1,6 +1,6 @@
1
1
  import ws from 'ws';
2
2
  import { WebSocket } from 'partysocket';
3
- import { g as compress, j as raise, c as createLogger, m as mutex } from './univo.bwpFiVa7.mjs';
3
+ import { g as compress, j as raise, c as createLogger, m as mutex } from './univo.lpJwPpJF.mjs';
4
4
 
5
5
  function createException(message) {
6
6
  return `univo:${message}`;
@@ -1,5 +1,5 @@
1
1
  const name = "univo";
2
- const version = "0.2.19";
2
+ const version = "0.2.21";
3
3
 
4
4
  function createLogger(opts) {
5
5
  let prefix = `[${name}@${version}]`;
@@ -1,4 +1,4 @@
1
1
  import 'ws';
2
2
  import 'partysocket';
3
- export { h as http, l as local, w as wss } from './shared/univo.D1x0MkrS.mjs';
4
- import './shared/univo.bwpFiVa7.mjs';
3
+ export { h as http, l as local, w as wss } from './shared/univo.DB3LVZYu.mjs';
4
+ import './shared/univo.lpJwPpJF.mjs';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "univo",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "0.2.19",
5
+ "version": "0.2.21",
6
6
  "sideEffects": false,
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",