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.
@@ -3937,10 +3937,14 @@ function appendPathname(pathname) {
3937
3937
  return (options) => {
3938
3938
  const base = es2018$c.go(() => {
3939
3939
  const url = new URL(options.url.href);
3940
- url.pathname = url.pathname.endsWith('/') ? url.pathname : `${url.pathname}/`;
3940
+ url.pathname = url.pathname.endsWith('/')
3941
+ ? url.pathname
3942
+ : `${url.pathname}/`;
3941
3943
  return url;
3942
3944
  });
3943
3945
  const url = new URL(pathname.replace(/^\/*/, ''), base);
3946
+ url.search = base.search;
3947
+ url.hash = base.hash;
3944
3948
  return {
3945
3949
  ...options,
3946
3950
  url