@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 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(opts);
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(opts);
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@layer-drone/protocol",
3
3
  "description": "Layer Drone protocol SDK with typed API client and event parsing",
4
- "version": "0.0.18-alpha",
4
+ "version": "0.1.0",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "dist",