wsp-ms-core 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -533,7 +533,7 @@ var _UUID = class _UUID extends ValueObject {
|
|
|
533
533
|
super(value);
|
|
534
534
|
}
|
|
535
535
|
validate(uuid) {
|
|
536
|
-
if (!_UUID.isValid(uuid)) {
|
|
536
|
+
if (!_UUID.isValid(uuid, { allowNil: true })) {
|
|
537
537
|
throw new InternalError(`Invalid uuid <${uuid}>`);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
@@ -2138,7 +2138,7 @@ var ExchangeRates = class _ExchangeRates extends BaseObject {
|
|
|
2138
2138
|
exchangeToBase(price) {
|
|
2139
2139
|
const rate = this.getRate(price.currency);
|
|
2140
2140
|
if (!rate) {
|
|
2141
|
-
throw new InternalError("INVALID_EXCHANGE_RATE_CURRENCY", `Avaiable rates: ${this.props.rates} - Base Currency:${this.props.base.value} - Price Currency: ${price.currency.value}`);
|
|
2141
|
+
throw new InternalError("INVALID_EXCHANGE_RATE_CURRENCY", `Avaiable rates: ${Object.keys(this.props.rates).toString()} - Base Currency:${this.props.base.value} - Price Currency: ${price.currency.value}`);
|
|
2142
2142
|
}
|
|
2143
2143
|
if (price.currency.value === this.props.base.value) {
|
|
2144
2144
|
return price;
|