hazo_auth 10.8.0 → 10.8.2
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.
|
@@ -52,10 +52,11 @@ async function fetch_profiles_from_db(
|
|
|
52
52
|
): Promise<{ profiles: UserProfileInfo[]; not_found_ids: string[] }> {
|
|
53
53
|
const users_service = createCrudService(adapter, "hazo_users");
|
|
54
54
|
|
|
55
|
-
// Query users by IDs
|
|
56
|
-
//
|
|
55
|
+
// Query users by IDs. Pass the array directly so hazo_connect's findBy()
|
|
56
|
+
// selects the SQL `IN` operator (a pre-formatted string falls into `eq` and
|
|
57
|
+
// never matches — this silently returned zero profiles on every call).
|
|
57
58
|
const users = await users_service.findBy({
|
|
58
|
-
id:
|
|
59
|
+
id: user_ids,
|
|
59
60
|
});
|
|
60
61
|
|
|
61
62
|
// Handle case where no users are found
|
|
@@ -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?: "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_profiles_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/user_profiles_service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASvD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;
|
|
1
|
+
{"version":3,"file":"user_profiles_service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/user_profiles_service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AASvD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAwDF;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,iBAAiB,CAAC,CA4H5B;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAWvE;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,IAAI,IAAI,CAWzD"}
|
|
@@ -13,10 +13,11 @@ import { get_user_profiles_cache_config } from "../user_profiles_config.server.j
|
|
|
13
13
|
*/
|
|
14
14
|
async function fetch_profiles_from_db(adapter, user_ids) {
|
|
15
15
|
const users_service = createCrudService(adapter, "hazo_users");
|
|
16
|
-
// Query users by IDs
|
|
17
|
-
//
|
|
16
|
+
// Query users by IDs. Pass the array directly so hazo_connect's findBy()
|
|
17
|
+
// selects the SQL `IN` operator (a pre-formatted string falls into `eq` and
|
|
18
|
+
// never matches — this silently returned zero profiles on every call).
|
|
18
19
|
const users = await users_service.findBy({
|
|
19
|
-
id:
|
|
20
|
+
id: user_ids,
|
|
20
21
|
});
|
|
21
22
|
// Handle case where no users are found
|
|
22
23
|
if (!Array.isArray(users)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_auth",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.2",
|
|
4
4
|
"description": "Zero-config authentication UI components for Next.js with RBAC, OAuth, scope-based multi-tenancy, and invitations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -269,8 +269,8 @@
|
|
|
269
269
|
"hazo_logs": "^2.1.1",
|
|
270
270
|
"hazo_notify": "^6.1.4",
|
|
271
271
|
"hazo_secure": "^1.3.0",
|
|
272
|
-
"hazo_theme": "^0.
|
|
273
|
-
"hazo_ui": "^
|
|
272
|
+
"hazo_theme": "^1.0.0",
|
|
273
|
+
"hazo_ui": "^6.0.0",
|
|
274
274
|
"input-otp": "^1.4.0",
|
|
275
275
|
"lucide-react": "^0.553.0",
|
|
276
276
|
"next": "^14.0.0",
|
|
@@ -412,8 +412,8 @@
|
|
|
412
412
|
"hazo_core": "^1.2.1",
|
|
413
413
|
"hazo_logs": "^2.1.1",
|
|
414
414
|
"hazo_notify": "^6.1.4",
|
|
415
|
-
"hazo_theme": "^0.
|
|
416
|
-
"hazo_ui": "^
|
|
415
|
+
"hazo_theme": "^1.0.0",
|
|
416
|
+
"hazo_ui": "^6.0.0",
|
|
417
417
|
"input-otp": "^1.4.0",
|
|
418
418
|
"jest": "^30.2.0",
|
|
419
419
|
"jest-environment-jsdom": "^30.0.0",
|