@fonderie/admin 1.4.0 → 1.5.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
@@ -1559,7 +1559,7 @@ var uiHtml = (scriptPath) => `<!doctype html>
1559
1559
  // src/module.ts
1560
1560
  var DEFAULT_ADMIN_PATH = "/_admin";
1561
1561
  var DEFAULT_CHECK_TIMEOUT_MS = 1e4;
1562
- var ADMIN_VERSION = "1.4.0";
1562
+ var ADMIN_VERSION = "1.5.0";
1563
1563
  function normalizeHostPattern(host) {
1564
1564
  return host.trim().replace(/^[a-z][a-z0-9+.-]*:\/\//i, "").replace(/\/.*$/, "").toLowerCase();
1565
1565
  }
@@ -1820,7 +1820,7 @@ var AdminModule = class {
1820
1820
  at("/_admin/ui"),
1821
1821
  ...ui(async (ctx) => {
1822
1822
  const here = normalizeRequestPath2(new URL(ctx.request.url).pathname);
1823
- return new Response(uiHtml(`${here}/app.js`), {
1823
+ return new Response(uiHtml(`${here}/app.js?v=${encodeURIComponent(this.version)}`), {
1824
1824
  headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" }
1825
1825
  });
1826
1826
  })