Skip to content

Commit fb395ec

Browse files
committed
trim whitespace changes
1 parent 17035fe commit fb395ec

File tree

8 files changed

+73
-79
lines changed

8 files changed

+73
-79
lines changed

package-lock.json

Lines changed: 44 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-admin",
3-
"version": "11.8.0",
3+
"version": "11.9.0",
44
"description": "Firebase admin SDK for Node.js",
55
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
66
"license": "Apache-2.0",

src/auth/auth-config.ts

Lines changed: 13 additions & 13 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[];
@@ -1947,8 +1947,8 @@ export class RecaptchaAuthConfig implements RecaptchaConfig {
19471947
}
19481948
}
19491949

1950-
/**
1951-
* A password policy configuration for a project or tenant
1950+
/**
1951+
* A password policy configuration for a project or tenant
19521952
*/
19531953
export interface PasswordPolicyConfig {
19541954
/**
@@ -2003,7 +2003,7 @@ export interface CustomStrengthOptionsConfig {
20032003
/**
20042004
* Defines the password policy config class used to convert client side PasswordPolicyConfig
20052005
* to a format that is understood by the Auth server.
2006-
*
2006+
*
20072007
* @internal
20082008
*/
20092009
export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
@@ -2110,7 +2110,7 @@ export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
21102110
'"PasswordPolicyConfig.enforcementState" must be either "ENFORCE" or "OFF".',
21112111
);
21122112
}
2113-
2113+
21142114
if (typeof options.forceUpgradeOnSignin !== 'undefined') {
21152115
if (!validator.isBoolean(options.forceUpgradeOnSignin)) {
21162116
throw new FirebaseAuthError(
@@ -2254,7 +2254,7 @@ export class PasswordPolicyAuthConfig implements PasswordPolicyConfig {
22542254
}
22552255
}
22562256

2257-
/**
2257+
/**
22582258
* Server side password policy configuration.
22592259
*/
22602260
export interface PasswordPolicyAuthServerConfig {
@@ -2264,14 +2264,14 @@ export interface PasswordPolicyAuthServerConfig {
22642264
}
22652265

22662266
/**
2267-
* Server side password policy versions configuration.
2267+
* Server side password policy versions configuration.
22682268
*/
22692269
export interface PasswordPolicyVersionsAuthServerConfig {
22702270
customStrengthOptions?: CustomStrengthOptionsAuthServerConfig;
22712271
}
22722272

22732273
/**
2274-
* Server side password policy constraints configuration.
2274+
* Server side password policy constraints configuration.
22752275
*/
22762276
export interface CustomStrengthOptionsAuthServerConfig {
22772277
containsLowercaseCharacter?: boolean;

src/auth/project-config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class ProjectConfig {
9797
/**
9898
* The project's multi-factor auth configuration.
9999
* Supports only phone and TOTP.
100-
*/
100+
*/
101101
private readonly multiFactorConfig_?: MultiFactorConfig;
102102
/**
103103
* The multi-factor auth configuration.
@@ -112,6 +112,7 @@ export class ProjectConfig {
112112
* {@link https://cloud.google.com/terms/service-terms | Term of Service}.
113113
*/
114114
private readonly recaptchaConfig_?: RecaptchaAuthConfig;
115+
115116
/**
116117
* The password policy configuration for the project
117118
*/
@@ -201,7 +202,7 @@ export class ProjectConfig {
201202
}
202203
return request;
203204
}
204-
205+
205206
/**
206207
* The reCAPTCHA configuration.
207208
*/
@@ -219,7 +220,7 @@ export class ProjectConfig {
219220
if (typeof response.smsRegionConfig !== 'undefined') {
220221
this.smsRegionConfig = response.smsRegionConfig;
221222
}
222-
//Backend API returns "mfa" in case of project config and "mfaConfig" in case of tenant config.
223+
//Backend API returns "mfa" in case of project config and "mfaConfig" in case of tenant config.
223224
//The SDK exposes it as multiFactorConfig always.
224225
if (typeof response.mfa !== 'undefined') {
225226
this.multiFactorConfig_ = new MultiFactorAuthConfig(response.mfa);

src/auth/tenant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface UpdateTenantRequest {
6161
* The SMS configuration to update on the project.
6262
*/
6363
smsRegionConfig?: SmsRegionConfig;
64-
64+
6565
/**
6666
* The reCAPTCHA configuration to update on the tenant.
6767
* By enabling reCAPTCHA Enterprise integration, you are

test/integration/auth.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ describe('admin.auth', () => {
12221222
minLength: 6,
12231223
}
12241224
}
1225-
})
1225+
})
12261226
});
12271227

12281228
const mfaSmsEnabledTotpEnabledConfig: MultiFactorConfig = {
@@ -2022,7 +2022,7 @@ describe('admin.auth', () => {
20222022
}
20232023
return getAuth().tenantManager().updateTenant(createdTenantId, updateRequestNoMfaConfig)
20242024
});
2025-
2025+
20262026
it('updateTenant() should not update tenant reCAPTCHA config is undefined', () => {
20272027
expectedUpdatedTenant.tenantId = createdTenantId;
20282028
const updatedOptions2: UpdateTenantRequest = {

test/unit/auth/project-config.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ describe('ProjectConfig', () => {
322322
ProjectConfig.buildServerRequest(tenantOptionsClientRequest);
323323
}).to.throw('"PasswordPolicyConfig.constraints" must be defined.');
324324
});
325-
325+
326326
it('should throw on invalid constraints attribute', ()=> {
327327
const tenantOptionsClientRequest = deepCopy(updateProjectConfigRequest1) as any;
328328
tenantOptionsClientRequest.passwordPolicyConfig.constraints.invalidParameter = 'invalid';
@@ -404,7 +404,7 @@ describe('ProjectConfig', () => {
404404
tenantOptionsClientRequest.passwordPolicyConfig.constraints.minLength = 45;
405405
expect(() => {
406406
ProjectConfig.buildServerRequest(tenantOptionsClientRequest);
407-
}).to.throw('"PasswordPolicyConfig.constraints.minLength"' +
407+
}).to.throw('"PasswordPolicyConfig.constraints.minLength"' +
408408
' must be an integer between 6 and 30, inclusive.');
409409
});
410410

0 commit comments

Comments
 (0)