conductor-node 4.1.0 → 4.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Easily integrate with the entire QuickBooks Desktop API with fully-typed async TypeScript",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",
@@ -63,14 +63,15 @@ class Client {
63
63
  }
64
64
  async logLastHeartbeats() {
65
65
  const integrationConnections = await this.getIntegrationConnections();
66
+ console.log("Time since Conductor last heard from each integration connection:");
66
67
  integrationConnections.forEach((integrationConnection) => {
67
68
  // @ts-expect-error - This will pass after we integrate GQL codegen.
68
69
  let logMessage = `${integrationConnection.qbwcUsername}: `;
69
70
  // @ts-expect-error - This will pass after we integrate GQL codegen.
70
71
  const lastHeartbeatAt = integrationConnection.lastHeartbeatAt;
71
72
  if (lastHeartbeatAt !== undefined) {
72
- const secondsSinceLastHeartbeat = Math.floor((Date.now() - new Date(lastHeartbeatAt).getTime()) / 1000);
73
- logMessage += `${secondsSinceLastHeartbeat} seconds ago`;
73
+ const secondsSinceLastHeartbeat = (Date.now() - new Date(lastHeartbeatAt).getTime()) / 1000;
74
+ logMessage += `${secondsSinceLastHeartbeat}s ago`;
74
75
  }
75
76
  else {
76
77
  logMessage += "never";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Easily integrate with the entire QuickBooks Desktop API with fully-typed async TypeScript",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",