@ardrive/turbo-sdk 1.31.0-alpha.2 → 1.31.0
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/README.md +2 -2
- package/bundles/web.bundle.min.js +241 -459
- package/lib/cjs/common/chunked.js +15 -9
- package/lib/cjs/common/http.js +39 -4
- package/lib/cjs/common/payment.js +2 -1
- package/lib/cjs/common/upload.js +1 -4
- package/lib/cjs/utils/axiosClient.js +3 -37
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/chunked.js +16 -10
- package/lib/esm/common/http.js +40 -5
- package/lib/esm/common/payment.js +2 -1
- package/lib/esm/common/upload.js +1 -4
- package/lib/esm/utils/axiosClient.js +3 -14
- package/lib/esm/version.js +1 -1
- package/lib/types/common/chunked.d.ts.map +1 -1
- package/lib/types/common/http.d.ts +5 -3
- package/lib/types/common/http.d.ts.map +1 -1
- package/lib/types/common/payment.d.ts +1 -1
- package/lib/types/common/payment.d.ts.map +1 -1
- package/lib/types/common/upload.d.ts +2 -2
- package/lib/types/common/upload.d.ts.map +1 -1
- package/lib/types/types.d.ts +2 -2
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/utils/axiosClient.d.ts +8 -4
- package/lib/types/utils/axiosClient.d.ts.map +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -627,7 +627,7 @@ const uploadResult = await turbo.uploadFile({
|
|
|
627
627
|
|
|
628
628
|
##### Customize Multi-Part Upload Behavior
|
|
629
629
|
|
|
630
|
-
By default, the Turbo upload methods will split files
|
|
630
|
+
By default, the Turbo upload methods will split files that are larger than 10 MiB into chunks and send them to the upload service multi-part endpoints. This behavior can be customized with the following inputs:
|
|
631
631
|
|
|
632
632
|
- `chunkByteCount`: The maximum size in bytes for each chunk. Must be between 5 MiB and 500 MiB. Defaults to 5 MiB.
|
|
633
633
|
- `maxChunkConcurrency`: The maximum number of chunks to upload concurrently. Defaults to 5. Reducing concurrency will slow down uploads, but reduce memory utilization and serialize network calls. Increasing it will upload faster, but can strain available resources.
|
|
@@ -810,7 +810,7 @@ Revokes all credits shared from the connected wallet to the provided native addr
|
|
|
810
810
|
|
|
811
811
|
```typescript
|
|
812
812
|
const revokedApprovals = await turbo.revokeCredits({
|
|
813
|
-
|
|
813
|
+
revokedAddress: '2cor...VUa',
|
|
814
814
|
});
|
|
815
815
|
```
|
|
816
816
|
|