The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
pushed changes
Steven Tey1866bb432e72
diff --git a/app/dub.sh/layout.tsx b/app/dub.sh/layout.tsxindex 38a5f67095..ff68273543 100644--- a/app/dub.sh/layout.tsx+++ b/app/dub.sh/layout.tsx@@ -1,11 +1,14 @@import Nav from "#/ui/home/nav";import Footer from "#/ui/home/footer";+const excludedSegments = new Set(["stats", "__DEFAULT__"]);+export default function MarketingLayout(props) {return (<div className="flex min-h-screen flex-col justify-between">{/* Only show stats modal if not on the /stats page */}- {props.children.props.childProp.segment !== "stats" && props.modal}+ {!excludedSegments.has(props.children.props.childProp.segment) &&+ props.modal}<Nav />{props.children}<Footer />diff --git a/app/ui/stats/bar-chart.tsx b/app/ui/stats/bar-chart.tsxindex 577fff6ae5..45f1ea89c3 100644--- a/app/ui/stats/bar-chart.tsx+++ b/app/ui/stats/bar-chart.tsx@@ -1,4 +1,4 @@-import { useMemo, useContext } from "react";+import { useMemo, useContext, useCallback } from "react";import { AxisBottom, AxisLeft } from "@visx/axis";import { localPoint } from "@visx/event";import { GridRows } from "@visx/grid";@@ -73,6 +73,42 @@ export default function BarChart() {});}, [data, interval]);+ const formatTimestamp = useCallback(+ (e: Date) => {+ let finalInterval = interval;+ // for all-time data, we want to show:+ // - the 1h interval if the link was created in the last hour+ // - the 24h interval if the link was created in the last 24 hours+ if (data && interval === "all") {+ if (new Date(data[0].start) > intervalData["1h"].startDate) {+ finalInterval = "1h";+ } else if (new Date(data[0].start) > intervalData["24h"].startDate) {+ finalInterval = "24h";+ }+ }+ switch (finalInterval) {+ case "1h":+ return new Date(e).toLocaleTimeString("en-us", {+ hour: "numeric",+ minute: "numeric",+ });+ case "24h":+ return new Date(e)+ .toLocaleDateString("en-us", {+ month: "short",+ day: "numeric",+ hour: "numeric",+ })+ .replace(",", " ");+ default:+ return new Date(e).toLocaleDateString("en-us", {+ month: "short",+ day: "numeric",+ });+ }+ },+ [data, interval],+ );const {tooltipOpen,tooltipLeft,@@ -127,7 +163,7 @@ export default function BarChart() {hideAxisLinehideTicksscale={xScale}- tickFormat={intervalData[interval].format}+ tickFormat={formatTimestamp}tickLabelProps={() => ({fill: "#666666",filter: data ? "none" : "blur(8px)",@@ -144,7 +180,7 @@ export default function BarChart() {stroke="#E1E1E1"width={CHART_WIDTH}/>- {data.map(({ start, clicks }) => {+ {data.map(({ start, clicks }, idx) => {const barWidth = xScale.bandwidth();const barHeight = CHART_HEIGHT - (yScale(clicks) ?? 0);const barX = xScale(start) ?? 0;@@ -178,9 +214,7 @@ export default function BarChart() {showTooltip({tooltipData: {start,- end:- new Date(start).getTime() +- intervalData[interval].interval,+ end: data[idx + 1]?.start ?? new Date(),clicks,link: "https://google.com",},@@ -203,15 +237,15 @@ export default function BarChart() {<span className="text-2xl font-semibold">{nFormatter(tooltipData.clicks)}</span>{" "}- clicks+ click{tooltipData.clicks === 1 ? "" : "s"}</h3><p className="text-xs text-gray-600">- {intervalData[interval].format(tooltipData.start)} -{" "}+ {formatTimestamp(tooltipData.start)} -{" "}{interval === "24h"? new Date(tooltipData.end).toLocaleTimeString("en-us", {hour: "numeric",})- : intervalData[interval].format(tooltipData.end)}+ : formatTimestamp(tooltipData.end)}</p></div></TooltipInPortal>diff --git a/app/ui/stats/toggle.tsx b/app/ui/stats/toggle.tsxindex 7e5e53fa5e..0541c404c2 100644--- a/app/ui/stats/toggle.tsx+++ b/app/ui/stats/toggle.tsx@@ -7,7 +7,7 @@ import {Tick,} from "@/components/shared/icons";import { ExpandingArrow } from "#/ui/icons";-import { INTERVALS } from "@/lib/constants";+import { INTERVALS } from "@/lib/stats";import { linkConstructor } from "@/lib/utils";import IconMenu from "@/components/shared/icon-menu";import Popover from "#/ui/popover";@@ -18,8 +18,13 @@ import Switch from "#/ui/switch";import Link from "next/link";import { StatsContext } from ".";import useScroll from "#/lib/hooks/use-scroll";+import Tooltip, { TooltipContent } from "../tooltip";+import useProject from "#/lib/hooks/use-project";+import { useParams } from "next/navigation";+import { Lock } from "lucide-react";export default function Toggle() {+ const { slug: projectSlug } = useParams() as { slug?: string };const { basePath, domain, interval, key, modal } = useContext(StatsContext);const [openDatePopover, setOpenDatePopover] = useState(false);@@ -29,6 +34,7 @@ export default function Toggle() {}, [interval]);const scrolled = useScroll(80);+ const { plan } = useProject();return (<div@@ -57,18 +63,42 @@ export default function Toggle() {<Popovercontent={<div className="w-full p-2 md:w-48">- {INTERVALS.map(({ display, slug }) => (- <Link- key={slug}- href={`${basePath}?interval=${slug}`}- className="flex w-full items-center justify-between space-x-2 rounded-md p-2 hover:bg-gray-100 active:bg-gray-200"- >- <p className="text-sm">{display}</p>- {selectedInterval.slug === slug && (- <Tick className="h-4 w-4" aria-hidden="true" />- )}- </Link>- ))}+ {INTERVALS.map(({ display, slug }) =>+ slug === "all" && (!plan || plan === "free") ? (+ <Tooltip+ key={slug}+ content={+ <TooltipContent+ title={+ projectSlug+ ? `${display} stats can only be viewed on a Pro plan or higher. Upgrade now to view all-time stats.`+ : `${display} stats can only be viewed on a project with a Pro plan or higher. Create a project or navigate to an existing project to upgrade.`+ }+ cta={+ projectSlug ? "Upgrade to Pro" : "Create Project"+ }+ href="https://app.dub.sh"+ />+ }+ >+ <div className="flex w-full cursor-not-allowed items-center justify-between space-x-2 rounded-md p-2 text-sm text-gray-400">+ <p>{display}</p>+ <Lock className="h-4 w-4" aria-hidden="true" />+ </div>+ </Tooltip>+ ) : (+ <Link+ key={slug}+ href={`${basePath}?interval=${slug}`}+ className="flex w-full items-center justify-between space-x-2 rounded-md p-2 hover:bg-gray-100 active:bg-gray-200"+ >+ <p className="text-sm">{display}</p>+ {selectedInterval.slug === slug && (+ <Tick className="h-4 w-4" aria-hidden="true" />+ )}+ </Link>+ ),+ )}</div>}openPopover={openDatePopover}diff --git a/components/stats/bar-chart.tsx b/components/stats/bar-chart.tsxindex 0c760ec141..aadf0cdc34 100644--- a/components/stats/bar-chart.tsx+++ b/components/stats/bar-chart.tsx@@ -1,5 +1,5 @@import { useRouter } from "next/router";-import { useContext, useMemo } from "react";+import { useCallback, useContext, useMemo } from "react";import { AxisBottom, AxisLeft } from "@visx/axis";import { localPoint } from "@visx/event";import { GridRows } from "@visx/grid";@@ -78,6 +78,43 @@ const BarChart = ({ screenWidth }: { screenWidth?: number }) => {});}, [data, interval]);+ const formatTimestamp = useCallback(+ (e: Date) => {+ let finalInterval = interval;+ // for all-time data, we want to show:+ // - the 1h interval if the link was created in the last hour+ // - the 24h interval if the link was created in the last 24 hours+ if (data && interval === "all") {+ if (new Date(data[0].start) > intervalData["1h"].startDate) {+ finalInterval = "1h";+ } else if (new Date(data[0].start) > intervalData["24h"].startDate) {+ finalInterval = "24h";+ }+ }+ switch (finalInterval) {+ case "1h":+ return new Date(e).toLocaleTimeString("en-us", {+ hour: "numeric",+ minute: "numeric",+ });+ case "24h":+ return new Date(e)+ .toLocaleDateString("en-us", {+ month: "short",+ day: "numeric",+ hour: "numeric",+ })+ .replace(",", " ");+ default:+ return new Date(e).toLocaleDateString("en-us", {+ month: "short",+ day: "numeric",+ });+ }+ },+ [data, interval],+ );+const {tooltipOpen,tooltipLeft,@@ -132,7 +169,7 @@ const BarChart = ({ screenWidth }: { screenWidth?: number }) => {hideAxisLinehideTicksscale={xScale}- tickFormat={intervalData[interval].format}+ tickFormat={formatTimestamp}tickLabelProps={() => ({fill: "#666666",filter: data ? "none" : "blur(8px)",@@ -149,7 +186,7 @@ const BarChart = ({ screenWidth }: { screenWidth?: number }) => {stroke="#E1E1E1"width={CHART_WIDTH}/>- {data.map(({ start, clicks }) => {+ {data.map(({ start, clicks }, idx) => {const barWidth = xScale.bandwidth();const barHeight = CHART_HEIGHT - (yScale(clicks) ?? 0);const barX = xScale(start) ?? 0;@@ -183,9 +220,7 @@ const BarChart = ({ screenWidth }: { screenWidth?: number }) => {showTooltip({tooltipData: {start,- end:- new Date(start).getTime() +- intervalData[interval].interval,+ end: data[idx + 1]?.start ?? new Date(),clicks,link: "https://google.com",},@@ -208,15 +243,15 @@ const BarChart = ({ screenWidth }: { screenWidth?: number }) => {<span className="text-2xl font-semibold">{nFormatter(tooltipData.clicks)}</span>{" "}- clicks+ click{tooltipData.clicks === 1 ? "" : "s"}</h3><p className="text-xs text-gray-600">- {intervalData[interval].format(tooltipData.start)} -{" "}+ {formatTimestamp(tooltipData.start)} -{" "}{interval === "24h"? new Date(tooltipData.end).toLocaleTimeString("en-us", {hour: "numeric",})- : intervalData[interval].format(tooltipData.end)}+ : formatTimestamp(tooltipData.end)}</p></div></TooltipInPortal>diff --git a/components/stats/toggle.tsx b/components/stats/toggle.tsxindex 5fda79388f..b5fc18bbb2 100644--- a/components/stats/toggle.tsx+++ b/components/stats/toggle.tsx@@ -8,7 +8,7 @@ import {Tick,} from "@/components/shared/icons";import { ExpandingArrow } from "#/ui/icons";-import { INTERVALS } from "@/lib/constants";+import { INTERVALS } from "@/lib/stats";import useScroll from "#/lib/hooks/use-scroll";import { linkConstructor } from "@/lib/utils";import IconMenu from "@/components/shared/icon-menu";@@ -66,12 +66,13 @@ export default function Toggle({ atModalTop }: { atModalTop?: boolean }) {(slug === "all" || slug === "90d") &&(!plan || plan === "free") ? (<Tooltip+ key={slug}content={<TooltipContenttitle={projectSlug? `${display} stats can only be viewed on a Pro plan or higher. Upgrade now to view all-time stats.`- : `${display} stats can only be viewed on a project with a Pro plan. Create a project or navigate to an existing project to upgrade.`+ : `${display} stats can only be viewed on a project with a Pro plan or higher. Create a project or navigate to an existing project to upgrade.`}cta={projectSlug ? "Upgrade to Pro" : "Create Project"diff --git a/lib/auth.ts b/lib/auth.tsindex 259b84ea4b..6c8c1aa511 100644--- a/lib/auth.ts+++ b/lib/auth.ts@@ -224,6 +224,9 @@ const withLinksAuth =return res.status(400).end("Missing or misconfigured project slug.");}+ let project: ProjectProps | undefined;+ let link: LinkProps | undefined;+// if there is no slug, it's the default dub.sh linkif (!slug) {// prevent domain from being query injected by@@ -235,35 +238,9 @@ const withLinksAuth =return res.status(403).end("Unauthorized: Invalid domain.");}- let link: LinkProps | undefined;- // if key is defined, check if the current user is the owner of the link- const { key } = req.query;- if (key) {- if (typeof key !== "string") {- return res.status(400).end("Missing or misconfigured link key.");- } else {- link =- (await prisma.link.findUnique({- where: {- domain_key: {- domain: "dub.sh",- key,- },- },- })) || undefined;- if (!link) {- return res.status(404).end("Link not found.");- } else if (link.userId !== session.user.id) {- return res.status(403).end("Unauthorized: Not link owner.");- }- }- }-- return handler(req, res, session, undefined, "dub.sh", link);-// if project slug is defined, that means it's a custom project on Dub} else {- const project = (await prisma.project.findUnique({+ project = (await prisma.project.findUnique({where: {slug,},@@ -327,9 +304,34 @@ const withLinksAuth =}}}+ }- return handler(req, res, session, project, domain);+ // if key is defined, check if the current user is the owner of the link+ const { key } = req.query;+ if (key) {+ if (typeof key !== "string") {+ return res.status(400).end("Missing or misconfigured link key.");+ } else {+ link =+ (await prisma.link.findUnique({+ where: {+ domain_key: {+ domain: domain || "dub.sh",+ key,+ },+ },+ })) || undefined;+ if (!link) {+ return res.status(404).end("Link not found.");++ // for dub.sh links, check if the user is the owner of the link+ } else if (!slug && link.userId !== session.user.id) {+ return res.status(403).end("Unauthorized: Not link owner.");+ }+ }}++ return handler(req, res, session, project, domain, link);};export { withLinksAuth };diff --git a/lib/constants/index.ts b/lib/constants/index.tsindex cfe40c61b9..8dbaa12c54 100644--- a/lib/constants/index.ts+++ b/lib/constants/index.ts@@ -7,33 +7,6 @@ export const LOCALHOST_GEO_DATA = {};export const LOCALHOST_IP = "63.141.56.109";-export const INTERVALS = [- {- display: "Last hour",- slug: "1h",- },- {- display: "Last 24 hours",- slug: "24h",- },- {- display: "Last 7 days",- slug: "7d",- },- {- display: "Last 30 days",- slug: "30d",- },- {- display: "Last 3 months",- slug: "90d",- },- {- display: "All Time",- slug: "all",- },-];-export const FRAMER_MOTION_LIST_ITEM_VARIANTS = {hidden: { scale: 0.8, opacity: 0 },show: { scale: 1, opacity: 1, transition: { type: "spring" } },diff --git a/lib/stats.ts b/lib/stats.tsindex ac5abecb0c..74cdcfe0b9 100644--- a/lib/stats.ts+++ b/lib/stats.ts@@ -2,70 +2,58 @@ import { conn } from "./planetscale";export type IntervalProps = "1h" | "24h" | "7d" | "30d" | "90d" | "all";+export const INTERVALS = [+ {+ display: "Last hour",+ slug: "1h",+ },+ {+ display: "Last 24 hours",+ slug: "24h",+ },+ {+ display: "Last 7 days",+ slug: "7d",+ },+ {+ display: "Last 30 days",+ slug: "30d",+ },+ {+ display: "Last 3 months",+ slug: "90d",+ },+ {+ display: "All Time",+ slug: "all",+ },+];+export const intervalData = {"1h": {- milliseconds: 3600000,- interval: 60000,+ startDate: new Date(Date.now() - 3600000),granularity: "minute",- format: (e: number) =>- new Date(e).toLocaleTimeString("en-us", {- hour: "numeric",- minute: "numeric",- }),},"24h": {- milliseconds: 86400000,- interval: 3600000,+ startDate: new Date(Date.now() - 86400000),granularity: "hour",- format: (e: number) =>- new Date(e)- .toLocaleDateString("en-us", {- month: "short",- day: "numeric",- hour: "numeric",- })- .replace(",", " "),},"7d": {- milliseconds: 604800000,- interval: 86400000,+ startDate: new Date(Date.now() - 604800000),granularity: "day",- format: (e: number) =>- new Date(e).toLocaleDateString("en-us", {- month: "short",- day: "numeric",- }),},"30d": {- milliseconds: 2592000000,- interval: 86400000,+ startDate: new Date(Date.now() - 2592000000),granularity: "day",- format: (e: number) =>- new Date(e).toLocaleDateString("en-us", {- month: "short",- day: "numeric",- }),},"90d": {- milliseconds: 7776000000,- interval: 86400000,+ startDate: new Date(Date.now() - 7776000000),granularity: "day",- format: (e: number) =>- new Date(e).toLocaleDateString("en-us", {- month: "short",- day: "numeric",- }),},all: {- // difference between now and Sep 22, 2022- milliseconds: Date.now() - new Date("2022-09-22").getTime(),- interval: 2629746000,- granularity: "month",- format: (e: number) =>- new Date(e).toLocaleDateString("en-us", {- month: "short",- year: "numeric",- }),+ // Dub.sh founding date+ startDate: new Date("2022-09-22"),+ granularity: "day",},};@@ -123,11 +111,13 @@ export const getStats = async ({key,endpoint,interval,+ createdAt,}: {domain: string;key: string;endpoint: string;interval?: string | null;+ createdAt: Date;}) => {if (!process.env.TINYBIRD_API_KEY) {return null;@@ -162,18 +152,24 @@ export const getStats = async ({url.searchParams.append("key", key);if (interval) {+ // use createdAt if interval is all-time and createdAt is before 30d+ const finalStartDate =+ interval === "all" ? createdAt : intervalData[interval].startDate;+url.searchParams.append("start",- new Date(Date.now() - intervalData[interval].milliseconds)- .toISOString()- .replace("T", " ")- .replace("Z", ""),+ finalStartDate.toISOString().replace("T", " ").replace("Z", ""),);url.searchParams.append("end",new Date(Date.now()).toISOString().replace("T", " ").replace("Z", ""),);- url.searchParams.append("granularity", intervalData[interval].granularity);++ const finalGranularity =+ interval === "all" && createdAt > intervalData["24h"].startDate+ ? "hour"+ : intervalData[interval].granularity;+ url.searchParams.append("granularity", finalGranularity);}return await fetch(url.toString(), {diff --git a/package.json b/package.jsonindex cf9e7a27b1..12e2f1a1a4 100644--- a/package.json+++ b/package.json@@ -56,7 +56,7 @@"lucide-react": "^0.192.0","mailing-core": "^0.9.1","ms": "^2.1.3",- "next": "^13.4.4-canary.4",+ "next": "^13.4.4-canary.9","next-auth": "^4.22.1","next-contentlayer": "^0.3.2","node-html-parser": "^6.1.4",diff --git a/pages/api/links/[key]/stats/[endpoint].ts b/pages/api/links/[key]/stats/[endpoint].tsindex 25dc5a323f..1e18f6fafe 100644--- a/pages/api/links/[key]/stats/[endpoint].ts+++ b/pages/api/links/[key]/stats/[endpoint].ts@@ -2,7 +2,7 @@ import { withLinksAuth } from "@/lib/auth";import { getStats, IntervalProps } from "@/lib/stats";export default withLinksAuth(- async (req, res, _session, project, domain) => {+ async (req, res, _session, project, domain, link) => {// GET /api/links/[key]/stats/[endpoint] - get link stats from Tinybirdif (req.method === "GET") {const { key, endpoint, interval } = req.query as {@@ -23,6 +23,7 @@ export default withLinksAuth(key,endpoint,interval,+ createdAt: link?.createdAt || new Date("2022-09-22"),});if (endpoint === "timeseries") console.log(response);diff --git a/yarn.lock b/yarn.lockindex 8b8c4f9015..5dc636a844 100644--- a/yarn.lock+++ b/yarn.lock@@ -699,10 +699,10 @@resolved "https://registry.yarnpkg.com/@next/env/-/env-13.1.6.tgz#c4925609f16142ded1a5cb833359ab17359b7a93"integrity sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.4-canary.4.tgz#e3515db6c0013c622fb381686efaa7c1fae1359f"- integrity sha512-awPflttJPZ7SzbnlE+LBECmhDiFZfR6QB7j4U2llZEELS3tgKkJaRUoifkE+PDN67C6g35GUN0EYUBgu2wIdUg==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.4-canary.9.tgz#32f34ad80b73071c3a68fa39ffe1005fe495e8ed"+ integrity sha512-L3GdUBaumMsy8ZKYLBT4UrpQAsc7BkudY1hlfenzJvEo4eW4J9uXG2PencA9UC8zBx4OS7FDIeIh8kc73khVhQ=="@next/[email protected]":version "13.1.6"@@ -719,20 +719,20 @@resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.1.6.tgz#ec1b90fd9bf809d8b81004c5182e254dced4ad96"integrity sha512-KKRQH4DDE4kONXCvFMNBZGDb499Hs+xcFAwvj+rfSUssIDrZOlyfJNy55rH5t2Qxed1e4K80KEJgsxKQN1/fyw==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.4-canary.4.tgz#23de5a9367c9140ddea0412d72295fac74041b76"- integrity sha512-VReD6MptefpNR2YFbto9Jm8uBJavomr2HnQGLlEZJONyHwePDUQjm6pGkkr9sxk3G1SeeFMS1duYgrek+QLQjA==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.4-canary.9.tgz#36f7983b44cb59a7e07dbb651fa04d97a835384c"+ integrity sha512-hmfhDh1Xfgu0Qz3jmX/O38YRxuLXN6qZnyKN4sdtnKqatse4zIw1skZLePjo9EMI7s58+zCB4Pbl/pRg0xmnQg=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.1.6.tgz#e869ac75d16995eee733a7d1550322d9051c1eb4"integrity sha512-/uOky5PaZDoaU99ohjtNcDTJ6ks/gZ5ykTQDvNZDjIoCxFe3+t06bxsTPY6tAO6uEAw5f6vVFX5H5KLwhrkZCA==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.4-canary.4.tgz#c7dc4bab04b05674c89a36c0aec531644678e051"- integrity sha512-06P7ISzj1MGxwvi4TMlJck/Eb0K14zExFSiE+bKRU901+yV6NHM92e6jR93nW2Dt9BF3l5oW4Bt2Y4c5en4Rqg==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.4-canary.9.tgz#360444b42227232e87033c60e516aca43c55b679"+ integrity sha512-ROeYt/dvgiJhzJ7VqJZt6rT2HJJnNb1r4z262LVYPZ/lt5VmWt4vE9+Ci2DLVdUQ9fjC8VkMWIvoWl+Kzyub8w=="@next/[email protected]":version "13.1.6"@@ -749,70 +749,70 @@resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.1.6.tgz#87a71db21cded3f7c63d1d19079845c59813c53d"integrity sha512-yCH+yDr7/4FDuWv6+GiYrPI9kcTAO3y48UmaIbrKy8ZJpi7RehJe3vIBRUmLrLaNDH3rY1rwoHi471NvR5J5NQ==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.4-canary.4.tgz#1eba1e80ba9fd3e64a33cf1cdec40abe54b02314"- integrity sha512-WWAuRoXZkhrzH2MmB2i1/diVRxqW+jSpdfPA7fkLENmQkc5p0mgGq1jUJyzbJVWC+fbCCa0z+efqPbqbFshpEg==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.4-canary.9.tgz#b75832e23c007f361201732a1ba87e0835fd8431"+ integrity sha512-uSkgv0nV4yVjT9WXHCkN2Vewy2jmRMVot32w+THDyAu78OHw04q5fzhwCRK+uWQpFBe5NKAOFmOosvRi0ZaTBA=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.1.6.tgz#c5aac8619331b9fd030603bbe2b36052011e11de"integrity sha512-ECagB8LGX25P9Mrmlc7Q/TQBb9rGScxHbv/kLqqIWs2fIXy6Y/EiBBiM72NTwuXUFCNrWR4sjUPSooVBJJ3ESQ==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.4-canary.4.tgz#206342427481d488f7760c1b1462cfeb98935ef8"- integrity sha512-k+ygS5l3VhsBd4MTlxghm8DyNfdfEdC/jKbhA8FnPQrP20NT7uDgBn0zcRpYyHnklZsspGwhlfyWt4K69G+upA==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.4-canary.9.tgz#03763ec122c3b5fcd869ba7808bdbc0e8fe6eb18"+ integrity sha512-Y9jNGW1EmyfOi3fBWb+70ViRCfUq05VoBitcnqOSHPUxkGpbBUPumHVo77D5hOnKwkosQbLdTzzkHhIFUvCreA=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.1.6.tgz#9513d36d540bbfea575576746736054c31aacdea"integrity sha512-GT5w2mruk90V/I5g6ScuueE7fqj/d8Bui2qxdw6lFxmuTgMeol5rnzAv4uAoVQgClOUO/MULilzlODg9Ib3Y4Q==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.4-canary.4.tgz#5065e26404290c15bfcf2ce13774ca394e24b568"- integrity sha512-naPxuq/7342qZsIh7+IHpB+njuvo++yTTbar1pebEY9vCcFiK0MkICIDgULY1X0eqN5lbMEhCfBWgoIigt8A4Q==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.4-canary.9.tgz#87fd4c58d5651d7f6a30891d54dab37bc06efea9"+ integrity sha512-IZYm8PHTqK5j80R39JQNL/12ftsDyIcm3aVh4QoF8GnqNPt2hkkMGQo68peWoBMg5WoI5Gtdvhr5H0lo8EPk4w=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.1.6.tgz#d61fc6884899f5957251f4ce3f522e34a2c479b7"integrity sha512-keFD6KvwOPzmat4TCnlnuxJCQepPN+8j3Nw876FtULxo8005Y9Ghcl7ACcR8GoiKoddAq8gxNBrpjoxjQRHeAQ==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.4-canary.4.tgz#6e312fb36d2c5ad3643ca361688b03f637f69d3b"- integrity sha512-bVXKIXUqBR6acZ8dg0ZSnBkjhkwU4Ddxi4Zd9HPJBp7qgzOIhDMvu/pB/BiTlyZo/v7XuoR8Dx3thLx9u+byXg==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.4-canary.9.tgz#15f50c1f9d627fb29f4d9a48ded3209825e2bb10"+ integrity sha512-VI1YzDOcTKYODm9RS58Q9pmpGlJ1GZuwnyX3IaV6F3jDgGKNFxK7KHeC1aNZqRaTxMsCEsKM/p25vrEgi8mJ+A=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.1.6.tgz#fac2077a8ae9768e31444c9ae90807e64117cda7"integrity sha512-OwertslIiGQluFvHyRDzBCIB07qJjqabAmINlXUYt7/sY7Q7QPE8xVi5beBxX/rxTGPIbtyIe3faBE6Z2KywhQ==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.4-canary.4.tgz#6b60f413c68aaea3ddbd29cf5dddc03cef76d88f"- integrity sha512-lx0TStzwDspJF8g/YrcTxHuKw9kCWJq6p37q+9f+D/O/HrPRZD+blHs/vxkM5ZgjvUo8N+0Tp4kcn7p59F4pSA==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.4-canary.9.tgz#3b81bcd0094e0eef4ff06ff4c953fe90f654a131"+ integrity sha512-IEXue7wE19JXeAzyDpiXs3rGFTsZA/ydNk7FzrtS4Xd+SAAfg6CEq6Hdx1Y2uI3rXVfvqlmfWObGeOGcDstZ9Q=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.1.6.tgz#498bc11c91b4c482a625bf4b978f98ae91111e46"integrity sha512-g8zowiuP8FxUR9zslPmlju7qYbs2XBtTLVSxVikPtUDQedhcls39uKYLvOOd1JZg0ehyhopobRoH1q+MHlIN/w==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.4-canary.4.tgz#d671b11b4b277dfa9c5253480f708ff7441ba124"- integrity sha512-Gf5QSCqPP0c7RZaAqpOay230O2QZuB3W0LWf7WHMVyVZdNCKe6UKRcaXNdZmTl5yNI3DEJ2qYNP9zGSoKBkIPg==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.4-canary.9.tgz#ac0f65026aa96d4566e94cfc568769137d7cb653"+ integrity sha512-8fKGDreLI0mEae8Xf1Ea7OAzaVom6v524P7kbGUfyjov7ZN3KbUfscYGG1l7GkuV27XBprEgCP9J8oiTY0fxTg=="@next/[email protected]":version "13.1.6"resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.6.tgz#17ed919c723426b7d0ce1cd73d40ce3dcd342089"integrity sha512-Ls2OL9hi3YlJKGNdKv8k3X/lLgc3VmLG3a/DeTkAd+lAituJp8ZHmRmm9f9SL84fT3CotlzcgbdaCDfFwFA6bA==-"@next/[email protected]":- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.4-canary.4.tgz#b4518f76cb75cc33f0fef7aee05c0b04d4556fb6"- integrity sha512-p6pZKe3I1VGbH+RzaxUW4zOYb3HbHD7iUree7ZBBJxpUDn5OQIdUjXKjjHgHxfFN/pOkhGhEvBmW49tCoq3GzQ==+"@next/[email protected]":+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.4-canary.9.tgz#152b6e7c91875b01cb2f5abd9551979e03cecd6d"+ integrity sha512-Q+1KMFcekLpfba5GMwBgo82WiA7zf07cEc87aJkxlKJ12ZaxAIRSMVLNLVjvHJSRCLf7a2HjMFYlEgn5+Hs0tg=="@nodelib/[email protected]":version "2.1.5"@@ -6862,12 +6862,12 @@ [email protected]:"@next/swc-win32-ia32-msvc" "13.1.6""@next/swc-win32-x64-msvc" "13.1.6"-next@^13.4.4-canary.4:- version "13.4.4-canary.4"- resolved "https://registry.yarnpkg.com/next/-/next-13.4.4-canary.4.tgz#6d6a7c46bca8a554735794305888f438d8effd8c"- integrity sha512-YixaBwR33UsfGZIekE/MxcZMfIQRrZ1zub6vnB3cVijoxgUk03KPCi0yblpOaEJW1jefhOnf9iCCa8Xdnkvjbg==+next@^13.4.4-canary.9:+ version "13.4.4-canary.9"+ resolved "https://registry.yarnpkg.com/next/-/next-13.4.4-canary.9.tgz#beea1ec316475a4055553dbc7174bfe24ed80f2f"+ integrity sha512-ggGbZ9fQ1SPuuS58+08+FquFCuthHsexOP9YmD+MCH4+3XU6DdIOhlcIh+VAj493/c1nwpW2/qo4XCcDfRs2VQ==dependencies:- "@next/env" "13.4.4-canary.4"+ "@next/env" "13.4.4-canary.9""@swc/helpers" "0.5.1"busboy "1.6.0"caniuse-lite "^1.0.30001406"@@ -6875,15 +6875,15 @@ next@^13.4.4-canary.4:styled-jsx "5.1.1"zod "3.21.4"optionalDependencies:- "@next/swc-darwin-arm64" "13.4.4-canary.4"- "@next/swc-darwin-x64" "13.4.4-canary.4"- "@next/swc-linux-arm64-gnu" "13.4.4-canary.4"- "@next/swc-linux-arm64-musl" "13.4.4-canary.4"- "@next/swc-linux-x64-gnu" "13.4.4-canary.4"- "@next/swc-linux-x64-musl" "13.4.4-canary.4"- "@next/swc-win32-arm64-msvc" "13.4.4-canary.4"- "@next/swc-win32-ia32-msvc" "13.4.4-canary.4"- "@next/swc-win32-x64-msvc" "13.4.4-canary.4"+ "@next/swc-darwin-arm64" "13.4.4-canary.9"+ "@next/swc-darwin-x64" "13.4.4-canary.9"+ "@next/swc-linux-arm64-gnu" "13.4.4-canary.9"+ "@next/swc-linux-arm64-musl" "13.4.4-canary.9"+ "@next/swc-linux-x64-gnu" "13.4.4-canary.9"+ "@next/swc-linux-x64-musl" "13.4.4-canary.9"+ "@next/swc-win32-arm64-msvc" "13.4.4-canary.9"+ "@next/swc-win32-ia32-msvc" "13.4.4-canary.9"+ "@next/swc-win32-x64-msvc" "13.4.4-canary.9"no-case@^2.2.0:version "2.3.2"