@nodeart/firebase-connector
Advanced tools
Comparing version 2.1.22 to 2.1.23
@@ -37,3 +37,3 @@ { | ||
}, | ||
"version": "2.1.22" | ||
"version": "2.1.23" | ||
} |
@@ -82,11 +82,13 @@ import { FirebaseAuthState } from 'angularfire2'; | ||
/** | ||
* transfrom hash to object | ||
* transform hash to object | ||
*/ | ||
.map(hash => hash.replace('#', '')) | ||
.map(params => params.split('&')) | ||
.map((arr: Array<string>) => arr.reduce((acc, elem) => { | ||
const [key, val] = elem.split('='); | ||
acc[key] = val; | ||
return acc; | ||
}, {})) | ||
.map(hash => | ||
hash.replace('#', '') | ||
.split('&') | ||
.reduce((acc, elem) => { | ||
const [key, val] = elem.split('='); | ||
acc[decodeURIComponent(key)] = decodeURIComponent(val); | ||
return acc; | ||
}, {}) | ||
) | ||
/** | ||
@@ -151,3 +153,3 @@ * once we have reached subscribe, trigger next on subject and block interval execution | ||
*/ | ||
public createUrl(obj, starter): string { | ||
public createUrl(obj : Object, starter?: string): string { | ||
const join = (arr: Array<string>): string => arr.join(','); | ||
@@ -161,3 +163,3 @@ return Object.keys(obj) | ||
}`, | ||
starter | ||
starter || '' | ||
) | ||
@@ -164,0 +166,0 @@ } |
@@ -17,3 +17,2 @@ import {NgModule} from "@angular/core"; | ||
PopupConfig, | ||
FbConfig, | ||
VkConfig | ||
@@ -20,0 +19,0 @@ } from "./authMethods/vk"; |
39656
945