angular-google-signin
Advanced tools
Comparing version 0.1.1 to 0.1.2
/// <reference types="gapi.auth2" /> | ||
import { AfterViewInit, EventEmitter } from '@angular/core'; | ||
import GoogleUser = gapi.auth2.GoogleUser; | ||
export declare class GoogleSignInSuccess { | ||
googleUser: GoogleUser; | ||
constructor(googleUser: GoogleUser); | ||
googleUser: gapi.auth2.GoogleUser; | ||
constructor(googleUser: gapi.auth2.GoogleUser); | ||
} | ||
@@ -8,0 +7,0 @@ export declare class GoogleSignInFailure { |
import {Component, AfterViewInit, ChangeDetectionStrategy, Input, Output, EventEmitter} from '@angular/core'; | ||
import GoogleUser = gapi.auth2.GoogleUser; | ||
export class GoogleSignInSuccess { | ||
public googleUser: GoogleUser; | ||
public googleUser: gapi.auth2.GoogleUser; | ||
constructor(googleUser: GoogleUser) { | ||
constructor(googleUser: gapi.auth2.GoogleUser) { | ||
this.googleUser = googleUser; | ||
@@ -106,3 +104,3 @@ } | ||
private handleSuccess(googleUser: GoogleUser) { | ||
private handleSuccess(googleUser: gapi.auth2.GoogleUser) { | ||
this.googleSignInSuccess.next(new GoogleSignInSuccess(googleUser)); | ||
@@ -119,3 +117,3 @@ } | ||
theme: this.theme, | ||
onsuccess: (googleUser: GoogleUser) => this.handleSuccess(googleUser), | ||
onsuccess: (googleUser: gapi.auth2.GoogleUser) => this.handleSuccess(googleUser), | ||
onfailure: () => this.handleFailure() | ||
@@ -122,0 +120,0 @@ }); |
{ | ||
"name": "angular-google-signin", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Google Sign-In component for Angular written in TypeScript", | ||
@@ -28,3 +28,2 @@ "main": "angular-google-signin.js", | ||
"devDependencies": { | ||
"@types/gapi.auth2": "0.0.31", | ||
"typescript": "^2.0.2", | ||
@@ -38,3 +37,6 @@ "@angular/core": "^2.0.0", | ||
"rxjs": "5.0.0-beta.12" | ||
}, | ||
"dependencies": { | ||
"@types/gapi.auth2": "^0.0.31" | ||
} | ||
} |
@@ -87,3 +87,3 @@ # angular-google-signin | ||
[tracker]: https://github.com/ntaoo/ng2_g_signin/issues | ||
[tracker]: https://github.com/miltador/angular-google-signin/issues | ||
@@ -90,0 +90,0 @@ ## Notes |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67137
4
3
319
+ Added@types/gapi.auth2@^0.0.31
+ Added@types/gapi@0.0.47(transitive)
+ Added@types/gapi.auth2@0.0.31(transitive)