diff --git a/packages/admin-ui/src/components/NotificationsMain.tsx b/packages/admin-ui/src/components/NotificationsMain.tsx index 39b072dd3e..e708f77dba 100644 --- a/packages/admin-ui/src/components/NotificationsMain.tsx +++ b/packages/admin-ui/src/components/NotificationsMain.tsx @@ -38,7 +38,7 @@ export default function NotificationsView() { useEffect(() => { const interval = setInterval(() => { notificationsCall.revalidate(); - }, 60 * 1000); // Re-fecthes banner notifications every minute + }, 60 * 1000); // Re-fetches banner notifications every minute return () => clearInterval(interval); }, []); diff --git a/packages/dappmanager/src/api/auth/sessionAuth.ts b/packages/dappmanager/src/api/auth/sessionAuth.ts index ac6426fad7..f2ac897ffa 100644 --- a/packages/dappmanager/src/api/auth/sessionAuth.ts +++ b/packages/dappmanager/src/api/auth/sessionAuth.ts @@ -74,7 +74,7 @@ export class AuthPasswordSession { throw new NotLoggedInError(); } } else { - // Sanity check for cookie existance + // Sanity check for cookie existence if (req.cookies) throw new NotLoggedInError(); else throw new NotLoggedInNoCookieError(); } diff --git a/packages/installer/src/dappGet/basic.ts b/packages/installer/src/dappGet/basic.ts index ccd72123e8..2b8b20df55 100644 --- a/packages/installer/src/dappGet/basic.ts +++ b/packages/installer/src/dappGet/basic.ts @@ -22,7 +22,7 @@ export default async function dappGetBasic( const dependencies = await dappGetFetcher.dependencies(dappnodeInstaller, req.name, req.ver); // Append dependencies in the list of DNPs to install - // Add current request to pacakages to install + // Add current request to packages to install const state = { ...dependencies, [req.name]: req.ver @@ -30,7 +30,7 @@ export default async function dappGetBasic( const alreadyUpdated: DappGetState = {}; const currentVersions: DappGetState = {}; - // The function below does not directly affect funcionality. + // The function below does not directly affect functionality. // However it would prevent already installed DNPs from installing try { const installedDnps = await listPackages(); @@ -39,7 +39,7 @@ export default async function dappGetBasic( const nextVersion = state[dnp.dnpName]; if (nextVersion && !shouldUpdate(prevVersion, nextVersion)) { // DNP is already updated. - // Remove from the success object and add it to the alreadyUpdatedd + // Remove from the success object and add it to the alreadyUpdated alreadyUpdated[dnp.dnpName] = state[dnp.dnpName]; delete state[dnp.dnpName]; } diff --git a/packages/installer/src/dappGet/dappGet.ts b/packages/installer/src/dappGet/dappGet.ts index 7e71f6a81e..4bb8d6cd18 100644 --- a/packages/installer/src/dappGet/dappGet.ts +++ b/packages/installer/src/dappGet/dappGet.ts @@ -17,7 +17,7 @@ export interface DappgetOptions { * Aggregates all relevant packages and their info given a specific request. * The resulting "repo" (dnps) is run through a brute force resolver. * It returns success when finds the first compatible combination of versions. - * Otherwise it will return an error formated object + * Otherwise it will return an error formatted object * * The criteria to qualify the "first" found combination is: * - The requested package has the highest version @@ -96,7 +96,7 @@ export async function dappGet( } const { success, message, state } = result; - // If the request could not be resolved, output a formated error: + // If the request could not be resolved, output a formatted error: if (!success) throw Error(`Could not find compatible state. ${message}`); // Otherwise, format the output @@ -107,7 +107,7 @@ export async function dappGet( const nextVersion = state[dnp.dnpName]; if (nextVersion && !shouldUpdate(prevVersion, nextVersion)) { // DNP is already updated. - // Remove from the success object and add it to the alreadyUpdatedd + // Remove from the success object and add it to the alreadyUpdated alreadyUpdated[dnp.dnpName] = state[dnp.dnpName]; delete state[dnp.dnpName]; } diff --git a/packages/installer/src/installer/getInstallerPackageData.ts b/packages/installer/src/installer/getInstallerPackageData.ts index 1cc507b092..2dd5dd46e5 100644 --- a/packages/installer/src/installer/getInstallerPackageData.ts +++ b/packages/installer/src/installer/getInstallerPackageData.ts @@ -105,7 +105,7 @@ function getInstallerPackageData( manifest: release.manifest.notifications ? { ...release.manifest, - // Apply notitications user settings if any otherwise use the default manifest notifications + // Apply notifications user settings if any otherwise use the default manifest notifications notifications: notificationsSettings ?? release.manifest.notifications } : manifest, diff --git a/packages/notifications/src/manifest.ts b/packages/notifications/src/manifest.ts index 61386686c3..e4aed74d34 100644 --- a/packages/notifications/src/manifest.ts +++ b/packages/notifications/src/manifest.ts @@ -95,7 +95,7 @@ export class NotificationsManifest { // If no previous version exists, return the new custom endpoint as-is if (!oldCustomEndpoint) return newCustomEndpoint; - // Copy all fields from the new custom endpoint, but preserve old enabled and metric.treshold + // Copy all fields from the new custom endpoint, but preserve old enabled and metric.threshold const mergedCustomEndpoint: CustomEndpoint = { ...newCustomEndpoint, enabled: oldCustomEndpoint.enabled }; if (mergedCustomEndpoint.metric && oldCustomEndpoint.metric && oldCustomEndpoint.metric.treshold !== undefined) { mergedCustomEndpoint.metric.treshold = oldCustomEndpoint.metric.treshold;