Comparing version 4.0.1 to 4.0.2
@@ -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 @@ |
@@ -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
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
21587
376