extra-request 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3943,10 +3943,14 @@
3943
3943
  return (options) => {
3944
3944
  const base = es2018$c.go(() => {
3945
3945
  const url = new URL(options.url.href);
3946
- url.pathname = url.pathname.endsWith('/') ? url.pathname : `${url.pathname}/`;
3946
+ url.pathname = url.pathname.endsWith('/')
3947
+ ? url.pathname
3948
+ : `${url.pathname}/`;
3947
3949
  return url;
3948
3950
  });
3949
3951
  const url = new URL(pathname.replace(/^\/*/, ''), base);
3952
+ url.search = base.search;
3953
+ url.hash = base.hash;
3950
3954
  return {
3951
3955
  ...options,
3952
3956
  url