@dropgate/core 2.2.0-beta.2 → 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/README.md +5 -4
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/p2p/index.d.cts +2 -0
- package/dist/p2p/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -598,6 +598,7 @@ var DropgateClient = class {
|
|
|
598
598
|
file,
|
|
599
599
|
lifetimeMs,
|
|
600
600
|
encrypt,
|
|
601
|
+
maxDownloads,
|
|
601
602
|
filenameOverride,
|
|
602
603
|
onProgress,
|
|
603
604
|
onCancel,
|
|
@@ -676,7 +677,8 @@ var DropgateClient = class {
|
|
|
676
677
|
lifetime: lifetimeMs,
|
|
677
678
|
isEncrypted: effectiveEncrypt,
|
|
678
679
|
totalSize: totalUploadSize,
|
|
679
|
-
totalChunks
|
|
680
|
+
totalChunks,
|
|
681
|
+
...maxDownloads !== void 0 ? { maxDownloads } : {}
|
|
680
682
|
};
|
|
681
683
|
const initRes = await fetchJson(this.fetchFn, `${baseUrl}/upload/init`, {
|
|
682
684
|
method: "POST",
|