pinata 1.0.0 → 1.0.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
@@ -103,8 +103,8 @@ var uploadFile = async (config, file, options) => {
103
103
  };
104
104
  }
105
105
  let endpoint = "https://uploads.pinata.cloud/v3";
106
- if (config.endpointUrl) {
107
- endpoint = config.endpointUrl;
106
+ if (config.uploadUrl) {
107
+ endpoint = config.uploadUrl;
108
108
  }
109
109
  try {
110
110
  const request = await fetch(`${endpoint}/files`, {
@@ -165,8 +165,8 @@ var uploadBase64 = async (config, base64String, options) => {
165
165
  };
166
166
  }
167
167
  let endpoint = "https://uploads.pinata.cloud/v3";
168
- if (config.endpointUrl) {
169
- endpoint = config.endpointUrl;
168
+ if (config.uploadUrl) {
169
+ endpoint = config.uploadUrl;
170
170
  }
171
171
  try {
172
172
  const request = await fetch(`${endpoint}/files`, {
@@ -239,8 +239,8 @@ var uploadUrl = async (config, url, options) => {
239
239
  };
240
240
  }
241
241
  let endpoint = "https://uploads.pinata.cloud/v3";
242
- if (config.endpointUrl) {
243
- endpoint = config.endpointUrl;
242
+ if (config.uploadUrl) {
243
+ endpoint = config.uploadUrl;
244
244
  }
245
245
  try {
246
246
  const request = await fetch(`${endpoint}/files`, {
@@ -301,8 +301,8 @@ var uploadJson = async (config, jsonData, options) => {
301
301
  };
302
302
  }
303
303
  let endpoint = "https://uploads.pinata.cloud/v3";
304
- if (config.endpointUrl) {
305
- endpoint = config.endpointUrl;
304
+ if (config.uploadUrl) {
305
+ endpoint = config.uploadUrl;
306
306
  }
307
307
  try {
308
308
  const request = await fetch(`${endpoint}/files`, {