Revert "chore(package): bump dependencies and lint rules"

This reverts commit 21ad4734fa.
This commit is contained in:
Daniel
2018-03-16 22:04:01 +01:00
parent 21ad4734fa
commit 6c938bfdb7
178 changed files with 4221 additions and 10592 deletions
+10 -22
View File
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
declare var serial: any;
@@ -58,6 +58,7 @@ export interface SerialOpenOptions {
})
@Injectable()
export class Serial extends IonicNativePlugin {
/**
* Request permission to connect to a serial device
*
@@ -68,9 +69,7 @@ export class Serial extends IonicNativePlugin {
successIndex: 1,
errorIndex: 2
})
requestPermission(options?: SerialPermissionOptions): Promise<any> {
return;
}
requestPermission(options?: SerialPermissionOptions): Promise<any> { return; }
/**
* Open connection to a serial device
@@ -79,9 +78,7 @@ export class Serial extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves when the serial connection is opened
*/
@Cordova()
open(options: SerialOpenOptions): Promise<any> {
return;
}
open(options: SerialOpenOptions): Promise<any> { return; }
/**
* Write to a serial connection
@@ -90,9 +87,7 @@ export class Serial extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves when the write is complete
*/
@Cordova()
write(data: any): Promise<any> {
return;
}
write(data: any): Promise<any> { return; }
/**
* Write hex to a serial connection
@@ -101,9 +96,7 @@ export class Serial extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves when the write is complete
*/
@Cordova()
writeHex(data: any): Promise<any> {
return;
}
writeHex(data: any): Promise<any> { return; }
/**
* Read from a serial connection
@@ -111,9 +104,7 @@ export class Serial extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves with data read from the serial connection
*/
@Cordova()
read(): Promise<any> {
return;
}
read(): Promise<any> { return; }
/**
* Watch the incoming data from the serial connection. Clear the watch by unsubscribing from the observable
@@ -123,9 +114,7 @@ export class Serial extends IonicNativePlugin {
@Cordova({
observable: true
})
registerReadCallback(): Observable<any> {
return;
}
registerReadCallback(): Observable<any> { return; }
/**
* Close the serial connection
@@ -133,7 +122,6 @@ export class Serial extends IonicNativePlugin {
* @return {Promise<any>} Returns a promise that resolves when the serial connection is closed
*/
@Cordova()
close(): Promise<any> {
return;
}
close(): Promise<any> { return; }
}