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

got

Package Overview
Dependencies
Maintainers
2
Versions
178
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 10.3.0 to 10.4.0

4

dist/source/as-promise.js

@@ -75,2 +75,4 @@ "use strict";

catch (error) {
// Fall back to `utf8`
response.body = body.toString();
if (isOk()) {

@@ -81,4 +83,2 @@ const parseError = new errors_1.ParseError(error, response, options);

}
// Fall back to `utf8`
response.body = body.toString();
}

@@ -85,0 +85,0 @@ try {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const duplexer3 = require("duplexer3");
const stream = require("stream");
const http_1 = require("http");

@@ -70,6 +69,8 @@ const stream_1 = require("stream");

}
stream.pipeline(response, output, error => {
if (error && error.message !== 'Premature close') {
emitError(new errors_1.ReadError(error, options));
}
// We cannot use `stream.pipeline(...)` here,
// because if we did then `output` would throw
// the original error before throwing `ReadError`.
response.pipe(output);
response.once('error', error => {
emitError(new errors_1.ReadError(error, options));
});

@@ -76,0 +77,0 @@ for (const destination of piped) {

{
"name": "got",
"version": "10.3.0",
"version": "10.4.0",
"description": "Human-friendly and powerful HTTP request library for Node.js",

@@ -47,3 +47,3 @@ "license": "MIT",

"@types/cacheable-request": "^6.0.1",
"cacheable-lookup": "^0.2.1",
"cacheable-lookup": "^1.0.0",
"cacheable-request": "^7.0.1",

@@ -61,2 +61,3 @@ "decompress-response": "^5.0.0",

"devDependencies": {
"@ava/typescript": "^1.0.0",
"@sindresorhus/tsconfig": "^0.7.0",

@@ -72,3 +73,3 @@ "@types/duplexer3": "^0.1.0",

"@typescript-eslint/parser": "^2.17.0",
"ava": "^2.4.0",
"ava": "^3.1.0",
"coveralls": "^3.0.4",

@@ -93,3 +94,2 @@ "create-test-server": "^3.0.1",

"tough-cookie": "^3.0.0",
"ts-node": "^8.5.2",
"typescript": "3.7.5",

@@ -110,10 +110,7 @@ "xo": "^0.25.3"

"timeout": "1m",
"babel": false,
"compileEnhancements": false,
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
"typescript": {
"rewritePaths": {
"test/": "dist/test/"
}
}
},

@@ -120,0 +117,0 @@ "nyc": {

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