Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turbo-downloader

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turbo-downloader - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

6

dist/index.js

@@ -151,3 +151,3 @@ "use strict";

const stream = response.data;
const fd = yield fs_extra_1.default.open(this.options.destFile, 'a');
const fd = yield fs_extra_1.default.open(this.options.destFile, 'r+');
try {

@@ -173,3 +173,3 @@ yield new Promise((resolve, reject) => {

finally {
fs_extra_1.default.close(fd);
yield fs_extra_1.default.close(fd);
}

@@ -255,3 +255,3 @@ });

return __awaiter(this, void 0, void 0, function* () {
const fd = yield fs_extra_1.default.open(this.options.destFile, 'a');
const fd = yield fs_extra_1.default.open(this.options.destFile, 'w');
if (options.size > 0) {

@@ -258,0 +258,0 @@ const buffer = Buffer.alloc(DEFAULT_CHUNK_SIZE).fill(0);

@@ -51,6 +51,7 @@ "use strict";

url: fileForTesting,
destFile: tempFile,
destFile: tempFile
});
try {
yield downloader.download();
expect(fs.lstatSync(tempFile).size).toEqual(fileSize);
expect(checkMd5(tempFile, fileMd5)).toBeTruthy();

@@ -85,2 +86,3 @@ }

yield downloader.download();
expect(fs.lstatSync(tempFile).size).toEqual(fileSize);
expect(checkMd5(tempFile, fileMd5)).toBeTruthy();

@@ -87,0 +89,0 @@ }

{
"name": "turbo-downloader",
"author": "Denis Bezrukov <anthrax63@gmail.com>",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -45,3 +45,5 @@ "main": "dist/index.js",

"partial download",
"resumable download"
"resumable download",
"electron",
"typescript"
],

@@ -48,0 +50,0 @@ "license": "ISC",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc