clisponsor 1.0.16 → 1.0.17
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/bin/clisponsor.mjs +3 -3
- package/package.json +1 -1
package/bin/clisponsor.mjs
CHANGED
|
@@ -675,7 +675,7 @@ export const CLIsponsorOpenCodePlugin = async ({ client }) => {
|
|
|
675
675
|
if (!ad.display_line) return;
|
|
676
676
|
await client.tui.showToast({
|
|
677
677
|
body: {
|
|
678
|
-
title: "CLIsponsor "
|
|
678
|
+
title: "CLIsponsor Message",
|
|
679
679
|
message: sponsoredLine(ad.display_line),
|
|
680
680
|
variant: "info",
|
|
681
681
|
duration: 10000,
|
|
@@ -766,7 +766,7 @@ export default function CLIsponsorPiExtension(pi) {
|
|
|
766
766
|
if (!res.ok) return;
|
|
767
767
|
const ad = await res.json();
|
|
768
768
|
if (!ad.display_line) return;
|
|
769
|
-
ctx.ui.notify("CLIsponsor
|
|
769
|
+
ctx.ui.notify("CLIsponsor Message\\n" + sponsoredLine(ad.display_line), "info");
|
|
770
770
|
} catch {}
|
|
771
771
|
}
|
|
772
772
|
|
|
@@ -866,7 +866,7 @@ try {
|
|
|
866
866
|
if (!res.ok) process.exit(0);
|
|
867
867
|
const ad = await res.json();
|
|
868
868
|
if (!ad.display_line) process.exit(0);
|
|
869
|
-
progress("CLIsponsor
|
|
869
|
+
progress("CLIsponsor Message: " + sponsoredLine(ad.display_line));
|
|
870
870
|
console.log(JSON.stringify({}));
|
|
871
871
|
} catch {
|
|
872
872
|
process.exit(0);
|
package/package.json
CHANGED