chainlist-rpcs 0.3.0 → 0.3.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/modules/filter.js CHANGED
@@ -30,7 +30,7 @@ export function get_rpcs_for_chain( { chain_id, chain_name, allowed_tracking=[]
30
30
  }
31
31
 
32
32
  // Get the rpcs for this chain id
33
- let { rpcs: chain_rpcs } = rpcs[chain_id]
33
+ let { rpcs: chain_rpcs } = rpcs[chain_id] || { rpcs: [] }
34
34
 
35
35
  // Filter out the rpcs based on the tracking
36
36
  if( allowed_tracking.length ) chain_rpcs = chain_rpcs.filter( ( { tracking } ) => allowed_tracking.includes( tracking ) )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chainlist-rpcs",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "Wrapper around the rpcs as published by DefiLlama/chainlist.",
6
6
  "main": "app.js",
@@ -29,4 +29,4 @@
29
29
  "husky": "^9.1.6",
30
30
  "vitest": "^2.1.5"
31
31
  }
32
- }
32
+ }