Skip to content

Commit 751928e

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent b147702 commit 751928e

File tree

11 files changed

+48
-20
lines changed

11 files changed

+48
-20
lines changed

packages-exp/auth-exp/src/core/auth/auth_impl.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ import { inMemoryPersistence } from '../persistence/in_memory';
3131
import { PersistenceUserManager } from '../persistence/persistence_user_manager';
3232
import { _getClientVersion, ClientPlatform } from '../util/version';
3333
import {
34-
DEFAULT_API_HOST, DEFAULT_API_SCHEME, DEFAULT_TOKEN_API_HOST, initializeAuth
34+
DEFAULT_API_HOST,
35+
DEFAULT_API_SCHEME,
36+
DEFAULT_TOKEN_API_HOST,
37+
initializeAuth
3538
} from './auth_impl';
3639

3740
use(sinonChai);

packages-exp/auth-exp/src/core/auth/auth_impl.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ import { getApp } from '@firebase/app-exp';
1919
import { FirebaseApp } from '@firebase/app-types-exp';
2020
import * as externs from '@firebase/auth-types-exp';
2121
import {
22-
CompleteFn, createSubscribe, ErrorFn, NextFn, Observer, Subscribe, Unsubscribe
22+
CompleteFn,
23+
createSubscribe,
24+
ErrorFn,
25+
NextFn,
26+
Observer,
27+
Subscribe,
28+
Unsubscribe
2329
} from '@firebase/util';
2430

2531
import { Auth, Config, Dependencies, NextOrObserver } from '../../model/auth';
@@ -76,10 +82,10 @@ class AuthImpl implements Auth {
7682
}
7783
languageCode: string | null = null;
7884
tenantId?: string | null | undefined;
79-
settings: externs.AuthSettings = {appVerificationDisabledForTesting: false};
80-
85+
settings: externs.AuthSettings = { appVerificationDisabledForTesting: false };
86+
8187
useDeviceLanguage(): void {
82-
throw new Error("Method not implemented.");
88+
throw new Error('Method not implemented.');
8389
}
8490

8591
updateCurrentUser(user: User | null): Promise<void> {

packages-exp/auth-exp/src/core/persistence/react_native.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
PersistenceValue,
2222
STORAGE_AVAILABLE_KEY
2323
} from './';
24-
import {ReactNativeAsyncStorage} from '@firebase/auth-types-exp';
24+
import { ReactNativeAsyncStorage } from '@firebase/auth-types-exp';
2525

