Skip to content

Commit

Permalink
release: v0.1.47 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPhamous authored Feb 20, 2025
1 parent a22283a commit b71eef1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
"peerDependencies": {
"typescript": "^5.6.2"
},
"version": "0.1.46"
"version": "0.1.47"
}
2 changes: 1 addition & 1 deletion src/checkVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 5 additions & 2 deletions src/lib/buy/index.tsx
Original file line number Diff line number Diff line change
@@ -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:[email protected]";
import duration from "npm:[email protected]/plugin/duration.js";
import relativeTime from "npm:[email protected]/plugin/relativeTime.js";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b71eef1

Please sign in to comment.