namirasoft-core
Advanced tools
Comparing version 1.3.68 to 1.3.69
@@ -45,4 +45,6 @@ "use strict"; | ||
if (error instanceof Error) { | ||
if (this.onError) | ||
if (this.onError) { | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
this.onError(error); | ||
} | ||
else { | ||
@@ -55,3 +57,3 @@ ConsoleOperation_1.ConsoleOperation.warning("onError function has not been properly set."); | ||
if (!this.suppressErrors) | ||
ErrorOperation_1.ErrorOperation.throwHTTP(error.response.status, error.response.data); | ||
ErrorOperation_1.ErrorOperation.throwHTTP(error.response.status, `Error calling url '${url}' ` + JSON.stringify(error.response.data)); | ||
} | ||
@@ -58,0 +60,0 @@ if (!this.suppressErrors) |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.68", | ||
"version": "1.3.69", | ||
"author": "Amir Abolhasani", | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -0,0 +0,0 @@ export type BaseDatabaseRow<ID> = |
@@ -0,0 +0,0 @@ export class BaseMetaColumn |
@@ -0,0 +0,0 @@ import { BaseMetaColumn } from "./BaseMetaColumn"; |
@@ -40,3 +40,6 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
if (this.onError) | ||
{ | ||
error.message = `Error calling url '${url}' ` + error.message; | ||
this.onError(error); | ||
} | ||
else | ||
@@ -50,3 +53,3 @@ { | ||
if (!this.suppressErrors) | ||
ErrorOperation.throwHTTP(error.response.status, error.response.data); | ||
ErrorOperation.throwHTTP(error.response.status, `Error calling url '${url}' ` + JSON.stringify(error.response.data)); | ||
} | ||
@@ -53,0 +56,0 @@ if (!this.suppressErrors) |
@@ -0,0 +0,0 @@ export class ConsoleOperation |
@@ -0,0 +0,0 @@ import { ErrorOperation } from "./ErrorOperation"; |
@@ -0,0 +0,0 @@ import { Country } from "./Country"; |
@@ -0,0 +0,0 @@ export class Country |
@@ -0,0 +0,0 @@ import { Country } from "./Country"; |
@@ -0,0 +0,0 @@ export class EncodingOperation |
@@ -0,0 +0,0 @@ import * as crypto from 'node:crypto'; |
@@ -0,0 +0,0 @@ import { HTTPError } from "./HTTPError"; |
@@ -0,0 +0,0 @@ let fs: any; |
@@ -0,0 +0,0 @@ import { BaseMetaColumn } from "./BaseMetaColumn"; |
@@ -0,0 +0,0 @@ export enum FilterItemColumnType |
@@ -0,0 +0,0 @@ import { ErrorOperation } from "./ErrorOperation"; |
@@ -0,0 +0,0 @@ export class GeoOperation |
@@ -0,0 +0,0 @@ import * as crypto from 'node:crypto'; |
@@ -0,0 +0,0 @@ export class HTTPError extends Error |
@@ -0,0 +0,0 @@ export enum HTTPMethod |
@@ -0,0 +0,0 @@ export * from "./BaseDatabaseRow"; |
@@ -0,0 +0,0 @@ export abstract class IStorage |
@@ -0,0 +0,0 @@ import { EncodingOperation } from "./EncodingOperation"; |
@@ -0,0 +0,0 @@ import { IStorage } from "./IStorage.js"; |
@@ -0,0 +0,0 @@ import { IStorage } from "./IStorage"; |
@@ -0,0 +0,0 @@ export class NamingConvention |
@@ -0,0 +0,0 @@ import { ConvertService } from "./ConvertService"; |
@@ -0,0 +0,0 @@ let fs: any; |
@@ -0,0 +0,0 @@ import * as Phone from 'phone'; |
@@ -0,0 +0,0 @@ export class PriceOperation |
@@ -0,0 +0,0 @@ export class RegexTemplate |
@@ -0,0 +0,0 @@ export class StringOperation |
@@ -0,0 +0,0 @@ import moment from "moment"; |
@@ -0,0 +0,0 @@ import { ParsedNameValue } from "./ParsedNameValue"; |
@@ -0,0 +0,0 @@ export class VersionOperation |
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
363476
147
4646