@apibara/indexer 2.1.0-beta.10 → 2.1.0-beta.12
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/indexer.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -158,7 +158,7 @@ async function run(client, indexer, runOptions = {}) {
|
|
|
158
158
|
context$1.finality = finality;
|
|
159
159
|
await middleware(context$1, async () => {
|
|
160
160
|
let block;
|
|
161
|
-
if (isFactoryMode) {
|
|
161
|
+
if (isFactoryMode && finality !== "pending") {
|
|
162
162
|
assert__default(indexer.options.factory !== void 0);
|
|
163
163
|
const [factoryBlock, mainBlock] = blocks;
|
|
164
164
|
block = mainBlock;
|
package/dist/index.mjs
CHANGED
|
@@ -151,7 +151,7 @@ async function run(client, indexer, runOptions = {}) {
|
|
|
151
151
|
context.finality = finality;
|
|
152
152
|
await middleware(context, async () => {
|
|
153
153
|
let block;
|
|
154
|
-
if (isFactoryMode) {
|
|
154
|
+
if (isFactoryMode && finality !== "pending") {
|
|
155
155
|
assert(indexer.options.factory !== void 0);
|
|
156
156
|
const [factoryBlock, mainBlock] = blocks;
|
|
157
157
|
block = mainBlock;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/indexer",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vitest": "^1.6.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@apibara/protocol": "2.1.0-beta.
|
|
73
|
+
"@apibara/protocol": "2.1.0-beta.12",
|
|
74
74
|
"@opentelemetry/api": "^1.9.0",
|
|
75
75
|
"ci-info": "^4.1.0",
|
|
76
76
|
"consola": "^3.2.3",
|
package/src/indexer.ts
CHANGED
|
@@ -292,7 +292,7 @@ export async function run<TFilter, TBlock>(
|
|
|
292
292
|
let block: TBlock | null;
|
|
293
293
|
|
|
294
294
|
// when factory mode
|
|
295
|
-
if (isFactoryMode) {
|
|
295
|
+
if (isFactoryMode && finality !== "pending") {
|
|
296
296
|
assert(indexer.options.factory !== undefined);
|
|
297
297
|
|
|
298
298
|
const [factoryBlock, mainBlock] = blocks;
|