namirasoft-core
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -21,2 +21,3 @@ "use strict"; | ||
const ConsoleOperation_1 = require("./ConsoleOperation"); | ||
const EnvService_1 = require("./EnvService"); | ||
class BaseServer { | ||
@@ -61,3 +62,5 @@ constructor(base_url) { | ||
if (this.onError) { | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
let BASESERVER_ERROR_VERBOSE = new EnvService_1.EnvService("BASESERVER_ERROR_VERBOSE", false).getBoolean(false); | ||
if (BASESERVER_ERROR_VERBOSE) | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
this.onError(error); | ||
@@ -64,0 +67,0 @@ } |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"author": "Amir Abolhasani", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/node": "^22.5.5", | ||
"@types/node": "^22.7.4", | ||
"axios": "^1.7.7", | ||
@@ -24,0 +24,0 @@ "buffer": "^6.0.3", |
@@ -7,2 +7,3 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
import { ConsoleOperation } from "./ConsoleOperation"; | ||
import { EnvService } from "./EnvService"; | ||
@@ -60,3 +61,5 @@ export abstract class BaseServer | ||
{ | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
let BASESERVER_ERROR_VERBOSE = new EnvService("BASESERVER_ERROR_VERBOSE", false).getBoolean(false); | ||
if (BASESERVER_ERROR_VERBOSE) | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
this.onError(error); | ||
@@ -63,0 +66,0 @@ } |
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
394093
5084
Updated@types/node@^22.7.4