@fonderie/admin 1.3.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/ui/app.global.js +10 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1606,7 +1606,7 @@ var uiHtml = (scriptPath) => `<!doctype html>
|
|
|
1606
1606
|
// src/module.ts
|
|
1607
1607
|
var DEFAULT_ADMIN_PATH = "/_admin";
|
|
1608
1608
|
var DEFAULT_CHECK_TIMEOUT_MS = 1e4;
|
|
1609
|
-
var ADMIN_VERSION = "1.
|
|
1609
|
+
var ADMIN_VERSION = "1.5.0";
|
|
1610
1610
|
function normalizeHostPattern(host) {
|
|
1611
1611
|
return host.trim().replace(/^[a-z][a-z0-9+.-]*:\/\//i, "").replace(/\/.*$/, "").toLowerCase();
|
|
1612
1612
|
}
|
|
@@ -1867,7 +1867,7 @@ var AdminModule = class {
|
|
|
1867
1867
|
at("/_admin/ui"),
|
|
1868
1868
|
...ui(async (ctx) => {
|
|
1869
1869
|
const here = (0, import_core5.normalizeRequestPath)(new URL(ctx.request.url).pathname);
|
|
1870
|
-
return new Response(uiHtml(`${here}/app.js`), {
|
|
1870
|
+
return new Response(uiHtml(`${here}/app.js?v=${encodeURIComponent(this.version)}`), {
|
|
1871
1871
|
headers: { "content-type": "text/html; charset=utf-8", "cache-control": "no-store" }
|
|
1872
1872
|
});
|
|
1873
1873
|
})
|