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.

add runKeyChecks, improved UI

Steven Tey57b5b24d75de
diff --git a/apps/web/app/api/analytics/route.ts b/apps/web/app/api/analytics/route.ts
index 391c5acdd2..a4815515c6 100644
--- a/apps/web/app/api/analytics/route.ts
+++ b/apps/web/app/api/analytics/route.ts
@@ -1,7 +1,8 @@
import { withAuth } from "@/lib/auth";
import { getDomainOrLink } from "@/lib/planetscale";
import prisma from "@/lib/prisma";
-import z, { domainKeySchema } from "@/lib/zod";
+import z from "@/lib/zod";
+import { domainKeySchema } from "@/lib/zod/schemas";
import { NextResponse } from "next/server";
const updatePublicStatsSchema = z.object({
diff --git a/apps/web/app/api/links/info/route.ts b/apps/web/app/api/links/info/route.ts
index 778d560d86..9ad7955986 100644
--- a/apps/web/app/api/links/info/route.ts
+++ b/apps/web/app/api/links/info/route.ts
@@ -2,12 +2,12 @@ import { DubApiError } from "@/lib/api/errors";
import { transformLink } from "@/lib/api/links";
import { withAuth } from "@/lib/auth";
import prisma from "@/lib/prisma";
-import { getLinkInfoQuerySchema } from "@/lib/zod/schemas/links";
+import { domainKeySchema } from "@/lib/zod/schemas";
import { NextResponse } from "next/server";
// GET /api/links/info – get the info for a link
export const GET = withAuth(async ({ headers, searchParams }) => {
- const { domain, key } = getLinkInfoQuerySchema.parse(searchParams);
+ const { domain, key } = domainKeySchema.parse(searchParams);
const link = await prisma.link.findUnique({
where: {
diff --git a/apps/web/app/api/links/random/route.ts b/apps/web/app/api/links/random/route.ts
index 362ffbf44d..15e24b76ee 100644
--- a/apps/web/app/api/links/random/route.ts
+++ b/apps/web/app/api/links/random/route.ts
@@ -2,7 +2,7 @@ import { DubApiError, handleAndReturnErrorResponse } from "@/lib/api/errors";
import { getIdentityHash } from "@/lib/edge";
import { getRandomKey } from "@/lib/planetscale";
import { ratelimit } from "@/lib/upstash";
-import { domainKeySchema } from "@/lib/zod";
+import { domainKeySchema } from "@/lib/zod/schemas";
import { getSearchParams } from "@dub/utils";
import { getToken } from "next-auth/jwt";
import { NextRequest, NextResponse } from "next/server";
diff --git a/apps/web/app/api/links/verify/route.ts b/apps/web/app/api/links/verify/route.ts
new file mode 100644
index 0000000000..2787ed3fdc
--- /dev/null
+++ b/apps/web/app/api/links/verify/route.ts
@@ -0,0 +1,58 @@
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/api/errors";
+import { keyChecks, processKey } from "@/lib/api/links";
+import { withAuth } from "@/lib/auth";
+import { getWorkspaceViaEdge } from "@/lib/planetscale";
+import { workspaceIdSchema } from "@/lib/zod";
+import { domainKeySchema } from "@/lib/zod/schemas";
+import { getSearchParams } from "@dub/utils";
+import { NextRequest, NextResponse } from "next/server";
+
+export const runtime = "edge";
+
+// GET /api/links/verify – run keyChecks on the key
+export const GET = async (req: NextRequest) => {
+ try {
+ const searchParams = getSearchParams(req.url);
+
+ let { domain, key, workspaceId } = domainKeySchema
+ .and(workspaceIdSchema)
+ .parse(searchParams);
+
+ console.log({ domain, key, workspaceId });
+
+ const processedKey = processKey(key);
+ if (processedKey === null) {
+ throw new DubApiError({
+ code: "unprocessable_entity",
+ message: "Invalid key.",
+ });
+ }
+ key = processedKey;
+
+ const workspace = await getWorkspaceViaEdge(workspaceId);
+
+ if (!workspace) {
+ throw new DubApiError({
+ code: "not_found",
+ message: "Workspace not found.",
+ });
+ }
+
+ const response = await keyChecks({
+ domain,
+ key,
+ workspace,
+ });
+
+ if (response.error) {
+ throw new DubApiError({
+ code: "unprocessable_entity",
+ message: response.error,
+ });
+ }
+
+ return NextResponse.json(response);
+ } catch (error) {
+ return handleAndReturnErrorResponse(error);
+ }
+};
diff --git a/apps/web/lib/openapi/links/get-link-info.ts b/apps/web/lib/openapi/links/get-link-info.ts
index 1d6196de9f..cf45e66672 100644
--- a/apps/web/lib/openapi/links/get-link-info.ts
+++ b/apps/web/lib/openapi/links/get-link-info.ts
@@ -2,7 +2,7 @@ import { ZodOpenApiOperationObject } from "zod-openapi";
import { openApiErrorResponses } from "@/lib/openapi/responses";
import z from "@/lib/zod";
-import { getLinkInfoQuerySchema, LinkSchema } from "@/lib/zod/schemas/links";
+import { domainKeySchema, LinkSchema } from "@/lib/zod/schemas";
export const getLinkInfo: ZodOpenApiOperationObject = {
operationId: "getLinkInfo",
@@ -16,7 +16,7 @@ export const getLinkInfo: ZodOpenApiOperationObject = {
.string()
.describe("The ID of the workspace the link belongs to."),
})
- .merge(getLinkInfoQuerySchema),
+ .merge(domainKeySchema),
},
responses: {
"200": {
diff --git a/apps/web/lib/planetscale.ts b/apps/web/lib/planetscale.ts
index d73c48f267..ee911b2b63 100644
--- a/apps/web/lib/planetscale.ts
+++ b/apps/web/lib/planetscale.ts
@@ -15,8 +15,9 @@ export const getWorkspaceViaEdge = async (workspaceId: string) => {
if (!DATABASE_URL) return null;
const { rows } =
- (await conn.execute("SELECT * FROM Project WHERE id = ?", [workspaceId])) ||
- {};
+ (await conn.execute("SELECT * FROM Project WHERE id = ?", [
+ workspaceId.replace("ws_", ""),
+ ])) || {};
return rows && Array.isArray(rows) && rows.length > 0
? (rows[0] as WorkspaceProps)
diff --git a/apps/web/lib/zod/index.ts b/apps/web/lib/zod/index.ts
index 66105b0c43..f56a446fa6 100644
--- a/apps/web/lib/zod/index.ts
+++ b/apps/web/lib/zod/index.ts
@@ -1,4 +1,3 @@
-import { validDomainRegex } from "@dub/utils";
import * as z from "zod";
import { extendZodWithOpenApi } from "zod-openapi";
@@ -6,13 +5,6 @@ extendZodWithOpenApi(z);
export default z;
-export const domainKeySchema = z.object({
- domain: z.string().refine((v) => validDomainRegex.test(v), {
- message: "Invalid domain format",
- }),
- key: z.string().min(1),
-});
-
export const workspaceIdSchema = z.object({
workspaceId: z
.string()
diff --git a/apps/web/lib/zod/schemas/index.ts b/apps/web/lib/zod/schemas/index.ts
index c203f53c71..55ca2f8c10 100644
--- a/apps/web/lib/zod/schemas/index.ts
+++ b/apps/web/lib/zod/schemas/index.ts
@@ -1,3 +1,9 @@
+export * from "./analytics";
+export * from "./links";
+export * from "./qr";
+export * from "./tags";
+export * from "./workspaces";
+
import { plans, roles } from "@/lib/types";
import z from "@/lib/zod";
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 250ed3440f..779dc0e68a 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -85,13 +85,16 @@ export const getLinksCountQuerySchema = LinksQuerySchema.merge(
}),
);
-export const getLinkInfoQuerySchema = z.object({
+export const domainKeySchema = z.object({
domain: z
.string()
.min(1, "Domain is required.")
.describe(
"The domain of the link to retrieve. E.g. for `d.to/github`, the domain is `d.to`.",
- ),
+ )
+ .refine((v) => validDomainRegex.test(v), {
+ message: "Invalid domain format",
+ }),
key: z
.string()
.min(1, "Key is required.")
diff --git a/apps/web/package.json b/apps/web/package.json
index 58f6f4bb81..0f4f5c610d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -60,7 +60,7 @@
"jszip": "^3.10.1",
"lucide-react": "^0.367.0",
"nanoid": "^5.0.1",
- "next": "14.2.0-canary.47",
+ "next": "14.2.0-canary.64",
"next-auth": "^4.24.4",
"node-html-parser": "^6.1.4",
"nodemailer": "^6.9.3",
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index a50316fc9f..b61335f231 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -6,11 +6,11 @@ import { LinkWithTagsProps } from "@/lib/types";
import LinkLogo from "@/ui/links/link-logo";
import { AlertCircleFill, Lock, Random, X } from "@/ui/shared/icons";
import {
- Badge,
Button,
LinkedIn,
LoadingCircle,
Modal,
+ Tooltip,
TooltipContent,
Twitter,
useMediaQuery,
@@ -26,7 +26,6 @@ import {
isValidUrl,
linkConstructor,
nanoid,
- punyEncode,
punycode,
truncate,
} from "@dub/utils";
@@ -61,7 +60,6 @@ import Preview from "./preview";
import TagsSection from "./tags-section";
import UTMSection from "./utm-section";
import { TriangleAlert } from "lucide-react";
-import slugify from "@sindresorhus/slugify";
function AddEditLinkModal({
showAddEditLinkModal,
@@ -120,6 +118,19 @@ function AddEditLinkModal({
setGeneratingKey(false);
}, [domain, slug]);
+ const runKeyChecks = async (e: React.FocusEvent<HTMLInputElement>) => {
+ if (!e.target.value) return;
+ const res = await fetch(
+ `/api/links/verify?domain=${domain}&key=${e.target.value}&workspaceId=${workspaceId}`,
+ );
+ const { error } = await res.json();
+ if (error) {
+ setKeyError(error.message);
+ } else {
+ setKeyError(null);
+ }
+ };
+
useEffect(() => {
// when someone pastes a URL
if (showAddEditLinkModal && url.length > 0) {
@@ -276,12 +287,19 @@ function AddEditLinkModal({
const searchParams = useSearchParams();
const { queryParams } = useRouterStuff();
- const shortLinkLength = useMemo(() => {
+ const shortLink = useMemo(() => {
+ return linkConstructor({
+ key: data.key,
+ domain: data.domain,
+ });
+ }, [data.key, data.domain]);
+
+ const shortLinkPretty = useMemo(() => {
return linkConstructor({
key: data.key,
domain: data.domain,
pretty: true,
- }).length;
+ });
}, [data.key, data.domain]);
const randomLinkedInNonce = useMemo(() => nanoid(8), []);
@@ -326,13 +344,7 @@ function AddEditLinkModal({
<div className="sticky top-0 z-20 flex h-14 items-center justify-center gap-4 space-y-3 border-b border-gray-200 bg-white px-4 transition-all sm:h-24 md:px-16">
<LinkLogo apexDomain={getApexDomain(url)} />
<h3 className="!mt-0 max-w-sm truncate text-lg font-medium">
- {props
- ? `Edit ${linkConstructor({
- domain: props.domain,
- key: props.key,
- pretty: true,
- })}`
- : "Create a new link"}
+ {props ? `Edit ${shortLinkPretty}` : "Create a new link"}
</h3>
</div>
@@ -366,16 +378,11 @@ function AddEditLinkModal({
router.push("/links");
setShowAddEditLinkModal(false);
}
+ const data = await res.json();
// copy shortlink to clipboard when adding a new link
if (!props) {
try {
- await navigator.clipboard.writeText(
- linkConstructor({
- // remove leading and trailing slashes
- key: data.key.replace(/^\/+|\/+$/g, ""),
- domain,
- }),
- );
+ await navigator.clipboard.writeText(data.shortLink);
toast.success("Copied shortlink to clipboard!");
} catch (e) {
console.error(
@@ -523,6 +530,7 @@ function AddEditLinkModal({
"Only letters, numbers, '-', '/', and emojis are allowed.",
);
}}
+ onBlur={runKeyChecks}
disabled={props && lockKey}
autoComplete="off"
className={cn(
@@ -530,6 +538,8 @@ function AddEditLinkModal({
{
"border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500":
keyError,
+ "border-amber-300 pr-10 text-amber-900 placeholder-amber-300 focus:border-amber-500 focus:ring-amber-500":
+ shortLink.length > 25,
"cursor-not-allowed border border-gray-300 bg-gray-100 text-gray-500":
props && lockKey,
},
@@ -547,13 +557,51 @@ function AddEditLinkModal({
aria-invalid="true"
aria-describedby="key-error"
/>
- {keyError && (
- <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
- <AlertCircleFill
- className="h-5 w-5 text-red-500"
- aria-hidden="true"
- />
- </div>
+ {(keyError || shortLink.length > 25) && (
+ <Tooltip
+ content={
+ keyError || (
+ <div className="flex max-w-xs items-start space-x-2 bg-white p-4">
+ <TriangleAlert className="mt-0.5 h-4 w-4 flex-none text-amber-500" />
+ <div>
+ <p className="text-sm text-gray-700">
+ Short links longer than 25 characters will show
+ up differently on some platforms.
+ </p>
+ <div className="mt-2 flex items-center space-x-2">
+ <LinkedIn className="h-4 w-4" />
+ <p className="cursor-pointer text-sm font-semibold text-[#4783cf] hover:underline">
+ {linkConstructor({
+ domain: "lnkd.in",
+ key: randomLinkedInNonce,
+ pretty: true,
+ })}
+ </p>
+ </div>
+ {shortLinkPretty.length > 25 && (
+ <div className="mt-1 flex items-center space-x-2">
+ <Twitter className="h-4 w-4" />
+ <p className="cursor-pointer text-sm text-[#34a2f1] hover:underline">
+ {truncate(shortLinkPretty, 25)}
+ </p>
+ </div>
+ )}
+ </div>
+ </div>
+ )
+ }
+ >
+ <div className="absolute inset-y-0 right-0 flex items-center pr-3">
+ {keyError ? (
+ <AlertCircleFill
+ className="h-5 w-5 text-red-500"
+ aria-hidden="true"
+ />
+ ) : shortLink.length > 25 ? (
+ <AlertCircleFill className="h-5 w-5 text-amber-500" />
+ ) : null}
+ </div>
+ </Tooltip>
)}
</div>
{keyError &&
@@ -573,42 +621,6 @@ function AddEditLinkModal({
{keyError}
</p>
))}
- {shortLinkLength > 25 && (
- <div className="mt-4 flex items-start space-x-2 rounded-md border border-gray-300 bg-gray-100 p-4">
- <TriangleAlert className="mt-0.5 h-4 w-4 flex-none text-gray-500" />
- <div>
- <p className="text-sm text-gray-700">
- Short links longer than 25 characters will show up
- differently on some platforms.
- </p>
- <div className="mt-2 flex items-center space-x-2">
- <LinkedIn className="h-4 w-4" />
- <p className="cursor-pointer text-sm font-semibold text-[#4783cf] hover:underline">
- {linkConstructor({
- domain: "lnkd.in",
- key: randomLinkedInNonce,
- pretty: true,
- })}
- </p>
- <Badge variant="neutral">Obfuscated</Badge>
- </div>
- <div className="mt-1 flex items-center space-x-2">
- <Twitter className="h-4 w-4" />
- <p className="cursor-pointer text-sm text-[#34a2f1] hover:underline">
- {truncate(
- linkConstructor({
- domain: data.domain,
- key: data.key,
- pretty: true,
- }),
- 25,
- )}
- </p>
- <Badge variant="neutral">Truncated</Badge>
- </div>
- </div>
- </div>
- )}
</div>
</div>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0fbd808487..d295af248e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -182,11 +182,11 @@ importers:
specifier: ^5.0.1
version: 5.0.1
next:
- specifier: 14.2.0-canary.47
- version: 14.2.0-canary.47(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
+ specifier: 14.2.0-canary.64
+ version: 14.2.0-canary.64(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
next-auth:
specifier: ^4.24.4
node-html-parser:
specifier: ^6.1.4
version: 6.1.4
@@ -455,7 +455,7 @@ importers:
version: 10.4.16([email protected])
next:
specifier: 14.2.0-canary.47
- version: 14.2.0-canary.47(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
+ version: 14.2.0-canary.47([email protected])([email protected])
postcss:
specifier: ^8.4.31
version: 8.4.31
@@ -513,7 +513,7 @@ importers:
version: 18.2.14
next:
specifier: 14.2.0-canary.47
- version: 14.2.0-canary.47(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
+ version: 14.2.0-canary.47([email protected])([email protected])
react:
specifier: ^18.2.0
version: 18.2.0
@@ -3469,7 +3469,7 @@ packages:
next-auth: ^4
dependencies:
'@prisma/client': 5.10.2([email protected])
dev: false
@@ -3482,6 +3482,11 @@ packages:
resolution: {integrity: sha512-AURjF/V33qm2JSik8jS6wz4R0kl4uhi1m8k1z4x8wxYi0KbO5YgFvqWRFr7hKy1wr9pJW39kwFgci2XftxDFww==}
+ dev: true
+
+ resolution: {integrity: sha512-+wcKyLnzLw4Li5EOlDr0I4Y+KwjStwqaQ9i/sCv8ZnZSaOisRDh8CwjBBnZoxTwVwUk3u/5Gj8EuNsLhfHHUPQ==}
+ dev: false
resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==}
@@ -3525,6 +3530,16 @@ packages:
cpu: [arm64]
os: [darwin]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-TFGdehG97x0EAU0nUsoNAZ1/qRB7E00X7b9xlO9X8FpEFXNFRmvOf0dK3FR6lOy18DM8oU59kKurDTXt3LwhXw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3551,6 +3566,16 @@ packages:
cpu: [x64]
os: [darwin]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-dxRGpOIwCeA0Vr7/q7lIpQDN7caDc/ax6pc3IRlxCU7MBoepTuCUweIM0cUrjBw1/zHNPvm/W7dxIAglVwqRmQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3595,6 +3620,16 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-26RmJj3ETjdq4PL9yQ28nzpMaa7cZPeHqwNm3EuWSIcH0Ybs2S8wJHUWWYMyUXciyn+pMSNNkmzDwb2asmEoug==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3621,6 +3656,16 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-GO3HlEglhPOb6W/3skJGZZEfTjLKV5U5qeRp40/bcWbExCMSWPZhja5aGCEdozCxVDr7R+IqBlSNW0yrKJzBOg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3647,6 +3692,16 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-lxM3AIQd/cz9GQlXBqML9DdYj4jM3x9QgoD79WegriJ6Zb1KaHsUexOcG29BpPQub9MNm+X9RrvWcvWSfRQPJg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3673,6 +3728,16 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-vG66fQz+BlQUuc8LEqyfW/1JrLnmBMsp3NXcjCFBF4BD19eDOXeyponOpfsZYNnPf9Ex8wWauy3lhowk4levUg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3699,6 +3764,16 @@ packages:
cpu: [arm64]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-lXgX67oanH+Ek6/V3iUX/B/u057jyszYON8rdWYBYnCl+Z4MYiLh3FgBDWXoKLE1Xqp53ILPTLrP07c3TfhtCg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3725,6 +3800,16 @@ packages:
cpu: [ia32]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-5Cx33kU7zcJg0GZD7fJOfmePyfwt414Tnf45VjQYuaMytFFp+zcxAu/1TLLYziHQ/+p5JW9zodfLGnkNbMZeDg==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3751,6 +3836,16 @@ packages:
cpu: [x64]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-l0qkK2hTcN1t3z6KOlTOEQV1xqtu2IuqvjOJpcMtZGS6Z4deSkw1vKzwvz3AQMs6xStOcQBujd7lfRscE76hUg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
/@nodelib/[email protected]:
@@ -3785,6 +3880,7 @@ packages:
/@opentelemetry/[email protected]:
resolution: {integrity: sha512-O2yRJce1GOc6PAy3QxFM4NzFiWzvScDC1/5ihYBL6BUEVdq0XMWN01sppE+H6bBXbaFYipjwFLEWLg5PaSOThA==}
engines: {node: '>=8.0.0'}
+ dev: false
/@opentelemetry/[email protected]:
resolution: {integrity: sha512-OWlrQAnWn9577PhVgqjUvMr1pg57Bc4jv0iL4w0PRuOSRvq67rvHW9Ie/dZVMvCzhSCB+UxhcY/PmCmFj33Q+g==}
@@ -12125,7 +12221,7 @@ packages:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
dev: false
resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}
peerDependencies:
next: ^12.2.5 || ^13 || ^14
@@ -12140,7 +12236,7 @@ packages:
'@panva/hkdf': 1.1.1
cookie: 0.5.0
jose: 4.15.4
- next: 14.2.0-canary.47(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
+ next: 14.2.0-canary.64(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
nodemailer: 6.9.3
oauth: 0.9.15
openid-client: 5.6.1
@@ -12235,7 +12331,7 @@ packages:
- babel-plugin-macros
dev: false
resolution: {integrity: sha512-gtOUWhd+diNCTeRQAMFVRFx2Fo6WKCfFWZ+yg/2TgUnF1dc+tMFU0OYjXM1NRs4Yc6jdyqzeanH3oYYSokwg1w==}
engines: {node: '>=18.17.0'}
hasBin: true
@@ -12254,7 +12350,6 @@ packages:
optional: true
dependencies:
'@next/env': 14.2.0-canary.47
- '@opentelemetry/api': 1.4.1
'@swc/helpers': 0.5.5
busboy: 1.6.0
caniuse-lite: 1.0.30001583
@@ -12276,6 +12371,50 @@ packages:
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
+ dev: true
+
+ resolution: {integrity: sha512-VoyjSuui2SactVw3yizNg4eM6ts803mrFm+i1nXCgb3bK4w6zb5GA/WKv5NZrOg50+EAhLjj3NEsFc0hMRp1Cw==}
+ engines: {node: '>=18.17.0'}
+ hasBin: true
+ peerDependencies:
+ '@opentelemetry/api': ^1.1.0
+ '@playwright/test': ^1.41.2
+ react: ^18.2.0
+ react-dom: ^18.2.0
+ sass: ^1.3.0
+ peerDependenciesMeta:
+ '@opentelemetry/api':
+ optional: true
+ '@playwright/test':
+ optional: true
+ sass:
+ optional: true
+ dependencies:
+ '@next/env': 14.2.0-canary.64
+ '@opentelemetry/api': 1.4.1
+ '@swc/helpers': 0.5.5
+ busboy: 1.6.0
+ caniuse-lite: 1.0.30001583
+ graceful-fs: 4.2.11
+ postcss: 8.4.31
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])
+ optionalDependencies:
+ '@next/swc-darwin-arm64': 14.2.0-canary.64
+ '@next/swc-darwin-x64': 14.2.0-canary.64
+ '@next/swc-linux-arm64-gnu': 14.2.0-canary.64
+ '@next/swc-linux-arm64-musl': 14.2.0-canary.64
+ '@next/swc-linux-x64-gnu': 14.2.0-canary.64
+ '@next/swc-linux-x64-musl': 14.2.0-canary.64
+ '@next/swc-win32-arm64-msvc': 14.2.0-canary.64
+ '@next/swc-win32-ia32-msvc': 14.2.0-canary.64
+ '@next/swc-win32-x64-msvc': 14.2.0-canary.64
+ transitivePeerDependencies:
+ - '@babel/core'
+ - babel-plugin-macros
+ dev: false
resolution: {integrity: sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==}