Skip to content

Commit

Permalink
fix(aws-amplify-angular):change AmplifyService visibility to public f…
Browse files Browse the repository at this point in the history
…or template checking aws-amplify#3620
  • Loading branch information
hfahlbusch committed Jan 8, 2020
1 parent a811091 commit 75e3c0c
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class AuthenticatorComponentCore implements OnInit {
_signUpConfig: any = {};
_usernameAttributes: string = 'username';

constructor(protected amplifyService: AmplifyService) {
constructor(public amplifyService: AmplifyService) {
this.subscribe();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const template = `
template,
})
export class AuthenticatorIonicComponent extends AuthenticatorComponentCore {
constructor(protected amplifyService: AmplifyService) {
constructor(public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export class ConfirmSignInComponentCore implements OnInit {
errorMessage: string;
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('ConfiSignInComponent');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export class ConfirmSignInComponentIonic extends ConfirmSignInComponentCore {
code: string;
errorMessage: string;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class ConfirmSignUpComponentCore implements OnInit {
errorMessage: string;
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('ConfirmSignUpComponent');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ const template = `
template,
})
export class ConfirmSignUpComponentIonic extends ConfirmSignUpComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export class ForgotPasswordComponentCore implements OnInit {
country_code: string = '1';
email: string;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('ForgotPasswordComponent');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ const template = `
template,
})
export class ForgotPasswordComponentIonic extends ForgotPasswordComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export class GreetingComponentCore implements OnInit {
_usernameAttributes: string = 'username';
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('GreetingComponent');
this.subscribe();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const template = `
template,
})
export class GreetingComponentIonic extends GreetingComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export class RequireNewPasswordComponentCore implements OnInit {
errorMessage: string;
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('RequireNewPasswordComponent');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ const template = `
template,
})
export class RequireNewPasswordComponentIonic extends RequireNewPasswordComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class SignInComponentCore implements OnInit {
signInUsername = '';
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('SignInComponent');
this.onUsernameFieldChanged = this.onUsernameFieldChanged.bind(this);
}
Expand Down Expand Up @@ -203,11 +201,11 @@ export class SignInComponentCore implements OnInit {
const user =
this.username || this.email || this.local_phone_number
? {
username: this.username,
email: this.email,
local_phone_number: this.local_phone_number,
courtry_code: this.country_code,
}
username: this.username,
email: this.email,
local_phone_number: this.local_phone_number,
courtry_code: this.country_code,
}
: null;

return user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ const template = `
template,
})
export class SignInComponentIonic extends SignInComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ export class SignUpComponentCore implements OnInit {
defaultCountryCode: string;
protected logger: any;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.logger = this.amplifyService.logger('SignUpComponent');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ const template = `
template,
})
export class SignUpComponentIonic extends SignUpComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ export class UsernameFieldComponentCore implements OnInit {
_placeholder: string = '';
username: string;

constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
this.onPhoneFieldChanged = this.onPhoneFieldChanged.bind(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const template = `
template,
})
export class UsernameFieldComponentIonic extends UsernameFieldComponentCore {
constructor(
@Inject(AmplifyService) protected amplifyService: AmplifyService
) {
constructor(@Inject(AmplifyService) public amplifyService: AmplifyService) {
super(amplifyService);
}
}

0 comments on commit 75e3c0c

Please sign in to comment.