Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

bump version

Steven Tey14d714b8a065
diff --git a/packages/utils/package.json b/packages/utils/package.json
index ca792eeb40..f08c4f19b3 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/utils",
"description": "Utility functions and constants for Dub.co",
- "version": "0.0.29",
+ "version": "0.0.32",
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 3fcefb588c..06c1d45e38 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -1,6 +1,6 @@
import { nFormatter } from "../functions";
-const BUSINESS_PLAN = ({
+const BUSINESS_PLAN_MODIFIER = ({
name = "Business",
monthly = 49,
yearly = 39,
@@ -175,7 +175,7 @@ export const PLANS = [
},
],
},
- BUSINESS_PLAN({
+ BUSINESS_PLAN_MODIFIER({
name: "Business",
monthly: 49,
yearly: 39,
@@ -192,7 +192,7 @@ export const PLANS = [
"price_1OZgmnAlJJEpqkPVOj4kV64R", // new yearly (prod)
],
}),
- BUSINESS_PLAN({
+ BUSINESS_PLAN_MODIFIER({
name: "Business Plus",
monthly: 119,
yearly: 99,
@@ -206,7 +206,7 @@ export const PLANS = [
"price_1OnWu0AlJJEpqkPVkDWVriAB", // yearly (test)
],
}),
- BUSINESS_PLAN({
+ BUSINESS_PLAN_MODIFIER({
name: "Business Extra",
monthly: 249,
yearly: 199,
@@ -220,7 +220,7 @@ export const PLANS = [
"price_1OnWvCAlJJEpqkPVHhCCvIOq", // yearly (test)
],
}),
- BUSINESS_PLAN({
+ BUSINESS_PLAN_MODIFIER({
name: "Business Max",
monthly: 499,
yearly: 399,
@@ -274,6 +274,17 @@ export const PLANS = [
export const FREE_PLAN = PLANS.find((plan) => plan.name === "Free")!;
export const PRO_PLAN = PLANS.find((plan) => plan.name === "Pro")!;
+export const BUSINESS_PLAN = PLANS.find((plan) => plan.name === "Business")!;
+export const ENTERPRISE_PLAN = PLANS.find(
+ (plan) => plan.name === "Enterprise",
+)!;
+
+export const PUBLIC_PLANS = [
+ FREE_PLAN,
+ PRO_PLAN,
+ BUSINESS_PLAN,
+ ENTERPRISE_PLAN,
+];
export const SELF_SERVE_PAID_PLANS = PLANS.filter(
(p) => p.name !== "Free" && p.name !== "Enterprise",