prostgles-server 2.0.156 → 2.0.157

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-server",
3
- "version": "2.0.156",
3
+ "version": "2.0.157",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +1 @@
1
- 10445
1
+ 12615
@@ -133,8 +133,8 @@ async function client_only(db, auth, log, methods) {
133
133
  latest: await db.planes.findOne({}, { orderBy: { last_updated: -1 } }),
134
134
  };
135
135
  const syncCounts = {
136
- x10: sync?.getItems().filter(d => d.x == 10),
137
- x20: sync?.getItems().filter(d => d.x == 20),
136
+ x10: sync?.getItems().filter(d => d.x == 10).length,
137
+ x20: sync?.getItems().filter(d => d.x == 20).length,
138
138
  latest: sync?.getItems()?.sort((a, b) => +b.last_updated - +a.last_updated)[0],
139
139
  };
140
140
  const msg = "Replication test failed due to taking longer than " + msLimit + "ms \n " + JSON.stringify({ dbCounts, syncCounts }, null, 2);
@@ -153,8 +153,8 @@ export default async function client_only(db: DBHandlerClient, auth: Auth, log:
153
153
  latest: await db.planes.findOne({}, { orderBy: { last_updated: -1 } }),
154
154
  }
155
155
  const syncCounts = {
156
- x10: sync?.getItems().filter(d => d.x == 10),
157
- x20: sync?.getItems().filter(d => d.x == 20),
156
+ x10: sync?.getItems().filter(d => d.x == 10).length,
157
+ x20: sync?.getItems().filter(d => d.x == 20).length,
158
158
  latest: sync?.getItems()?.sort((a, b) => +b.last_updated - +a.last_updated )[0],
159
159
  }
160
160
  const msg = "Replication test failed due to taking longer than " + msLimit + "ms \n " + JSON.stringify({ dbCounts, syncCounts }, null, 2);
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "../..": {
25
25
  "name": "prostgles-server",
26
- "version": "2.0.155",
26
+ "version": "2.0.156",
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@aws-sdk/client-s3": "^3.95.0",