@frontman-ai/astro 0.4.2 → 0.5.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.
package/dist/toolbar.js CHANGED
@@ -62,9 +62,10 @@ function app_init(_canvas, app2, _server) {
62
62
  return;
63
63
  }
64
64
  let basePath = _getBasePath();
65
- let pathname = location.pathname.replace(/\/$/, "");
66
- let alreadyInFrontman = pathname === `/` + basePath || pathname.endsWith(`/` + basePath);
67
- let url = alreadyInFrontman ? pathname : pathname === "" ? `/` + basePath : pathname + `/` + basePath;
65
+ let rawPathname = location.pathname;
66
+ let pathname = rawPathname.endsWith("/") ? rawPathname : rawPathname + "/";
67
+ let alreadyInFrontman = pathname === `/` + basePath + `/` || pathname.endsWith(`/` + basePath + `/`);
68
+ let url = alreadyInFrontman ? pathname : pathname + basePath + `/`;
68
69
  window.location.assign(url);
69
70
  app2.toggleState({
70
71
  state: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontman-ai/astro",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "Astro integration for Frontman",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Frontman AI",
@@ -63,9 +63,9 @@
63
63
  "access": "public"
64
64
  },
65
65
  "devDependencies": {
66
+ "@frontman-ai/frontman-core": "*",
67
+ "@frontman-ai/frontman-protocol": "*",
66
68
  "@frontman/bindings": "*",
67
- "@frontman/frontman-core": "*",
68
- "@frontman/frontman-protocol": "*",
69
69
  "@rescript/runtime": "12.0.0-beta.14",
70
70
  "@rescript/webapi": "*",
71
71
  "@vitest/ui": "catalog:",