The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename toCentsNumber file name
Steven Tey9a64f88d9ea8
diff --git a/packages/utils/src/functions/currency-formatter.ts b/packages/utils/src/functions/currency-formatter.tsindex 0a05da236a..ee301dd833 100644--- a/packages/utils/src/functions/currency-formatter.ts+++ b/packages/utils/src/functions/currency-formatter.ts@@ -1,5 +1,5 @@-import { toCentsNumber } from "./cents";import { isZeroDecimalCurrency } from "./currency-zero-decimal";+import { toCentsNumber } from "./to-cents-number";interface CurrencyFormatterOptions extends Intl.NumberFormatOptions {trailingZeroDisplay?: "auto" | "stripIfInteger";diff --git a/packages/utils/src/functions/index.ts b/packages/utils/src/functions/index.tsindex a81d92b261..b21d605084 100644--- a/packages/utils/src/functions/index.ts+++ b/packages/utils/src/functions/index.ts@@ -5,7 +5,6 @@ export * from "./chunk";export * from "./cn";export * from "./combine-words";export * from "./construct-metadata";-export * from "./cents";export * from "./currency-formatter";export * from "./currency-zero-decimal";export * from "./datetime";@@ -38,6 +37,7 @@ export * from "./smart-truncate";export * from "./stable-sort";export * from "./text-fetcher";export * from "./time-ago";+export * from "./to-cents-number";export * from "./trim";export * from "./truncate";export * from "./urls";diff --git a/packages/utils/src/functions/cents.ts b/packages/utils/src/functions/to-cents-number.tssimilarity index 100%rename from packages/utils/src/functions/cents.tsrename to packages/utils/src/functions/to-cents-number.ts