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.
- package/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +5 -1
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +5 -1
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +5 -1
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +5 -1
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/transformers/append-pathname.js +5 -1
- package/lib/es2015/transformers/append-pathname.js.map +1 -1
- package/lib/es2018/transformers/append-pathname.js +5 -1
- package/lib/es2018/transformers/append-pathname.js.map +1 -1
- package/package.json +1 -1
package/dist/es2015/index.umd.js
CHANGED
|
@@ -3908,10 +3908,14 @@
|
|
|
3908
3908
|
return (options) => {
|
|
3909
3909
|
const base = es2018$c.go(() => {
|
|
3910
3910
|
const url = new URL(options.url.href);
|
|
3911
|
-
url.pathname = url.pathname.endsWith('/')
|
|
3911
|
+
url.pathname = url.pathname.endsWith('/')
|
|
3912
|
+
? url.pathname
|
|
3913
|
+
: `${url.pathname}/`;
|
|
3912
3914
|
return url;
|
|
3913
3915
|
});
|
|
3914
3916
|
const url = new URL(pathname.replace(/^\/*/, ''), base);
|
|
3917
|
+
url.search = base.search;
|
|
3918
|
+
url.hash = base.hash;
|
|
3915
3919
|
return Object.assign(Object.assign({}, options), { url });
|
|
3916
3920
|
};
|
|
3917
3921
|
}
|