Update deps

This commit is contained in:
Ibby Hadeed 2018-04-09 15:18:38 -04:00
parent bb6342b72a
commit d96c230b2e
4 changed files with 1319 additions and 2511 deletions

3814
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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();

View File

@ -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) {