New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

downit

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downit - npm Package Compare versions

Comparing version 2.1.1 to 3.0.0-beta.1

10

index.js

@@ -24,2 +24,3 @@ 'use strict'

let start = (resume && stat && stat.size) ? stat.size - 1 : 0
, error

@@ -48,2 +49,4 @@ const req = (parsedUrl.protocol === 'https:' ? https : http).request(Object.assign(

flags: start ? 'r+' : 'w',
autoClose: true,
emitClose: true,
start

@@ -53,3 +56,3 @@ })

file.on('error', e => {
reject(e)
error = e
req.abort()

@@ -74,3 +77,6 @@ })

res.on('end', () => file.end())
file.on('finish', () => {
file.on('close', () => {
if (error)
return reject(error)
if (!res.complete && pending)

@@ -77,0 +83,0 @@ return resolve(download(url, dest, options))

2

package.json
{
"name": "downit",
"version": "2.1.1",
"version": "3.0.0-beta.1",
"description": "Resumeable downloader",

@@ -5,0 +5,0 @@ "main": "index.js",

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