authhero 4.84.0 → 4.85.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/authhero.cjs +3 -3
- package/dist/authhero.mjs +8 -17
- package/dist/stats.html +1 -1
- package/package.json +2 -2
package/dist/authhero.mjs
CHANGED
|
@@ -18247,18 +18247,19 @@ const uN = 1e3 * 60 * 60 * 24, pN = new he().openapi(
|
|
|
18247
18247
|
}
|
|
18248
18248
|
}),
|
|
18249
18249
|
async (e) => {
|
|
18250
|
-
const t = e.var.tenant_id, { page: n, per_page: i, include_totals: r, sort: o, q: s } = e.req.valid("query"),
|
|
18250
|
+
const t = e.var.tenant_id, { page: n, per_page: i, include_totals: r, sort: o, q: s } = e.req.valid("query"), c = await e.env.data.clients.list(t, {
|
|
18251
18251
|
page: n,
|
|
18252
18252
|
per_page: i,
|
|
18253
18253
|
include_totals: r,
|
|
18254
18254
|
sort: Nt(o),
|
|
18255
18255
|
q: s
|
|
18256
|
-
})
|
|
18256
|
+
}), l = c.clients;
|
|
18257
18257
|
return r ? e.json({
|
|
18258
18258
|
clients: l,
|
|
18259
|
-
start: 0,
|
|
18260
|
-
limit:
|
|
18261
|
-
length: l.length
|
|
18259
|
+
start: c.totals?.start ?? 0,
|
|
18260
|
+
limit: c.totals?.limit ?? i,
|
|
18261
|
+
length: c.totals?.length ?? l.length,
|
|
18262
|
+
total: c.totals?.total
|
|
18262
18263
|
}) : e.json(l);
|
|
18263
18264
|
}
|
|
18264
18265
|
).openapi(
|
|
@@ -36776,7 +36777,7 @@ function t1(e, t = "light") {
|
|
|
36776
36777
|
const n = f0(e, "#ffffff"), i = f0(e, "#000000"), r = 1.35;
|
|
36777
36778
|
return t === "light" ? i > n * r ? "#000000" : "#ffffff" : i * r > n ? "#000000" : "#ffffff";
|
|
36778
36779
|
}
|
|
36779
|
-
const $a = "
|
|
36780
|
+
const $a = "mnptr7u4", SB = (e, t) => {
|
|
36780
36781
|
const n = e?.colors?.primary_button || t?.colors?.primary || "#000000", i = e?.colors?.base_hover_color || kB(n, 0.2), r = e?.colors?.primary_button_label, o = r && f0(r, n) >= 4.5, s = o ? r : t1(n, "light"), c = o ? r : t1(n, "dark"), l = s !== c ? `
|
|
36781
36782
|
@media (prefers-color-scheme: dark) {
|
|
36782
36783
|
body { --text-on-primary: ${c}; }
|
|
@@ -62858,21 +62859,11 @@ function _H(e) {
|
|
|
62858
62859
|
min_length: 8
|
|
62859
62860
|
}
|
|
62860
62861
|
},
|
|
62861
|
-
{
|
|
62862
|
-
id: "name",
|
|
62863
|
-
category: "FIELD",
|
|
62864
|
-
type: "TEXT",
|
|
62865
|
-
order: 3,
|
|
62866
|
-
label: "Tenant name",
|
|
62867
|
-
config: {
|
|
62868
|
-
placeholder: n ? "Control Plane" : "My App"
|
|
62869
|
-
}
|
|
62870
|
-
},
|
|
62871
62862
|
{
|
|
62872
62863
|
id: "submit",
|
|
62873
62864
|
category: "BLOCK",
|
|
62874
62865
|
type: "NEXT_BUTTON",
|
|
62875
|
-
order:
|
|
62866
|
+
order: 3,
|
|
62876
62867
|
config: {
|
|
62877
62868
|
text: "Set up AuthHero"
|
|
62878
62869
|
}
|