hazo_auth 4.4.0 → 4.4.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.
@@ -1,24 +1,14 @@
1
- // file_description: client-accessible wrapper for the main app logging service
1
+ // file_description: client-accessible wrapper for the main app logging service using hazo_logs
2
2
  // section: imports
3
- import { create_logger_service } from "../server/logging/logger_service.js";
4
-
5
- // section: constants
6
- const APP_NAMESPACE = "hazo_auth_ui";
3
+ import { createLogger } from "hazo_logs";
7
4
 
8
5
  // section: logger_instance
6
+ // Create a singleton logger for the hazo_auth package
7
+ const logger = createLogger("hazo_auth");
8
+
9
9
  /**
10
- * Creates a logger service instance for use in UI components
11
- * This uses the main app logging service and can be extended with an external logger
12
- * when provided as part of component setup
10
+ * Returns the hazo_auth logger instance
11
+ * Uses hazo_logs for consistent logging across hazo packages
13
12
  */
14
- export const create_app_logger = (
15
- external_logger?: {
16
- info?: (message: string, data?: Record<string, unknown>) => void;
17
- error?: (message: string, data?: Record<string, unknown>) => void;
18
- warn?: (message: string, data?: Record<string, unknown>) => void;
19
- debug?: (message: string, data?: Record<string, unknown>) => void;
20
- }
21
- ) => {
22
- return create_logger_service(APP_NAMESPACE, external_logger);
23
- };
13
+ export const create_app_logger = () => logger;
24
14
 
