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.js CHANGED
@@ -876,12 +876,7 @@ var getCid = async (config, cid) => {
876
876
  newUrl = `${newUrl}?pinataGatewayToken=${config?.pinataGatewayKey}`;
877
877
  }
878
878
  try {
879
- const request = await fetch(newUrl, {
880
- method: "GET",
881
- headers: {
882
- Source: "sdk/getCid"
883
- }
884
- });
879
+ const request = await fetch(newUrl);
885
880
  if (!request.ok) {
886
881
  const errorData = await request.json();
887
882
  if (request.status === 401) {