@brozarti/spincome 0.1.6 → 0.1.7

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/hook.js CHANGED
@@ -43,10 +43,10 @@ async function main() {
43
43
  const session = (0, session_js_1.addToSession)(earnedCents);
44
44
  // Every 10th impression show the full ad, otherwise just the earnings ticker
45
45
  if (session.impressions % AD_EVERY_N === 0) {
46
- process.stdout.write((0, display_js_1.renderAd)(ad, earnedCents, session.totalCents, context));
46
+ process.stderr.write((0, display_js_1.renderAd)(ad, earnedCents, session.totalCents, context));
47
47
  }
48
48
  else {
49
- process.stdout.write((0, display_js_1.renderEarnings)(session.totalCents));
49
+ process.stderr.write((0, display_js_1.renderEarnings)(session.totalCents));
50
50
  }
51
51
  }
52
52
  main().catch(() => process.exit(0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brozarti/spincome",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Earn passive income from your Claude Code sessions",
5
5
  "bin": {
6
6
  "spincome": "./dist/cli.js"
package/src/hook.ts CHANGED
@@ -56,9 +56,9 @@ async function main() {
56
56
 
57
57
  // Every 10th impression show the full ad, otherwise just the earnings ticker
58
58
  if (session.impressions % AD_EVERY_N === 0) {
59
- process.stdout.write(renderAd(ad, earnedCents, session.totalCents, context));
59
+ process.stderr.write(renderAd(ad, earnedCents, session.totalCents, context));
60
60
  } else {
61
- process.stdout.write(renderEarnings(session.totalCents));
61
+ process.stderr.write(renderEarnings(session.totalCents));
62
62
  }
63
63
  }
64
64