univo 0.2.23 → 0.2.24

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.1clH0g-n.mjs';
8
- import { c as createLogger, v as version, b as name } from './shared/univo.DvxWs2zB.mjs';
7
+ import { h as http } from './shared/univo.CHvkgTe-.mjs';
8
+ import { c as createLogger, v as version, b as name } from './shared/univo.D12B93eV.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.1clH0g-n.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.DvxWs2zB.mjs';
2
+ import { g as getException, c as createException, a as catchException, l as local } from './shared/univo.CHvkgTe-.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.D12B93eV.mjs';
4
4
  import 'ws';
5
5
  import 'partysocket';
6
6
 
@@ -6,7 +6,7 @@ type RealtimeOptions = {
6
6
  /**
7
7
  * Silences all logs including errors.
8
8
  *
9
- * Logs are emitted based on the environment LOG_LEVEL. Set `quiet: true` to surpress all logs.
9
+ * Logs are emitted based on the environment LOG_LEVEL. Set `quiet: true` to suppress all logs.
10
10
  * Available log options are `DEBUG`, `INFO`, `WARN`, and `ERROR`.
11
11
  */
12
12
  quiet?: boolean;
@@ -19,9 +19,10 @@ type RealtimeOptions = {
19
19
  /**
20
20
  * Connection to a univo indexer.
21
21
  *
22
- * Must use the `http` transport protocol from `univo/transport`
22
+ * Must use the `http` or `local` transport protocol from `univo/transport`. If you want to deploy your
23
+ * indexer and realtime client in a single monolithic deployment, you should use the `local` transport.
23
24
  */
24
- indexer: Transport<IndexerRpc, "http">;
25
+ indexer: Transport<IndexerRpc, "http" | "local">;
25
26
  };
26
27
  declare function realtime(opts: RealtimeOptions): void;
27
28
 
@@ -6,7 +6,7 @@ type RealtimeOptions = {
6
6
  /**
7
7
  * Silences all logs including errors.
8
8
  *
9
- * Logs are emitted based on the environment LOG_LEVEL. Set `quiet: true` to surpress all logs.
9
+ * Logs are emitted based on the environment LOG_LEVEL. Set `quiet: true` to suppress all logs.
10
10
  * Available log options are `DEBUG`, `INFO`, `WARN`, and `ERROR`.
11
11
  */
12
12
  quiet?: boolean;
@@ -19,9 +19,10 @@ type RealtimeOptions = {
19
19
  /**
20
20
  * Connection to a univo indexer.
21
21
  *
22
- * Must use the `http` transport protocol from `univo/transport`
22
+ * Must use the `http` or `local` transport protocol from `univo/transport`. If you want to deploy your
23
+ * indexer and realtime client in a single monolithic deployment, you should use the `local` transport.
23
24
  */
24
- indexer: Transport<IndexerRpc, "http">;
25
+ indexer: Transport<IndexerRpc, "http" | "local">;
25
26
  };
26
27
  declare function realtime(opts: RealtimeOptions): void;
27
28
 
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.DvxWs2zB.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.D12B93eV.mjs';
2
2
 
3
3
  function defineBlockchain(opts) {
4
4
  const log = createLogger({ quiet: opts.quiet });
@@ -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.DvxWs2zB.mjs';
3
+ import { g as compress, j as raise, c as createLogger, m as mutex } from './univo.D12B93eV.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.23";
2
+ const version = "0.2.24";
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.1clH0g-n.mjs';
4
- import './shared/univo.DvxWs2zB.mjs';
3
+ export { h as http, l as local, w as wss } from './shared/univo.CHvkgTe-.mjs';
4
+ import './shared/univo.D12B93eV.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.23",
5
+ "version": "0.2.24",
6
6
  "sideEffects": false,
7
7
  "module": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",