stellar-sdk
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -5,2 +5,10 @@ # Changelog | ||
## [v2.2.3](https://github.com/stellar/js-stellar-sdk/compare/v2.2.2...v2.2.23) | ||
### Fix | ||
- Fix ServerApi's OrderbookRecord type ([#401](https://github.com/stellar/js-stellar-sdk/issues/401)) | ||
### Set | ||
- Set `name` in custom errors ([#403](https://github.com/stellar/js-stellar-sdk/issues/403)) | ||
## [v2.2.2](https://github.com/stellar/js-stellar-sdk/compare/v2.2.1...v2.2.2) | ||
@@ -7,0 +15,0 @@ |
@@ -31,2 +31,3 @@ "use strict"; | ||
_this.constructor = NotFoundError; | ||
_this.name = "NotFoundError"; | ||
return _this; | ||
@@ -46,2 +47,3 @@ } | ||
_this.constructor = BadRequestError; | ||
_this.name = "BadRequestError"; | ||
return _this; | ||
@@ -61,2 +63,3 @@ } | ||
_this.constructor = BadResponseError; | ||
_this.name = "BadResponseError"; | ||
return _this; | ||
@@ -76,2 +79,3 @@ } | ||
_this.constructor = InvalidSep10ChallengeError; | ||
_this.name = "InvalidSep10ChallengeError"; | ||
return _this; | ||
@@ -78,0 +82,0 @@ } |
@@ -205,13 +205,19 @@ import { Asset, AssetType } from "stellar-base"; | ||
bids: Array<{ | ||
price_r: {}; | ||
price: number; | ||
price_r: { | ||
d: number; | ||
n: number; | ||
}; | ||
price: string; | ||
amount: string; | ||
}>; | ||
asks: Array<{ | ||
price_r: {}; | ||
price: number; | ||
price_r: { | ||
d: number; | ||
n: number; | ||
}; | ||
price: string; | ||
amount: string; | ||
}>; | ||
selling: Asset; | ||
buying: Asset; | ||
base: Asset; | ||
counter: Asset; | ||
} | ||
@@ -218,0 +224,0 @@ interface PaymentPathRecord extends Horizon.BaseResponse { |
{ | ||
"name": "stellar-sdk", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "stellar-sdk is a library for working with the Stellar Horizon server.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -34,2 +34,3 @@ import { Horizon } from "./horizon_api"; | ||
this.constructor = NotFoundError; | ||
this.name = "NotFoundError"; | ||
} | ||
@@ -44,2 +45,3 @@ } | ||
this.constructor = BadRequestError; | ||
this.name = "BadRequestError"; | ||
} | ||
@@ -54,2 +56,3 @@ } | ||
this.constructor = BadResponseError; | ||
this.name = "BadResponseError"; | ||
} | ||
@@ -66,3 +69,4 @@ } | ||
this.constructor = InvalidSep10ChallengeError; | ||
this.name = "InvalidSep10ChallengeError"; | ||
} | ||
} |
@@ -316,6 +316,20 @@ import { Asset, AssetType } from "stellar-base"; | ||
export interface OrderbookRecord extends Horizon.BaseResponse { | ||
bids: Array<{ price_r: {}; price: number; amount: string }>; | ||
asks: Array<{ price_r: {}; price: number; amount: string }>; | ||
selling: Asset; | ||
buying: Asset; | ||
bids: Array<{ | ||
price_r: { | ||
d: number; | ||
n: number; | ||
}; | ||
price: string; | ||
amount: string | ||
}>; | ||
asks: Array<{ | ||
price_r: { | ||
d: number; | ||
n: number; | ||
}; | ||
price: string; | ||
amount: string | ||
}>; | ||
base: Asset; | ||
counter: Asset; | ||
} | ||
@@ -322,0 +336,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2956923
57888