pinata 2.2.0 → 2.2.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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- 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}`, {
|
|
@@ -4172,7 +4172,7 @@ var FilterQueue = class {
|
|
|
4172
4172
|
async *[Symbol.asyncIterator]() {
|
|
4173
4173
|
while (true) {
|
|
4174
4174
|
const items = await this.fetchPage();
|
|
4175
|
-
for (const item of items.
|
|
4175
|
+
for (const item of items.jobs) {
|
|
4176
4176
|
yield item;
|
|
4177
4177
|
}
|
|
4178
4178
|
if (!this.currentPageToken) {
|