pinata 2.2.0 → 2.2.1

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
@@ -2947,8 +2947,8 @@ var uploadFileArray = async (config, files, network, options) => {
2947
2947
  };
2948
2948
  }
2949
2949
  let endpoint = "https://api.pinata.cloud/pinning/pinFileToIPFS";
2950
- if (config.uploadUrl) {
2951
- endpoint = config.uploadUrl;
2950
+ if (config.legacyUploadUrl) {
2951
+ endpoint = config.legacyUploadUrl;
2952
2952
  }
2953
2953
  try {
2954
2954
  const request = await fetch(`${endpoint}`, {