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

ipull

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipull - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

11

dist/download/download-engine/engine/base-download-engine.js

@@ -6,3 +6,2 @@ import UrlInputError from "./error/url-input-error.js";

import { createFormattedStatus } from "../../transfer-visualize/format-transfer-status.js";
import InvalidContentLengthError from "./error/invalid-content-length-error.js";
import StatusCodeError from "../streams/download-engine-fetch-stream/errors/status-code-error.js";

@@ -102,10 +101,8 @@ const IGNORE_HEAD_STATUS_CODES = [405, 501, 404];

const downloadURL = newURL ?? part;
if (acceptRange && isNaN(length)) {
throw new InvalidContentLengthError(downloadURL);
}
downloadFile.totalSize += length || 0;
const size = length || 0;
downloadFile.totalSize += length;
downloadFile.parts.push({
downloadURL,
size: length || 0,
acceptRange
size,
acceptRange: size > 0 && acceptRange
});

@@ -112,0 +109,0 @@ if (counter++ === 0 && fileName) {

{
"name": "ipull",
"version": "3.1.0",
"version": "3.1.1",
"description": "The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.",

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

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