@moralisweb3/core
Advanced tools
Comparing version 2.6.4 to 2.6.5
@@ -7,2 +7,3 @@ import { AxiosError } from 'axios'; | ||
message: string | string[]; | ||
details?: Record<string, unknown>; | ||
}>['response']>; | ||
@@ -9,0 +10,0 @@ }; |
@@ -28,12 +28,16 @@ "use strict"; | ||
var getMessageFromApiRequestError = function (error) { | ||
var message = error.response.data.message; | ||
var _a = error.response.data, message = _a.message, details = _a.details; | ||
var result = 'Unknown error (no error info returned from API)'; | ||
if (Array.isArray(message)) { | ||
return message.join(', '); | ||
result = message.join(', '); | ||
} | ||
if (typeof message === 'string') { | ||
return message; | ||
else if (typeof message === 'string') { | ||
result = message; | ||
} | ||
return 'Unknown error (no error info returned from API)'; | ||
if (details) { | ||
result += " ".concat(JSON.stringify(details)); | ||
} | ||
return result; | ||
}; | ||
exports.getMessageFromApiRequestError = getMessageFromApiRequestError; | ||
//# sourceMappingURL=ApiRequestError.js.map |
@@ -21,3 +21,3 @@ import { Module, ModuleFactory } from './Modules/Module'; | ||
readonly name = "core"; | ||
static readonly libVersion = "2.6.4"; | ||
static readonly libVersion = "2.6.5"; | ||
constructor(modules: Modules, config: Config, logger: LoggerController); | ||
@@ -24,0 +24,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const LIB_VERSION = "2.6.4"; | ||
export declare const LIB_VERSION = "2.6.5"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LIB_VERSION = void 0; | ||
exports.LIB_VERSION = "2.6.4"; | ||
exports.LIB_VERSION = "2.6.5"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@moralisweb3/core", | ||
"author": "Moralis", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
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
161765
2392