@apibara/protocol 2.0.0-beta.6 → 2.0.0-beta.7
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.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/shared/{protocol.42d7ad57.d.cts → protocol.8c2a685d.d.cts} +1 -1
- package/dist/shared/{protocol.42d7ad57.d.mts → protocol.8c2a685d.d.mts} +1 -1
- package/dist/shared/{protocol.42d7ad57.d.ts → protocol.8c2a685d.d.ts} +1 -1
- package/dist/shared/{protocol.ff7dfded.mjs → protocol.d9596779.mjs} +1 -1
- package/dist/shared/{protocol.474b6107.cjs → protocol.e1dec68a.cjs} +1 -1
- package/dist/testing/index.cjs +2 -2
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.mjs +2 -2
- package/package.json +8 -10
- package/src/proto/google/protobuf/duration.ts +1 -1
- package/src/proto/stream.ts +2 -2
- package/src/proto/testing.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const config = require('./shared/protocol.
|
|
3
|
+
const config = require('./shared/protocol.e1dec68a.cjs');
|
|
4
4
|
const schema = require('@effect/schema');
|
|
5
5
|
const niceGrpc = require('nice-grpc');
|
|
6
|
-
require('protobufjs/minimal');
|
|
6
|
+
require('protobufjs/minimal.js');
|
|
7
7
|
const assert = require('node:assert');
|
|
8
8
|
require('effect');
|
|
9
9
|
require('viem');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.
|
|
3
|
-
import _m0 from 'protobufjs/minimal';
|
|
1
|
+
import { s as stream } from './shared/protocol.8c2a685d.cjs';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.8c2a685d.cjs';
|
|
3
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
import '@effect/schema';
|
|
5
5
|
import 'nice-grpc';
|
|
6
6
|
import 'nice-grpc-common';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.
|
|
3
|
-
import _m0 from 'protobufjs/minimal';
|
|
1
|
+
import { s as stream } from './shared/protocol.8c2a685d.mjs';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.8c2a685d.mjs';
|
|
3
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
import '@effect/schema';
|
|
5
5
|
import 'nice-grpc';
|
|
6
6
|
import 'nice-grpc-common';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as stream } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.
|
|
3
|
-
import _m0 from 'protobufjs/minimal';
|
|
1
|
+
import { s as stream } from './shared/protocol.8c2a685d.js';
|
|
2
|
+
export { B as Bytes, b as BytesFromUint8Array, A as Client, y as ClientCallOptions, c as Cursor, g as CursorFromBytes, C as CursorProto, v as Data, o as DataFinality, D as DnaStreamClient, a as DnaStreamDefinition, p as Duration, F as Finalize, G as GrpcClient, H as Heartbeat, I as Invalidate, S as StatusRequest, l as StatusResponse, t as StdErr, r as StdOut, x as StreamConfig, J as StreamDataIterable, z as StreamDataOptions, q as StreamDataRequest, w as StreamDataResponse, u as SystemMessage, _ as _Cursor, E as createClient, d as createCursor, i as cursorFromBytes, f as cursorFromProto, h as cursorToBytes, e as cursorToProto, k as statusRequestFromProto, j as statusRequestToProto, n as statusResponseFromProto, m as statusResponseToProto } from './shared/protocol.8c2a685d.js';
|
|
3
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
4
4
|
import '@effect/schema';
|
|
5
5
|
import 'nice-grpc';
|
|
6
6
|
import 'nice-grpc-common';
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as stream, t as testing, C as Cursor, D as DnaStreamDefinition, S as StreamDataResponse } from './shared/protocol.
|
|
2
|
-
export { B as Bytes, a as BytesFromUint8Array, e as CursorFromBytes, n as Data, h as DataFinality, i as Duration, F as Finalize, H as Heartbeat, I as Invalidate, l as StdErr, k as StdOut, o as StreamConfig, j as StreamDataRequest, m as SystemMessage, _ as _Cursor, c as createCursor, g as cursorFromBytes, d as cursorFromProto, f as cursorToBytes, b as cursorToProto } from './shared/protocol.
|
|
1
|
+
import { s as stream, t as testing, C as Cursor, D as DnaStreamDefinition, S as StreamDataResponse } from './shared/protocol.d9596779.mjs';
|
|
2
|
+
export { B as Bytes, a as BytesFromUint8Array, e as CursorFromBytes, n as Data, h as DataFinality, i as Duration, F as Finalize, H as Heartbeat, I as Invalidate, l as StdErr, k as StdOut, o as StreamConfig, j as StreamDataRequest, m as SystemMessage, _ as _Cursor, c as createCursor, g as cursorFromBytes, d as cursorFromProto, f as cursorToBytes, b as cursorToProto } from './shared/protocol.d9596779.mjs';
|
|
3
3
|
import { Schema } from '@effect/schema';
|
|
4
4
|
import { createChannel, createClient as createClient$1 } from 'nice-grpc';
|
|
5
|
-
import 'protobufjs/minimal';
|
|
5
|
+
import 'protobufjs/minimal.js';
|
|
6
6
|
import assert from 'node:assert';
|
|
7
7
|
import 'effect';
|
|
8
8
|
import 'viem';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@effect/schema';
|
|
2
2
|
import { DefaultCallOptions, NormalizedServiceDefinition } from 'nice-grpc';
|
|
3
3
|
import { CallContext, CallOptions } from 'nice-grpc-common';
|
|
4
|
-
import _m0 from 'protobufjs/minimal';
|
|
4
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
5
5
|
import * as _effect_schema_AST from '@effect/schema/AST';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@effect/schema';
|
|
2
2
|
import { DefaultCallOptions, NormalizedServiceDefinition } from 'nice-grpc';
|
|
3
3
|
import { CallContext, CallOptions } from 'nice-grpc-common';
|
|
4
|
-
import _m0 from 'protobufjs/minimal';
|
|
4
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
5
5
|
import * as _effect_schema_AST from '@effect/schema/AST';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from '@effect/schema';
|
|
2
2
|
import { DefaultCallOptions, NormalizedServiceDefinition } from 'nice-grpc';
|
|
3
3
|
import { CallContext, CallOptions } from 'nice-grpc-common';
|
|
4
|
-
import _m0 from 'protobufjs/minimal';
|
|
4
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
5
5
|
import * as _effect_schema_AST from '@effect/schema/AST';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/testing/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const schema = require('@effect/schema');
|
|
4
|
-
const config = require('../shared/protocol.
|
|
5
|
-
require('protobufjs/minimal');
|
|
4
|
+
const config = require('../shared/protocol.e1dec68a.cjs');
|
|
5
|
+
require('protobufjs/minimal.js');
|
|
6
6
|
require('effect');
|
|
7
7
|
require('viem');
|
|
8
8
|
require('long');
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.
|
|
1
|
+
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.8c2a685d.cjs';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
5
|
-
import 'protobufjs/minimal';
|
|
5
|
+
import 'protobufjs/minimal.js';
|
|
6
6
|
import '@effect/schema/AST';
|
|
7
7
|
|
|
8
8
|
declare class MockClient<TFilter, TBlock> implements Client<TFilter, TBlock> {
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.
|
|
1
|
+
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.8c2a685d.mjs';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
5
|
-
import 'protobufjs/minimal';
|
|
5
|
+
import 'protobufjs/minimal.js';
|
|
6
6
|
import '@effect/schema/AST';
|
|
7
7
|
|
|
8
8
|
declare class MockClient<TFilter, TBlock> implements Client<TFilter, TBlock> {
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.
|
|
1
|
+
import { A as Client, q as StreamDataRequest, z as StreamDataOptions, w as StreamDataResponse, S as StatusRequest, y as ClientCallOptions, l as StatusResponse, x as StreamConfig, c as Cursor, C as CursorProto, K as DataFinality } from '../shared/protocol.8c2a685d.js';
|
|
2
2
|
import { Schema } from '@effect/schema';
|
|
3
3
|
import 'nice-grpc';
|
|
4
4
|
import 'nice-grpc-common';
|
|
5
|
-
import 'protobufjs/minimal';
|
|
5
|
+
import 'protobufjs/minimal.js';
|
|
6
6
|
import '@effect/schema/AST';
|
|
7
7
|
|
|
8
8
|
declare class MockClient<TFilter, TBlock> implements Client<TFilter, TBlock> {
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from '@effect/schema';
|
|
2
|
-
import { M as MockFilter$1, p as MockBlock$1, o as StreamConfig, S as StreamDataResponse } from '../shared/protocol.
|
|
3
|
-
import 'protobufjs/minimal';
|
|
2
|
+
import { M as MockFilter$1, p as MockBlock$1, o as StreamConfig, S as StreamDataResponse } from '../shared/protocol.d9596779.mjs';
|
|
3
|
+
import 'protobufjs/minimal.js';
|
|
4
4
|
import 'effect';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import 'long';
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/protocol",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.7",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"src",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
6
10
|
"main": "./dist/index.mjs",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
7
12
|
"exports": {
|
|
8
13
|
".": {
|
|
9
14
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +23,6 @@
|
|
|
18
23
|
"default": "./dist/testing/index.mjs"
|
|
19
24
|
}
|
|
20
25
|
},
|
|
21
|
-
"publishConfig": {},
|
|
22
26
|
"scripts": {
|
|
23
27
|
"build": "pnpm build:proto && unbuild",
|
|
24
28
|
"build:proto": "buf generate proto",
|
|
@@ -44,11 +48,5 @@
|
|
|
44
48
|
"nice-grpc-common": "^2.0.2",
|
|
45
49
|
"protobufjs": "^7.3.0",
|
|
46
50
|
"viem": "^2.13.2"
|
|
47
|
-
}
|
|
48
|
-
"files": [
|
|
49
|
-
"dist",
|
|
50
|
-
"src",
|
|
51
|
-
"README.md"
|
|
52
|
-
],
|
|
53
|
-
"types": "./dist/index.d.ts"
|
|
51
|
+
}
|
|
54
52
|
}
|
package/src/proto/stream.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import Long from "long";
|
|
9
9
|
import { type CallContext, type CallOptions } from "nice-grpc-common";
|
|
10
|
-
import _m0 from "protobufjs/minimal";
|
|
11
|
-
import { Duration } from "./google/protobuf/duration";
|
|
10
|
+
import _m0 from "protobufjs/minimal.js";
|
|
11
|
+
import { Duration } from "./google/protobuf/duration.js";
|
|
12
12
|
|
|
13
13
|
export const protobufPackage = "dna.v2.stream";
|
|
14
14
|
|