@coopenomics/parser 2025.11.14-alpha-1 → 2025.11.14-alpha-3
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 +19 -7
- package/dist/index.mjs +19 -7
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -378,7 +378,7 @@ async function loadCooperativeFromBlockchain(db, coopname, block_num) {
|
|
|
378
378
|
// username - это primary_key для cooperatives
|
|
379
379
|
value: cooperative,
|
|
380
380
|
block_num,
|
|
381
|
-
present:
|
|
381
|
+
present: true
|
|
382
382
|
};
|
|
383
383
|
await db.saveDeltaToDB(cooperativeDelta);
|
|
384
384
|
console.log(`\u2713 \u0414\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 ${coopname} \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B`);
|
|
@@ -393,9 +393,12 @@ async function loadCooperativeFromBlockchain(db, coopname, block_num) {
|
|
|
393
393
|
table: cooptypes.SovietContract.Tables.Boards.tableName,
|
|
394
394
|
primary_key: String(soviet.id),
|
|
395
395
|
// id - это primary_key для boards
|
|
396
|
-
value:
|
|
396
|
+
value: {
|
|
397
|
+
...soviet,
|
|
398
|
+
id: String(soviet.id)
|
|
399
|
+
},
|
|
397
400
|
block_num,
|
|
398
|
-
present:
|
|
401
|
+
present: true
|
|
399
402
|
};
|
|
400
403
|
await db.saveDeltaToDB(sovietDelta);
|
|
401
404
|
console.log(`\u2713 \u0414\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 ${coopname} \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B`);
|
|
@@ -414,9 +417,14 @@ async function loadTemplatesFromBlockchain(db, block_num) {
|
|
|
414
417
|
table: cooptypes.DraftContract.Tables.Drafts.tableName,
|
|
415
418
|
primary_key: String(draft.registry_id),
|
|
416
419
|
// registry_id - это primary_key для drafts
|
|
417
|
-
value:
|
|
420
|
+
value: {
|
|
421
|
+
...draft,
|
|
422
|
+
registry_id: String(draft.registry_id),
|
|
423
|
+
version: String(draft.version),
|
|
424
|
+
default_translation_id: String(draft.default_translation_id)
|
|
425
|
+
},
|
|
418
426
|
block_num,
|
|
419
|
-
present:
|
|
427
|
+
present: true
|
|
420
428
|
};
|
|
421
429
|
await db.saveDeltaToDB(draftDelta);
|
|
422
430
|
}
|
|
@@ -433,9 +441,13 @@ async function loadTemplatesFromBlockchain(db, block_num) {
|
|
|
433
441
|
table: cooptypes.DraftContract.Tables.Translations.tableName,
|
|
434
442
|
primary_key: String(translation.id),
|
|
435
443
|
// id - это primary_key для translations
|
|
436
|
-
value:
|
|
444
|
+
value: {
|
|
445
|
+
...translation,
|
|
446
|
+
id: String(translation.id),
|
|
447
|
+
draft_id: String(translation.draft_id)
|
|
448
|
+
},
|
|
437
449
|
block_num,
|
|
438
|
-
present:
|
|
450
|
+
present: true
|
|
439
451
|
};
|
|
440
452
|
await db.saveDeltaToDB(translationDelta);
|
|
441
453
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -369,7 +369,7 @@ async function loadCooperativeFromBlockchain(db, coopname, block_num) {
|
|
|
369
369
|
// username - это primary_key для cooperatives
|
|
370
370
|
value: cooperative,
|
|
371
371
|
block_num,
|
|
372
|
-
present:
|
|
372
|
+
present: true
|
|
373
373
|
};
|
|
374
374
|
await db.saveDeltaToDB(cooperativeDelta);
|
|
375
375
|
console.log(`\u2713 \u0414\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 ${coopname} \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B`);
|
|
@@ -384,9 +384,12 @@ async function loadCooperativeFromBlockchain(db, coopname, block_num) {
|
|
|
384
384
|
table: SovietContract.Tables.Boards.tableName,
|
|
385
385
|
primary_key: String(soviet.id),
|
|
386
386
|
// id - это primary_key для boards
|
|
387
|
-
value:
|
|
387
|
+
value: {
|
|
388
|
+
...soviet,
|
|
389
|
+
id: String(soviet.id)
|
|
390
|
+
},
|
|
388
391
|
block_num,
|
|
389
|
-
present:
|
|
392
|
+
present: true
|
|
390
393
|
};
|
|
391
394
|
await db.saveDeltaToDB(sovietDelta);
|
|
392
395
|
console.log(`\u2713 \u0414\u0430\u043D\u043D\u044B\u0435 \u0441\u043E\u0432\u0435\u0442\u0430 \u043A\u043E\u043E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u0430 ${coopname} \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B`);
|
|
@@ -405,9 +408,14 @@ async function loadTemplatesFromBlockchain(db, block_num) {
|
|
|
405
408
|
table: DraftContract.Tables.Drafts.tableName,
|
|
406
409
|
primary_key: String(draft.registry_id),
|
|
407
410
|
// registry_id - это primary_key для drafts
|
|
408
|
-
value:
|
|
411
|
+
value: {
|
|
412
|
+
...draft,
|
|
413
|
+
registry_id: String(draft.registry_id),
|
|
414
|
+
version: String(draft.version),
|
|
415
|
+
default_translation_id: String(draft.default_translation_id)
|
|
416
|
+
},
|
|
409
417
|
block_num,
|
|
410
|
-
present:
|
|
418
|
+
present: true
|
|
411
419
|
};
|
|
412
420
|
await db.saveDeltaToDB(draftDelta);
|
|
413
421
|
}
|
|
@@ -424,9 +432,13 @@ async function loadTemplatesFromBlockchain(db, block_num) {
|
|
|
424
432
|
table: DraftContract.Tables.Translations.tableName,
|
|
425
433
|
primary_key: String(translation.id),
|
|
426
434
|
// id - это primary_key для translations
|
|
427
|
-
value:
|
|
435
|
+
value: {
|
|
436
|
+
...translation,
|
|
437
|
+
id: String(translation.id),
|
|
438
|
+
draft_id: String(translation.draft_id)
|
|
439
|
+
},
|
|
428
440
|
block_num,
|
|
429
|
-
present:
|
|
441
|
+
present: true
|
|
430
442
|
};
|
|
431
443
|
await db.saveDeltaToDB(translationDelta);
|
|
432
444
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/parser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2025.11.14-alpha-
|
|
4
|
+
"version": "2025.11.14-alpha-3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@9.0.6",
|
|
7
7
|
"description": "",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@blockmatic/eosio-ship-reader": "^1.2.0",
|
|
55
55
|
"@types/express": "^4.17.21",
|
|
56
56
|
"@types/ws": "^8.5.13",
|
|
57
|
-
"cooptypes": "2025.11.14-alpha-
|
|
57
|
+
"cooptypes": "2025.11.14-alpha-3",
|
|
58
58
|
"dotenv": "^16.4.5",
|
|
59
59
|
"dotenv-expand": "^11.0.6",
|
|
60
60
|
"eosjs": "^22.1.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"vite": "^5.2.10",
|
|
88
88
|
"vitest": "^1.5.2"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "4c903ba0bb63af2f6faa56eb550547e9f404eeed"
|
|
91
91
|
}
|