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
@@ -1,12 +1,16 @@
import { Injectable } from '@angular/core';
import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core';
import {
CordovaCheck,
CordovaInstance,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
/**
* @hidden
*/
export class SecureStorageObject {
constructor(private _objectInstance: any) { }
constructor(private _objectInstance: any) {}
/**
* Gets a stored item
@@ -16,7 +20,9 @@ export class SecureStorageObject {
@CordovaInstance({
callbackOrder: 'reverse'
})
get(key: string): Promise<string> { return; }
get(key: string): Promise<string> {
return;
}
/**
* Stores a value
@@ -27,7 +33,9 @@ export class SecureStorageObject {
@CordovaInstance({
callbackOrder: 'reverse'
})
set(key: string, value: string): Promise<any> { return; }
set(key: string, value: string): Promise<any> {
return;
}
/**
* Removes a single stored item
@@ -37,7 +45,9 @@ export class SecureStorageObject {
@CordovaInstance({
callbackOrder: 'reverse'
})
remove(key: string): Promise<string> { return; }
remove(key: string): Promise<string> {
return;
}
/**
* Get all references from the storage.
@@ -46,7 +56,9 @@ export class SecureStorageObject {
@CordovaInstance({
callbackOrder: 'reverse'
})
keys(): Promise<string[]> { return; }
keys(): Promise<string[]> {
return;
}
/**
* Clear all references from the storage.
@@ -55,15 +67,18 @@ export class SecureStorageObject {
@CordovaInstance({
callbackOrder: 'reverse'
})
clear(): Promise<any> { return; }
clear(): Promise<any> {
return;
}
/**
* Brings up the screen-lock settings
* @returns {Promise<any>}
*/
@CordovaInstance()
secureDevice(): Promise<any> { return; }
secureDevice(): Promise<any> {
return;
}
}
/**
@@ -121,7 +136,6 @@ export class SecureStorageObject {
})
@Injectable()
export class SecureStorage extends IonicNativePlugin {
/**
* Creates a namespaced storage.
* @param store {string}
@@ -130,8 +144,11 @@ export class SecureStorage extends IonicNativePlugin {
@CordovaCheck()
create(store: string): Promise<SecureStorageObject> {
return new Promise((res: Function, rej: Function) => {
const instance = new (SecureStorage.getPlugin())(() => res(new SecureStorageObject(instance)), rej, store);
const instance = new (SecureStorage.getPlugin())(
() => res(new SecureStorageObject(instance)),
rej,
store
);
});
}
}