@raketa-cloud/admin 0.0.42 → 0.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -368,6 +368,13 @@ export default class FormBuilder extends HTMLBuilder {
368
368
  return this[as](name, { ...rest, label });
369
369
  }
370
370
 
371
+ if (rest.type === "hidden") {
372
+ return this.tag("input", null, {
373
+ name: toFormName(name),
374
+ ...rest,
375
+ });
376
+ }
377
+
371
378
  const defaultLabel = opts?.label || this.__getDefaultLabel(name);
372
379
  const htmlID = this.__getID(name);
373
380
  const error = this.__getError(name);
@@ -1,6 +1,6 @@
1
- import currentPath from "./currentPath.cjs";
2
1
  import ejs from "ejs";
3
2
  import { deleteCookie, getCookie, setCookie } from "hono/cookie";
3
+ import currentPath from "./currentPath.cjs";
4
4
  import AuthHelper from "./helpers/AuthHelper";
5
5
 
6
6
  function getAuthBearer(c) {
@@ -61,6 +61,7 @@ const setupAuthentication = (app, opts) => {
61
61
 
62
62
  app.get("/logout", (c) => {
63
63
  deleteCookie(c, AuthHelper.cookie_key);
64
+ deleteCookie(c, opts.remote.cookie_key);
64
65
  return c.redirect("/login");
65
66
  });
66
67