Comparing version 12.4.0 to 12.4.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249912
5478