@cardano-sdk/cardano-services-client
Advanced tools
Comparing version 0.6.1-nightly.0 to 0.7.0-nightly.0
@@ -15,3 +15,3 @@ "use strict"; | ||
const txSubmissionErrorName = rawError.name; | ||
const ErrorClass = core_1.Cardano.TxSubmissionErrors[txSubmissionErrorName]; | ||
const ErrorClass = core_1.CardanoNodeErrors.TxSubmissionErrors[txSubmissionErrorName]; | ||
if (ErrorClass) { | ||
@@ -21,7 +21,7 @@ Object.setPrototypeOf(error, ErrorClass.prototype); | ||
} | ||
if (rawError.name === core_1.Cardano.UnknownTxSubmissionError.name) { | ||
Object.setPrototypeOf(error, core_1.Cardano.UnknownTxSubmissionError.prototype); | ||
if (rawError.name === core_1.CardanoNodeErrors.UnknownTxSubmissionError.name) { | ||
Object.setPrototypeOf(error, core_1.CardanoNodeErrors.UnknownTxSubmissionError.prototype); | ||
return error; | ||
} | ||
return new core_1.Cardano.UnknownTxSubmissionError(error); | ||
return new core_1.CardanoNodeErrors.UnknownTxSubmissionError(error); | ||
} | ||
@@ -41,3 +41,3 @@ return null; | ||
if (txSubmissionError) { | ||
const failure = txSubmissionError instanceof core_1.Cardano.UnknownTxSubmissionError | ||
const failure = txSubmissionError instanceof core_1.CardanoNodeErrors.UnknownTxSubmissionError | ||
? core_1.ProviderFailure.Unknown | ||
@@ -44,0 +44,0 @@ : core_1.ProviderFailure.BadRequest; |
@@ -1,2 +0,2 @@ | ||
import { Cardano, ProviderError, ProviderFailure } from '@cardano-sdk/core'; | ||
import { CardanoNodeErrors, ProviderError, ProviderFailure } from '@cardano-sdk/core'; | ||
import { createHttpProvider } from '../HttpProvider'; | ||
@@ -12,3 +12,3 @@ import { mapHealthCheckError } from '../mapHealthCheckError'; | ||
const txSubmissionErrorName = rawError.name; | ||
const ErrorClass = Cardano.TxSubmissionErrors[txSubmissionErrorName]; | ||
const ErrorClass = CardanoNodeErrors.TxSubmissionErrors[txSubmissionErrorName]; | ||
if (ErrorClass) { | ||
@@ -18,7 +18,7 @@ Object.setPrototypeOf(error, ErrorClass.prototype); | ||
} | ||
if (rawError.name === Cardano.UnknownTxSubmissionError.name) { | ||
Object.setPrototypeOf(error, Cardano.UnknownTxSubmissionError.prototype); | ||
if (rawError.name === CardanoNodeErrors.UnknownTxSubmissionError.name) { | ||
Object.setPrototypeOf(error, CardanoNodeErrors.UnknownTxSubmissionError.prototype); | ||
return error; | ||
} | ||
return new Cardano.UnknownTxSubmissionError(error); | ||
return new CardanoNodeErrors.UnknownTxSubmissionError(error); | ||
} | ||
@@ -38,3 +38,3 @@ return null; | ||
if (txSubmissionError) { | ||
const failure = txSubmissionError instanceof Cardano.UnknownTxSubmissionError | ||
const failure = txSubmissionError instanceof CardanoNodeErrors.UnknownTxSubmissionError | ||
? ProviderFailure.Unknown | ||
@@ -41,0 +41,0 @@ : ProviderFailure.BadRequest; |
{ | ||
"name": "@cardano-sdk/cardano-services-client", | ||
"version": "0.6.1-nightly.0", | ||
"version": "0.7.0-nightly.0", | ||
"description": "Cardano Services Client", | ||
@@ -54,3 +54,3 @@ "engines": { | ||
"devDependencies": { | ||
"@cardano-sdk/util-dev": "^0.5.1-nightly.0", | ||
"@cardano-sdk/util-dev": "^0.5.1-nightly.1", | ||
"@types/validator": "^13.7.1", | ||
@@ -68,3 +68,3 @@ "axios-mock-adapter": "^1.20.0", | ||
"dependencies": { | ||
"@cardano-sdk/core": "^0.6.1-nightly.0", | ||
"@cardano-sdk/core": "^0.7.0-nightly.0", | ||
"@cardano-sdk/util": "^0.6.1-nightly.0", | ||
@@ -82,3 +82,3 @@ "axios": "^0.27.2", | ||
], | ||
"gitHead": "01489cd2e4a1a1c8863fd654de4efc1ccf4db1d4" | ||
"gitHead": "0cb5ec1a26ee5956a4c82785fa9138cf144b9f4a" | ||
} |
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
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
353980
+ Added@cardano-ogmios/client@5.5.7(transitive)
+ Added@cardano-ogmios/schema@5.5.7(transitive)
+ Added@cardano-sdk/core@0.7.0(transitive)
+ Added@cardano-sdk/util@0.7.0(transitive)
- Removed@cardano-ogmios/client@5.5.5(transitive)
- Removed@cardano-ogmios/schema@5.5.5(transitive)
- Removed@cardano-sdk/core@0.6.1-nightly.0(transitive)
- Removed@dcspark/cardano-multiplatform-lib-browser@3.1.2(transitive)