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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -4
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3017,8 +3017,8 @@ var uploadFileArray = async (config, files, network, options) => {
|
|
|
3017
3017
|
};
|
|
3018
3018
|
}
|
|
3019
3019
|
let endpoint = "https://api.pinata.cloud/pinning/pinFileToIPFS";
|
|
3020
|
-
if (config.
|
|
3021
|
-
endpoint = config.
|
|
3020
|
+
if (config.legacyUploadUrl) {
|
|
3021
|
+
endpoint = config.legacyUploadUrl;
|
|
3022
3022
|
}
|
|
3023
3023
|
try {
|
|
3024
3024
|
const request = await fetch(`${endpoint}`, {
|