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.

Merge branch 'main' into feat/improve-api

Kiran K54b9dad2b606
diff --cc apps/web/app/api/cron/import/csv/utils.ts
index 06f4c9938e,cb44f32e8a..b9992788a1
--- a/apps/web/app/api/cron/import/csv/utils.ts
+++ b/apps/web/app/api/cron/import/csv/utils.ts
@@@ -115,4 -115,4 +115,4 @@@ export const importLinksFromCSV = asyn
},
});
}
--};
++};
diff --cc apps/web/app/api/links/[linkId]/route.ts
index 7144f9fd1a,9cdc1f45b5..5857eb6459
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@@ -1,10 -1,8 +1,11 @@@
- import { withAuth } from "@/lib/auth";
import { deleteLink, editLink, processLink } from "@/lib/api/links";
- import { NextResponse } from "next/server";
- import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";
+ import { withAuth } from "@/lib/auth";
import { qstash } from "@/lib/cron";
+ import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";
+ import { NextResponse } from "next/server";
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/errors";
+import { createLinkBodySchema } from "@/lib/zod/schemas/links";
++import { LinkProps } from "@/lib/types";
// GET /api/links/[linkId] – get a link
export const GET = withAuth(async ({ headers, link }) => {
@@@ -16,56 -14,71 +17,65 @@@
// PUT /api/links/[linkId] – update a link
export const PUT = withAuth(async ({ req, headers, project, link }) => {
- let body;
try {
- body = await req.json();
- } catch (error) {
- return new Response("Missing or invalid body.", { status: 400, headers });
- }
- if (Object.keys(body).length === 0) {
- return new Response("No fields to update.", { status: 304, headers });
- }
+ const body = createLinkBodySchema.parse(await req.json());
- const updatedLink = {
- ...link,
- ...body,
- };
+ const updatedLink = {
+ ...link,
+ ...body,
+ };
- if (updatedLink.projectId !== link?.projectId) {
- return new Response(
- "Transferring links to another project is not yet supported.",
- {
- status: 403,
- headers,
- },
- );
- }
+ if (updatedLink.projectId !== link?.projectId) {
+ throw new DubApiError({
+ code: "forbidden",
+ message: "Transferring links to another project is not yet supported.",
+ });
+ }
- const { link: processedLink } = await processLink({
- payload: updatedLink as any, // TODO: fix types
- const {
- link: processedLink,
- error,
- status,
- } = await processLink({
- payload: updatedLink,
- project,
- });
++ const {
++ link: processedLink,
++ error,
++ status,
++ } = await processLink({
++ payload: updatedLink as LinkProps,
+ project,
+ });
++
++ // TODO: handle error
++ if (error) {
++ return new Response(error, { status, headers });
++ }
- if (error) {
- return new Response(error, { status, headers });
- }
+ const [response, _] = await Promise.allSettled([
+ editLink({
+ // link is guaranteed to exist because if not we will return 404
+ domain: link!.domain,
+ key: link!.key,
+ updatedLink: processedLink as any, // TODO: fix types
+ }),
+ qstash.publishJSON({
+ url: `${APP_DOMAIN_WITH_NGROK}/api/cron/links/event`,
+ body: {
+ linkId: link!.id,
+ type: "edit",
+ },
+ }),
+ // @ts-ignore
+ ]).then((results) => results.map((result) => result.value));
- const [response, _] = await Promise.allSettled([
- editLink({
- // link is guaranteed to exist because if not we will return 404
- domain: link!.domain,
- key: link!.key,
- updatedLink: processedLink,
- }),
- qstash.publishJSON({
- url: `${APP_DOMAIN_WITH_NGROK}/api/cron/links/event`,
- body: {
- linkId: link!.id,
- type: "edit",
- },
- }),
- // @ts-ignore
- ]).then((results) => results.map((result) => result.value));
+ if (response === null) {
+ throw new DubApiError({
+ code: "conflict",
+ message: "Duplicate key: This short link already exists.",
+ });
+ }
- if (response === null) {
- return new Response("Duplicate key: This short link already exists.", {
- status: 409,
+ return NextResponse.json(response, {
headers,
});
+ } catch (err) {
+ return handleAndReturnErrorResponse(err, headers);
}
-
- return NextResponse.json(response, {
- headers,
- });
});
// DELETE /api/links/[linkId] – delete a link
diff --cc apps/web/app/api/links/bulk/route.ts
index 2d90dc5dda,dae1ef71f0..2639ec7b15
--- a/apps/web/app/api/links/bulk/route.ts
+++ b/apps/web/app/api/links/bulk/route.ts
@@@ -62,4 -70,4 +70,4 @@@ export const POST = withAuth
needNotExceededLinks: true,
requiredPlan: ["pro", "business", "enterprise"],
},
--);
++);
diff --cc apps/web/app/api/links/exists/route.ts
index 34a3b9b62a,49952e9fd0..5326a0a946
--- a/apps/web/app/api/links/exists/route.ts
+++ b/apps/web/app/api/links/exists/route.ts
@@@ -1,21 -1,18 +1,21 @@@
- import { withAuth } from "@/lib/auth";
import { checkIfKeyExists } from "@/lib/api/links";
+ import { withAuth } from "@/lib/auth";
import { NextResponse } from "next/server";
+import { handleAndReturnErrorResponse } from "@/lib/errors";
+import { domainKeySchema } from "@/lib/zod";
-// GET /api//links/exists – check if a link exists
+// GET /api/links/exists – check if a link exists
export const GET = withAuth(
async ({ headers, searchParams }) => {
- const { domain, key } = searchParams;
- if (!domain || !key) {
- return new Response("Missing domain or key", { status: 400 });
+ try {
+ const { domain, key } = domainKeySchema.parse(searchParams);
+ const response = await checkIfKeyExists(domain, key);
+ return NextResponse.json(response, {
+ headers,
+ });
+ } catch (err) {
+ return handleAndReturnErrorResponse(err, headers);
}
- const response = await checkIfKeyExists(domain, key);
- return NextResponse.json(response, {
- headers,
- });
},
{ skipLinkChecks: true },
);
diff --cc apps/web/app/api/links/route.ts
index 46cc145f3a,e0578163bb..d415760f24
--- a/apps/web/app/api/links/route.ts
+++ b/apps/web/app/api/links/route.ts
@@@ -85,4 -89,4 +89,4 @@@ export const POST = withAuth
needNotExceededLinks: true,
allowAnonymous: true,
},
--);
++);
diff --cc apps/web/app/api/links/sync/route.ts
index f32f147d0d,6e9956b19d..c1904b7af5
--- a/apps/web/app/api/links/sync/route.ts
+++ b/apps/web/app/api/links/sync/route.ts
@@@ -74,4 -82,4 +82,4 @@@ export const POST = withAuth(async ({ r
]);
return NextResponse.json(response);
--});
++});
diff --cc apps/web/app/api/projects/[slug]/domains/[domain]/route.ts
index 59aafc1821,53107c5e7e..4829cc2e58
--- a/apps/web/app/api/projects/[slug]/domains/[domain]/route.ts
+++ b/apps/web/app/api/projects/[slug]/domains/[domain]/route.ts
@@@ -8,9 -6,10 +8,9 @@@ import
setRootDomain,
validateDomain,
} from "@/lib/api/domains";
- import { NextResponse } from "next/server";
-import { withAuth } from "@/lib/auth";
-import prisma from "@/lib/prisma";
import { DUB_PROJECT_ID, isDubDomain } from "@dub/utils";
+ import { NextResponse } from "next/server";
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/errors";
// GET /api/projects/[slug]/domains/[domain] – get a project's domain
export const GET = withAuth(async ({ domain, project }) => {
diff --cc apps/web/app/api/projects/[slug]/invites/route.tsx
index 4c0d518601,faff461fe2..284516ad96
--- a/apps/web/app/api/projects/[slug]/invites/route.tsx
+++ b/apps/web/app/api/projects/[slug]/invites/route.tsx
@@@ -1,14 -1,8 +1,14 @@@
- import { withAuth } from "@/lib/auth";
- import { NextResponse } from "next/server";
+ import { exceededLimitError } from "@/lib/api/errors";
import { inviteUser } from "@/lib/api/users";
+ import { withAuth } from "@/lib/auth";
import prisma from "@/lib/prisma";
- import { exceededLimitError } from "@/lib/api/errors";
+ import { NextResponse } from "next/server";
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/errors";
+import z from "@/lib/zod";
+
+const createOrDeleteInviteSchema = z.object({
+ email: z.string().email(),
+});
// GET /api/projects/[slug]/invites – get invites for a specific project
export const GET = withAuth(async ({ project }) => {
diff --cc apps/web/app/api/projects/[slug]/saml/route.ts
index 97c34e2374,4b6a20e23f..595b9eec02
--- a/apps/web/app/api/projects/[slug]/saml/route.ts
+++ b/apps/web/app/api/projects/[slug]/saml/route.ts
@@@ -1,28 -1,7 +1,28 @@@
import { withAuth } from "@/lib/auth";
- import { NextResponse } from "next/server";
import jackson, { samlAudience } from "@/lib/jackson";
import { APP_DOMAIN_WITH_NGROK } from "@dub/utils";
+ import { NextResponse } from "next/server";
+import { handleAndReturnErrorResponse } from "@/lib/errors";
+import z from "@/lib/zod";
+
+const createSAMLConnectionSchema = z
+ .object({
+ metadataUrl: z.string().url(),
+ encodedRawMetadata: z.string(),
+ })
+ .partial()
+ .refine(
+ ({ metadataUrl, encodedRawMetadata }) =>
+ metadataUrl != undefined || encodedRawMetadata != undefined,
+ {
+ message: "metadataUrl or encodedRawMetadata is required",
+ },
+ );
+
+const deleteSAMLConnectionSchema = z.object({
+ clientID: z.string().min(1),
+ clientSecret: z.string().min(1),
+});
// GET /api/projects/[slug]/saml – get SAML connections for a specific project
export const GET = withAuth(async ({ project }) => {
diff --cc apps/web/app/api/projects/[slug]/scim/route.ts
index 092cf0b3fd,97756b0d77..6b5a67ea15
--- a/apps/web/app/api/projects/[slug]/scim/route.ts
+++ b/apps/web/app/api/projects/[slug]/scim/route.ts
@@@ -1,17 -1,6 +1,17 @@@
import { withAuth } from "@/lib/auth";
- import { NextResponse } from "next/server";
import jackson from "@/lib/jackson";
+ import { NextResponse } from "next/server";
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/errors";
+import z from "@/lib/zod";
+
+const createOrUpdateDirectorySchema = z.object({
+ provider: z.enum(["okta-scim-v2", "azure-scim-v2", "google"]).optional(),
+ currentDirectoryId: z.string().min(1).optional(),
+});
+
+const deleteDirectorySchema = z.object({
+ directoryId: z.string().min(1),
+});
// GET /api/projects/[slug]/scim – get all SCIM directories
export const GET = withAuth(async ({ project }) => {
diff --cc apps/web/app/api/projects/[slug]/users/route.ts
index 56a0dc336e,41d3e4e77e..aea81a9294
--- a/apps/web/app/api/projects/[slug]/users/route.ts
+++ b/apps/web/app/api/projects/[slug]/users/route.ts
@@@ -1,22 -1,7 +1,23 @@@
import { withAuth } from "@/lib/auth";
- import { NextResponse } from "next/server";
import prisma from "@/lib/prisma";
+ import { NextResponse } from "next/server";
+import z from "@/lib/zod";
+import { DubApiError, handleAndReturnErrorResponse } from "@/lib/errors";
+
+const updateRoleSchema = z.object({
+ userId: z.string().min(1),
+ role: z.enum(["owner", "member"], {
+ errorMap: () => ({
+ message: `Role must be either "owner" or "member".`,
+ }),
+ }),
+});
+
+const removeUserSchema = z.object({
+ userId: z.string().min(1),
+});
+
+
// GET /api/projects/[slug]/users – get users for a specific project
export const GET = withAuth(async ({ project }) => {
const users = await prisma.projectUsers.findMany({
diff --cc apps/web/app/api/projects/route.ts
index 6fe908c247,ce9e9f070e..0eee7f0ed1
--- a/apps/web/app/api/projects/route.ts
+++ b/apps/web/app/api/projects/route.ts
@@@ -13,7 -12,7 +12,8 @@@ import
FREE_PROJECTS_LIMIT,
validSlugRegex,
} from "@dub/utils";
+import { handleAndReturnErrorResponse } from "@/lib/errors";
+ import { NextResponse } from "next/server";
// GET /api/projects - get all projects for the current user
export const GET = withSession(async ({ session }) => {
diff --cc apps/web/app/api/stats/[endpoint]/route.ts
index ca60f0fa67,8144be1875..358b08e1e4
--- a/apps/web/app/api/stats/[endpoint]/route.ts
+++ b/apps/web/app/api/stats/[endpoint]/route.ts
@@@ -49,4 -36,4 +36,4 @@@ export const GET = withAuth
{
needNotExceededClicks: true,
},
--);
++);
diff --cc apps/web/lib/api/links.ts
index 06cb7747b2,a6a5e0c1d1..6268086fbe
--- a/apps/web/lib/api/links.ts
+++ b/apps/web/lib/api/links.ts
@@@ -653,4 -693,4 +693,4 @@@ export async function archiveLink
archived,
},
});
--}
++}
diff --cc apps/web/lib/auth/index.ts
index 48aa8df073,a5dcdd9430..c1533cc618
--- a/apps/web/lib/auth/index.ts
+++ b/apps/web/lib/auth/index.ts
@@@ -512,4 -528,4 +528,4 @@@ export const withAdmin
const searchParams = getSearchParams(req.url);
return handler({ req, params, searchParams });
-- };
++ };
diff --cc apps/web/lib/stats.ts
index 1ef946b2ce,5b807760c7..d39b2bf0d7
--- a/apps/web/lib/stats.ts
+++ b/apps/web/lib/stats.ts
@@@ -185,4 -189,4 +189,4 @@@ export const getStats = async (
}
return data;
});
--};
++};
diff --cc apps/web/scripts/restore-backup.ts
index e1cb5ebcef,d5b2445959..87dde51a2c
--- a/apps/web/scripts/restore-backup.ts
+++ b/apps/web/scripts/restore-backup.ts
@@@ -59,4 -58,4 +58,4 @@@ async function main()
});
}
--main();
++main();
diff --cc apps/web/ui/links/link-filters.tsx
index 4d687d2d34,e7f2256fd9..a0f997486e
--- a/apps/web/ui/links/link-filters.tsx
+++ b/apps/web/ui/links/link-filters.tsx
@@@ -400,11 -400,10 +400,11 @@@ const TagPopover = ({ tag, count }: { t
}).then(async (res) => {
setProcessing(false);
if (res.ok) {
- await mutate(`/api/projects/${slug}/tags`);
+ await mutate(`/api/tags?projectSlug=${slug}`);
toast.success("Tag updated");
} else {
- toast.error("Something went wrong");
+ const { error } = await res.json();
+ toast.error(error.message);
}
});
};
diff --cc pnpm-lock.yaml
index 97519d7999,04c13897fa..2b48d8f441
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@@ -4122,10 -4442,20 +4125,10 @@@ packages
resolution: {integrity: sha512-dvNzrArTfe3VY1VIscpb3E2e7SZ1qwFe82WGzpOVbxilT3JcsnVGYF/uq8Jj1qKWPI5C/aePNXwA97JRNAXpRQ==}
dev: false
- resolution: {integrity: sha512-3yMPXx6Zdq73RvRQULdRBr5dH8XOv+jTG/dIl6KS2vfKwrV3v9xH4iwjlfFhh5Cjn9R7W8rxXduNuk1kf2tYig==}
- resolution: {integrity: sha512-lKlL94ooMtKMtTzIuZfYkDqXQoODb91GXURp71vvgqTSbtmzFWJlrghc2Gd1uKYe5OHhSk4YL8ENVNqidopXoA==}
- dev: false
-
+ resolution: {integrity: sha512-Fqv1JZnhqgyoqn7/JSX40NnLkTQ1TiUymqniVoBs6X1H8ncktXpG6+rbKBuLw7ljNxu2650hWz8wloMkq+zSpg==}
dev: false
- resolution: {integrity: sha512-ck1lI+7r1mMJpqLNa3LJ5pxCfOB1lfJncKmRJeJxcJqcngaFwylreLP7da6Rrjr6u2gVRTfmnkSkjc80IiQCwQ==}
- dependencies:
- glob: 7.1.7
- dev: true
-
resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==}
engines: {node: '>= 10'}
@@@ -4171,8 -4501,17 +4174,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-2EAx+YUrSX2ES8FQcRmGaIyh06HQb/MgDCwMvG3OetJap+TrDujp0CVmLwfKMxGTKktmqFJD75wVAyodaGnb4A==}
- resolution: {integrity: sha512-8hztLH9EbtWWtOb/dh7ICXM1oIq4xgIYnnF+ml62EB1YBrrahZuSqmFQ4ORk50uHrP4yR2N7k+dsNbY6r4ngBA==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [darwin]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-PdgcZqrSry/4b+UVoxdK7gKHM0/zcapiLx53bHxYet9YEvJC6mkSGFPIoCyzOT+PxcXcdQj/6P6MOMkjMmGQZw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@@@ -4207,8 -4546,17 +4210,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-Tyb6mNS03yvT4zFnjddgxoLMD6Hw5O2QTcurSsPkpgxXWQWG71KHanqHkJW90/QEtmuB/IM7A82MBO5Ja7ITwQ==}
- resolution: {integrity: sha512-1TraatcS7+8NX0Yv5tbXYTD44gCY+3X3VFEdcBMoj1ZHdb/ApcVgAcoCR1qpq2x4EntbWMRp+TxEtq/+nuVq7Q==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [darwin]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-RRywf4h2cgQ1uX3+HuxHZ6ebLwaej/hyCGJRkNTphetXSKnBBnC4KGYbxEqOffmKRBm1Ie7YJ5IvrECSBZq5bA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@@@ -4261,8 -4609,17 +4264,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-cevHVvbAKx1g0qMeoqhgTFJ2Z+ye1n1y+sS7/ls7+RHQQLWVYm5/G0IUPGYH63+qX+3gSNrZgiIl8j6ULq8nvA==}
- resolution: {integrity: sha512-rfQRIDMpvn6TI4uzXa/kbNw+9FY9DljBHl8iDLOCC456iHqaLOK9aAJxJ4Sr1qk4AFnDG2HuTMQE/KeoRoRtTg==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [linux]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-+2kkPMCiqvESdUWBv3ZCmPvNR4NCVs9Qct/68mBwr4c35pchEW3uK1MSBmFUc2Ec4Kwt6J8QfB78Fc6Dc1ME6g==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@@ -4297,8 -4654,17 +4300,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-gkxadSI7SDc9VAqNelAy6wFYZFK3UXUcn3VeihCTdVaIacEVgozUtNmYBbGyBNgf6HKlVVuswlEdpALIleUgrw==}
- resolution: {integrity: sha512-ctVykTVa62PmyaMPW0txoIW9WfMqR3cInNZc2bkWj8fJBiWWEtsEehv9+HCm+5Mvk156qlVuJqmAAgWZjGPmBA==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [linux]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-92OLU/UuPo3khfl+S9RVKcBQf/idxsN7pRhz0UZ0Nn7J2kTj0GkewPLs6l/lo3WRutSf56payhYjB3UavLT93Q==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@@ -4333,8 -4699,17 +4336,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-yppPAqGsip8jDDiY2QHRlsgSaQ9ezkf56d3Dna2eWodhfoyAyROgTQoimxqWa41/jJrNPh/UQPwIBgrfnJusqQ==}
- resolution: {integrity: sha512-ijPrsn/sdIz1Y04tDvIxz+1hRbPldUoScPS3k0O9EUIUFEQwVE6YEzQLod4138GunUyncDkZT20ZdWrMxIWetg==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [linux]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-ShJ+TmTcZBUqKuWgAdKOs6Atvl9gRo3Bv6dDF+zQw9GqR97BnJH8bBBTsRIeQ9cVn041CbUlw8W2t4wQ8Q7Tag==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@@ -4369,8 -4744,17 +4372,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-kKcSpf5bHGsSfJsfOWzXUkdT5kYxG6xlu2zKh1qNxzjMkb2b9pSXgXKregcBsGyBHxP4PC6+gGmVtwopDEbMuw==}
- resolution: {integrity: sha512-WJiCQC3CmxMiK30di8PAjistG98I5okJoz9ciMuHpq/lu3R5tm4fl9AH0HWvSQJ5+2+GRqS9Ej0dhQJEkhEo3Q==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [linux]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-Ve1plepx6pn4/2R3z+0rB+w3y/sg53yAmyaB05qRDmi0Ponh7xKWVjP1m4Ri/pok8FLjALtq+MH3+bzYYaBlgw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@@ -4405,8 -4789,17 +4408,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-DxJ+x+zsiYPpW13mNPrLpSrykyWwKu9QFKubHJooWcGNBawKdIQFXDyu5nahmkUntQh0hXsiXD1v7JyMYJxtEw==}
- resolution: {integrity: sha512-3XJ2FTwPxuiv6pCIs43CljTEjH/tJa4HCrs7YKd9JiggZcNUd+oqIP4B+u2r7lSkIG1h9DRAHW6CSgx5T4woJw==}
- engines: {node: '>= 10'}
- cpu: [arm64]
- os: [win32]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-IlHHSQzzLDuNmUDWG2kOz+vLRofAFOa/Quf9Bl5dn2+BxyxzHOBFz7md5I2WjayEwHheyq0mHkuenYEB6wm6xg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@@@ -4441,8 -4834,17 +4444,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-qkTPne2qfWMe/gZKfc9Wyvdogck9zxZXEAQ/IgLSBXkc96nnsoJ2JDLWfCpnkJpPPYvkhO0Dt6EO9XYZJV3VmQ==}
- resolution: {integrity: sha512-+p7G+VrLbu73ZXmzTf30NJ2q/sW0Fs+lIwpDjzYSVBRUX+rDfCmE6ieeTIUIJocZQF018gTCe4w3KOsQQkkRdA==}
- engines: {node: '>= 10'}
- cpu: [ia32]
- os: [win32]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-4vV27Ga58lD7zQmVZQ74nPn6s9+xeMCQySOiVB1k44QLzT7A94p7iCy4KCLYFRzN7eoTmwjffJYrinz8/vThPA==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@@@ -4477,8 -4879,17 +4480,8 @@@
dev: false
optional: true
- resolution: {integrity: sha512-jkZrycmue22TAK9l1oyU4UgkqGfZeiJQJMK4jYf0ULWplO63dwaWx2tjuLsgfs2sOlMxjWP4WLqrKKha196MvQ==}
- resolution: {integrity: sha512-k7vTwIkD7Pfe+dgIGtI30dh4fKShz4NClgnpY0y9X2egZ8r6PUWSiozziHqgKys8RQm9p60ziWCu4wK1xLlRjQ==}
- engines: {node: '>= 10'}
- cpu: [x64]
- os: [win32]
- requiresBuild: true
- dev: false
- optional: true
-
+ resolution: {integrity: sha512-d/CAcadYIc2c1vX5qNFYTpPQWozJMBO2/3z4CLNXQDVIqVJqoFkQ6fq1oLXHFjTYna7wJQHtM4hbJQLxrWIVug==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@@ -13244,7 -14583,33 +13247,7 @@@
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
dev: false
- resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}
- peerDependencies:
- next: ^12.2.5 || ^13 || ^14
- nodemailer: ^6.6.5
- react: ^17.0.2 || ^18
- react-dom: ^17.0.2 || ^18
- peerDependenciesMeta:
- nodemailer:
- optional: true
- dependencies:
- '@babel/runtime': 7.23.2
- '@panva/hkdf': 1.1.1
- cookie: 0.5.0
- jose: 4.15.4
- next: 14.0.5-canary.55(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
- nodemailer: 6.9.3
- oauth: 0.9.15
- openid-client: 5.6.1
- preact: 10.18.1
- preact-render-to-string: 5.2.6([email protected])
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- uuid: 8.3.2
- dev: false
-
resolution: {integrity: sha512-5DGffi+OpkbU62vPQIJ1z+hFnmow+ec5Qrn9m6eoglIO51m0DlrmLxBduZEwKAYDEg9k2joi1yelgmq1vqK3aQ==}
peerDependencies:
next: ^12.2.5 || ^13 || ^14
@@@ -13259,18 -14624,62 +13262,18 @@@
'@panva/hkdf': 1.1.1
cookie: 0.5.0
jose: 4.15.4
- next: 14.1.1-canary.47(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
+ next: 14.1.1-canary.48(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
nodemailer: 6.9.3
- oauth: 0.9.15
- openid-client: 5.6.1
- preact: 10.18.1
- preact-render-to-string: 5.2.6([email protected])
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- uuid: 8.3.2
- dev: false
-
- resolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==}
- engines: {node: '>=14.6.0'}
- hasBin: true
- peerDependencies:
- fibers: '>= 3.1.0'
- node-sass: ^6.0.0 || ^7.0.0
- react: ^18.2.0
- react-dom: ^18.2.0
- sass: ^1.3.0
- peerDependenciesMeta:
- fibers:
- optional: true
- node-sass:
- optional: true
- sass:
- optional: true
- dependencies:
- '@next/env': 13.1.6
- '@swc/helpers': 0.4.14
- caniuse-lite: 1.0.30001546
- postcss: 8.4.14
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- styled-jsx: 5.1.1(@babel/[email protected])([email protected])
- optionalDependencies:
- '@next/swc-android-arm-eabi': 13.1.6
- '@next/swc-android-arm64': 13.1.6
- '@next/swc-darwin-arm64': 13.1.6
- '@next/swc-darwin-x64': 13.1.6
- '@next/swc-freebsd-x64': 13.1.6
- '@next/swc-linux-arm-gnueabihf': 13.1.6
- '@next/swc-linux-arm64-gnu': 13.1.6
- '@next/swc-linux-arm64-musl': 13.1.6
- '@next/swc-linux-x64-gnu': 13.1.6
- '@next/swc-linux-x64-musl': 13.1.6
- '@next/swc-win32-arm64-msvc': 13.1.6
- '@next/swc-win32-ia32-msvc': 13.1.6
- '@next/swc-win32-x64-msvc': 13.1.6
- transitivePeerDependencies:
- - '@babel/core'
- - babel-plugin-macros
+ oauth: 0.9.15
+ openid-client: 5.6.1
+ preact: 10.18.1
+ preact-render-to-string: 5.2.6([email protected])
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ uuid: 8.3.2
dev: false
resolution: {integrity: sha512-hHlbhKPj9pW+Cymvfzc15lvhaOZ54l+8sXDXJWm3OBNBzgrVj6hwGPmqqsXg40xO1Leq+kXpllzRPuncpC0Phw==}
engines: {node: '>=14.6.0'}
hasBin: true
@@@ -13393,8 -14802,88 +13396,8 @@@
- babel-plugin-macros
dev: false
- resolution: {integrity: sha512-hsfilAAmofcfVt/rvDL/jL2cGXhCsM7dYrGIZ6zaa6XfLuvSLCGDbkmfgLFRL+0RM80SbhwznBx4LNmOz3IKbQ==}
- resolution: {integrity: sha512-u8yiAK7L+fl/U9yFmq3VOpkHlImx5wg3OoDz3qxTXhPmmMzNcPbblWgxBf5d6Z+aik8BEn27L31k/tXCRzwFxA==}
- engines: {node: '>=18.17.0'}
- hasBin: true
- peerDependencies:
- '@opentelemetry/api': ^1.1.0
- react: ^18.2.0
- react-dom: ^18.2.0
- sass: ^1.3.0
- peerDependenciesMeta:
- '@opentelemetry/api':
- optional: true
- sass:
- optional: true
- dependencies:
- '@next/env': 14.0.5-canary.46
- '@opentelemetry/api': 1.4.1
- '@swc/helpers': 0.5.2
- busboy: 1.6.0
- caniuse-lite: 1.0.30001546
- 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.0.5-canary.46
- '@next/swc-darwin-x64': 14.0.5-canary.46
- '@next/swc-linux-arm64-gnu': 14.0.5-canary.46
- '@next/swc-linux-arm64-musl': 14.0.5-canary.46
- '@next/swc-linux-x64-gnu': 14.0.5-canary.46
- '@next/swc-linux-x64-musl': 14.0.5-canary.46
- '@next/swc-win32-arm64-msvc': 14.0.5-canary.46
- '@next/swc-win32-ia32-msvc': 14.0.5-canary.46
- '@next/swc-win32-x64-msvc': 14.0.5-canary.46
- transitivePeerDependencies:
- - '@babel/core'
- - babel-plugin-macros
- dev: false
-
- resolution: {integrity: sha512-tVgaJmsBjqc0NX3Ww4ZqTYJpqtNmhvyGS7X9UytDiYGNEzG/m0L+ts1a/LSbtXpVcnRYAAZZvBSa+4s/jKUCiw==}
- engines: {node: '>=18.17.0'}
- hasBin: true
- peerDependencies:
- '@opentelemetry/api': ^1.1.0
- react: ^18.2.0
- react-dom: ^18.2.0
- sass: ^1.3.0
- peerDependenciesMeta:
- '@opentelemetry/api':
- optional: true
- sass:
- optional: true
- dependencies:
- '@next/env': 14.0.5-canary.55
- '@opentelemetry/api': 1.4.1
- '@swc/helpers': 0.5.2
- busboy: 1.6.0
- caniuse-lite: 1.0.30001546
- 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.0.5-canary.55
- '@next/swc-darwin-x64': 14.0.5-canary.55
- '@next/swc-linux-arm64-gnu': 14.0.5-canary.55
- '@next/swc-linux-arm64-musl': 14.0.5-canary.55
- '@next/swc-linux-x64-gnu': 14.0.5-canary.55
- '@next/swc-linux-x64-musl': 14.0.5-canary.55
- '@next/swc-win32-arm64-msvc': 14.0.5-canary.55
- '@next/swc-win32-ia32-msvc': 14.0.5-canary.55
- '@next/swc-win32-x64-msvc': 14.0.5-canary.55
- transitivePeerDependencies:
- - '@babel/core'
- - babel-plugin-macros
- dev: false
-
+ resolution: {integrity: sha512-AXuIZO7hRY8o6FZBkeoZnDRMKLfjmIBE4dN0DiVv9m1G0SzCaEbhuMnrpbUAmRrCeaVK+iMzmFhng5h1A3lYkQ==}
engines: {node: '>=18.17.0'}
hasBin: true
peerDependencies:
@@@ -14197,9 -15787,10 +14201,10 @@@
resolution: {integrity: sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
- nanoid: 3.3.6
+ nanoid: 3.3.7
picocolors: 1.0.0
source-map-js: 1.0.2
+ dev: false
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
@@@ -14338,12 -15946,12 +14360,6 @@@
prettier-plugin-organize-imports: 3.2.3([email protected])([email protected])
dev: true
- resolution: {integrity: sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==}
- resolution: {integrity: sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==}
-- engines: {node: '>=10.13.0'}
-- hasBin: true
-- dev: true
--
resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
engines: {node: '>=14'}