electron-dl-manager
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "electron-dl-manager", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A library for implementing file downloads in Electron with 'save as' dialog and id support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -96,3 +96,3 @@ # Electron File Download Manager | ||
manager.download({ | ||
downloadId = manager.download({ | ||
window: browserWindow, | ||
@@ -103,4 +103,2 @@ url, | ||
onDownloadStarted: async ({ id, item, resolvedFilename }) => { | ||
downloadId = id; | ||
// Send the download id back to the renderer along | ||
@@ -138,2 +136,5 @@ // with some other data | ||
}); | ||
// Pause the download | ||
manager.pauseDownload(downloadId); | ||
}); | ||
@@ -165,6 +166,6 @@ ``` | ||
Starts a file download. | ||
Starts a file download. Returns the `id` of the download. | ||
```typescript | ||
download(params: DownloadParams): void | ||
download(params: DownloadParams): string | ||
``` | ||
@@ -171,0 +172,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
203836
296