@placeos/ts-client 4.2.6 → 4.3.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.es.js CHANGED
@@ -2449,7 +2449,7 @@ function ks(t) {
2449
2449
  }
2450
2450
  function xs(t, e = Et) {
2451
2451
  go(t.method, t.path, e);
2452
- const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2452
+ const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
2453
2453
  ...t,
2454
2454
  path_parts: r,
2455
2455
  path_structure: r.map(
@@ -2471,7 +2471,7 @@ function vo(t, e, n, r = Et) {
2471
2471
  return vr(t, e);
2472
2472
  }
2473
2473
  function bo(t, e, n = Et) {
2474
- const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), o = Object.keys(
2474
+ const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), o = Object.keys(
2475
2475
  n
2476
2476
  ).reduce((s, u) => (u.indexOf(`${t}|`) === 0 && s.push(n[u]), s), []);
2477
2477
  for (const s of o)
@@ -2488,7 +2488,7 @@ function bo(t, e, n = Et) {
2488
2488
  return null;
2489
2489
  }
2490
2490
  function So(t, e, n) {
2491
- const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), o = r[1] || "", s = je(o), u = i.split("/"), c = {};
2491
+ const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), o = r[1] || "", s = je(o), u = i.split("/"), c = {};
2492
2492
  for (let _ = 0; _ < e.path_structure.length; _++) {
2493
2493
  const m = e.path_structure[_];
2494
2494
  m && (c[m] = u[_]);