@fluffy-spoon/angular.authentication.jwt
Advanced tools
Comparing version 1.0.65 to 1.0.66
@@ -16,10 +16,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
export function getTokenContainer() { | ||
if (tokenContainer) | ||
return tokenContainer; | ||
return tokenContainer = new TokenContainer(); | ||
return tokenContainer ? tokenContainer : (tokenContainer = new TokenContainer()); | ||
} | ||
export function getAuthenticationService(http, tokenContainer, tokenUrl) { | ||
if (authenticationService) | ||
return authenticationService; | ||
return authenticationService = new AuthenticationService(http, tokenContainer, tokenUrl); | ||
return authenticationService ? | ||
authenticationService : | ||
(authenticationService = new AuthenticationService(http, tokenContainer, tokenUrl)); | ||
} | ||
@@ -26,0 +24,0 @@ var FluffySpoonAuthenticationModule = /** @class */ (function () { |
{ | ||
"name": "@fluffy-spoon/angular.authentication.jwt", | ||
"version": "1.0.65", | ||
"version": "1.0.66", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/Index.js", |
@@ -15,12 +15,12 @@ import { NgModule, FactoryProvider, ClassProvider, Injector, ModuleWithProviders, InjectionToken } from '@angular/core'; | ||
export function getTokenContainer() { | ||
if (tokenContainer) return tokenContainer; | ||
return tokenContainer = new TokenContainer(); | ||
return tokenContainer ? tokenContainer : (tokenContainer = new TokenContainer()); | ||
} | ||
export function getAuthenticationService(http: HttpClient, tokenContainer: TokenContainer, tokenUrl: string) { | ||
if (authenticationService) return authenticationService; | ||
return authenticationService = new AuthenticationService( | ||
http, | ||
tokenContainer, | ||
tokenUrl); | ||
return authenticationService ? | ||
authenticationService : | ||
(authenticationService = new AuthenticationService( | ||
http, | ||
tokenContainer, | ||
tokenUrl)); | ||
} | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
42155
784