mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Update deps
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as _ from 'lodash';
|
||||
import { fromEvent, Observable } from 'rxjs';
|
||||
import { isUndefined } from 'lodash';
|
||||
import { Observable, fromEvent } from 'rxjs';
|
||||
|
||||
import { CordovaOptions } from './interfaces';
|
||||
|
||||
@@ -525,7 +525,7 @@ export function wrapInstance(
|
||||
reject
|
||||
);
|
||||
}
|
||||
if (result && !_.isUndefined(result.then)) {
|
||||
if (result && !isUndefined(result.then)) {
|
||||
result.then(resolve, reject);
|
||||
} else {
|
||||
reject();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { Observable, Observer } from 'rxjs';
|
||||
import { checkAvailability, getPlugin } from './common';
|
||||
|
||||
function overrideFunction(pluginObj: any, methodName: string): Observable<any> {
|
||||
return new Observable(observer => {
|
||||
return new Observable((observer: Observer<any>) => {
|
||||
const availabilityCheck = checkAvailability(pluginObj, methodName);
|
||||
|
||||
if (availabilityCheck === true) {
|
||||
|
||||
Reference in New Issue
Block a user