2626
/**
2727
* Persistence class that wraps AsyncStorage imported from `react-native` or `@react-native-community/async-storage`.
@@ -48,9 +48,7 @@ export class ReactNativePersistence implements Persistence {
4848
await this.storage.setItem(key, JSON.stringify(value));
4949
}
5050

51-
async get<T extends PersistenceValue>(
52-
key: string
53-
): Promise<T | null> {
51+
async get<T extends PersistenceValue>(key: string): Promise<T | null> {
5452
const json = await this.storage.getItem(key);
5553
return json ? JSON.parse(json) : null;
5654
}

packages-exp/auth-exp/src/core/strategies/email.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@
1717

1818
import * as externs from '@firebase/auth-types-exp';
1919

20-
import { createAuthUri, CreateAuthUriRequest } from '../../api/authentication/create_auth_uri';
20+
import {
21+
createAuthUri,
22+
CreateAuthUriRequest
23+
} from '../../api/authentication/create_auth_uri';
2124
import * as api from '../../api/authentication/email_and_password';
2225
import { Operation } from '../../model/action_code_info';
2326
import {
24-
ActionCodeSettings, setActionCodeSettingsOnRequest
27+
ActionCodeSettings,
28+
setActionCodeSettingsOnRequest
2529
} from '../../model/action_code_settings';
2630
import { Auth } from '../../model/auth';
2731
import { User } from '../../model/user';

packages-exp/auth-exp/src/core/strategies/email_and_password.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import { resetPassword } from '../../api/account_management/email_and_password';
2121
import * as api from '../../api/authentication/email_and_password';
2222
import { ActionCodeInfo, Operation } from '../../model/action_code_info';
2323
import {
24-
ActionCodeSettings, setActionCodeSettingsOnRequest
24+
ActionCodeSettings,
25+
setActionCodeSettingsOnRequest
2526
} from '../../model/action_code_settings';
2627
import { Auth } from '../../model/auth';
2728
import { AUTH_ERROR_FACTORY, AuthErrorCode } from '../errors';

packages-exp/auth-exp/src/core/strategies/email_link.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import * as externs from '@firebase/auth-types-exp';
2020
import * as api from '../../api/authentication/email_and_password';
2121
import { Operation } from '../../model/action_code_info';
2222
import {
23-
ActionCodeSettings, setActionCodeSettingsOnRequest
23+
ActionCodeSettings,
24+
setActionCodeSettingsOnRequest
2425
} from '../../model/action_code_settings';
2526
import { Auth } from '../../model/auth';
2627
import { ActionCodeURL } from '../action_code_url';
@@ -41,7 +42,10 @@ export async function sendSignInLinkToEmail(
4142
await api.sendSignInLinkToEmail(auth as Auth, request);
4243
}
4344

44-
export function isSignInWithEmailLink(auth: externs.Auth, emailLink: string): boolean {
45+
export function isSignInWithEmailLink(
46+
auth: externs.Auth,
47+
emailLink: string
48+
): boolean {
4549
const actionCodeUrl = ActionCodeURL._fromLink(auth as Auth, emailLink);
4650
return actionCodeUrl?.operation === Operation.EMAIL_SIGNIN;
4751
}

packages-exp/auth-exp/src/core/user/reload.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ import { mockEndpoint } from '../../../test/api/helper';
2727
import { testUser } from '../../../test/mock_auth';
2828
import * as fetch from '../../../test/mock_fetch';
2929
import { Endpoint } from '../../api';
30-
import { APIUserInfo, ProviderUserInfo } from '../../api/account_management/account';
30+
import {
31+
APIUserInfo,
32+
ProviderUserInfo
33+
} from '../../api/account_management/account';
3134
import { ProviderId } from '../providers';
3235
import { _reloadWithoutSaving, reload } from './reload';
3336

packages-exp/auth-exp/src/core/user/reload.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
import * as externs from '@firebase/auth-types-exp';
1919

20-
import { getAccountInfo, ProviderUserInfo } from '../../api/account_management/account';
20+
import {
21+
getAccountInfo,
22+
ProviderUserInfo
23+
} from '../../api/account_management/account';
2124
import { User } from '../../model/user';
2225
import { ProviderId } from '../providers';
2326
import { assert } from '../util/assert';

packages-exp/auth-exp/src/model/auth.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
*/
1717

1818
import * as externs from '@firebase/auth-types-exp';
19-
import { CompleteFn, ErrorFn, NextFn, Observer, Unsubscribe } from '@firebase/util';
19+
import {
20+
CompleteFn,
21+
ErrorFn,
22+
NextFn,
23+
Observer,
24+
Unsubscribe
25+
} from '@firebase/util';
2026

2127
import { Persistence } from '../core/persistence';
2228
import { User } from './user';

packages-exp/auth-exp/src/model/id_token.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ export interface APIMFAInfo {
7171
mfaEnrollmentId?: string;
7272
displayName?: string;
7373
enrolledAt?: number;
74-
}
74+
}

packages-exp/auth-exp/test/mock_auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const TEST_TOKEN_HOST = 'localhost/token';
2525
export const TEST_SCHEME = 'mock';
2626
export const TEST_KEY = 'test-api-key';
2727

28-
export const mockAuth: Auth = {
28+
export const mockAuth: Auth = ({
2929
name: 'test-app',
3030
config: {
3131
apiKey: TEST_KEY,
@@ -46,7 +46,7 @@ export const mockAuth: Auth = {
4646
return () => {};
4747
},
4848
_notifyStateListeners() {}
49-
} as unknown as Auth;
49+
} as unknown) as Auth;
5050

5151
export function testUser(
5252
uid: string,

0 commit comments

Comments
 (0)