diff --git a/package.json b/package.json index 6540102..ba9e857 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,5 @@ "peerDependencies": { "typescript": "^5.6.2" }, - "version": "0.1.46" + "version": "0.1.47" } diff --git a/src/checkVersion.ts b/src/checkVersion.ts index df0e9ac..7fd0c5a 100644 --- a/src/checkVersion.ts +++ b/src/checkVersion.ts @@ -10,7 +10,7 @@ import semver from "semver"; import pkg from "../package.json" with { type: "json" }; const CACHE_FILE = join(homedir(), ".sfcompute", "version-cache"); -const CACHE_TTL = 7 * 24 * 60 * 60 * 1000; // 1 week in milliseconds +const CACHE_TTL = 1 * 60 * 60 * 1000; // 1 hour in milliseconds interface VersionCache { version: string; diff --git a/src/lib/buy/index.tsx b/src/lib/buy/index.tsx index 863e5c6..f928470 100644 --- a/src/lib/buy/index.tsx +++ b/src/lib/buy/index.tsx @@ -1,9 +1,9 @@ -import { parseDate } from "chrono-node"; import { type Command, Option } from "@commander-js/extra-typings"; -import { clearInterval, setInterval, setTimeout } from "node:timers"; +import { parseDate } from "chrono-node"; import { Box, render, Text, useApp } from "ink"; import Spinner from "ink-spinner"; import ms from "ms"; +import { clearInterval, setInterval, setTimeout } from "node:timers"; import dayjs from "npm:dayjs@1.11.13"; import duration from "npm:dayjs@1.11.13/plugin/duration.js"; import relativeTime from "npm:dayjs@1.11.13/plugin/relativeTime.js"; @@ -546,6 +546,9 @@ export async function placeBuyOrder(options: { end_at: roundEndDate(options.endsAt).toISOString(), price: options.totalPriceInCents, colocate_with: options.colocateWith, + flags: { + ioc: true, + }, } as const; const { data, error, response } = await api.POST("/v0/orders", { body,