Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cardano-sdk/cardano-services-client

Package Overview
Dependencies
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardano-sdk/cardano-services-client - npm Package Compare versions

Comparing version 0.6.1-nightly.0 to 0.7.0-nightly.0

10

dist/cjs/TxSubmitProvider/txSubmitHttpProvider.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc