pinata 0.3.1 → 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/dist/index.mjs CHANGED
@@ -840,12 +840,7 @@ var getCid = async (config, cid) => {
840
840
  newUrl = `${newUrl}?pinataGatewayToken=${config?.pinataGatewayKey}`;
841
841
  }
842
842
  try {
843
- const request = await fetch(newUrl, {
844
- method: "GET",
845
- headers: {
846
- Source: "sdk/getCid"
847
- }
848
- });
843
+ const request = await fetch(newUrl);
849
844
  if (!request.ok) {
850
845
  const errorData = await request.json();
851
846
  if (request.status === 401) {