feat: 修改默认超时时间

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2021-07-14 15:46:32 +08:00
parent 9fa13f49cd
commit 24691a9ce8
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ enum LogLevel {
} }
export class MiaoScriptConsole implements Console { export class MiaoScriptConsole implements Console {
Console: NodeJS.ConsoleConstructor Console: any
memory: any memory: any
private static sourceMaps: { [key: string]: SourceMapBuilder } = {} private static sourceMaps: { [key: string]: SourceMapBuilder } = {}
@ -190,7 +190,7 @@ export class MiaoScriptConsole implements Console {
countReset(label?: string): void { countReset(label?: string): void {
throw new Error("Method not implemented.") 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.") throw new Error("Method not implemented.")
} }
dirxml(...data: any[]): void { dirxml(...data: any[]): void {

View File

@ -74,7 +74,7 @@ type HttpHeader = { [key: string]: string }
const executor = Executors.newCachedThreadPool() const executor = Executors.newCachedThreadPool()
export class XMLHttpRequest { export class XMLHttpRequest {
private _timeout: number = 5000; private _timeout: number = 120000;
private _responseType: ResponseType = 'text'; private _responseType: ResponseType = 'text';
private _withCredentials: boolean private _withCredentials: boolean