chore: platform libraries versions cleanup api v2 (#15768)

* chore: platform libraries versions cleanup api v2

* fixup! chore: platform libraries versions cleanup api v2
This commit is contained in:
Morgan authored and GitHub committed 2024-07-15 17:03:15 +00:00
1 parent c8b577fb7a
commit 539a2ea301
25 files changed
+48 -42

No files matched your search

@@ -1,4 +1,4 @@
import * as lruCache from "lru-cache";
import { LRUCache } from "lru-cache";
import type { GetServerSidePropsContext, NextApiRequest, NextApiResponse } from "next";
import type { AuthOptions, Session } from "next-auth";
import { getToken } from "next-auth/jwt";
@@ -15,7 +15,7 @@ const log = logger.getSubLogger({ prefix: ["getServerSession"] });
* Stores the session in memory using the stringified token as the key.
*
*/
const CACHE = new lruCache.LRUCache<string, Session>({ max: 1000 });
const CACHE = new LRUCache<string, Session>({ max: 1000 });
/**
* This is a slimmed down version of the `getServerSession` function from
+1 -1
View File
@@ -23,7 +23,7 @@ since the versions are matching in both package.json yarn will try to use the lo
now go to packages/platform/libraries and do
- yarn build
- yarn build:dev
then go back to /apps/api/v2 and run
+11 -2
View File
@@ -1,3 +1,4 @@
import { getCalendar } from "@calcom/app-store/_utils/getCalendar";
import { CalendarService } from "@calcom/app-store/applecalendar/lib";
import { getBookingForReschedule } from "@calcom/features/bookings/lib/get-booking";
import getBookingInfo from "@calcom/features/bookings/lib/getBookingInfo";
@@ -8,9 +9,13 @@ import handleMarkNoShow from "@calcom/features/handleMarkNoShow";
import * as instantMeetingMethods from "@calcom/features/instant-meeting/handleInstantMeeting";
import getAllUserBookings from "@calcom/lib/bookings/getAllUserBookings";
import { symmetricEncrypt } from "@calcom/lib/crypto";
import { getTranslation } from "@calcom/lib/server/i18n";
import { updateHandler as updateScheduleHandler } from "@calcom/trpc/server/routers/viewer/availability/schedule/update.handler";
import { getAvailableSlots } from "@calcom/trpc/server/routers/viewer/slots/util";
import { createNewUsersConnectToOrgIfExists } from "@calcom/trpc/server/routers/viewer/teams/inviteMember/utils";
import {
createNewUsersConnectToOrgIfExists,
sendSignupToOrganizationEmail,
} from "@calcom/trpc/server/routers/viewer/teams/inviteMember/utils";
export { slugify } from "@calcom/lib/slugify";
export { getBookingForReschedule };
@@ -76,7 +81,7 @@ export type { CityTimezones } from "@calcom/lib/cityTimezonesHandler";
export { TRPCError } from "@trpc/server";
export type { TUpdateInputSchema } from "@calcom/trpc/server/routers/viewer/availability/schedule/update.schema";
export { createNewUsersConnectToOrgIfExists };
export { createNewUsersConnectToOrgIfExists, sendSignupToOrganizationEmail };
export { getAllUserBookings };
export { getBookingInfo };
@@ -100,3 +105,7 @@ export { dynamicEvent } from "@calcom/lib/defaultEvents";
export { symmetricEncrypt };
export { CalendarService };
export { getCalendar };
export { getTranslation };
+1
View File
@@ -11,6 +11,7 @@
"scripts": {
"build": "yarn vite build",
"build:watch": "yarn vite build --watch",
"build:dev": "yarn vite build && sed -i'' -e 's/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g' ./dist/index.cjs",
"publish": "rm -rf dist && yarn build && npm publish --access public"
},
"dependencies": {