namirasoft-core
Advanced tools
Comparing version 1.3.30 to 1.3.31
@@ -5,2 +5,3 @@ import { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
protected domain: string; | ||
suspend_errors: boolean; | ||
constructor(domain: string); | ||
@@ -7,0 +8,0 @@ protected abstract onBeforeRequest<ReqData = any>(url: string, config?: AxiosRequestConfig<ReqData>): void; |
@@ -24,2 +24,3 @@ "use strict"; | ||
this.domain = ""; | ||
this.suspend_errors = false; | ||
this.domain = domain; | ||
@@ -56,4 +57,6 @@ } | ||
} | ||
throw error; | ||
if (!this.suspend_errors) | ||
throw error; | ||
} | ||
return {}; | ||
}); | ||
@@ -60,0 +63,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.30", | ||
"version": "1.3.31", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -11,2 +11,3 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
protected domain: string = ""; | ||
public suspend_errors: boolean = false; | ||
constructor(domain: string) | ||
@@ -50,4 +51,6 @@ { | ||
} | ||
throw error; | ||
if (!this.suspend_errors) | ||
throw error; | ||
} | ||
return {} as any; | ||
} | ||
@@ -54,0 +57,0 @@ protected async _get<ResData = any, ReqData = any>(sub: string, query?: { [name: string]: ParsedNameValue }, config?: AxiosRequestConfig<ReqData>): Promise<{ response: AxiosResponse<ResData>, data: ResData }> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
343695
4264