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

got-fetch

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

got-fetch - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [4.0.2](https://github.com/alexghr/got-fetch/compare/v4.0.1...v4.0.2) (2021-12-14)
### Bug Fixes
* **response:** returns final URL after all redirects ([#55](https://github.com/alexghr/got-fetch/issues/55)) ([0e7520d](https://github.com/alexghr/got-fetch/commit/0e7520dd5cb2a19524f78012f7670713b6085149)), closes [#54](https://github.com/alexghr/got-fetch/issues/54) [#49](https://github.com/alexghr/got-fetch/issues/49)
## [4.0.1](https://github.com/alexghr/got-fetch/compare/v4.0.0...v4.0.1) (2021-12-07)

@@ -2,0 +9,0 @@

9

out/lib/fetch.js

@@ -72,4 +72,9 @@ "use strict";

statusText: r.statusMessage,
type: 'default',
url: url.href
type: "default",
// according to spec this should be the final URL, after all redirects
url: r.redirectUrls.length > 0
// using Array.prototype.at would've been nice but it's not
// supported by anything below Node 16.8
? r.redirectUrls[r.redirectUrls.length - 1]
: url.href,
});

@@ -76,0 +81,0 @@ });

{
"name": "got-fetch",
"version": "4.0.1",
"version": "4.0.2",
"license": "MIT",

@@ -44,3 +44,3 @@ "description": "A fetch-compatible interface to the got HTTP client",

"@types/nock": "^11.1.0",
"@types/node": "^13.13.2",
"@types/node": "^16.11.12",
"@typescript-eslint/eslint-plugin": "^2.29.0",

@@ -52,4 +52,4 @@ "@typescript-eslint/parser": "^2.29.0",

"got": "^11.0.2",
"jest": "^25.4.0",
"nock": "^12.0.3",
"jest": "^27.4.3",
"nock": "^13.2.1",
"semantic-release": "^18.0.0",

@@ -56,0 +56,0 @@ "typescript": "^3.8.3"

Sorry, the diff of this file is not supported yet

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