refactor(lib): run prettier

This commit is contained in:
Daniel Sogl
2020-05-16 14:40:49 +02:00
parent f5133c691d
commit 511a02d50b
326 changed files with 3079 additions and 4092 deletions
@@ -36,7 +36,7 @@ export class SecureStorageEchoObject {
* @returns {Promise<string>}
*/
@CordovaInstance({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
get(key: string): Promise<string> {
return;
@@ -49,7 +49,7 @@ export class SecureStorageEchoObject {
* @returns {Promise<any>}
*/
@CordovaInstance({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
set(key: string, value: string): Promise<any> {
return;
@@ -61,7 +61,7 @@ export class SecureStorageEchoObject {
* @returns {Promise<string>} returns a promise that resolves with the key that was removed
*/
@CordovaInstance({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
remove(key: string): Promise<string> {
return;
@@ -72,7 +72,7 @@ export class SecureStorageEchoObject {
* @returns {Promise<string[]>} returns a promise that resolves with array of keys storage
*/
@CordovaInstance({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
keys(): Promise<string[]> {
return;
@@ -83,7 +83,7 @@ export class SecureStorageEchoObject {
* @returns {Promise<any>}
*/
@CordovaInstance({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
clear(): Promise<any> {
return;
@@ -150,7 +150,7 @@ export class SecureStorageEchoObject {
plugin: 'cordova-plugin-secure-storage-echo',
pluginRef: 'cordova.plugins.SecureStorage',
repo: 'https://github.com/mibrito707/cordova-plugin-secure-storage-echo',
platforms: ['Android', 'Browser', 'iOS', 'Windows']
platforms: ['Android', 'Browser', 'iOS', 'Windows'],
})
@Injectable()
export class SecureStorageEcho extends IonicNativePlugin {
@@ -162,12 +162,12 @@ export class SecureStorageEcho extends IonicNativePlugin {
@CordovaCheck()
create(store: string, options?: SecureStorageEchoOptions): Promise<SecureStorageEchoObject> {
return getPromise<SecureStorageEchoObject>((res: Function, rej: Function) => {
const instance = new (SecureStorageEcho.getPlugin())(
() => res(new SecureStorageEchoObject(instance)),
() => rej(new SecureStorageEchoObject(instance)),
store,
options
);
});
const instance = new (SecureStorageEcho.getPlugin())(
() => res(new SecureStorageEchoObject(instance)),
() => rej(new SecureStorageEchoObject(instance)),
store,
options
);
});
}
}