@coopenomics/factory 2.2.2 → 2.2.4

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 CHANGED
@@ -909,7 +909,7 @@ class DataService {
909
909
  this.state = dbConnector.getCollection("sync");
910
910
  }
911
911
  async getOne(filter) {
912
- const document = await this.collection.findOne({ ...filter }, { sort: { _created_at: -1 } });
912
+ const document = await this.collection.findOne({ ...filter }, { sort: { block_num: -1 } });
913
913
  return document;
914
914
  }
915
915
  async getMany(filter, groupByFields, page = 1, limit = 100) {
@@ -917,7 +917,7 @@ class DataService {
917
917
  const groupId = groupFields.reduce((acc, field) => ({ ...acc, [field]: `$${field}` }), {});
918
918
  const aggregateOptions = [
919
919
  { $match: filter },
920
- { $sort: { _created_at: -1 } },
920
+ { $sort: { block_num: -1 } },
921
921
  {
922
922
  $group: {
923
923
  _id: groupId,
@@ -947,7 +947,7 @@ class DataService {
947
947
  return result;
948
948
  }
949
949
  async getHistory(filter) {
950
- const documents = await this.collection.find(filter).sort({ _created_at: -1 }).toArray();
950
+ const documents = await this.collection.find(filter).sort({ block_num: -1 }).toArray();
951
951
  return documents;
952
952
  }
953
953
  async save(data) {
@@ -1480,7 +1480,7 @@ class PDFService {
1480
1480
 
1481
1481
  const name = "@coopenomics/factory";
1482
1482
  const type = "module";
1483
- const version = "2.2.2";
1483
+ const version = "2.2.4";
1484
1484
  const packageManager = "pnpm@9.0.6";
1485
1485
  const description = "";
1486
1486
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -1529,7 +1529,7 @@ const dependencies = {
1529
1529
  "ajv-formats": "^3.0.1",
1530
1530
  "ajv-i18n": "^4.2.0",
1531
1531
  axios: "^1.7.2",
1532
- cooptypes: "2.2.2",
1532
+ cooptypes: "2.2.4",
1533
1533
  dotenv: "^16.4.5",
1534
1534
  "eosjs-ecc": "^4.0.7",
1535
1535
  handlebars: "^4.7.8",
@@ -1571,7 +1571,7 @@ const pnpm = {
1571
1571
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
1572
1572
  }
1573
1573
  };
1574
- const gitHead = "88352202b02fd190abd2c892290cb668ba137cb8";
1574
+ const gitHead = "cbfe37dbba00574ec4f1ca354ecf5a4438d72bc1";
1575
1575
  const packageJson = {
1576
1576
  name: name,
1577
1577
  type: type,
package/dist/index.mjs CHANGED
@@ -896,7 +896,7 @@ class DataService {
896
896
  this.state = dbConnector.getCollection("sync");
897
897
  }
898
898
  async getOne(filter) {
899
- const document = await this.collection.findOne({ ...filter }, { sort: { _created_at: -1 } });
899
+ const document = await this.collection.findOne({ ...filter }, { sort: { block_num: -1 } });
900
900
  return document;
901
901
  }
902
902
  async getMany(filter, groupByFields, page = 1, limit = 100) {
@@ -904,7 +904,7 @@ class DataService {
904
904
  const groupId = groupFields.reduce((acc, field) => ({ ...acc, [field]: `$${field}` }), {});
905
905
  const aggregateOptions = [
906
906
  { $match: filter },
907
- { $sort: { _created_at: -1 } },
907
+ { $sort: { block_num: -1 } },
908
908
  {
909
909
  $group: {
910
910
  _id: groupId,
@@ -934,7 +934,7 @@ class DataService {
934
934
  return result;
935
935
  }
936
936
  async getHistory(filter) {
937
- const documents = await this.collection.find(filter).sort({ _created_at: -1 }).toArray();
937
+ const documents = await this.collection.find(filter).sort({ block_num: -1 }).toArray();
938
938
  return documents;
939
939
  }
940
940
  async save(data) {
@@ -1467,7 +1467,7 @@ class PDFService {
1467
1467
 
1468
1468
  const name = "@coopenomics/factory";
1469
1469
  const type = "module";
1470
- const version = "2.2.2";
1470
+ const version = "2.2.4";
1471
1471
  const packageManager = "pnpm@9.0.6";
1472
1472
  const description = "";
1473
1473
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
@@ -1516,7 +1516,7 @@ const dependencies = {
1516
1516
  "ajv-formats": "^3.0.1",
1517
1517
  "ajv-i18n": "^4.2.0",
1518
1518
  axios: "^1.7.2",
1519
- cooptypes: "2.2.2",
1519
+ cooptypes: "2.2.4",
1520
1520
  dotenv: "^16.4.5",
1521
1521
  "eosjs-ecc": "^4.0.7",
1522
1522
  handlebars: "^4.7.8",
@@ -1558,7 +1558,7 @@ const pnpm = {
1558
1558
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
1559
1559
  }
1560
1560
  };
1561
- const gitHead = "88352202b02fd190abd2c892290cb668ba137cb8";
1561
+ const gitHead = "cbfe37dbba00574ec4f1ca354ecf5a4438d72bc1";
1562
1562
  const packageJson = {
1563
1563
  name: name,
1564
1564
  type: type,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/factory",
3
3
  "type": "module",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "packageManager": "pnpm@9.0.6",
6
6
  "description": "",
7
7
  "author": "Alex Ant <chairman.voskhod@gmail.com>",
@@ -49,7 +49,7 @@
49
49
  "ajv-formats": "^3.0.1",
50
50
  "ajv-i18n": "^4.2.0",
51
51
  "axios": "^1.7.2",
52
- "cooptypes": "2.2.2",
52
+ "cooptypes": "2.2.4",
53
53
  "dotenv": "^16.4.5",
54
54
  "eosjs-ecc": "^4.0.7",
55
55
  "handlebars": "^4.7.8",
@@ -91,5 +91,5 @@
91
91
  "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
92
92
  }
93
93
  },
94
- "gitHead": "88352202b02fd190abd2c892290cb668ba137cb8"
94
+ "gitHead": "cbfe37dbba00574ec4f1ca354ecf5a4438d72bc1"
95
95
  }