We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c9019 commit 65880b0Copy full SHA for 65880b0
index.mjs
@@ -95,7 +95,7 @@ export default class WooCommerceRestApi {
95
return url;
96
}
97
98
- const query = new Url(url, null, true).query;
+ const query = new Url(url, {}, true).query;
99
const values = [];
100
101
let queryString = "";
@@ -140,7 +140,7 @@ export default class WooCommerceRestApi {
140
141
// Include port.
142
if (this.port !== "") {
143
- const hostname = new Url(url).hostname;
+ const hostname = new Url(url, {}).hostname;
144
145
url = url.replace(hostname, hostname + ":" + this.port);
146
0 commit comments