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.
@@ -3902,10 +3902,14 @@ function appendPathname(pathname) {
3902
3902
  return (options) => {
3903
3903
  const base = es2018$c.go(() => {
3904
3904
  const url = new URL(options.url.href);
3905
- url.pathname = url.pathname.endsWith('/') ? url.pathname : `${url.pathname}/`;
3905
+ url.pathname = url.pathname.endsWith('/')
3906
+ ? url.pathname
3907
+ : `${url.pathname}/`;
3906
3908
  return url;
3907
3909
  });
3908
3910
  const url = new URL(pathname.replace(/^\/*/, ''), base);
3911
+ url.search = base.search;
3912
+ url.hash = base.hash;
3909
3913
  return Object.assign(Object.assign({}, options), { url });
3910
3914
  };
3911
3915
  }