conductor-node 11.3.1 → 11.3.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/README.md CHANGED
@@ -41,7 +41,7 @@ Conductor, the company, is building a data integration platform for vertical Saa
41
41
 
42
42
  ## Requirements
43
43
 
44
- 1. A Conductor API key pair: one secret key, one publishable key. Please [email us](mailto:hello@conductor.is?subject=Conductor%20Beta%20Access&body=Hello!%20Tell%20us%20a%20bit%20about%20what%20you%20are%20building:%20) to join the beta.
44
+ 1. A Conductor API key pair: one secret key, one publishable key. Please [complete this form](https://73a5v9t55ed.typeform.com/to/VRX7rfrN) to join the beta.
45
45
  2. Node.js v16 or later.
46
46
 
47
47
  ## Installation
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.3.1",
3
+ "version": "11.3.2",
4
4
  "description": "QuickBooks Desktop API for Node.js and TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks",
@@ -1 +1,2 @@
1
1
  export declare function checkForUpdates(): void;
2
+ export declare function createFramedMessage(messageLines: string[]): string;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.checkForUpdates = void 0;
6
+ exports.createFramedMessage = exports.checkForUpdates = void 0;
7
7
  const package_json_1 = __importDefault(require("../../package.json"));
8
8
  const node_child_process_1 = __importDefault(require("node:child_process"));
9
9
  function checkForUpdates() {
@@ -26,7 +26,27 @@ function checkForUpdates() {
26
26
  const updateCommand = process.env["npm_execpath"]?.includes("yarn") === true
27
27
  ? "yarn add"
28
28
  : "npm install";
29
- console.warn(`⚠️ Update available for Conductor: ${currentVersion} -> ${latestVersion}. To update, run: ${updateCommand} ${package_json_1.default.name}@latest`);
29
+ console.warn(createFramedMessage([
30
+ "🟡 UPDATE AVAILABLE for Conductor!",
31
+ `Current Version: ${currentVersion}`,
32
+ `Latest Version: ${latestVersion}`,
33
+ `To update, run: ${updateCommand} ${package_json_1.default.name}@latest`,
34
+ ]));
30
35
  }
31
36
  }
32
37
  exports.checkForUpdates = checkForUpdates;
38
+ function createFramedMessage(messageLines) {
39
+ const maxLength = Math.max(...messageLines.map((line) => line.length), 0);
40
+ return [
41
+ // Top border of the box.
42
+ `┌${"─".repeat(maxLength + 2)}┐`,
43
+ // Print each line of the message, padded to fit the box.
44
+ ...messageLines.map((line) => {
45
+ const padding = " ".repeat(maxLength - line.length);
46
+ return `│ ${line}${padding} │`;
47
+ }),
48
+ // Bottom border of the box.
49
+ `└${"─".repeat(maxLength + 2)}┘`,
50
+ ].join("\n");
51
+ }
52
+ exports.createFramedMessage = createFramedMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.3.1",
3
+ "version": "11.3.2",
4
4
  "description": "QuickBooks Desktop API for Node.js and TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks",