Skip to content

Commit

Permalink
v0.0.6 Update RXJS
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenCodeforges committed Sep 26, 2018
1 parent ee91ab1 commit d79bec3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-gapi",
"version": "0.0.51",
"version": "0.0.6",
"description": "Angular 4+ Google api module ng-gapi",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"@angular/core": "^4.4.6",
"@angular/platform-server": "^4.4.6",
"@types/node": "7.0.10",
"rxjs": "^5.5.5",
"rxjs": "^6.3.3",
"typescript": "^2.6.2",
"zone.js": "^0.8.18"
}
Expand Down
11 changes: 6 additions & 5 deletions src/GoogleAuthService.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {Injectable} from "@angular/core";
import {Observable} from "rxjs/Observable";
import {Observer} from "rxjs/Observer";
import { of } from 'rxjs';
import{ mergeMap } from 'rxjs/operators';
import {GoogleApiService} from "./GoogleApiService";
import GoogleAuth = gapi.auth2.GoogleAuth;
import {mergeMap} from 'rxjs/operators';
import {of} from 'rxjs/internal/observable/of';
import {Observable} from 'rxjs/Observable';
import {Observer} from 'rxjs/Observer';

@Injectable()
export class GoogleAuthService {
Expand All @@ -18,7 +18,8 @@ export class GoogleAuthService {

public getAuth(): Observable<GoogleAuth> {
if (!this.GoogleAuth) {
return this.googleApi.onLoad().pipe(mergeMap(() => { return _this.loadGapiAuth(); }));
return this.googleApi.onLoad()
.pipe(mergeMap(() => this.loadGapiAuth()));
}
return of(this.GoogleAuth);
}
Expand Down

0 comments on commit d79bec3

Please sign in to comment.