Skip to content

Commit 250c75e

Browse files
committed
remove extra whitespaces
1 parent 492cf4d commit 250c75e

77 files changed

Lines changed: 362 additions & 362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ export default tseslint.config(
8181
"format": ["camelCase"],
8282
"leadingUnderscore": "allow"
8383
},
84-
84+
8585
{
8686
"selector": "memberLike",
8787
"format": ["camelCase"]
8888
},
89-
89+
9090
{
9191
"selector": "typeLike",
9292
"format": ["PascalCase"]

src/app-check/app-check-api.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ export interface VerifyAppCheckTokenOptions {
4848
/**
4949
* To use the replay protection feature, set this to `true`. The {@link AppCheck.verifyToken}
5050
* method will mark the token as consumed after verifying it.
51-
*
51+
*
5252
* Tokens that are found to be already consumed will be marked as such in the response.
53-
*
53+
*
5454
* Tokens are only considered to be consumed if it is sent to App Check backend by calling the
5555
* {@link AppCheck.verifyToken} method with this field set to `true`; other uses of the token
5656
* do not consume it.
57-
*
57+
*
5858
* This replay protection feature requires an additional network call to the App Check backend
5959
* and forces your clients to obtain a fresh attestation from your chosen attestation providers.
6060
* This can therefore negatively impact performance and can potentially deplete your attestation
@@ -132,7 +132,7 @@ export interface VerifyAppCheckTokenResponse {
132132
* this field will contain the value `false`. The given token will then be
133133
* marked as `already_consumed` for all future invocations of this {@link AppCheck.verifyToken}
134134
* method for this token.
135-
*
135+
*
136136
* When this field is `true`, the caller is attempting to reuse a previously consumed token.
137137
* You should take precautions against such a caller; for example, you can take actions such as
138138
* rejecting the request or ask the caller to pass additional layers of security checks.

src/app/credential-internal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class ApplicationDefaultCredential implements Credential {
8585
}
8686

8787
/**
88-
* getIDToken returns a OIDC token from the compute metadata service
88+
* getIDToken returns a OIDC token from the compute metadata service
8989
* that can be used to make authenticated calls to audience
9090
* @param audience the URL the returned ID token will be used to call.
9191
*/
@@ -214,7 +214,7 @@ class ServiceAccount {
214214
throw new FirebaseAppError(AppErrorCodes.INVALID_CREDENTIAL, errorMessage);
215215
}
216216

217-
217+
218218
const forge = require('node-forge');
219219
try {
220220
forge.pki.privateKeyFromPem(this.privateKey);
@@ -476,7 +476,7 @@ function populateGoogleAuth(keyFile: string | object, httpAgent?: Agent)
476476
copyAttr(keyFile, keyFile, 'project_id', 'projectId');
477477
copyAttr(keyFile, keyFile, 'private_key', 'privateKey');
478478
copyAttr(keyFile, keyFile, 'client_email', 'clientEmail');
479-
479+
480480
client = auth.fromJSON(keyFile);
481481
}
482482
return { auth, client };

src/app/firebase-app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export class FirebaseApp implements App {
221221

222222
/**
223223
* Returns `true` if this app was initialized with auto-initialization.
224-
*
224+
*
225225
* @internal
226226
*/
227227
public autoInit(): boolean {
@@ -231,7 +231,7 @@ export class FirebaseApp implements App {
231231
/**
232232
* Returns `true` if the `FirebaseApp` instance was initialized with a custom
233233
* `Credential`.
234-
*
234+
*
235235
* @internal
236236
*/
237237
public customCredential() : boolean {

src/app/firebase-namespace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class FirebaseNamespace {
134134
return this.ensureApp(app).database();
135135
};
136136

137-
137+
138138
return Object.assign(fn, require('@firebase/database-compat/standalone'));
139139
}
140140

@@ -171,7 +171,7 @@ export class FirebaseNamespace {
171171
return this.ensureApp(app).firestore();
172172
};
173173

174-
174+
175175
const firestore = require('@google-cloud/firestore');
176176

177177
fn = Object.assign(fn, firestore.Firestore);

src/app/lifecycle.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class AppStore {
4141
}
4242

4343
// Check if an app already exists and, if so, ensure its `AppOptions` match
44-
// those of this `initializeApp` request.
44+
// those of this `initializeApp` request.
4545
if (!this.appStore.has(appName)) {
4646
const app = new FirebaseApp(options, appName, autoInit, this);
4747
this.appStore.set(app.name, app);
@@ -135,14 +135,14 @@ export class AppStore {
135135
/**
136136
* Validates that the `requestedOptions` and the `existingApp` options objects
137137
* do not have fields that would break deep equals comparisons.
138-
*
138+
*
139139
* @param requestedOptions The incoming `AppOptions` of a new `initailizeApp`
140140
* request.
141141
* @param existingApp An existing `FirebaseApp` with internal `options` to
142142
* compare against.
143-
*
143+
*
144144
* @throws FirebaseAppError if the objects cannot be deeply compared.
145-
*
145+
*
146146
* @internal
147147
*/
148148
function validateAppOptionsSupportDeepEquals(
@@ -189,11 +189,11 @@ function validateAppOptionsSupportDeepEquals(
189189
/**
190190
* Checks to see if the provided appName is a non-empty string and throws if it
191191
* is not.
192-
*
192+
*
193193
* @param appName A string representation of an App name.
194-
*
194+
*
195195
* @throws FirebaseAppError if appName is not of type string or is empty.
196-
*
196+
*
197197
* @internal
198198
*/
199199
function validateAppNameFormat(appName: string): void {
@@ -212,14 +212,14 @@ export const defaultAppStore = new AppStore();
212212
*
213213
* Creates a new instance of {@link App} if one doesn't exist, or returns an existing
214214
* `App` instance if one exists with the same `appName` and `options`.
215-
*
215+
*
216216
* Note, due to the inablity to compare `http.Agent` objects and `Credential` objects,
217217
* this function cannot support idempotency if either of `options.httpAgent` or
218-
* `options.credential` are defined. When either is defined, subsequent invocations will
218+
* `options.credential` are defined. When either is defined, subsequent invocations will
219219
* throw a `FirebaseAppError` instead of returning an `App` object.
220220
*
221221
* For example, to safely initialize an app that may already exist:
222-
*
222+
*
223223
* ```javascript
224224
* let app;
225225
* try {
@@ -268,7 +268,7 @@ export function getApp(appName: string = DEFAULT_APP_NAME): App {
268268

269269
/**
270270
* A (read-only) array of all initialized apps.
271-
*
271+
*
272272
* @returns An array containing all initialized apps.
273273
*/
274274
export function getApps(): App[] {

src/auth/action-code-settings-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface ActionCodeSettings {
102102
* Defines the custom Firebase Hosting domain to use when the link is to be opened
103103
* via a specified mobile app,
104104
* This is a replacement of Firebase Dynamic Link.
105-
* If none is provided,
105+
* If none is provided,
106106
* a default hosting domain will be used (for example, `example.firebaseapp.com`)
107107
*/
108108

src/auth/auth-api-request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,9 @@ export abstract class AbstractAuthRequestHandler {
16111611
public getEmailActionLink(
16121612
requestType: string, email: string,
16131613
actionCodeSettings?: ActionCodeSettings, newEmail?: string): Promise<string> {
1614-
let request = {
1615-
requestType,
1616-
email,
1614+
let request = {
1615+
requestType,
1616+
email,
16171617
returnOobLink: true,
16181618
...(typeof newEmail !== 'undefined') && { newEmail },
16191619
};

src/auth/auth-config.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ export interface MultiFactorConfig {
509509
factorIds?: AuthFactorType[];
510510

511511
/**
512-
* A list of multi-factor provider configurations.
512+
* A list of multi-factor provider configurations.
513513
* MFA providers (except phone) indicate whether they're enabled through this field. */
514514
providerConfigs?: MultiFactorProviderConfig[];
515515
}
516516

517517
/**
518-
* Interface representing a multi-factor auth provider configuration.
519-
* This interface is used for second factor auth providers other than SMS.
518+
* Interface representing a multi-factor auth provider configuration.
519+
* This interface is used for second factor auth providers other than SMS.
520520
* Currently, only TOTP is supported.
521521
*/export interface MultiFactorProviderConfig {
522522
/**
@@ -528,7 +528,7 @@ export interface MultiFactorConfig {
528528
}
529529

530530
/**
531-
* Interface representing configuration settings for TOTP second factor auth.
531+
* Interface representing configuration settings for TOTP second factor auth.
532532
*/
533533
export interface TotpMultiFactorProviderConfig {
534534
/**
@@ -540,7 +540,7 @@ export interface TotpMultiFactorProviderConfig {
540540
/**
541541
* Defines the multi-factor config class used to convert client side MultiFactorConfig
542542
* to a format that is understood by the Auth server.
543-
*
543+
*
544544
* @internal
545545
*/
546546
export class MultiFactorAuthConfig implements MultiFactorConfig {
@@ -555,7 +555,7 @@ export class MultiFactorAuthConfig implements MultiFactorConfig {
555555
*/
556556
public readonly factorIds: AuthFactorType[];
557557
/**
558-
* A list of multi-factor provider specific config.
558+
* A list of multi-factor provider specific config.
559559
* New MFA providers (except phone) will indicate enablement/disablement through this field.
560560
*/
561561
public readonly providerConfigs: MultiFactorProviderConfig[];
@@ -1751,7 +1751,7 @@ export interface RecaptchaManagedRule {
17511751
}
17521752

17531753
/**
1754-
* The managed rules for toll fraud provider, containing the enforcement status.
1754+
* The managed rules for toll fraud provider, containing the enforcement status.
17551755
* The toll fraud provider contains all SMS related user flows.
17561756
*/
17571757
export interface RecaptchaTollFraudManagedRule {
@@ -1814,23 +1814,23 @@ export interface RecaptchaConfig {
18141814
*/
18151815
useAccountDefender?: boolean;
18161816
/**
1817-
* Whether to use the rCE bot score for reCAPTCHA phone provider.
1817+
* Whether to use the rCE bot score for reCAPTCHA phone provider.
18181818
* Can only be true when the phone_enforcement_state is AUDIT or ENFORCE.
18191819
*/
18201820
useSmsBotScore?: boolean;
18211821
/**
1822-
* Whether to use the rCE SMS toll fraud protection risk score for reCAPTCHA phone provider.
1822+
* Whether to use the rCE SMS toll fraud protection risk score for reCAPTCHA phone provider.
18231823
* Can only be true when the phone_enforcement_state is AUDIT or ENFORCE.
18241824
*/
18251825
useSmsTollFraudProtection?: boolean;
18261826
/**
1827-
* The managed rules for toll fraud provider, containing the enforcement status.
1827+
* The managed rules for toll fraud provider, containing the enforcement status.
18281828
* The toll fraud provider contains all SMS related user flows.
18291829
*/
18301830
smsTollFraudManagedRules?: RecaptchaTollFraudManagedRule[];
18311831
}
18321832

1833-
/**
1833+
/**
18341834
* Server side recaptcha configuration.
18351835
*/
18361836
export interface RecaptchaAuthServerConfig {
@@ -1847,7 +1847,7 @@ export interface RecaptchaAuthServerConfig {
18471847
/**
18481848
* Defines the recaptcha config class used to convert client side RecaptchaConfig
18491849
* to a format that is understood by the Auth server.
1850-
*
1850+
*
18511851
* @internal
18521852
*/
18531853
export class RecaptchaAuthConfig implements RecaptchaConfig {
@@ -1860,7 +1860,7 @@ export class RecaptchaAuthConfig implements RecaptchaConfig {
18601860
public readonly useSmsTollFraudProtection?: boolean;
18611861
public readonly smsTollFraudManagedRules?: RecaptchaTollFraudManagedRule[];
18621862

1863-
1863+
18641864
/**
18651865
* The RecaptchaAuthConfig constructor.
18661866
*
@@ -1873,17 +1873,17 @@ export class RecaptchaAuthConfig implements RecaptchaConfig {
18731873
const filteredResponse = Object.fromEntries(
18741874
Object.entries(response).filter(([, value]) => value !== undefined)
18751875
);
1876-
1876+
18771877
// Explicitly map the 'tollFraudManagedRules' to 'smsTollFraudManagedRules'
18781878
if (filteredResponse.tollFraudManagedRules !== undefined) {
18791879
this.smsTollFraudManagedRules = filteredResponse.tollFraudManagedRules;
18801880
delete filteredResponse.tollFraudManagedRules; // Remove it if necessary
18811881
}
1882-
1882+
18831883
// Assign the remaining properties directly
18841884
Object.assign(this, filteredResponse);
1885-
}
1886-
1885+
}
1886+
18871887
/**
18881888
* Builds a server request object from the client-side RecaptchaConfig.
18891889
* Converts client-side fields to their server-side equivalents.
@@ -2119,8 +2119,8 @@ export class RecaptchaAuthConfig implements RecaptchaConfig {
21192119
}
21202120
}
21212121

2122-
/**
2123-
* A password policy configuration for a project or tenant
2122+
/**
2123+
* A password policy configuration for a project or tenant
21242124
*/
21252125
export interface PasswordPolicyConfig {
21262126
/**
@@ -2229,7 +2229,7 @@ export interface CustomStrengthOptionsConfig {
22292229
/**
22302230
* Defines the password policy config class used to convert client side PasswordPolicyConfig
22312231
* to a format that is understood by the Auth server.
2232-
*
2232+
*
22332233
* @internal
22342234
*/
22352235
export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
@@ -2336,7 +2336,7 @@ export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
23362336
'"PasswordPolicyConfig.enforcementState" must be either "ENFORCE" or "OFF".',
23372337
);
23382338
}
2339-
2339+
23402340
if (typeof options.forceUpgradeOnSignin !== 'undefined') {
23412341
if (!validator.isBoolean(options.forceUpgradeOnSignin)) {
23422342
throw new FirebaseAuthError(
@@ -2478,7 +2478,7 @@ export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
24782478
}
24792479
}
24802480

2481-
/**
2481+
/**
24822482
* Server side password policy configuration.
24832483
*/
24842484
export interface PasswordPolicyAuthServerConfig {
@@ -2488,14 +2488,14 @@ export interface PasswordPolicyAuthServerConfig {
24882488
}
24892489

24902490
/**
2491-
* Server side password policy versions configuration.
2491+
* Server side password policy versions configuration.
24922492
*/
24932493
export interface PasswordPolicyVersionsAuthServerConfig {
24942494
customStrengthOptions?: CustomStrengthOptionsAuthServerConfig;
24952495
}
24962496

24972497
/**
2498-
* Server side password policy constraints configuration.
2498+
* Server side password policy constraints configuration.
24992499
*/
25002500
export interface CustomStrengthOptionsAuthServerConfig {
25012501
containsLowercaseCharacter?: boolean;

src/auth/auth-namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import {
7373
TenantManager as TTenantManager,
7474
} from './tenant-manager';
7575

76-
import {
76+
import {
7777
DecodedIdToken as TDecodedIdToken,
7878
DecodedAuthBlockingToken as TDecodedAuthBlockingToken,
7979
} from './token-verifier';

0 commit comments

Comments
 (0)