univo 0.2.12 → 0.2.13

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.Bb9Aplq9.mjs';
8
- import { c as createLogger, v as version, f as name } from './shared/univo.DicQZf-2.mjs';
7
+ import { h as http } from './shared/univo.BwPUSTpl.mjs';
8
+ import { c as createLogger, v as version, f as name } from './shared/univo.B_UsEiYb.mjs';
9
9
 
10
10
  const log = createLogger({ quiet: false });
11
11
  const dev = defineCommand({
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { c as createException, a as catchException, l as local, g as getException } from './shared/univo.Bb9Aplq9.mjs';
2
- import { c as createLogger, r as retry, v as version, h as hexToNumber, i as isHexEqual, d as decompress, a as decoder, n as normalizeHex } from './shared/univo.DicQZf-2.mjs';
1
+ import { c as createException, a as catchException, l as local, g as getException } from './shared/univo.BwPUSTpl.mjs';
2
+ import { c as createLogger, r as retry, v as version, h as hexToNumber, i as isHexEqual, d as decompress, a as decoder, n as normalizeHex } from './shared/univo.B_UsEiYb.mjs';
3
3
  import 'ws';
4
4
  import 'partysocket';
5
5
 
@@ -570,7 +570,19 @@ function indexer(opts) {
570
570
  }
571
571
  const block = await getBlock(params.head);
572
572
  if (block === null) {
573
- throw new Error(GetBlockError);
573
+ return {
574
+ keys: [],
575
+ results: relevant_events.map((event2) => {
576
+ return {
577
+ event_id: event2.id,
578
+ status: "block_error",
579
+ chain: params.head.chain,
580
+ block_hash: params.head.hash,
581
+ block_number: params.head.number,
582
+ created_at: Date.now()
583
+ };
584
+ })
585
+ };
574
586
  }
575
587
  const keys = /* @__PURE__ */ new Set();
576
588
  const results = {};
package/dist/realtime.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as createLogger, b as iife, h as hexToNumber, e as numberToHex, m as mutex, r as retry, i as isHexEqual } from './shared/univo.DicQZf-2.mjs';
1
+ import { c as createLogger, b as iife, h as hexToNumber, e as numberToHex, m as mutex, r as retry, i as isHexEqual } from './shared/univo.B_UsEiYb.mjs';
2
2
 
3
3
  const MAX_LENGTH = 1e4;
4
4
  function defineBlockchain(opts) {
@@ -1,5 +1,5 @@
1
1
  const name = "univo";
2
- const version = "0.2.12";
2
+ const version = "0.2.13";
3
3
 
4
4
  function createLogger(opts) {
5
5
  let prefix = `[${name}@${version}]`;
@@ -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 } from './univo.DicQZf-2.mjs';
3
+ import { g as compress, j as raise, c as createLogger } from './univo.B_UsEiYb.mjs';
4
4
 
5
5
  function createException(message) {
6
6
  return `univo:${message}`;
@@ -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.Bb9Aplq9.mjs';
4
- import './shared/univo.DicQZf-2.mjs';
3
+ export { h as http, l as local, w as wss } from './shared/univo.BwPUSTpl.mjs';
4
+ import './shared/univo.B_UsEiYb.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.12",
5
+ "version": "0.2.13",
6
6
  "sideEffects": false,
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",