@metamask-previews/ramps-controller 20.0.0-preview-eb263b0ee → 20.0.0-preview-5b293ee50

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/CHANGELOG.md CHANGED
@@ -9,12 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Added
11
11
 
12
- - Add the `extraFee` field to the `Quote` type so consumers can read the partner (MetaMask) fee the ramps API already returns alongside `providerFee` and `networkFee`. ([#9317](https://github.com/MetaMask/core/pull/9317))
13
12
  - Export `TERMINAL_ORDER_STATUSES` and `isTerminalOrderStatus()` so consuming clients can share the controller's terminal order status set instead of maintaining duplicate copies. ([#9679](https://github.com/MetaMask/core/pull/9679))
14
13
 
15
14
  ### Changed
16
15
 
17
- - Preserve backend provider ranking metadata in `RampsService.getProviders` and `RampsController.getProviders` responses. ([#9955](https://github.com/MetaMask/core/pull/9955))
18
16
  - Bump `@metamask/remote-feature-flag-controller` from `^5.0.0` to `^6.0.0` ([#9945](https://github.com/MetaMask/core/pull/9945))
19
17
 
20
18
  ## [20.0.0]
@@ -885,7 +885,7 @@ class RampsController extends base_controller_1.BaseController {
885
885
  options?.crypto,
886
886
  options?.payments,
887
887
  ]);
888
- const response = await this.executeRequest(cacheKey, async () => {
888
+ const { providers } = await this.executeRequest(cacheKey, async () => {
889
889
  return this.messenger.call('RampsService:getProviders', normalizedRegion, {
890
890
  provider: options?.provider,
891
891
  crypto: options?.crypto,
@@ -896,14 +896,13 @@ class RampsController extends base_controller_1.BaseController {
896
896
  resourceType: 'providers',
897
897
  isResultCurrent: () => __classPrivateFieldGet(this, _RampsController_instances, "m", _RampsController_isRegionCurrent).call(this, normalizedRegion),
898
898
  });
899
- const { providers } = response;
900
899
  this.update((state) => {
901
900
  const userRegionCode = state.userRegion?.regionCode;
902
901
  if (userRegionCode === undefined || userRegionCode === normalizedRegion) {
903
902
  state.providers.data = providers;
904
903
  }
905
904
  });
906
- return response;
905
+ return { providers };
907
906
  }
908
907
  /**
909
908
  * Fetches the list of payment methods for a given context.