mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-17 22:23:13 +08:00
Update deps
This commit is contained in:
parent
bb6342b72a
commit
d96c230b2e
3814
package-lock.json
generated
3814
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,9 @@
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"build:core": "tsc -p tsconfig.core.json",
|
||||
"build:esm": "ts-node -P scripts scripts/tasks/build-esm",
|
||||
"build:es5": "ts-node -P scripts scripts/tasks/build-es5",
|
||||
"build:ngx": "ts-node -P scripts scripts/tasks/build-ngx",
|
||||
"build:esm": "ts-node -P scripts/tsconfig.json scripts/tasks/build-esm",
|
||||
"build:es5": "ts-node -P scripts/tsconfig.json scripts/tasks/build-es5",
|
||||
"build:ngx": "ts-node -P scripts/tsconfig.json scripts/tasks/build-ngx",
|
||||
"build": "npm run build:core && npm run build:esm && npm run build:ngx && npm run build:es5",
|
||||
"prebuild": "rm -rf dist",
|
||||
"npmpub": "ts-node -P scripts scripts/tasks/publish",
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user