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.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.
|
|
2951
|
-
endpoint = config.
|
|
2950
|
+
if (config.legacyUploadUrl) {
|
|
2951
|
+
endpoint = config.legacyUploadUrl;
|
|
2952
2952
|
}
|
|
2953
2953
|
try {
|
|
2954
2954
|
const request = await fetch(`${endpoint}`, {
|