From 6b044312e0eaafdb8ccd2758a3f7e30cdb4d938d Mon Sep 17 00:00:00 2001 From: gopherorg Date: Fri, 27 Jun 2025 11:54:52 +0800 Subject: [PATCH] chore: fix some minor issues in the comments Signed-off-by: gopherorg --- packages/@magic-sdk/provider/src/util/promise-tools.ts | 2 +- packages/@magic-sdk/provider/src/util/web-crypto.ts | 2 +- .../react-native-bare/src/react-native-webview-controller.tsx | 2 +- .../react-native-expo/src/react-native-webview-controller.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/@magic-sdk/provider/src/util/promise-tools.ts b/packages/@magic-sdk/provider/src/util/promise-tools.ts index 32d434112..5aac05b75 100644 --- a/packages/@magic-sdk/provider/src/util/promise-tools.ts +++ b/packages/@magic-sdk/provider/src/util/promise-tools.ts @@ -2,7 +2,7 @@ import { UserEventsEmit, UserEventsOnReceived } from '@magic-sdk/types'; import { TypedEmitter, EventsDefinition, createTypedEmitter } from './events'; /** - * Extends `Promise` with a polymorphic `this` type to accomodate arbitrary + * Extends `Promise` with a polymorphic `this` type to accommodate arbitrary * `Promise` API extensions. */ interface ExtendedPromise extends Promise { diff --git a/packages/@magic-sdk/provider/src/util/web-crypto.ts b/packages/@magic-sdk/provider/src/util/web-crypto.ts index 46d35c628..a148a3d6a 100644 --- a/packages/@magic-sdk/provider/src/util/web-crypto.ts +++ b/packages/@magic-sdk/provider/src/util/web-crypto.ts @@ -24,7 +24,7 @@ export function clearKeys() { } export async function createJwt() { - // will return undefiend is webcrypto is not supported + // will return undefined is webcrypto is not supported const publicJwk = await getPublicKey(); if (!publicJwk) { diff --git a/packages/@magic-sdk/react-native-bare/src/react-native-webview-controller.tsx b/packages/@magic-sdk/react-native-bare/src/react-native-webview-controller.tsx index 990a20dd1..ff31aee1a 100644 --- a/packages/@magic-sdk/react-native-bare/src/react-native-webview-controller.tsx +++ b/packages/@magic-sdk/react-native-bare/src/react-native-webview-controller.tsx @@ -80,7 +80,7 @@ export class ReactNativeWebViewController extends ViewController { // Validating this logic requires lots of React-specific boilerplate. We will // revisit this method for unit testing in the future. For now, manual testing // is sufficient (this logic is stable right now and not expected to change in - // the forseeable future). + // the foreseeable future). /* istanbul ignore next */ public Relayer: React.FC<{ backgroundColor?: string }> = backgroundColor => { const [show, setShow] = useState(false); diff --git a/packages/@magic-sdk/react-native-expo/src/react-native-webview-controller.tsx b/packages/@magic-sdk/react-native-expo/src/react-native-webview-controller.tsx index 8c0654800..baf4d3ffd 100644 --- a/packages/@magic-sdk/react-native-expo/src/react-native-webview-controller.tsx +++ b/packages/@magic-sdk/react-native-expo/src/react-native-webview-controller.tsx @@ -80,7 +80,7 @@ export class ReactNativeWebViewController extends ViewController { // Validating this logic requires lots of React-specific boilerplate. We will // revisit this method for unit testing in the future. For now, manual testing // is sufficient (this logic is stable right now and not expected to change in - // the forseeable future). + // the foreseeable future). /* istanbul ignore next */ public Relayer: React.FC<{ backgroundColor?: string }> = backgroundColor => { const [show, setShow] = useState(false); @@ -204,7 +204,7 @@ export class ReactNativeWebViewController extends ViewController { if ( event.nativeEvent && typeof event.nativeEvent.data === 'string' && - /* Backward comaptible */ + /* Backward compatible */ (event.nativeEvent.url === `${this.endpoint}/send/?params=${encodeURIComponent(this.parameters)}` || event.nativeEvent.url === `${this.endpoint}/send/?params=${this.parameters}`) ) {