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
+16 -40
View File
@@ -1,5 +1,5 @@
import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core';
import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
export interface QRScannerStatus {
@@ -115,6 +115,7 @@ export interface QRScannerStatus {
})
@Injectable()
export class QRScanner extends IonicNativePlugin {
/**
* Request permission to use QR scanner.
* @return {Promise<QRScannerStatus>}
@@ -122,9 +123,7 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
prepare(): Promise<QRScannerStatus> {
return;
}
prepare(): Promise<QRScannerStatus> { return; }
/**
* Call this method to enable scanning. You must then call the `show` method to make the camera preview visible.
@@ -135,27 +134,21 @@ export class QRScanner extends IonicNativePlugin {
observable: true,
clearFunction: 'cancelScan'
})
scan(): Observable<string> {
return;
}
scan(): Observable<string> { return; }
/**
* Configures the native webview to have a transparent background, then sets the background of the <body> and <html> DOM elements to transparent, allowing the webview to re-render with the transparent background.
* @returns {Promise<QRScannerStatus>}
*/
@Cordova()
show(): Promise<QRScannerStatus> {
return;
}
show(): Promise<QRScannerStatus> { return; }
/**
* Configures the native webview to be opaque with a white background, covering the video preview.
* @returns {Promise<QRScannerStatus>}
*/
@Cordova()
hide(): Promise<QRScannerStatus> {
return;
}
hide(): Promise<QRScannerStatus> { return; }
/**
* Enable the device's light (for scanning in low-light environments).
@@ -164,18 +157,14 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
enableLight(): Promise<QRScannerStatus> {
return;
}
enableLight(): Promise<QRScannerStatus> { return; }
/**
* Destroy the scanner instance.
* @returns {Promise<QRScannerStatus>}
*/
@Cordova()
destroy(): Promise<QRScannerStatus> {
return;
}
destroy(): Promise<QRScannerStatus> { return; }
/**
* Disable the device's light.
@@ -184,9 +173,7 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
disableLight(): Promise<QRScannerStatus> {
return;
}
disableLight(): Promise<QRScannerStatus> { return; }
/**
* Use front camera
@@ -195,9 +182,7 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
useFrontCamera(): Promise<QRScannerStatus> {
return;
}
useFrontCamera(): Promise<QRScannerStatus> { return; }
/**
* Use back camera
@@ -206,9 +191,7 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
useBackCamera(): Promise<QRScannerStatus> {
return;
}
useBackCamera(): Promise<QRScannerStatus> { return; }
/**
* Set camera to be used.
@@ -218,36 +201,28 @@ export class QRScanner extends IonicNativePlugin {
@Cordova({
callbackStyle: 'node'
})
useCamera(camera: number): Promise<QRScannerStatus> {
return;
}
useCamera(camera: number): Promise<QRScannerStatus> { return; }
/**
* Pauses the video preview on the current frame and pauses scanning.
* @return {Promise<QRScannerStatus>}
*/
@Cordova()
pausePreview(): Promise<QRScannerStatus> {
return;
}
pausePreview(): Promise<QRScannerStatus> { return; }
/**
* Resumse the video preview and resumes scanning.
* @return {Promise<QRScannerStatus>}
*/
@Cordova()
resumePreview(): Promise<QRScannerStatus> {
return;
}
resumePreview(): Promise<QRScannerStatus> { return; }
/**
* Returns permission status
* @return {Promise<QRScannerStatus>}
*/
@Cordova()
getStatus(): Promise<QRScannerStatus> {
return;
}
getStatus(): Promise<QRScannerStatus> { return; }
/**
* Opens settings to edit app permissions.
@@ -256,4 +231,5 @@ export class QRScanner extends IonicNativePlugin {
sync: true
})
openSettings(): void {}
}