honeytree 1.2.4 → 1.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "honeytree",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "code with claude, and watch your forest grow! ",
5
5
  "type": "module",
6
6
  "bin": {
package/src/auth.js CHANGED
@@ -29,7 +29,7 @@ export function isLoggedIn() {
29
29
  return !!(auth && auth.access_token);
30
30
  }
31
31
 
32
- export async function loginWithDevice(apiUrl = process.env.HONEYTREE_API_URL || "https://tryhoney.xyz") {
32
+ export async function loginWithDevice(apiUrl = process.env.HONEYTREE_API_URL || "https://www.tryhoney.xyz") {
33
33
  const res = await fetch(`${apiUrl}/api/auth/device`, { method: "POST" });
34
34
  const contentType = res.headers.get("content-type") || "";
35
35
  if (!contentType.includes("application/json")) {
@@ -302,7 +302,7 @@ export default function ForestApp() {
302
302
  // Open checkout in browser
303
303
  const auth = getAuth();
304
304
  if (auth && auth.access_token) {
305
- fetch("https://tryhoney.xyz/api/checkout", {
305
+ fetch("https://www.tryhoney.xyz/api/checkout", {
306
306
  method: "POST",
307
307
  headers: {
308
308
  "Content-Type": "application/json",
package/src/plant-real.js CHANGED
@@ -4,7 +4,7 @@ import { readForest } from "./state.js";
4
4
  import { syncToCloud } from "./sync.js";
5
5
  import { asciiTree } from "./ascii-tree.js";
6
6
 
7
- const API_URL = process.env.HONEYTREE_API_URL || "https://tryhoney.xyz";
7
+ const API_URL = process.env.HONEYTREE_API_URL || "https://www.tryhoney.xyz";
8
8
  const POLL_INTERVAL_MS = 4000;
9
9
  const POLL_TIMEOUT_MS = 5 * 60 * 1000;
10
10
 
package/src/rewards.js CHANGED
@@ -40,7 +40,7 @@ export function hasCherryBlossom() { return hasReward("cherry"); }
40
40
 
41
41
  // Fetch rewards from server and cache locally
42
42
  export async function syncRewards(apiUrl) {
43
- apiUrl = apiUrl || process.env.HONEYTREE_API_URL || "https://tryhoney.xyz";
43
+ apiUrl = apiUrl || process.env.HONEYTREE_API_URL || "https://www.tryhoney.xyz";
44
44
  const { getAuth } = await import("./auth.js");
45
45
  const auth = getAuth();
46
46
  if (!auth || !auth.access_token) return null;
package/src/sync.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { getAuth, saveAuth } from "./auth.js";
2
2
  import { readForest } from "./state.js";
3
3
 
4
- const API_URL = process.env.HONEYTREE_API_URL || "https://tryhoney.xyz";
4
+ const API_URL = process.env.HONEYTREE_API_URL || "https://www.tryhoney.xyz";
5
5
 
6
6
  export async function syncToCloud(forest) {
7
7
  const auth = getAuth();