@exodus/assets-feature 7.2.1 → 7.2.2

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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.2.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.2.1...@exodus/assets-feature@7.2.2) (2025-04-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix: provide pageNumber and pageSize to searchTokens (#12006)
11
+
6
12
  ## [7.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@7.2.0...@exodus/assets-feature@7.2.1) (2025-04-02)
7
13
 
8
14
  ### Bug Fixes
package/api/index.d.ts CHANGED
@@ -26,6 +26,8 @@ declare const assetsApiDefinition: {
26
26
  lifecycleStatus?: TokenStatus[]
27
27
  query?: string
28
28
  excludeTags?: string[]
29
+ pageNumber?: number
30
+ pageSize?: number
29
31
  })
30
32
  updateTokens(): Promise<void>
31
33
  addTokens(params: {
@@ -369,7 +369,14 @@ export class AssetsModule {
369
369
  this.#flushChanges({ updated: updatedAssets, disabled })
370
370
  }
371
371
 
372
- searchTokens = async ({ baseAssetName, lifecycleStatus, query, excludeTags = ['offensive'] }) => {
372
+ searchTokens = async ({
373
+ baseAssetName,
374
+ lifecycleStatus,
375
+ query,
376
+ excludeTags = ['offensive'],
377
+ pageNumber,
378
+ pageSize,
379
+ }) => {
373
380
  assert(
374
381
  !baseAssetName || typeof baseAssetName === 'string' || Array.isArray(baseAssetName),
375
382
  'searchTokens(): baseAssetName must be a string or an array if supplied'
@@ -388,7 +395,7 @@ export class AssetsModule {
388
395
 
389
396
  const tokens = await this.#fetch(
390
397
  'search',
391
- { baseAssetName: baseAssetNames, lifecycleStatus, query, excludeTags },
398
+ { baseAssetName: baseAssetNames, lifecycleStatus, query, excludeTags, pageNumber, pageSize },
392
399
  'tokens'
393
400
  )
394
401
  const validTokens = tokens.filter(this.#validateCustomToken)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "license": "MIT",
5
5
  "description": "This Exodus SDK feature provides access to instances of all blockchain asset adapters supported by the wallet, and enables you to search for and add custom tokens at runtime.",
6
6
  "type": "module",
@@ -54,7 +54,7 @@
54
54
  "@exodus/bitcoin-plugin": "^1.29.1",
55
55
  "@exodus/bitcoinregtest-plugin": "^1.11.0",
56
56
  "@exodus/bitcointestnet-plugin": "^1.13.1",
57
- "@exodus/blockchain-metadata": "^15.9.2",
57
+ "@exodus/blockchain-metadata": "^15.10.0",
58
58
  "@exodus/cardano-lib": "^2.2.0",
59
59
  "@exodus/combined-assets-meta": "^3.0.0",
60
60
  "@exodus/cosmos-plugin": "^1.3.3",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "560e85813d18b278485be99bc9905b6e1e06d507"
81
+ "gitHead": "f34be287dba62ba8e3872c90bf6f0973b07ea2d6"
82
82
  }