From 24691a9ce8d8e92c42a13de64f0038a2141c34b1 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 14 Jul 2021 15:46:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MiaoWoo --- packages/api/src/console.ts | 4 ++-- packages/polyfill/src/xml-http-request.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/console.ts b/packages/api/src/console.ts index bf69ec72..81566745 100644 --- a/packages/api/src/console.ts +++ b/packages/api/src/console.ts @@ -19,7 +19,7 @@ enum LogLevel { } export class MiaoScriptConsole implements Console { - Console: NodeJS.ConsoleConstructor + Console: any memory: any private static sourceMaps: { [key: string]: SourceMapBuilder } = {} @@ -190,7 +190,7 @@ export class MiaoScriptConsole implements Console { countReset(label?: string): void { throw new Error("Method not implemented.") } - dir(obj: any, options?: NodeJS.InspectOptions): void { + dir(obj: any, options?: any): void { throw new Error("Method not implemented.") } dirxml(...data: any[]): void { diff --git a/packages/polyfill/src/xml-http-request.ts b/packages/polyfill/src/xml-http-request.ts index 2d1b49f5..0d292288 100644 --- a/packages/polyfill/src/xml-http-request.ts +++ b/packages/polyfill/src/xml-http-request.ts @@ -74,7 +74,7 @@ type HttpHeader = { [key: string]: string } const executor = Executors.newCachedThreadPool() export class XMLHttpRequest { - private _timeout: number = 5000; + private _timeout: number = 120000; private _responseType: ResponseType = 'text'; private _withCredentials: boolean