fix: typos in several package/ directories (#19495)

* fix: typos in packages/embeds
Found via codespell

* fix: typos in packages/lib
Found via codespell

* fix: typos in packages/trpc
Found via codespell
This commit is contained in:
luzpaz authored and GitHub committed 2025-02-24 14:44:08 +00:00
1 parent 16a94fe712
commit 97ef32f7ca
27 files changed
+33 -33

No files matched your search

+1 -1
View File
@@ -477,7 +477,7 @@ export default class CloseCom {
body: JSON.stringify(data),
}).then(async (response) => {
if (!response.ok) {
const message = `[Close.com app] An error has occured: ${response.status}`;
const message = `[Close.com app] An error has occurred: ${response.status}`;
this.log.error(await response.json());
throw new Error(message);
}
@@ -10,7 +10,7 @@ type EnabledApp = ReturnType<typeof getApps>[number] & { enabled: boolean };
*
* @param credentials - Can be user or team credentials
* @param options
* @param options.where Aditional where conditions to filter out apps
* @param options.where Additional where conditions to filter out apps
* @param options.filterOnCredentials - Only include apps where credentials are present
* @returns A list of enabled app metadata & credentials tied to them
*/
+1 -1
View File
@@ -138,7 +138,7 @@ export function availabilityAsString(
// append if the range is not complete (but the next day needs adding)
days[days.length - 1].push(day);
} else if (days[days.length - 1][days[days.length - 1].length - 1] === day - 1) {
// range complete, overwrite if the last day directly preceeds the current day
// range complete, overwrite if the last day directly precedes the current day
days[days.length - 1] = [days[days.length - 1][0], day];
} else {
// new range
+1 -1
View File
@@ -21,7 +21,7 @@ describe("CVA Utils", () => {
]);
});
it("Should no erorr when no arrays are passed in", () => {
it("Should not error when no arrays are passed in", () => {
const variants = {
color: "blue",
size: "large",
@@ -17,7 +17,7 @@ export function checkForEmptyAssignment({
isManagedEventType: boolean;
assignAllTeamMembers: boolean;
}): boolean {
// If Team-events have assignAllTeamMembers checked, return false as assignemnt is complete.
// If Team-events have assignAllTeamMembers checked, return false as assignment is complete.
if (assignAllTeamMembers) {
return false;
}
+1 -1
View File
@@ -15,7 +15,7 @@ describe("getValidRhfFieldName", () => {
expect(getValidRhfFieldName("$hello.there")).toEqual("-hello-there");
});
// So that user can freely add spaces and any other character iteratively and it get's converted to - and he can add more characters.
// So that user can freely add spaces and any other character iteratively and it gets converted to - and he can add more characters.
// We don't really care about a hyphen in the end
it("should not remove dashes from start and end.", () => {
expect(getValidRhfFieldName("hello-there-")).toEqual("hello-there-");
+1 -1
View File
@@ -22,7 +22,7 @@ export const redactError = <T extends Error | unknown>(error: T) => {
log.debug("Type of Error: ", error.constructor);
if (shouldRedact(error) && IS_PRODUCTION) {
log.error("Error: ", JSON.stringify(error));
return new Error("An error occured while querying the database.");
return new Error("An error occurred while querying the database.");
}
return error;
};
+1 -1
View File
@@ -3,7 +3,7 @@ import { HttpError } from "../http-error";
const TURNSTILE_SECRET_ID = process.env.CLOUDFLARE_TURNSTILE_SECRET;
export async function checkCfTurnstileToken({ token, remoteIp }: { token?: string; remoteIp: string }) {
// This means the instance doesnt have turnstile enabled - we skip the check and just return success.
// This means the instance doesn't have turnstile enabled - we skip the check and just return success.
// OR the instance is running in CI so we skip these checks also
if (!TURNSTILE_SECRET_ID || !!process.env.NEXT_PUBLIC_IS_E2E) {
return {
+2 -2
View File
@@ -686,13 +686,13 @@ describe("maximize availability and weights", () => {
userId: 1,
createdAt: dayjs().startOf("month").add(10, "day").toDate(),
}),
// happend during OOO
// happened during OOO
buildBooking({
id: 2,
userId: 2,
createdAt: dayjs().startOf("month").add(5, "hour").toDate(),
}),
// happend during OOO
// happened during OOO
buildBooking({
id: 3,
userId: 2,
+1 -1
View File
@@ -47,7 +47,7 @@ type GetTeamOrOrgArg<TeamSelect extends Prisma.TeamSelect> = {
const log = logger.getSubLogger({ prefix: ["repository", "team"] });
/**
* Get's the team or organization with the given slug or id reliably along with parsed metadata.
* Gets the team or organization with the given slug or id reliably along with parsed metadata.
*/
async function getTeamOrOrg<TeamSelect extends Prisma.TeamSelect>({
lookupBy,
+3 -3
View File
@@ -8,7 +8,7 @@
- [x] Unlocked attribute shouldn't get updates from SCIM but in case they still do, we follow this strategy
- If attribute from SCIM, doesn't exist on user, we allow it to be freely set on the user
- If attribute from SCIM, exists on user
- [x] It is a single select or a non-enum attribute, we don't let it be overriden and completely ignore the SCIM update for that attribute
- [x] It is a single select or a non-enum attribute, we don't let it be overridden and completely ignore the SCIM update for that attribute
- [x] It is a multi select, we remove the options that were created from SCIM and add the new options from SCIM. AttributeToUser.createdByDSyncId is set to SCIM directorySync id for those options. It allows both SCIM set and User set options to be assigned to the User.
- [x] The options created by SCIM aren't deletable from Cal.com UI. User can only remove options created by Cal.com i.e. where AttributeToUser.createdByDSyncId is null.
- Restrict setting values
@@ -25,9 +25,9 @@
## Test
- Okta to Cal.com
1. Add a user with attribute
2. Simular a failure in adding the user
2. Simulate a failure in adding the user
- Failure could be in user creation or attribute assignment creation
3. Remove the user and Re-add the user and see it is correctly synced.
3. Remove the user and Re-add the user and see if it's correctly synced.
- [x] Try removing a locked attribute assignment from a user.
+1 -1
View File
@@ -22,7 +22,7 @@ describe("slugify", () => {
expect(slugify("hello$there")).toEqual("hello-there");
});
// So that user can freely add spaces and any other character iteratively and it get's converted to - later on.
// So that user can freely add spaces and any other character iteratively and it gets converted to - later on.
it("should remove dashes from start and end.", () => {
expect(slugify("hello-there-")).toEqual("hello-there");
expect(slugify("hello-there_")).toEqual("hello-there");