@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/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",