nexrall-code 0.5.111 → 0.5.112
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 +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -155106,14 +155106,15 @@ var BILLING_URL = "https://app.nexrall.com/?settings=billing";
|
|
|
155106
155106
|
function hyperlink(label, url) {
|
|
155107
155107
|
return `\x1B]8;;${url}\x1B\\${label}\x1B]8;;\x1B\\`;
|
|
155108
155108
|
}
|
|
155109
|
-
var
|
|
155109
|
+
var lastBalanceNoticeShown = false;
|
|
155110
155110
|
function printBalanceNotice(balance, zero) {
|
|
155111
|
-
|
|
155112
|
-
if (lastBalanceNoticeState === state)
|
|
155111
|
+
if (!zero)
|
|
155113
155112
|
return;
|
|
155114
|
-
|
|
155115
|
-
|
|
155116
|
-
|
|
155113
|
+
if (lastBalanceNoticeShown)
|
|
155114
|
+
return;
|
|
155115
|
+
lastBalanceNoticeShown = true;
|
|
155116
|
+
const title = "Out of balance";
|
|
155117
|
+
const detail = "You're out of funds \u2014 top up to keep the agent working.";
|
|
155117
155118
|
console.log();
|
|
155118
155119
|
console.log(source_default.bgYellow.black(` ${title} `) + " " + source_default.dim(detail));
|
|
155119
155120
|
console.log(" " + source_default.yellow(hyperlink("\u2192 Top up", BILLING_URL)) + source_default.dim(` (${BILLING_URL})`));
|