@hypercerts-org/marketplace-sdk 0.1.4 → 0.1.5

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.js CHANGED
@@ -4889,7 +4889,7 @@ class ApiClient {
4889
4889
  chain: { id: chainId },
4890
4890
  });
4891
4891
  const fractions = await hypercertsClient.indexer.fractionsByClaim(hypercertId);
4892
- const tokenIds = fractions.claimTokens.map((fraction) => fraction.tokenID);
4892
+ const tokenIds = fractions?.claimTokens.map((fraction) => fraction.tokenID) || [];
4893
4893
  return supabaseHypercerts.from("marketplace-orders").select("*").containedBy("itemIds", tokenIds).throwOnError();
4894
4894
  };
4895
4895
  this.handleResponse = async (res) => {
package/dist/index.esm.js CHANGED
@@ -4887,7 +4887,7 @@ class ApiClient {
4887
4887
  chain: { id: chainId },
4888
4888
  });
4889
4889
  const fractions = await hypercertsClient.indexer.fractionsByClaim(hypercertId);
4890
- const tokenIds = fractions.claimTokens.map((fraction) => fraction.tokenID);
4890
+ const tokenIds = fractions?.claimTokens.map((fraction) => fraction.tokenID) || [];
4891
4891
  return supabaseHypercerts.from("marketplace-orders").select("*").containedBy("itemIds", tokenIds).throwOnError();
4892
4892
  };
4893
4893
  this.handleResponse = async (res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypercerts-org/marketplace-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -91,7 +91,7 @@
91
91
  "typescript": "^5.3.3"
92
92
  },
93
93
  "dependencies": {
94
- "@hypercerts-org/sdk": "1.4.3",
94
+ "@hypercerts-org/sdk": "2.0.0-alpha.4",
95
95
  "@supabase/supabase-js": "^2.39.2",
96
96
  "ethers": "^6.6.2",
97
97
  "merkletreejs": "^0.3.9"