@coopenomics/parser 2025.10.15 → 2025.10.16
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -303,8 +303,13 @@ console.log(subsribedActions);
|
|
|
303
303
|
async function loadReader(db) {
|
|
304
304
|
let currentBlock = await db.getCurrentBlock();
|
|
305
305
|
const info = await getInfo();
|
|
306
|
-
if (
|
|
306
|
+
if (Number(startBlock) === 1) {
|
|
307
|
+
if (currentBlock === 0) {
|
|
308
|
+
currentBlock = Number(info.head_block_num);
|
|
309
|
+
}
|
|
310
|
+
} else {
|
|
307
311
|
currentBlock = Number(startBlock);
|
|
312
|
+
}
|
|
308
313
|
console.log("\u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043C \u0441 \u0431\u043B\u043E\u043A\u0430: ", currentBlock);
|
|
309
314
|
console.log("\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u043C \u043D\u0430 \u0431\u043B\u043E\u043A\u0435: ", finishBlock);
|
|
310
315
|
console.log("\u0412\u044B\u0441\u043E\u0442\u0430 \u0446\u0435\u043F\u043E\u0447\u043A\u0438: ", info.head_block_num);
|
package/dist/index.mjs
CHANGED
|
@@ -294,8 +294,13 @@ console.log(subsribedActions);
|
|
|
294
294
|
async function loadReader(db) {
|
|
295
295
|
let currentBlock = await db.getCurrentBlock();
|
|
296
296
|
const info = await getInfo();
|
|
297
|
-
if (
|
|
297
|
+
if (Number(startBlock) === 1) {
|
|
298
|
+
if (currentBlock === 0) {
|
|
299
|
+
currentBlock = Number(info.head_block_num);
|
|
300
|
+
}
|
|
301
|
+
} else {
|
|
298
302
|
currentBlock = Number(startBlock);
|
|
303
|
+
}
|
|
299
304
|
console.log("\u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043C \u0441 \u0431\u043B\u043E\u043A\u0430: ", currentBlock);
|
|
300
305
|
console.log("\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u043C \u043D\u0430 \u0431\u043B\u043E\u043A\u0435: ", finishBlock);
|
|
301
306
|
console.log("\u0412\u044B\u0441\u043E\u0442\u0430 \u0446\u0435\u043F\u043E\u0447\u043A\u0438: ", info.head_block_num);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/parser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2025.10.
|
|
4
|
+
"version": "2025.10.16",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@9.0.6",
|
|
7
7
|
"description": "",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"vite": "^5.2.10",
|
|
86
86
|
"vitest": "^1.5.2"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "ff520622ff999a103fa038a4236da9a264a8b9be"
|
|
89
89
|
}
|