chore(package): bump dependencies and lint rules

This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 7547a94c80
commit 21ad4734fa
178 changed files with 10565 additions and 4194 deletions
+34 -18
View File
@@ -1,8 +1,13 @@
import { Plugin, IonicNativePlugin, checkAvailability, InstanceProperty, CordovaInstance } from '@ionic-native/core';
import { Injectable } from '@angular/core';
import {
checkAvailability,
CordovaInstance,
InstanceProperty,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
export interface AuthenticationResult {
accessToken: string;
accesSTokenType: string;
expiresOn: Date;
@@ -18,7 +23,6 @@ export interface AuthenticationResult {
* @returns {String} The authorization header.
*/
createAuthorizationHeader(): string;
}
export interface TokenCache {
@@ -50,7 +54,6 @@ export interface UserInfo {
uniqueId: string;
}
/**
* @name MS ADAL
* @description
@@ -96,30 +99,30 @@ export interface UserInfo {
})
@Injectable()
export class MSAdal extends IonicNativePlugin {
createAuthenticationContext(authority: string, validateAuthority: boolean = true) {
createAuthenticationContext(
authority: string,
validateAuthority: boolean = true
) {
let authContext: any;
if (checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) === true) {
if (
checkAvailability(MSAdal.getPluginRef(), null, MSAdal.getPluginName()) ===
true
) {
authContext = new (MSAdal.getPlugin()).AuthenticationContext(authority);
}
return new AuthenticationContext(authContext);
}
}
/**
* @hidden
*/
export class AuthenticationContext {
@InstanceProperty authority: string;
@InstanceProperty
authority: string;
@InstanceProperty validateAuthority: boolean;
@InstanceProperty
validateAuthority: boolean;
@InstanceProperty
tokenCache: any;
@InstanceProperty tokenCache: any;
constructor(private _objectInstance: any) {}
@@ -138,7 +141,15 @@ export class AuthenticationContext {
@CordovaInstance({
otherPromise: true
})
acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise<AuthenticationResult> { return; }
acquireTokenAsync(
resourceUrl: string,
clientId: string,
redirectUrl: string,
userId?: string,
extraQueryParameters?: any
): Promise<AuthenticationResult> {
return;
}
/**
* Acquires token WITHOUT using interactive flow. It checks the cache to return existing result
@@ -153,6 +164,11 @@ export class AuthenticationContext {
@CordovaInstance({
otherPromise: true
})
acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId?: string): Promise<AuthenticationResult> { return; }
acquireTokenSilentAsync(
resourceUrl: string,
clientId: string,
userId?: string
): Promise<AuthenticationResult> {
return;
}
}