@layer-drone/protocol 0.0.18-alpha → 0.1.0
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/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -627,7 +627,11 @@ var createClient = /* @__PURE__ */ __name((config = {}) => {
|
|
|
627
627
|
if (opts.body === void 0 || opts.body === "") {
|
|
628
628
|
opts.headers.delete("Content-Type");
|
|
629
629
|
}
|
|
630
|
-
const url = buildUrl(
|
|
630
|
+
const url = buildUrl({
|
|
631
|
+
...opts,
|
|
632
|
+
baseUrl: opts.baseUrl ?? _config?.baseUrl ?? "https://api.layerdrone.org",
|
|
633
|
+
url: opts.url ?? ""
|
|
634
|
+
});
|
|
631
635
|
const requestInit = {
|
|
632
636
|
redirect: "follow",
|
|
633
637
|
...opts
|
package/dist/index.mjs
CHANGED
|
@@ -571,7 +571,11 @@ var createClient = /* @__PURE__ */ __name((config = {}) => {
|
|
|
571
571
|
if (opts.body === void 0 || opts.body === "") {
|
|
572
572
|
opts.headers.delete("Content-Type");
|
|
573
573
|
}
|
|
574
|
-
const url = buildUrl(
|
|
574
|
+
const url = buildUrl({
|
|
575
|
+
...opts,
|
|
576
|
+
baseUrl: opts.baseUrl ?? _config?.baseUrl ?? "https://api.layerdrone.org",
|
|
577
|
+
url: opts.url ?? ""
|
|
578
|
+
});
|
|
575
579
|
const requestInit = {
|
|
576
580
|
redirect: "follow",
|
|
577
581
|
...opts
|