
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@e-is/cordova-plugin-downloader
Advanced tools
Forked from integrator-cordova-plugin-downloader
This plugin is designed to support downloading files using Android DownloadManager.
Supported platforms
cordova plugin add @e-is/cordova-plugin-downloader
Create download request. For more info on parameter use refer to DownloadRequest
.
var request = {
//Location of the resource to download
uri: '',
//Title of this download, to be displayed in notifications
title: '',
//Description of this download, to be displayed in notifications
description: '',
//This will override the content type declared in the server's response.
mimeType: '',
//Set whether this download should be displayed in the system's Downloads UI. True by default
visibleInDownloadsUi: true,
//Control when a system notification is posted by the download manager.
notificationVisibility: 0,
// Set the local destination to a path within the application's external files directory
destinationInExternalFilesDir: {
dirType: '',
subPath: '' //Path within the external directory, including the destination filename
},
//Set the local destination to a path within the application's public external storage directory
destinationInExternalPublicDir: {
dirType: '',
subPath: '' //Path within the external directory, including the destination filename
},
//Set the local destination for the downloaded file.
destinationUri: '',
//Additional HTTP headers to be included with the download request.
headers: [{header: 'Authorization', value: 'Bearer iaksjfd89aklfdlkasdjf'}]
};
Starts download and returns location uri on completion
cordova.plugins.Downloader.download(request,
(location) => { alert('File is downloaded at ' + location) },
(err) => { alert(err)})
Based on Luka313's integrator-cordova-plugin-downloader
Based on Emil Bay's cordova-plugin-android-downloadmanager
FAQs
Downloader
We found that @e-is/cordova-plugin-downloader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.