conductor-node 4.1.4 → 4.1.8

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.
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "4.1.4",
3
+ "version": "4.1.8",
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",
7
7
  "type": "commonjs",
8
- "main": "dist/src/index.js",
9
- "types": "dist/src/index.d.ts",
8
+ "main": "dist/client/src/index.js",
9
+ "types": "dist/client/src/index.d.ts",
10
10
  "files": [
11
- "dist/src/**/*.[jt]s",
12
- "dist/package.json"
11
+ "dist/**/*.[jt]s",
12
+ "dist/client/package.json"
13
13
  ],
14
14
  "scripts": {
15
15
  "prepack": "yarn tsc && yarn delete-compiled-tests && yarn tsc-alias --verbose",
@@ -20,12 +20,13 @@
20
20
  "engines": {
21
21
  "node": ">=16"
22
22
  },
23
- "devDependencies": {
24
- "tsc-alias": "^1.7.0"
25
- },
26
23
  "dependencies": {
24
+ "@conductor/utils": "./packages/utils",
27
25
  "chalk": "^4",
28
26
  "graphql": "^16.6.0",
29
27
  "graphql-request": "^5.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "tsc-alias": "^1.7.0"
30
31
  }
31
32
  }
@@ -1,5 +1,5 @@
1
- import type { Environment } from "./environment";
2
1
  import QbdIntegration from "./integrations/qbd/QbdIntegration";
2
+ import type { Environment } from "../../utils/src/environment";
3
3
  export interface ClientOptions {
4
4
  /** Log each request and response. */
5
5
  verbose?: boolean;
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const package_json_1 = __importDefault(require("./../package.json"));
7
- const environment_1 = require("./environment");
8
7
  const QbdIntegration_1 = __importDefault(require("./integrations/qbd/QbdIntegration"));
8
+ const environment_1 = require("../../utils/src/environment");
9
9
  const chalk_1 = __importDefault(require("chalk"));
10
10
  const graphql_request_1 = require("graphql-request");
11
11
  const node_child_process_1 = require("node:child_process");
@@ -66,7 +66,7 @@ class Client {
66
66
  console.log("Time since Conductor last heard from each integration connection:");
67
67
  integrationConnections.forEach(({ qbwcUsername, lastHeartbeatAt }) => {
68
68
  let logMessage = `${chalk_1.default.bold(qbwcUsername)}: `;
69
- if (lastHeartbeatAt !== undefined) {
69
+ if (lastHeartbeatAt !== null) {
70
70
  const secondsSinceLastHeartbeat = (Date.now() - new Date(lastHeartbeatAt).getTime()) / 1000;
71
71
  logMessage += chalk_1.default.yellow(`${secondsSinceLastHeartbeat}s ago`);
72
72
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "4.1.4",
3
+ "version": "4.1.8",
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",
7
7
  "type": "commonjs",
8
- "main": "dist/src/index.js",
9
- "types": "dist/src/index.d.ts",
8
+ "main": "dist/client/src/index.js",
9
+ "types": "dist/client/src/index.d.ts",
10
10
  "files": [
11
- "dist/src/**/*.[jt]s",
12
- "dist/package.json"
11
+ "dist/**/*.[jt]s",
12
+ "dist/client/package.json"
13
13
  ],
14
14
  "scripts": {
15
15
  "prepack": "yarn tsc && yarn delete-compiled-tests && yarn tsc-alias --verbose",
@@ -20,12 +20,13 @@
20
20
  "engines": {
21
21
  "node": ">=16"
22
22
  },
23
- "devDependencies": {
24
- "tsc-alias": "^1.7.0"
25
- },
26
23
  "dependencies": {
24
+ "@conductor/utils": "./packages/utils",
27
25
  "chalk": "^4",
28
26
  "graphql": "^16.6.0",
29
27
  "graphql-request": "^5.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "tsc-alias": "^1.7.0"
30
31
  }
31
32
  }