@maxtropy/v-components 0.0.3 → 0.0.4-beta.1

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.
@@ -8765,11 +8765,9 @@ function Vl(e = []) {
8765
8765
  for (let o = 0; o < t.length; o += 1) {
8766
8766
  const r = t[o];
8767
8767
  if (r.level === as.THREE) {
8768
- const s = r.transitPagePath ?? "";
8769
- if (!/^http/.test(s)) {
8770
- const a = s.split("/").slice(0, 4).join("/");
8771
- n[`${a}`] = r;
8772
- }
8768
+ const s = r.transitPagePath ?? "", i = /^http/.test(s);
8769
+ let a = "";
8770
+ i ? a = new URL(s).pathname.split("/").slice(0, 4).join("/") : a = s.split("/").slice(0, 4).join("/"), a !== "" && (n[`${a}`] = r);
8773
8771
  }
8774
8772
  }
8775
8773
  return n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.4-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],