Skip to content

Commit fbb6b86

Browse files
committed
fix: deps update
1 parent db7f7f4 commit fbb6b86

19 files changed

Lines changed: 1596 additions & 938 deletions

lib/common/child-process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class ChildProcess extends EventEmitter implements IChildProcess {
117117
let isResolved = false;
118118
let capturedOut = "";
119119
let capturedErr = "";
120-
let killTimer: NodeJS.Timer = null;
120+
let killTimer: NodeJS.Timeout = null;
121121

122122
if (spawnFromEventOptions && spawnFromEventOptions.timeout) {
123123
this.$logger.trace(

lib/common/file-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import * as shelljs from "shelljs";
1515
import { parseJson } from "./helpers";
1616
import { PACKAGE_JSON_FILE_NAME } from "../constants";
1717
import { EOL } from "os";
18-
import * as detectNewline from "detect-newline";
18+
import { detectNewline } from "detect-newline";
1919
import { IFileSystem, IReadFileOptions, IFsStats } from "./declarations";
2020
import { IInjector } from "./definitions/yok";
2121
import { create as createArchiver } from "archiver";

lib/common/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ export function getValueFromNestedObject(obj: any, key: string): any {
743743
}
744744

745745
const res: any[] = [];
746-
_.forEach(_obj, (v, k) => {
746+
_.forEach(_obj as any, (v, k) => {
747747
if (
748748
typeof v === "object" &&
749749
typeof k === "string" &&

lib/common/mobile/android/android-virtual-device-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ export class AndroidVirtualDeviceService
511511
return result;
512512
}
513513

514-
private clearNetConnection(client: net.Socket, timer: NodeJS.Timer) {
514+
private clearNetConnection(client: net.Socket, timer: NodeJS.Timeout) {
515515
if (client) {
516516
client.removeAllListeners();
517517
client.destroy();

lib/common/mobile/ios/device/ios-device-operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class IOSDeviceOperations
8888
let iterationsCount = 0;
8989
const maxIterationsCount = 3;
9090

91-
const intervalHandle: NodeJS.Timer = setInterval(() => {
91+
const intervalHandle: NodeJS.Timeout = setInterval(() => {
9292
if (foundDevice && !options.fullDiscovery) {
9393
resolve();
9494
return clearInterval(intervalHandle);

lib/common/mobile/mobile-core/devices-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export class DevicesService
3333
private _data: Mobile.IDevicesServicesInitializationOptions;
3434
private _otherDeviceDiscoveries: Mobile.IDeviceDiscovery[] = [];
3535
private _allDeviceDiscoveries: Mobile.IDeviceDiscovery[] = [];
36-
private deviceDetectionInterval: NodeJS.Timer;
37-
private emulatorDetectionInterval: NodeJS.Timer;
36+
private deviceDetectionInterval: NodeJS.Timeout;
37+
private emulatorDetectionInterval: NodeJS.Timeout;
3838

3939
constructor(
4040
private $logger: ILogger,

lib/common/opener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as xopen from "open";
1+
import xopen from "open";
22
import { IOpener } from "../declarations";
33
import { injector } from "./yok";
44

lib/common/plist-parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { readFileSync, readFile } from "simple-plist";
1+
import SimplePlist from "simple-plist";
22
import { IPlistParser } from "./declarations";
33
import { injector } from "./yok";
44

55
export class PlistParser implements IPlistParser {
66
public parseFile(plistFilePath: string): Promise<any> {
77
return new Promise<any>((resolve, reject) => {
8-
readFile(plistFilePath, (err: Error, obj: any) => {
8+
SimplePlist.readFile(plistFilePath, (err: Error, obj: any) => {
99
if (err) {
1010
reject(err);
1111
} else {
@@ -16,7 +16,7 @@ export class PlistParser implements IPlistParser {
1616
}
1717

1818
public parseFileSync(plistFilePath: string): any {
19-
return readFileSync(plistFilePath);
19+
return SimplePlist.readFileSync(plistFilePath);
2020
}
2121
}
2222
injector.register("plistParser", PlistParser);

lib/common/services/help-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class HelpService implements IHelpService {
231231
const outputText = await this.$microTemplateService.parseContent(helpText, {
232232
isHtml: true,
233233
});
234-
const htmlText = marked(outputText);
234+
const htmlText = await marked(outputText);
235235

236236
const filePath = pathToMdFile
237237
.replace(path.basename(pathToMdPages), path.basename(pathToHtmlPages))

lib/controllers/prepare-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class PrepareController extends EventEmitter {
361361

362362
const patterns = await this.getWatcherPatterns(platformData, projectData);
363363

364-
const watcherOptions: choki.WatchOptions = {
364+
const watcherOptions: choki.ChokidarOptions = {
365365
ignoreInitial: true,
366366
cwd: projectData.projectDir,
367367
awaitWriteFinish: {

0 commit comments

Comments
 (0)