@@ -90,3 +90,6 @@ export async function validate_session_cookie(
90
90
 
91
91
 
92
92
 
93
+
94
+
95
+
@@ -176,3 +176,6 @@ export async function validate_session_token(
176
176
 
177
177
 
178
178
 
179
+
180
+
181
+
@@ -1,19 +1,17 @@
1
1
  // file_description: define shared application level types for the hazo_auth server
2
2
  // section: request_context_types
3
3
  import type { Request } from "express";
4
+ import type { Logger, LogData } from "hazo_logs";
4
5
 
5
6
  // section: logger_interface_definition
7
+ // Re-export hazo_logs types for backward compatibility
6
8
  export type logger_method = (
7
9
  message: string,
8
- data?: Record<string, unknown>
10
+ data?: LogData
9
11
  ) => void;
10
12
 
11
- export type logger_service = {
12
- debug: logger_method;
13
- info: logger_method;
14
- warn: logger_method;
15
- error: logger_method;
16
- };
13
+ // Use hazo_logs Logger type as logger_service for backward compatibility
14
+ export type logger_service = Logger;
17
15
 
18
16
  // section: configuration_types
19
17
  export type emailer_client = {
@@ -97,10 +97,10 @@ export const use_login_form = ({ dataClient, logger, redirectRoute, successMessa
97
97
  const logData = Object.assign({ filename: get_filename(), line_number: get_line_number(), email: values[LOGIN_FIELD_IDS.EMAIL], ip_address: clientIp, timestamp,
98
98
  success }, (errorMessage ? { error_message: errorMessage } : {}));
99
99
  if (success) {
100
- logger.info("login_attempt_successful", logData);
100
+ logger === null || logger === void 0 ? void 0 : logger.info("login_attempt_successful", logData);
101
101
  }
102
102
  else {
103
- logger.error("login_attempt_failed", logData);
103
+ logger === null || logger === void 0 ? void 0 : logger.error("login_attempt_failed", logData);
104
104
  }
105
105
  }, [logger, values, clientIp]);
106
106
  const handleSubmit = useCallback(async (event) => {
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,12 +1,6 @@
1
1
  /**
2
- * Creates a logger service instance for use in UI components
3
- * This uses the main app logging service and can be extended with an external logger
4
- * when provided as part of component setup
2
+ * Returns the hazo_auth logger instance
3
+ * Uses hazo_logs for consistent logging across hazo packages
5
4
  */
6
- export declare const create_app_logger: (external_logger?: {
7
- info?: (message: string, data?: Record<string, unknown>) => void;
8
- error?: (message: string, data?: Record<string, unknown>) => void;
9
- warn?: (message: string, data?: Record<string, unknown>) => void;
10
- debug?: (message: string, data?: Record<string, unknown>) => void;
11
- }) => import("../server/types/app_types").logger_service;
5
+ export declare const create_app_logger: () => import("hazo_logs").Logger;
12
6
  //# sourceMappingURL=app_logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app_logger.d.ts","sourceRoot":"","sources":["../../src/lib/app_logger.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,kBAAkB;IAChB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACjE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACjE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACnE,uDAGF,CAAC"}
1
+ {"version":3,"file":"app_logger.d.ts","sourceRoot":"","sources":["../../src/lib/app_logger.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,kCAAe,CAAC"}
@@ -1,14 +1,11 @@
1
- // file_description: client-accessible wrapper for the main app logging service
1
+ // file_description: client-accessible wrapper for the main app logging service using hazo_logs
2
2
  // section: imports
3
- import { create_logger_service } from "../server/logging/logger_service";
4
- // section: constants
5
- const APP_NAMESPACE = "hazo_auth_ui";
3
+ import { createLogger } from "hazo_logs";
6
4
  // section: logger_instance
5
+ // Create a singleton logger for the hazo_auth package
6
+ const logger = createLogger("hazo_auth");
7
7
  /**
8
- * Creates a logger service instance for use in UI components
9
- * This uses the main app logging service and can be extended with an external logger
10
- * when provided as part of component setup
8
+ * Returns the hazo_auth logger instance
9
+ * Uses hazo_logs for consistent logging across hazo packages
11
10
  */
12
- export const create_app_logger = (external_logger) => {
13
- return create_logger_service(APP_NAMESPACE, external_logger);
14
- };
11
+ export const create_app_logger = () => logger;
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/page_components/login.tsx"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAyC,EACzC,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,kBAAiD,EACjD,mBAAwC,EACxC,iBAAyC,EACzC,kBAAqC,EACrC,UAAU,EACV,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,cAAmB,2CA8CrB;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/page_components/login.tsx"],"names":[],"mappings":"AA+BA;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAyC,EACzC,sBAAoD,EACpD,gBAAuB,EACvB,oBAA4B,EAC5B,qBAAqC,EACrC,cAAoB,EACpB,kBAAiD,EACjD,mBAAwC,EACxC,iBAAyC,EACzC,kBAAqC,EACrC,UAAU,EACV,QAA4B,EAC5B,QAA4B,EAC5B,oBAAuC,GACxC,GAAE,cAAmB,2CA0CrB;AAED,eAAe,SAAS,CAAC"}
@@ -21,7 +21,6 @@ import { useEffect, useState } from "react";
21
21
  import login_layout from "../components/layouts/login";
22
22
  import { createLayoutDataClient } from "../components/layouts/shared/data/layout_data_client";
23
23
  import { create_sqlite_hazo_connect } from "../lib/hazo_connect_setup";
24
- import { create_app_logger } from "../lib/app_logger";
25
24
  // section: constants
26
25
  const DEFAULT_IMAGE_SRC = "/globe.svg";
27
26
  const DEFAULT_IMAGE_ALT = "Illustration of a globe representing secure authentication workflows";
@@ -35,20 +34,17 @@ const DEFAULT_IMAGE_BG = "#e2e8f0";
35
34
  */
36
35
  export function LoginPage({ redirectRoute, successMessage = "Successfully logged in", alreadyLoggedInMessage = "You are already logged in", showLogoutButton = true, showReturnHomeButton = false, returnHomeButtonLabel = "Return home", returnHomePath = "/", forgotPasswordPath = "/hazo_auth/forgot_password", forgotPasswordLabel = "Forgot password?", createAccountPath = "/hazo_auth/register", createAccountLabel = "Create account", urlOnLogon, imageSrc = DEFAULT_IMAGE_SRC, imageAlt = DEFAULT_IMAGE_ALT, imageBackgroundColor = DEFAULT_IMAGE_BG, } = {}) {
37
36
  const [dataClient, setDataClient] = useState(null);
38
- const [logger, setLogger] = useState(null);
39
37
  useEffect(() => {
40
- // Initialize hazo_connect and logger on client side
38
+ // Initialize hazo_connect on client side
41
39
  const hazoConnect = create_sqlite_hazo_connect();
42
40
  const client = createLayoutDataClient(hazoConnect);
43
- const appLogger = create_app_logger();
44
41
  setDataClient(client);
45
- setLogger(appLogger);
46
42
  }, []);
47
43
  // Show loading state while initializing
48
- if (!dataClient || !logger) {
44
+ if (!dataClient) {
49
45
  return (_jsx("div", { className: "cls_login_page_loading flex items-center justify-center min-h-screen", children: _jsx("div", { className: "text-slate-600 animate-pulse", children: "Loading..." }) }));
50
46
  }
51
47
  const LoginLayout = login_layout;
52
- return (_jsx(LoginLayout, { image_src: imageSrc, image_alt: imageAlt, image_background_color: imageBackgroundColor, data_client: dataClient, logger: logger, redirectRoute: redirectRoute, successMessage: successMessage, alreadyLoggedInMessage: alreadyLoggedInMessage, showLogoutButton: showLogoutButton, showReturnHomeButton: showReturnHomeButton, returnHomeButtonLabel: returnHomeButtonLabel, returnHomePath: returnHomePath, forgot_password_path: forgotPasswordPath, forgot_password_label: forgotPasswordLabel, create_account_path: createAccountPath, create_account_label: createAccountLabel, urlOnLogon: urlOnLogon }));
48
+ return (_jsx(LoginLayout, { image_src: imageSrc, image_alt: imageAlt, image_background_color: imageBackgroundColor, data_client: dataClient, redirectRoute: redirectRoute, successMessage: successMessage, alreadyLoggedInMessage: alreadyLoggedInMessage, showLogoutButton: showLogoutButton, showReturnHomeButton: showReturnHomeButton, returnHomeButtonLabel: returnHomeButtonLabel, returnHomePath: returnHomePath, forgot_password_path: forgotPasswordPath, forgot_password_label: forgotPasswordLabel, create_account_path: createAccountPath, create_account_label: createAccountLabel, urlOnLogon: urlOnLogon }));
53
49
  }
54
50
  export default LoginPage;
@@ -4,7 +4,7 @@ import fs from "fs";
4
4
  import path from "path";
5
5
  import axios from "axios";
6
6
  import { HazoConfig } from "hazo_config/dist/lib";
7
- import { create_logger_service } from "../logging/logger_service";
7
+ import { createLogger } from "hazo_logs";
8
8
  const is_string_record = (value) => !!value &&
9
9
  typeof value === "object" &&
10
10
  !Array.isArray(value) &&
@@ -265,7 +265,7 @@ const create_emailer_client = (emailer_options, logger) => {
265
265
  // section: loader
266
266
  export const load_runtime_configuration = (options) => {
267
267
  var _a, _b, _c;
268
- const fallback_logger = create_logger_service("hazo_auth_config");
268
+ const fallback_logger = createLogger("hazo_auth_config");
269
269
  const parsed_options = sanitize_configuration_options(options, fallback_logger);
270
270
  const direct_configuration = parsed_options.direct_configuration;
271
271
  const logger = (_a = direct_configuration === null || direct_configuration === void 0 ? void 0 : direct_configuration.logger) !== null && _a !== void 0 ? _a : fallback_logger;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,IAAI,CAgBjD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,IAAI,CAgBjD,CAAC"}
@@ -3,13 +3,12 @@ var _a;
3
3
  // section: imports
4
4
  import http from "http";
5
5
  import { create_server_app } from "./server";
6
- import { create_logger_service } from "./logging/logger_service";
6
+ import { createLogger } from "hazo_logs";
7
7
  // section: constants
8
8
  const default_port = Number((_a = process.env.PORT) !== null && _a !== void 0 ? _a : 4100);
9
- const server_namespace = "hazo_auth_server";
10
9
  // section: bootstrap_runner
11
10
  export const start_server = async () => {
12
- const logger = create_logger_service(server_namespace);
11
+ const logger = createLogger("hazo_auth_server");
13
12
  const app = create_server_app();
14
13
  const http_server = http.createServer(app);
15
14
  return new Promise((resolve, reject) => {
@@ -1,11 +1,7 @@
1
1
  import type { Request } from "express";
2
- export type logger_method = (message: string, data?: Record<string, unknown>) => void;
3
- export type logger_service = {
4
- debug: logger_method;
5
- info: logger_method;
6
- warn: logger_method;
7
- error: logger_method;
8
- };
2
+ import type { Logger, LogData } from "hazo_logs";
3
+ export type logger_method = (message: string, data?: LogData) => void;
4
+ export type logger_service = Logger;
9
5
  export type emailer_client = {
10
6
  send_message: (payload: Record<string, unknown>) => Promise<{
11
7
  success: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"app_types.d.ts","sourceRoot":"","sources":["../../../src/server/types/app_types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,IAAI,CAAC;AAEV,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,CACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACpC,CAAC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AS,EACT,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,GACN,EAAE,uBAAuB,2CA2CzB"}
1
+ {"version":3,"file":"login_client_wrapper.d.ts","sourceRoot":"","sources":["../../src/server_pages/login_client_wrapper.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,GAAG,sBAAsB,GAAG,OAAO,CAAC,GAAG;IACpH,SAAS,EAAE,MAAM,GAAG,eAAe,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA0B;IAC1B,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B,CAAC;AAGF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,GACN,EAAE,uBAAuB,2CAwCzB"}
@@ -6,7 +6,6 @@ import { useEffect, useState } from "react";
6
6
  import LoginLayout from "../components/layouts/login";
7
7
  import { createLayoutDataClient } from "../components/layouts/shared/data/layout_data_client";
8
8
  import { create_sqlite_hazo_connect } from "../lib/hazo_connect_setup";
9
- import { create_app_logger } from "../lib/app_logger";
10
9
  // section: component
11
10
  /**
12
11
  * Client wrapper for LoginLayout
@@ -24,6 +23,5 @@ export function LoginClientWrapper({ image_src, image_alt, image_background_colo
24
23
  if (!dataClient) {
25
24
  return (_jsx("div", { className: "cls_login_page_loading flex items-center justify-center min-h-screen", children: _jsx("div", { className: "text-slate-600 animate-pulse", children: "Loading..." }) }));
26
25
  }
27
- const logger = create_app_logger();
28
- return (_jsx(LoginLayout, { image_src: image_src, image_alt: image_alt, image_background_color: image_background_color, data_client: dataClient, logger: logger, redirectRoute: redirectRoute, successMessage: successMessage, alreadyLoggedInMessage: alreadyLoggedInMessage, showLogoutButton: showLogoutButton, showReturnHomeButton: showReturnHomeButton, returnHomeButtonLabel: returnHomeButtonLabel, returnHomePath: returnHomePath, forgot_password_path: forgotPasswordPath, forgot_password_label: forgotPasswordLabel, create_account_path: createAccountPath, create_account_label: createAccountLabel, oauth: oauth }));
26
+ return (_jsx(LoginLayout, { image_src: image_src, image_alt: image_alt, image_background_color: image_background_color, data_client: dataClient, redirectRoute: redirectRoute, successMessage: successMessage, alreadyLoggedInMessage: alreadyLoggedInMessage, showLogoutButton: showLogoutButton, showReturnHomeButton: showReturnHomeButton, returnHomeButtonLabel: returnHomeButtonLabel, returnHomePath: returnHomePath, forgot_password_path: forgotPasswordPath, forgot_password_label: forgotPasswordLabel, create_account_path: createAccountPath, create_account_label: createAccountLabel, oauth: oauth }));
29
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_auth",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -196,6 +196,7 @@
196
196
  "hazo_config": "^1.3.0",
197
197
  "hazo_connect": "^2.3.5",
198
198
  "hazo_notify": "^1.0.0",
199
+ "hazo_ui": "^2.0.0",
199
200
  "helmet": "^8.1.0",
200
201
  "ini": "^6.0.0",
201
202
  "jose": "^5.9.6",
@@ -215,7 +216,11 @@
215
216
  "tsx": "^4.20.6",
216
217
  "zod": "^4.1.12"
217
218
  },
219
+ "peerDependencies": {
220
+ "hazo_logs": "^1.0.0"
221
+ },
218
222
  "devDependencies": {
223
+ "hazo_logs": "file:./hazo_logs-1.0.3.tgz",
219
224
  "@chromatic-com/storybook": "^4.1.2",
220
225
  "@storybook/addon-a11y": "^10.0.6",
221
226
  "@storybook/addon-docs": "^10.0.6",
@@ -245,6 +250,7 @@
245
250
  "jest": "^30.2.0",
246
251
  "jest-environment-jsdom": "^29.7.0",
247
252
  "patch-package": "^8.0.1",
253
+ "playwright": "^1.57.0",
248
254
  "postcss": "^8",
249
255
  "storybook": "^10.0.6",
250
256
  "supertest": "^7.1.4",