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.

Store content as JSON

Tim Wilsonb002d03b00b2
diff --git a/apps/web/app/(ee)/api/campaigns/route.ts b/apps/web/app/(ee)/api/campaigns/route.ts
index 304ce500f0..ed399676ff 100644
--- a/apps/web/app/(ee)/api/campaigns/route.ts
+++ b/apps/web/app/(ee)/api/campaigns/route.ts
@@ -43,7 +43,10 @@ export const POST = withWorkspace(
status: CampaignStatus.draft,
name: "Untitled",
subject: "",
- body: "",
+ body: {
+ type: "doc",
+ content: [],
+ },
type,
},
});
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-controls.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-controls.tsx
index c7f3c4f3ed..47d4d69ab7 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-controls.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-controls.tsx
@@ -72,7 +72,7 @@ export function CampaignControls({ campaign }: CampaignControlsProps) {
return "Please select the groups you want to send this campaign to.";
}
- if (!body?.replace("<p></p>", "")) {
+ if (!body?.content || !body.content.length) {
return "Please write the message you want to send to the partners.";
}
}, [name, subject, groupIds, body, status, triggerCondition]);
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
index 38de213075..b51c54140a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
@@ -242,8 +242,8 @@ export function CampaignEditor({
<RichTextArea
editorClassName="-m-2 min-h-[200px] p-2"
initialValue={field.value}
- onChange={(value) => {
- field.onChange(value);
+ onChange={(editor) => {
+ field.onChange(editor.getJSON());
handleSaveDraftCampaign();
}}
variables={EMAIL_TEMPLATE_VARIABLES}
diff --git a/apps/web/lib/api/workflows/execute-send-campaign-workflow.ts b/apps/web/lib/api/workflows/execute-send-campaign-workflow.ts
index 81d3a266ce..694404caef 100644
--- a/apps/web/lib/api/workflows/execute-send-campaign-workflow.ts
+++ b/apps/web/lib/api/workflows/execute-send-campaign-workflow.ts
@@ -3,8 +3,10 @@ import { WORKFLOW_ACTION_TYPES } from "@/lib/zod/schemas/workflows";
import { sendBatchEmail } from "@dub/email";
import NewMessageFromProgram from "@dub/email/templates/new-message-from-program";
import { prisma } from "@dub/prisma";
+import { richTextAreaExtensions } from "@dub/ui";
import { chunk } from "@dub/utils";
import { NotificationEmailType, Workflow } from "@prisma/client";
+import { generateHTML } from "@tiptap/html";
import { subDays } from "date-fns";
import { createId } from "../create-id";
import { parseWorkflowConfig } from "./parse-workflow-config";
@@ -145,7 +147,9 @@ export const executeSendCampaignWorkflow = async ({
type: "campaign",
subject: campaign.subject,
text: renderEmailTemplate({
- template: campaign.body,
+ template: campaign.body
+ ? generateHTML(campaign.body as any, richTextAreaExtensions)
+ : "",
variables: {
partnerName: programEnrollment.partner.name,
},
@@ -172,7 +176,9 @@ export const executeSendCampaignWorkflow = async ({
messages: [
{
text: renderEmailTemplate({
- template: campaign.body,
+ template: campaign.body
+ ? generateHTML(campaign.body as any, richTextAreaExtensions)
+ : "",
variables: {
partnerName: partnerUser.partner.name,
},
diff --git a/apps/web/lib/zod/schemas/campaigns.ts b/apps/web/lib/zod/schemas/campaigns.ts
index e55b1f11f9..df460d0ceb 100644
--- a/apps/web/lib/zod/schemas/campaigns.ts
+++ b/apps/web/lib/zod/schemas/campaigns.ts
@@ -23,7 +23,7 @@ export const CampaignSchema = z.object({
id: z.string(),
name: z.string(),
subject: z.string(),
- body: z.string(),
+ body: z.record(z.string(), z.any()),
type: z.nativeEnum(CampaignType),
status: z.nativeEnum(CampaignStatus),
triggerCondition: workflowConditionSchema.nullable().default(null),
@@ -59,7 +59,7 @@ export const updateCampaignSchema = z
.string()
.trim()
.max(100, "Subject must be less than 100 characters."),
- body: z.string(),
+ body: z.record(z.string(), z.any()),
triggerCondition: workflowConditionSchema.nullish(),
groupIds: z.array(z.string()).nullable(),
status: z.enum([
@@ -108,10 +108,11 @@ export const getCampaignsEventsQuerySchema = z
})
.merge(getPaginationQuerySchema({ pageSize: 100 }));
-export const getCampaignEventsCountQuerySchema = getCampaignsEventsQuerySchema.pick({
- status: true,
- search: true,
-});
+export const getCampaignEventsCountQuerySchema =
+ getCampaignsEventsQuerySchema.pick({
+ status: true,
+ search: true,
+ });
export const campaignSummarySchema = z.object({
sent: z.coerce.number(),
diff --git a/apps/web/package.json b/apps/web/package.json
index 0cc202a396..1459d1f65b 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -41,6 +41,7 @@
"@stripe/stripe-js": "^7.3.1",
"@tanstack/react-table": "^8.17.3",
"@team-plain/typescript-sdk": "^5.9.0",
+ "@tiptap/html": "^3.6.5",
"@types/base-x": "^3.0.10",
"@types/bcryptjs": "^2.4.6",
"@types/buffer-crc32": "0.2.0",
diff --git a/packages/prisma/schema/campaign.prisma b/packages/prisma/schema/campaign.prisma
index 7fe781c031..751f7ae0e1 100644
--- a/packages/prisma/schema/campaign.prisma
+++ b/packages/prisma/schema/campaign.prisma
@@ -24,7 +24,7 @@ model Campaign {
status CampaignStatus @default(draft)
name String
subject String
- body String @db.Text
+ body Json @db.Json
scheduledAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
diff --git a/packages/ui/src/rich-text-area/index.tsx b/packages/ui/src/rich-text-area/index.tsx
index 7eedb68349..f833c0e3a0 100644
--- a/packages/ui/src/rich-text-area/index.tsx
+++ b/packages/ui/src/rich-text-area/index.tsx
@@ -10,6 +10,14 @@ import { LoadingSpinner } from "../icons";
import { RichTextToolbar } from "./rich-text-toolbar";
import { suggestions } from "./variables";
+export const richTextAreaExtensions = [
+ StarterKit.configure({
+ heading: {
+ levels: [1, 2],
+ },
+ }),
+];
+
export function RichTextArea({
initialValue,
onChange,
@@ -19,8 +27,8 @@ export function RichTextArea({
uploadImage,
variables,
}: {
- initialValue?: string;
- onChange?: (value: string) => void;
+ initialValue?: any;
+ onChange?: (editor: Editor) => void;
placeholder?: string;
className?: string;
editorClassName?: string;
@@ -58,11 +66,7 @@ export function RichTextArea({
const editor = useEditor({
extensions: [
- StarterKit.configure({
- heading: {
- levels: [1, 2],
- },
- }),
+ ...richTextAreaExtensions,
Placeholder.configure({
placeholder,
emptyEditorClass:
@@ -131,9 +135,7 @@ export function RichTextArea({
},
},
content: initialValue,
- onUpdate: ({ editor }) => {
- onChange?.(editor.getHTML());
- },
+ onUpdate: ({ editor }) => onChange?.(editor),
immediatelyRender: false,
});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 15659d2f35..e57295d22c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -42,7 +42,7 @@ importers:
version: 1.0.7([email protected])
'@boxyhq/saml-jackson':
specifier: 1.52.1
'@chronark/zod-bird':
specifier: ^0.3.9
version: 0.3.9
@@ -112,6 +112,9 @@ importers:
'@team-plain/typescript-sdk':
specifier: ^5.9.0
version: 5.9.0
+ '@tiptap/html':
+ specifier: ^3.6.5
+ version: 3.6.5(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected])
'@types/base-x':
specifier: ^3.0.10
version: 3.0.10
@@ -309,7 +312,7 @@ importers:
react-pdf-tailwind:
specifier: ^2.3.0
react-textarea-autosize:
specifier: ^8.4.0
version: 8.4.0(@types/[email protected])([email protected])
@@ -412,7 +415,7 @@ importers:
version: 15.1.0([email protected])
tailwindcss:
specifier: ^3.4.4
tsx:
specifier: ^4.19.2
version: 4.19.2
@@ -430,7 +433,7 @@ importers:
vitest:
specifier: 2.1.8
packages/cli:
dependencies:
@@ -494,10 +497,10 @@ importers:
version: 5.0.10
ts-node:
specifier: ^10.9.2
tsup:
specifier: ^6.7.0
type-fest:
specifier: ^4.26.1
version: 4.26.1
@@ -527,7 +530,7 @@ importers:
version: 18.3.1([email protected])
react-email:
specifier: ^2.1.6
resend:
specifier: ^6.1.2
@@ -559,7 +562,7 @@ importers:
version: link:../../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.6.2
@@ -599,7 +602,7 @@ importers:
version: link:../../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.6.2
@@ -618,7 +621,7 @@ importers:
version: 5.0.10
tsup:
specifier: ^6.7.0
typescript:
specifier: ^5.6.2
version: 5.6.2
@@ -665,7 +668,7 @@ importers:
devDependencies:
'@stripe/ui-extension-tools':
specifier: ^0.0.1
'@types/react':
specifier: ^19.0.2
version: 19.0.2
@@ -677,13 +680,13 @@ importers:
dependencies:
'@tailwindcss/container-queries':
specifier: ^0.1.1
'@tailwindcss/forms':
specifier: ^0.5.6
'@tailwindcss/typography':
specifier: ^0.5.9
tailwind-scrollbar-hide:
specifier: ^1.1.7
version: 1.1.7
@@ -693,7 +696,7 @@ importers:
devDependencies:
tailwindcss:
specifier: ^3.4.4
packages/tsconfig: {}
@@ -765,6 +768,9 @@ importers:
'@tiptap/extensions':
specifier: ^3.0.9
version: 3.0.9(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])
+ '@tiptap/html':
+ specifier: ^3.6.5
+ version: 3.6.5(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])([email protected])
'@tiptap/pm':
specifier: ^3.0.9
version: 3.0.9
@@ -894,13 +900,13 @@ importers:
version: 19.1.1
tailwindcss:
specifier: ^3.4.4
tsconfig:
specifier: workspace:*
version: link:../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.1.6
@@ -955,7 +961,7 @@ importers:
version: link:../tsconfig
tsup:
specifier: ^6.1.3
typescript:
specifier: ^5.1.6
version: 5.1.6
@@ -5590,6 +5596,13 @@ packages:
'@tiptap/core': ^3.0.9
'@tiptap/pm': ^3.0.9
+ '@tiptap/[email protected]':
+ resolution: {integrity: sha512-w37vPb5o/sKFbmnSGS2YE8yfWh2CAtmXnVFVg/tO1UYIVifVsfVVjOkfcbAQNZcHve+7NSwcIeI6oDh7FeYyIw==}
+ peerDependencies:
+ '@tiptap/core': ^3.6.5
+ '@tiptap/pm': ^3.6.5
+ happy-dom: ^18.0.1
+
'@tiptap/[email protected]':
resolution: {integrity: sha512-cJdnpGyirRxwi6M4IkyapEK/jhcjFXdfX3uhJp/4uVH1dynNXalV0gE/YnH/yt55kzwvG9OUrwOQt+t1iXgNog==}
@@ -5817,6 +5830,9 @@ packages:
resolution: {integrity: sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-pb1Uqj5WJP7wrcbLU7Ru4QtA0+3kAXrkutGiD26wUKzSMgNNaPARTUDQmElUXp64kh3cWdou3Q0C7qwwxqSFmg==}
+
resolution: {integrity: sha512-gTVM8js2twdtqM+AE2PdGEe9zGQY4UvmFjan9rZcVb6FGdStfjWoWejdmy4CfWVO9rh5MiYQGZloKAGkJt8lMw==}
@@ -5917,6 +5933,9 @@ packages:
resolution: {integrity: sha512-wR87cgvxj3p6D0Crt1r5avwqffqPXUkNlnQ1mjU93G7gCuFjufZR4I6j8cz5g1F1tTYpfOOFvly+cmIQwL9wvw==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==}
+
resolution: {integrity: sha512-lXCmTWSHJvf0TRSO58nm978b8HJ/EdsSsEKLd3ODHFjo+3VGAyyTp4v50nWvwtzBxSMQrVOK7tcuN0zGPLICMw==}
@@ -8674,6 +8693,10 @@ packages:
resolution: {integrity: sha512-KcFVtoP1CVFtQu0aSk3AyAt2og66PFhZAlkUOuWKwzMLoulHXG5W5wE5xAnHb+yl3/wEFoqGW7/cDGMU8igDZQ==}
engines: {node: '>=14.0.0'}
+ resolution: {integrity: sha512-qn+rKOW7KWpVTtgIUi6RVmTBZJSe2k0Db0vh1f7CWrWclkkc7/Q+FrOfkZIb2eiErLyqu5AXEzE7XthO9JVxRA==}
+ engines: {node: '>=20.0.0'}
+
resolution: {integrity: sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==}
engines: {node: '>=4'}
@@ -13306,6 +13329,10 @@ packages:
resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==}
+ resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
engines: {node: '>=18'}
@@ -14573,7 +14600,7 @@ snapshots:
'@opentelemetry/sdk-metrics': 1.30.1(@opentelemetry/[email protected])
'@opentelemetry/semantic-conventions': 1.29.0
dependencies:
'@aws-sdk/client-dynamodb': 3.817.0
'@aws-sdk/credential-providers': 3.817.0
@@ -14599,7 +14626,7 @@ snapshots:
reflect-metadata: 0.2.2
ripemd160: 2.0.2
sqlite3: 5.1.7
transitivePeerDependencies:
- '@google-cloud/spanner'
- '@mongodb-js/zstd'
@@ -15769,7 +15796,7 @@ snapshots:
jest-util: 27.5.1
slash: 3.0.0
dependencies:
'@jest/console': 27.5.1
'@jest/reporters': 27.5.1
@@ -15783,7 +15810,7 @@ snapshots:
exit: 0.1.2
graceful-fs: 4.2.11
jest-changed-files: 27.5.1
+ jest-config: 27.5.1([email protected]([email protected]))
jest-haste-map: 27.5.1
jest-message-util: 27.5.1
jest-regex-util: 27.5.1
@@ -19501,7 +19528,7 @@ snapshots:
react: 17.0.2
stripe: 13.11.0
dependencies:
'@types/jest': 28.1.8
'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
@@ -19509,9 +19536,9 @@ snapshots:
eslint: 8.48.0
eslint-plugin-react: 7.34.1([email protected])
eslint-plugin-react-hooks: 4.6.2([email protected])
jest-transform-stub: 2.0.0
typescript: 4.9.5
transitivePeerDependencies:
- '@babel/core'
@@ -19591,22 +19618,22 @@ snapshots:
dependencies:
defer-to-connect: 2.0.1
dependencies:
+ tailwindcss: 3.4.4([email protected]([email protected]))
dependencies:
mini-svg-data-uri: 1.4.4
+ tailwindcss: 3.4.4([email protected]([email protected]))
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
+ tailwindcss: 3.4.4([email protected]([email protected]))
dependencies:
@@ -19787,6 +19814,12 @@ snapshots:
'@tiptap/core': 3.0.9(@tiptap/[email protected])
'@tiptap/pm': 3.0.9
+ dependencies:
+ '@tiptap/core': 3.0.9(@tiptap/[email protected])
+ '@tiptap/pm': 3.0.9
+ happy-dom: 18.0.1
+
'@tiptap/[email protected]':
dependencies:
prosemirror-changeset: 2.3.1
@@ -20071,6 +20104,10 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
dependencies:
undici-types: 6.21.0
@@ -20194,6 +20231,8 @@ snapshots:
- uglify-js
- webpack-cli
+ '@types/[email protected]': {}
+
dependencies:
'@types/webidl-conversions': 7.0.1
@@ -23626,6 +23665,12 @@ snapshots:
- encoding
- supports-color
+ dependencies:
+ '@types/node': 20.19.19
+ '@types/whatwg-mimetype': 3.0.2
+ whatwg-mimetype: 3.0.0
+
optional: true
@@ -24297,16 +24342,16 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
+ '@jest/core': 27.5.1([email protected]([email protected]))
'@jest/test-result': 27.5.1
'@jest/types': 27.5.1
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
import-local: 3.1.0
+ jest-config: 27.5.1([email protected]([email protected]))
jest-util: 27.5.1
jest-validate: 27.5.1
prompts: 2.4.2
@@ -24318,7 +24363,7 @@ snapshots:
- ts-node
- utf-8-validate
dependencies:
'@babel/core': 7.24.5
'@jest/test-sequencer': 27.5.1
@@ -24345,7 +24390,7 @@ snapshots:
slash: 3.0.0
strip-json-comments: 3.1.1
optionalDependencies:
+ ts-node: 10.9.2([email protected])
transitivePeerDependencies:
- bufferutil
- canvas
@@ -24669,11 +24714,11 @@ snapshots:
merge-stream: 2.0.0
supports-color: 8.1.1
dependencies:
+ '@jest/core': 27.5.1([email protected]([email protected]))
import-local: 3.1.0
transitivePeerDependencies:
- bufferutil
- canvas
@@ -26323,69 +26368,61 @@ snapshots:
camelcase-css: 2.0.1
postcss: 8.4.38
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.31
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.4.31
-
- dependencies:
- lilconfig: 2.1.0
- yaml: 1.10.2
- optionalDependencies:
- postcss: 8.5.6
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.5.6
dependencies:
lilconfig: 2.1.0
yaml: 1.10.2
optionalDependencies:
postcss: 8.5.6
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
+ ts-node: 10.9.2(@types/[email protected])([email protected])
dependencies:
lilconfig: 2.1.0
yaml: 2.3.4
optionalDependencies:
postcss: 8.4.38
dependencies:
@@ -26809,7 +26846,7 @@ snapshots:
react: 19.1.1
scheduler: 0.26.0
dependencies:
'@babel/core': 7.24.5
'@babel/parser': 7.24.5
@@ -26849,7 +26886,7 @@ snapshots:
source-map-js: 1.0.2
stacktrace-parser: 0.1.10
tailwind-merge: 2.2.0
+ tailwindcss: 3.4.0([email protected]([email protected]))
typescript: 5.1.6
transitivePeerDependencies:
- '@opentelemetry/api'
@@ -26903,10 +26940,10 @@ snapshots:
react: 19.1.1
react-dom: 19.1.1([email protected])
dependencies:
'@react-pdf/renderer': 3.4.5([email protected])([email protected])
transitivePeerDependencies:
- encoding
- react
@@ -28259,7 +28296,7 @@ snapshots:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28278,7 +28315,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -28286,7 +28323,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28305,7 +28342,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -28313,7 +28350,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28332,7 +28369,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -28340,7 +28377,7 @@ snapshots:
transitivePeerDependencies:
- ts-node
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@@ -28359,7 +28396,7 @@ snapshots:
postcss: 8.4.38
postcss-import: 15.1.0([email protected])
postcss-js: 4.0.1([email protected])
postcss-nested: 6.0.1([email protected])
postcss-selector-parser: 6.0.13
resolve: 1.22.6
@@ -28423,7 +28460,7 @@ snapshots:
ansi-escapes: 4.3.2
supports-hyperlinks: 2.3.0
dependencies:
'@jridgewell/trace-mapping': 0.3.25
jest-worker: 27.5.1
@@ -28565,11 +28602,11 @@ snapshots:
dependencies:
bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0
jest-util: 27.5.1
json5: 2.2.3
lodash.memoize: 4.1.2
@@ -28582,7 +28619,7 @@ snapshots:
'@types/jest': 28.1.8
babel-jest: 27.5.1(@babel/[email protected])
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -28603,28 +28640,7 @@ snapshots:
'@swc/core': 1.3.101(@swc/[email protected])
optional: true
- dependencies:
- '@cspotcode/source-map-support': 0.8.1
- '@tsconfig/node10': 1.0.11
- '@tsconfig/node12': 1.0.11
- '@tsconfig/node14': 1.0.3
- '@tsconfig/node16': 1.0.4
- '@types/node': 18.11.9
- acorn: 8.11.3
- acorn-walk: 8.3.2
- arg: 4.1.3
- create-require: 1.1.1
- diff: 4.0.2
- make-error: 1.3.6
- typescript: 5.4.4
- v8-compile-cache-lib: 3.0.1
- yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
- optional: true
-
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -28644,7 +28660,7 @@ snapshots:
optionalDependencies:
'@swc/core': 1.3.101(@swc/[email protected])
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
@@ -28658,53 +28674,48 @@ snapshots:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.9.5
+ typescript: 5.6.2
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
optionalDependencies:
'@swc/core': 1.3.101(@swc/[email protected])
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 22.18.3
+ '@types/node': 18.11.9
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.1.6
+ typescript: 5.4.4
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
optional: true
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.11
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
- '@types/node': 22.18.3
acorn: 8.11.3
acorn-walk: 8.3.2
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 5.6.2
+ typescript: 4.9.5
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
optional: true
@@ -28724,7 +28735,7 @@ snapshots:
dependencies:
bundle-require: 3.1.2([email protected])
cac: 6.7.14
@@ -28734,7 +28745,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 2.79.1
source-map: 0.8.0-beta.0
@@ -28748,7 +28759,7 @@ snapshots:
- supports-color
- ts-node
dependencies:
bundle-require: 3.1.2([email protected])
cac: 6.7.14
@@ -28758,7 +28769,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 2.79.1
source-map: 0.8.0-beta.0
@@ -28772,7 +28783,7 @@ snapshots:
- supports-color
- ts-node
dependencies:
bundle-require: 4.2.1([email protected])
cac: 6.7.14
@@ -28782,7 +28793,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 3.29.5
source-map: 0.8.0-beta.0
@@ -28796,7 +28807,7 @@ snapshots:
- supports-color
- ts-node
dependencies:
bundle-require: 4.2.1([email protected])
cac: 6.7.14
@@ -28806,31 +28817,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
- resolve-from: 5.0.0
- rollup: 3.29.5
- source-map: 0.8.0-beta.0
- sucrase: 3.34.0
- tree-kill: 1.2.2
- optionalDependencies:
- '@swc/core': 1.3.101(@swc/[email protected])
- postcss: 8.5.6
- typescript: 5.6.2
- transitivePeerDependencies:
- - supports-color
- - ts-node
-
- dependencies:
- bundle-require: 4.2.1([email protected])
- cac: 6.7.14
- chokidar: 3.5.3
- debug: 4.3.4
- esbuild: 0.17.19
- execa: 5.1.1
- globby: 11.1.0
- joycon: 3.1.1
resolve-from: 5.0.0
rollup: 3.29.5
source-map: 0.8.0-beta.0
@@ -29020,7 +29007,7 @@ snapshots:
dependencies:
is-typedarray: 1.0.0
dependencies:
'@sqltools/formatter': 1.2.5
ansis: 3.17.0
@@ -29043,7 +29030,7 @@ snapshots:
pg: 8.16.0
redis: 4.7.0
sqlite3: 5.1.7
+ ts-node: 10.9.2(@types/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -29444,7 +29431,7 @@ snapshots:
fsevents: 2.3.3
terser: 5.27.0
dependencies:
'@vitest/expect': 2.1.8
'@vitest/mocker': 2.1.8([email protected](@types/[email protected])([email protected]))
@@ -29468,6 +29455,7 @@ snapshots:
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 18.11.9
+ happy-dom: 18.0.1
jsdom: 25.0.1
transitivePeerDependencies:
- less
@@ -29549,7 +29537,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 3.3.0
tapable: 2.2.1
+ terser-webpack-plugin: 5.3.10(@swc/[email protected](@swc/[email protected]))([email protected])([email protected])
watchpack: 2.4.0
webpack-sources: 3.2.3
transitivePeerDependencies:
@@ -29570,6 +29558,8 @@ snapshots:
+
optional: true