@cardano-sdk/cardano-services-client
Advanced tools
Comparing version 0.4.1-nightly.1 to 0.4.1-nightly.2
@@ -58,3 +58,3 @@ "use strict"; | ||
return mapError(null, method); | ||
if (error.code && ['ENOTFOUND', 'ECONNREFUSED'].includes(error.code)) { | ||
if ((0, util_1.isConnectionError)(error)) { | ||
throw new core_1.ProviderError(core_1.ProviderFailure.ConnectionFailure, error, error.code); | ||
@@ -61,0 +61,0 @@ } |
import { ProviderError, ProviderFailure } from '@cardano-sdk/core'; | ||
import { fromSerializableObject, toSerializableObject } from '@cardano-sdk/util'; | ||
import { fromSerializableObject, isConnectionError, toSerializableObject } from '@cardano-sdk/util'; | ||
import axios from 'axios'; | ||
@@ -52,3 +52,3 @@ const isEmptyResponse = (response) => response === ''; | ||
return mapError(null, method); | ||
if (error.code && ['ENOTFOUND', 'ECONNREFUSED'].includes(error.code)) { | ||
if (isConnectionError(error)) { | ||
throw new ProviderError(ProviderFailure.ConnectionFailure, error, error.code); | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "@cardano-sdk/cardano-services-client", | ||
"version": "0.4.1-nightly.1", | ||
"version": "0.4.1-nightly.2", | ||
"description": "Cardano Services Client", | ||
@@ -67,4 +67,4 @@ "engines": { | ||
"dependencies": { | ||
"@cardano-sdk/core": "^0.5.0-nightly.0", | ||
"@cardano-sdk/util": "^0.4.1-nightly.0", | ||
"@cardano-sdk/core": "^0.5.0-nightly.1", | ||
"@cardano-sdk/util": "^0.4.1-nightly.1", | ||
"axios": "^0.27.2", | ||
@@ -80,3 +80,3 @@ "class-validator": "^0.13.1", | ||
], | ||
"gitHead": "e45098de243a6aa8b23f328e1059981f565833c3" | ||
"gitHead": "8125a7c49cc627eda060fd45a7915bc7397e1b40" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
314809