@oneaddress/setup 1.1.5 → 1.1.6
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/index.js +21 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -835,7 +835,7 @@ var _R = ["\u2588\u2588\u2588\u2588\u2588\u2588 ", "\u2588\u2588 \u2588\u2588"
|
|
|
835
835
|
var _S = [" \u2588\u2588\u2588\u2588\u2588\u2588", "\u2588\u2588 ", "\u2588\u2588 ", " \u2588\u2588\u2588\u2588\u2588 ", " \u2588\u2588", " \u2588\u2588", "\u2588\u2588\u2588\u2588\u2588\u2588 "];
|
|
836
836
|
var ONE_ROWS = Array.from({ length: 7 }, (_2, i) => [_O[i], _N[i], _E[i]].join(" "));
|
|
837
837
|
var ADDR_ROWS = Array.from({ length: 7 }, (_2, i) => [_A[i], _D2[i], _D2[i], _R[i], _E[i], _S[i], _S[i]].join(" "));
|
|
838
|
-
var WIZARD_VERSION = true ? "1.1.
|
|
838
|
+
var WIZARD_VERSION = true ? "1.1.6" : "?";
|
|
839
839
|
function printHeader() {
|
|
840
840
|
const BAR_LEN = 85;
|
|
841
841
|
const TOP_BAR = fn("\u250C") + dm("\u2500".repeat(BAR_LEN)) + fn("\u2510");
|
|
@@ -3595,9 +3595,9 @@ async function main() {
|
|
|
3595
3595
|
if (serverRunning) {
|
|
3596
3596
|
console.log("");
|
|
3597
3597
|
console.log(` ${DIM2}\u250C${"\u2500".repeat(56)}\u2510${R4}`);
|
|
3598
|
-
console.log(` ${DIM2}\u2502${R4} ${GRN}\u25C8${R4} ${CRM2}Server live${R4} ${MID2}on http://localhost:3001/webhook${R4}
|
|
3599
|
-
console.log(` ${DIM2}\u2502${R4} ${AMB2}\u25C8${R4} ${MID2}Edit ${CRM2}src/store.ts${R4} ${MID2}to wire your database${R4}
|
|
3600
|
-
console.log(` ${DIM2}\u2502${R4} ${MID2}Press Ctrl+C to stop the server and exit.${R4}
|
|
3598
|
+
console.log(` ${DIM2}\u2502${R4} ${GRN}\u25C8${R4} ${CRM2}Server live${R4} ${MID2}on http://localhost:3001/webhook${R4}${" ".repeat(7)}${DIM2}\u2502${R4}`);
|
|
3599
|
+
console.log(` ${DIM2}\u2502${R4} ${AMB2}\u25C8${R4} ${MID2}Edit ${CRM2}src/store.ts${R4} ${MID2}to wire your database${R4}${" ".repeat(12)}${DIM2}\u2502${R4}`);
|
|
3600
|
+
console.log(` ${DIM2}\u2502${R4} ${MID2}Press Ctrl+C to stop the server and exit.${R4}${" ".repeat(10)}${DIM2}\u2502${R4}`);
|
|
3601
3601
|
console.log(` ${DIM2}\u2514${"\u2500".repeat(56)}\u2518${R4}`);
|
|
3602
3602
|
console.log("");
|
|
3603
3603
|
watchServer(
|
|
@@ -3609,7 +3609,24 @@ async function main() {
|
|
|
3609
3609
|
process.exit(0);
|
|
3610
3610
|
}
|
|
3611
3611
|
);
|
|
3612
|
+
if (process.stdin.isTTY) {
|
|
3613
|
+
process.stdin.setRawMode(true);
|
|
3614
|
+
}
|
|
3612
3615
|
process.stdin.resume();
|
|
3616
|
+
process.stdin.on("data", (chunk) => {
|
|
3617
|
+
if (chunk[0] === 3) {
|
|
3618
|
+
for (const fn2 of cleanupFns) {
|
|
3619
|
+
try {
|
|
3620
|
+
fn2();
|
|
3621
|
+
} catch {
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
console.log(`
|
|
3625
|
+
${DIM2} Stopped.${R4}
|
|
3626
|
+
`);
|
|
3627
|
+
process.exit(0);
|
|
3628
|
+
}
|
|
3629
|
+
});
|
|
3613
3630
|
}
|
|
3614
3631
|
}
|
|
3615
3632
|
|