@authhero/proxy 0.9.6 → 0.10.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/proxy.mjs CHANGED
@@ -126,7 +126,8 @@ var p = e.enum([
126
126
  body: e.unknown().optional(),
127
127
  ip: e.string(),
128
128
  user_agent: e.string().optional(),
129
- correlation_id: e.string().optional()
129
+ correlation_id: e.string().optional(),
130
+ redirect_uri: e.string().optional()
130
131
  }), te = e.object({
131
132
  status_code: e.number(),
132
133
  body: e.unknown().optional()
@@ -1141,7 +1142,22 @@ var y = e.object({
1141
1142
  wt,
1142
1143
  Tt
1143
1144
  ]);
1144
- e.object({
1145
+ new Set([
1146
+ "BOOLEAN",
1147
+ "CARDS",
1148
+ "CHOICE",
1149
+ "CODE",
1150
+ "COUNTRY",
1151
+ "DATE",
1152
+ "DROPDOWN",
1153
+ "EMAIL",
1154
+ "LEGAL",
1155
+ "NUMBER",
1156
+ "PASSWORD",
1157
+ "TEL",
1158
+ "TEXT",
1159
+ "URL"
1160
+ ]), e.object({
1145
1161
  id: e.string(),
1146
1162
  type: e.literal("submit"),
1147
1163
  label: e.string(),
@@ -2891,7 +2907,7 @@ function J(e, t, n) {
2891
2907
  }
2892
2908
  //#endregion
2893
2909
  //#region src/data-plane/handlers/http.ts
2894
- var fr = /* @__PURE__ */ new Set([
2910
+ var fr = new Set([
2895
2911
  "connection",
2896
2912
  "keep-alive",
2897
2913
  "proxy-authenticate",
@@ -3095,15 +3111,12 @@ function jr(e, t) {
3095
3111
  return !1;
3096
3112
  }
3097
3113
  function Mr(e, t) {
3098
- return !e || e.length === 0 || e.some((e) => jr(e, t));
3114
+ return !e || e.length === 0 ? !0 : e.some((e) => jr(e, t));
3099
3115
  }
3100
3116
  function Nr(e) {
3101
3117
  let t = (e.headers ? Object.entries(e.headers) : []).map(([e, t]) => [e.toLowerCase(), new RegExp(t)]), n = (e.query ? Object.entries(e.query) : []).map(([e, t]) => [e, new RegExp(t)]), r = e.hosts;
3102
3118
  return async (e, i) => {
3103
- if (r) {
3104
- let t = e.req.header("host") ?? "";
3105
- if (!Mr(r, t)) return new Response("No matching route", { status: 404 });
3106
- }
3119
+ if (r && !Mr(r, e.req.header("host") ?? "")) return new Response("No matching route", { status: 404 });
3107
3120
  for (let [n, r] of t) {
3108
3121
  let t = e.req.header(n);
3109
3122
  if (t === void 0 || !r.test(t)) return new Response("No matching route", { status: 404 });