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 [
|
|
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
|
@@ -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(
|
|
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;
|