Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
2
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

got - npm Package Compare versions

Comparing version 12.4.0 to 12.4.1

4

dist/source/core/index.js

@@ -434,2 +434,3 @@ import process from 'node:process';

}
// The `!destroyed` check is required to prevent `uploadProgress` being emitted after the stream was destroyed
if (!error) {

@@ -1002,3 +1003,4 @@ this._bodySize = this._uploadedSize;

this._request.write(chunk, encoding, (error) => {
if (!error) {
// The `!destroyed` check is required to prevent `uploadProgress` being emitted after the stream was destroyed
if (!error && !this._request.destroyed) {
this._uploadedSize += Buffer.byteLength(chunk, encoding);

@@ -1005,0 +1007,0 @@ const progress = this.uploadProgress;

@@ -1650,4 +1650,3 @@ import process from 'node:process';

Object.freeze(options.retry.statusCodes);
Object.freeze(options.context);
}
}
{
"name": "got",
"version": "12.4.0",
"version": "12.4.1",
"description": "Human-friendly and powerful HTTP request library for Node.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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