Update Supabase dependency, delete cookie handling, create logger
Updated Supabase dependency across multiple packages from "^2.41.1" to "^2.42.0". Removed files handling sidebar state and theme cookies. Created a new Logger interface for managing log messages in the shared package. Enhanced the middleware to track accounts membership webhook payload. Minor adjustments were also made in multiple package.json files.
This commit is contained in:
@@ -44,7 +44,7 @@ export class LemonSqueezyWebhookHandlerService
|
||||
|
||||
// clone the request so we can read the body twice
|
||||
const reqClone = request.clone();
|
||||
const body = await request.json();
|
||||
const body = (await request.json()) as SubscriptionWebhook | OrderWebhook;
|
||||
const rawBody = await reqClone.text();
|
||||
|
||||
if (!signature) {
|
||||
|
||||
@@ -5,6 +5,7 @@ export type OrderWebhook = {
|
||||
account_id: number;
|
||||
};
|
||||
};
|
||||
|
||||
data: {
|
||||
type: string;
|
||||
id: string;
|
||||
@@ -30,11 +31,12 @@ export type OrderWebhook = {
|
||||
status: string;
|
||||
status_formatted: string;
|
||||
refunded: boolean;
|
||||
refunded_at: any;
|
||||
refunded_at: string | null;
|
||||
subtotal_formatted: string;
|
||||
discount_total_formatted: string;
|
||||
tax_formatted: string;
|
||||
total_formatted: string;
|
||||
|
||||
first_order_item: {
|
||||
id: number;
|
||||
order_id: number;
|
||||
@@ -45,15 +47,18 @@ export type OrderWebhook = {
|
||||
price: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
deleted_at: any;
|
||||
deleted_at: string | null;
|
||||
test_mode: boolean;
|
||||
};
|
||||
|
||||
urls: {
|
||||
receipt: string;
|
||||
};
|
||||
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
};
|
||||
|
||||
relationships: {
|
||||
store: {
|
||||
links: {
|
||||
|
||||
Reference in New Issue
Block a user