pinata 2.4.5 → 2.4.7
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/chunk-BK3CLF3Z.js +163 -0
- package/dist/chunk-BK3CLF3Z.js.map +1 -0
- package/dist/chunk-ME652TQB.mjs +154 -0
- package/dist/chunk-ME652TQB.mjs.map +1 -0
- package/dist/{index-CQFQEo3K.d.mts → gateway-tools-l9hk7kz4.d.mts} +1 -18
- package/dist/{index-CQFQEo3K.d.ts → gateway-tools-l9hk7kz4.d.ts} +1 -18
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +290 -298
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +21 -1
- package/dist/react/index.d.ts +21 -1
- package/dist/react/index.js +271 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +269 -1
- package/dist/react/index.mjs.map +1 -1
- package/package.json +9 -3
- package/dist/chunk-7UIMBFJ5.mjs +0 -423
- package/dist/chunk-7UIMBFJ5.mjs.map +0 -1
- package/dist/chunk-P556VRQU.js +0 -433
- package/dist/chunk-P556VRQU.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ValidationError, AuthenticationError, NetworkError, PinataError, convertToDesiredGateway, formatConfig } from './chunk-
|
|
2
|
-
export { AuthenticationError, NetworkError, PinataError, ValidationError, containsCID, convertToDesiredGateway
|
|
1
|
+
import { ValidationError, AuthenticationError, NetworkError, PinataError, convertToDesiredGateway, formatConfig } from './chunk-ME652TQB.mjs';
|
|
2
|
+
export { AuthenticationError, NetworkError, PinataError, ValidationError, containsCID, convertToDesiredGateway, formatConfig, getFileIdFromUrl } from './chunk-ME652TQB.mjs';
|
|
3
3
|
|
|
4
4
|
// src/core/functions/analytics/analyticsDateInterval.ts
|
|
5
5
|
var analyticsDateInterval = async (config, options) => {
|
|
@@ -2560,7 +2560,7 @@ var uploadFile = async (config, file, network, options) => {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
const chunkSize = 50 * 1024 * 1024;
|
|
2563
|
+
const chunkSize = 50 * 1024 * 1024 + 1;
|
|
2564
2564
|
const totalChunks = Math.ceil(file.size / chunkSize);
|
|
2565
2565
|
let offset = 0;
|
|
2566
2566
|
let uploadReq;
|