ezlogs-nextjs 0.4.6 → 0.4.7

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.
Files changed (42) hide show
  1. package/README.md +23 -3
  2. package/dist/{chunk-B5ZUQULZ.cjs → chunk-2YCQFLXW.cjs} +3 -0
  3. package/dist/{chunk-RD47JECJ.js → chunk-343ZGTMH.js} +1 -1
  4. package/dist/{chunk-2NFJOT6Q.js → chunk-5ZMOWEBY.js} +1 -1
  5. package/dist/{chunk-IBSNHBUC.js → chunk-7MFKEYDN.js} +3 -0
  6. package/dist/{chunk-U3IJV5EJ.js → chunk-AXIQTU52.js} +1 -1
  7. package/dist/{chunk-RMKGMIV2.js → chunk-BE3RCFNP.js} +1 -1
  8. package/dist/{chunk-H3FC5HMW.cjs → chunk-CHVJ4WPM.cjs} +2 -2
  9. package/dist/{chunk-M3VBQ5KT.js → chunk-CYAFYBKF.js} +2 -2
  10. package/dist/{chunk-O7SFYXJC.cjs → chunk-EXGEA4KE.cjs} +12 -12
  11. package/dist/{chunk-YO6E763S.cjs → chunk-JB4UYCZI.cjs} +5 -5
  12. package/dist/{chunk-65HRY3PW.cjs → chunk-KOFR5OC3.cjs} +21 -21
  13. package/dist/{chunk-PK2Z2ABL.js → chunk-Q3HRVWCS.js} +3 -3
  14. package/dist/{chunk-B3WST6ES.cjs → chunk-UC2KS5EG.cjs} +9 -9
  15. package/dist/{chunk-DM2EAOSF.cjs → chunk-XWEBKN65.cjs} +4 -4
  16. package/dist/db/drizzle.cjs +3 -3
  17. package/dist/db/drizzle.js +2 -2
  18. package/dist/db/postgres-js.cjs +4 -4
  19. package/dist/db/postgres-js.js +2 -2
  20. package/dist/db/prisma.cjs +12 -12
  21. package/dist/db/prisma.js +2 -2
  22. package/dist/db/supabase.cjs +11 -11
  23. package/dist/db/supabase.js +2 -2
  24. package/dist/index.cjs +121 -106
  25. package/dist/index.js +21 -6
  26. package/dist/jobs/bullmq.cjs +17 -17
  27. package/dist/jobs/bullmq.js +4 -4
  28. package/dist/jobs/inngest.cjs +154 -50
  29. package/dist/jobs/inngest.d.cts +6 -6
  30. package/dist/jobs/inngest.d.ts +6 -6
  31. package/dist/jobs/inngest.js +144 -40
  32. package/dist/jobs/supabase-queues.cjs +9 -9
  33. package/dist/jobs/supabase-queues.js +4 -4
  34. package/dist/jobs/trigger.cjs +7 -7
  35. package/dist/jobs/trigger.js +4 -4
  36. package/dist/jobs/upstash-workflow.cjs +19 -19
  37. package/dist/jobs/upstash-workflow.js +5 -5
  38. package/dist/nextjs-plugin/loader.cjs +34 -5
  39. package/dist/nextjs-plugin/loader.js +34 -5
  40. package/dist/triggers/index.cjs +16 -16
  41. package/dist/triggers/index.js +5 -5
  42. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkDM2EAOSF_cjs = require('./chunk-DM2EAOSF.cjs');
4
- var chunkH3FC5HMW_cjs = require('./chunk-H3FC5HMW.cjs');
5
- var chunkO7SFYXJC_cjs = require('./chunk-O7SFYXJC.cjs');
6
- var chunkB3WST6ES_cjs = require('./chunk-B3WST6ES.cjs');
7
- var chunkB5ZUQULZ_cjs = require('./chunk-B5ZUQULZ.cjs');
3
+ var chunkXWEBKN65_cjs = require('./chunk-XWEBKN65.cjs');
4
+ var chunkCHVJ4WPM_cjs = require('./chunk-CHVJ4WPM.cjs');
5
+ var chunkEXGEA4KE_cjs = require('./chunk-EXGEA4KE.cjs');
6
+ var chunkUC2KS5EG_cjs = require('./chunk-UC2KS5EG.cjs');
7
+ var chunk2YCQFLXW_cjs = require('./chunk-2YCQFLXW.cjs');
8
8
  var chunkTWTG5ILJ_cjs = require('./chunk-TWTG5ILJ.cjs');
9
9
  require('./chunk-ZDSQYCYV.cjs');
10
10
 
@@ -13,7 +13,7 @@ var REQUEST_TIMEOUT_MS = 1e4;
13
13
  var transport = {
14
14
  async send(events) {
15
15
  if (!events || events.length === 0) return "success";
16
- const config = chunkB5ZUQULZ_cjs.configuration();
16
+ const config = chunk2YCQFLXW_cjs.configuration();
17
17
  const serverUrl = config.serverUrl;
18
18
  if (!serverUrl) {
19
19
  chunkTWTG5ILJ_cjs.logger.error("Transport: serverUrl not configured");
@@ -105,7 +105,7 @@ function applyJitter(base) {
105
105
  }
106
106
  function retryAttempts() {
107
107
  try {
108
- const value = chunkB5ZUQULZ_cjs.configuration().retryAttempts;
108
+ const value = chunk2YCQFLXW_cjs.configuration().retryAttempts;
109
109
  if (typeof value !== "number" || !Number.isInteger(value) || value < 0) {
110
110
  return 3;
111
111
  }
@@ -143,7 +143,7 @@ var flushScheduler = {
143
143
  },
144
144
  async stop() {
145
145
  const s = state();
146
- await chunkO7SFYXJC_cjs.settleAuditFlushes();
146
+ await chunkEXGEA4KE_cjs.settleAuditFlushes();
147
147
  if (s.timer === null) return;
148
148
  clearInterval(s.timer);
149
149
  s.timer = null;
@@ -162,7 +162,7 @@ var flushScheduler = {
162
162
  * builds a queue.
163
163
  */
164
164
  flushNow() {
165
- return chunkO7SFYXJC_cjs.settleAuditFlushes().then(() => sendNow());
165
+ return chunkEXGEA4KE_cjs.settleAuditFlushes().then(() => sendNow());
166
166
  }
167
167
  };
168
168
  function sendNow() {
@@ -188,12 +188,12 @@ function tick() {
188
188
  }
189
189
  async function runTick() {
190
190
  try {
191
- const events = chunkB3WST6ES_cjs.drainEvents();
191
+ const events = chunkUC2KS5EG_cjs.drainEvents();
192
192
  if (events.length > 0) await retrySender.send(events);
193
- const reader = chunkB5ZUQULZ_cjs.configuration().databaseReader;
193
+ const reader = chunk2YCQFLXW_cjs.configuration().databaseReader;
194
194
  if (!reader) return;
195
- await chunkO7SFYXJC_cjs.maintainAuditLogAfterRequests(reader);
196
- const swept = chunkB3WST6ES_cjs.drainEvents();
195
+ await chunkEXGEA4KE_cjs.maintainAuditLogAfterRequests(reader);
196
+ const swept = chunkUC2KS5EG_cjs.drainEvents();
197
197
  if (swept.length > 0) await retrySender.send(swept);
198
198
  } catch (error) {
199
199
  chunkTWTG5ILJ_cjs.logger.error(`FlushScheduler tick failed: ${describeError3(error)}`);
@@ -201,7 +201,7 @@ async function runTick() {
201
201
  }
202
202
  function sendInterval() {
203
203
  try {
204
- const value = chunkB5ZUQULZ_cjs.configuration().sendInterval;
204
+ const value = chunk2YCQFLXW_cjs.configuration().sendInterval;
205
205
  if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) {
206
206
  return 5e3;
207
207
  }
@@ -224,7 +224,7 @@ function patchGlobalFetch() {
224
224
  if (typeof globalThis.fetch !== "function") return;
225
225
  originalFetch = globalThis.fetch;
226
226
  const wrapped = (input, init) => {
227
- const id = chunkB5ZUQULZ_cjs.current();
227
+ const id = chunk2YCQFLXW_cjs.current();
228
228
  if (!id) return originalFetch.call(globalThis, input, init);
229
229
  try {
230
230
  const enriched = injectHeader(input, init, id);
@@ -250,7 +250,7 @@ function onUndiciRequest(message) {
250
250
  try {
251
251
  const request = message?.request;
252
252
  if (!request || typeof request.addHeader !== "function") return;
253
- const id = chunkB5ZUQULZ_cjs.current();
253
+ const id = chunk2YCQFLXW_cjs.current();
254
254
  if (!id || hasCorrelationHeader(request.headers)) return;
255
255
  request.addHeader(HEADER, id);
256
256
  } catch (error) {
@@ -268,7 +268,7 @@ function hasCorrelationHeader(headers) {
268
268
  return false;
269
269
  }
270
270
  function loadDiagnosticsChannel() {
271
- const mod = chunkB5ZUQULZ_cjs.loadNodeBuiltin(["diagnostics", "channel"].join("_"));
271
+ const mod = chunk2YCQFLXW_cjs.loadNodeBuiltin(["diagnostics", "channel"].join("_"));
272
272
  return typeof mod?.subscribe === "function" ? mod : null;
273
273
  }
274
274
  function unpatchGlobalFetch() {
@@ -398,7 +398,7 @@ function buildHttpSourceData(input) {
398
398
  source.graphql_variables = input.graphql.graphql_variables;
399
399
  }
400
400
  } else {
401
- const params = chunkB3WST6ES_cjs.sanitizeRequestParams(input.rawParams, input.excludedVariableKeys);
401
+ const params = chunkUC2KS5EG_cjs.sanitizeRequestParams(input.rawParams, input.excludedVariableKeys);
402
402
  if (params !== null) source.request_params = params;
403
403
  }
404
404
  return compact(source);
@@ -575,7 +575,7 @@ function determineOutcome(statusCode, exception, graphqlResponseErrors, response
575
575
  }
576
576
  var MAX_SPECIFIC_ERROR_LENGTH = 200;
577
577
  function capErrorText(text) {
578
- const out = chunkB3WST6ES_cjs.scrubSecretsInText(text, { emails: true });
578
+ const out = chunkUC2KS5EG_cjs.scrubSecretsInText(text, { emails: true });
579
579
  return out.length <= MAX_SPECIFIC_ERROR_LENGTH ? out : `${out.slice(0, MAX_SPECIFIC_ERROR_LENGTH - 1)}\u2026`;
580
580
  }
581
581
  var GENERIC_ERROR_TEXT = /^(?:validation(?: error| failed)?|invalid (?:input|request|data|body|payload|params|parameters|arguments)|bad request|unprocessable(?: entity| content)?|error|failed|request failed)[.!]?$/i;
@@ -613,9 +613,9 @@ function fieldMessage(path, message, userPatterns) {
613
613
  const text = message?.replace(/\s+/g, " ").trim().replace(/received\s+("[^"]*"|'[^']*'|`[^`]*`)/gi, "received [FILTERED]");
614
614
  if (!text) return null;
615
615
  const keys = path.filter((k) => k !== null && k !== "");
616
- if (keys.some((k) => chunkB3WST6ES_cjs.isSensitiveKey(k, userPatterns))) return null;
616
+ if (keys.some((k) => chunkUC2KS5EG_cjs.isSensitiveKey(k, userPatterns))) return null;
617
617
  if (keys.length > 0) return `${keys.join(".")}: ${text}`;
618
- return text.split(/[^A-Za-z0-9_]+/).some((w) => w !== "" && chunkB3WST6ES_cjs.isSensitiveKey(w, userPatterns)) ? null : text;
618
+ return text.split(/[^A-Za-z0-9_]+/).some((w) => w !== "" && chunkUC2KS5EG_cjs.isSensitiveKey(w, userPatterns)) ? null : text;
619
619
  }
620
620
  function pathKey(segment) {
621
621
  if (typeof segment === "string") return segment;
@@ -796,7 +796,7 @@ function parseGraphqlBody(body, excludedOperations, excludedVariableKeys) {
796
796
  return { metadata: "skip" };
797
797
  }
798
798
  const operationType = inferOperationTypeFromQuery(queryString) ?? inferOperationTypeFromName(operationName);
799
- const sanitizedVariables = chunkB3WST6ES_cjs.sanitizeRequestParams(obj.variables, excludedVariableKeys);
799
+ const sanitizedVariables = chunkUC2KS5EG_cjs.sanitizeRequestParams(obj.variables, excludedVariableKeys);
800
800
  return {
801
801
  metadata: {
802
802
  graphql_operation: operationName ?? "anonymous",
@@ -854,7 +854,7 @@ function captureRoute(handler, context = {}) {
854
854
  return handler(...invokeArgs);
855
855
  };
856
856
  try {
857
- if (!chunkB5ZUQULZ_cjs.configuration().captureHttp) {
857
+ if (!chunk2YCQFLXW_cjs.configuration().captureHttp) {
858
858
  return Promise.resolve(runHandler(...args));
859
859
  }
860
860
  const request = args[0];
@@ -864,11 +864,12 @@ function captureRoute(handler, context = {}) {
864
864
  const snapshot = await snapshotRequest(request);
865
865
  if (snapshot === null) return Promise.resolve(runHandler(...args));
866
866
  snapshot.rawParams = mergeRouteParams(snapshot.rawParams, await readRouteParams(args[1]));
867
- const correlationId = chunkB5ZUQULZ_cjs.resolveCorrelation(request.headers ?? null);
867
+ const correlationId = chunk2YCQFLXW_cjs.resolveCorrelation(request.headers ?? null);
868
868
  const delivery = { jobDelivery: false };
869
- return await chunkB5ZUQULZ_cjs.runWithCorrelation(
869
+ const inngestServerKind = request.headers?.get?.(INNGEST_SERVER_KIND) ?? null;
870
+ return await chunk2YCQFLXW_cjs.runWithCorrelation(
870
871
  correlationId,
871
- () => chunkH3FC5HMW_cjs.runWithDeliverySlot(delivery, () => runWithActorAndAuditScope(async () => {
872
+ () => chunkCHVJ4WPM_cjs.runWithDeliverySlot(delivery, () => runWithActorAndAuditScope(async () => {
872
873
  await maybeRunActorHook(request);
873
874
  const startMs = Date.now();
874
875
  let statusCode = null;
@@ -879,7 +880,10 @@ function captureRoute(handler, context = {}) {
879
880
  let followed = false;
880
881
  let handlerMs = null;
881
882
  const finish = async () => {
882
- await chunkB5ZUQULZ_cjs.maybeExtractSupabaseActor();
883
+ await chunk2YCQFLXW_cjs.maybeExtractSupabaseActor();
884
+ if (isJobRunnerSync(snapshot.method, inngestServerKind, response?.headers?.get?.(INNGEST_SDK) ?? null)) {
885
+ delivery.jobDelivery = true;
886
+ }
883
887
  await emitEvent({
884
888
  snapshot,
885
889
  context,
@@ -892,7 +896,7 @@ function captureRoute(handler, context = {}) {
892
896
  jobDelivery: delivery.jobDelivery
893
897
  });
894
898
  await flushOnServerless();
895
- chunkB5ZUQULZ_cjs.endCorrelationScope();
899
+ chunk2YCQFLXW_cjs.endCorrelationScope();
896
900
  };
897
901
  try {
898
902
  response = await Promise.resolve(runHandler(...args));
@@ -903,7 +907,7 @@ function captureRoute(handler, context = {}) {
903
907
  }
904
908
  const trpcRoute = isTrpcRoute(snapshot.rawParams, context.routeModulePath ?? null);
905
909
  responseErrorMessage = await readResponseErrorMessage(response, trpcRoute) ?? authRedirectError(snapshot.url, response.status, response.headers.get("location"));
906
- const trpcStream = responseErrorMessage === null && trpcRoute ? trpcStreamErrorScanner(chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys) : null;
910
+ const trpcStream = responseErrorMessage === null && trpcRoute ? trpcStreamErrorScanner(chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys) : null;
907
911
  const followedResponse = followBody(
908
912
  response,
909
913
  snapshot.method,
@@ -930,7 +934,7 @@ function captureRoute(handler, context = {}) {
930
934
  throw e;
931
935
  } finally {
932
936
  if (!followed) {
933
- await chunkB5ZUQULZ_cjs.maybeExtractSupabaseActor();
937
+ await chunk2YCQFLXW_cjs.maybeExtractSupabaseActor();
934
938
  await offTheResponse(finish);
935
939
  }
936
940
  }
@@ -954,12 +958,12 @@ function withMiddlewareCapture(middleware) {
954
958
  return middleware(req, ...mRest);
955
959
  };
956
960
  try {
957
- const correlationId = chunkB5ZUQULZ_cjs.resolveCorrelation(request.headers);
961
+ const correlationId = chunk2YCQFLXW_cjs.resolveCorrelation(request.headers);
958
962
  try {
959
963
  request.headers.set(CORRELATION_HEADER, correlationId);
960
964
  } catch {
961
965
  }
962
- return await chunkB5ZUQULZ_cjs.runWithCorrelation(
966
+ return await chunk2YCQFLXW_cjs.runWithCorrelation(
963
967
  correlationId,
964
968
  () => runWithActorAndAuditScope(async () => {
965
969
  const startMs = Date.now();
@@ -975,7 +979,7 @@ function withMiddlewareCapture(middleware) {
975
979
  if (shouldEmitPageNavigation(request)) {
976
980
  const durationMs = Date.now() - startMs;
977
981
  await maybeRunActorHook(request);
978
- await chunkB5ZUQULZ_cjs.maybeExtractSupabaseActor();
982
+ await chunk2YCQFLXW_cjs.maybeExtractSupabaseActor();
979
983
  const event = rest[0];
980
984
  await offTheResponse(
981
985
  async () => {
@@ -993,7 +997,7 @@ function withMiddlewareCapture(middleware) {
993
997
  chunkTWTG5ILJ_cjs.logger.debug(`page navigation capture failed: ${describeError5(error)}`);
994
998
  }
995
999
  return response;
996
- }).finally(chunkB5ZUQULZ_cjs.endCorrelationScope)
1000
+ }).finally(chunk2YCQFLXW_cjs.endCorrelationScope)
997
1001
  );
998
1002
  } catch (preCaptureError) {
999
1003
  if (middlewareInvoked) throw preCaptureError;
@@ -1054,25 +1058,25 @@ async function emitPageNavigationEvent(input) {
1054
1058
  userAgent,
1055
1059
  remoteIp,
1056
1060
  contentType: null,
1057
- excludedVariableKeys: chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys
1061
+ excludedVariableKeys: chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys
1058
1062
  });
1059
1063
  const { outcome, error_message } = determineOutcome(
1060
1064
  input.statusCode,
1061
1065
  null,
1062
1066
  null
1063
1067
  );
1064
- const event = chunkB3WST6ES_cjs.build({
1068
+ const event = chunkUC2KS5EG_cjs.build({
1065
1069
  source_type: "http_request",
1066
1070
  source_data: sourceData,
1067
1071
  outcome,
1068
- correlation_id: chunkB5ZUQULZ_cjs.current(),
1072
+ correlation_id: chunk2YCQFLXW_cjs.current(),
1069
1073
  resource_ids: [],
1070
- context: chunkB5ZUQULZ_cjs.getCurrentActor() ? { actor: chunkB5ZUQULZ_cjs.getCurrentActor() } : null,
1074
+ context: chunk2YCQFLXW_cjs.getCurrentActor() ? { actor: chunk2YCQFLXW_cjs.getCurrentActor() } : null,
1071
1075
  duration_ms: input.durationMs,
1072
1076
  error_message,
1073
1077
  timestamp: input.startedAt
1074
1078
  });
1075
- chunkB3WST6ES_cjs.pushEvent(event);
1079
+ chunkUC2KS5EG_cjs.pushEvent(event);
1076
1080
  } catch (error) {
1077
1081
  chunkTWTG5ILJ_cjs.logger.error(`page navigation emit failed: ${describeError5(error)}`);
1078
1082
  }
@@ -1097,7 +1101,7 @@ function capturePagesApi(handler, context = {}) {
1097
1101
  return handler(...invokeArgs);
1098
1102
  };
1099
1103
  try {
1100
- if (!chunkB5ZUQULZ_cjs.configuration().captureHttp) {
1104
+ if (!chunk2YCQFLXW_cjs.configuration().captureHttp) {
1101
1105
  return Promise.resolve(runHandler(...args));
1102
1106
  }
1103
1107
  const req = args[0];
@@ -1105,13 +1109,14 @@ function capturePagesApi(handler, context = {}) {
1105
1109
  if (!req || !res) return Promise.resolve(runHandler(...args));
1106
1110
  const snapshot = snapshotPagesRequest(req);
1107
1111
  if (snapshot === null) return Promise.resolve(runHandler(...args));
1108
- const correlationId = chunkB5ZUQULZ_cjs.resolveCorrelation({
1112
+ const correlationId = chunk2YCQFLXW_cjs.resolveCorrelation({
1109
1113
  get: (name) => readPagesHeader(req, name)
1110
1114
  });
1111
1115
  const delivery = { jobDelivery: false };
1112
- return await chunkB5ZUQULZ_cjs.runWithCorrelation(
1116
+ const inngestServerKind = readPagesHeader(req, INNGEST_SERVER_KIND);
1117
+ return await chunk2YCQFLXW_cjs.runWithCorrelation(
1113
1118
  correlationId,
1114
- () => chunkH3FC5HMW_cjs.runWithDeliverySlot(delivery, () => runWithActorAndAuditScope(async () => {
1119
+ () => chunkCHVJ4WPM_cjs.runWithDeliverySlot(delivery, () => runWithActorAndAuditScope(async () => {
1115
1120
  await maybeRunActorHookFromPages(req);
1116
1121
  const startMs = Date.now();
1117
1122
  let exception = null;
@@ -1122,9 +1127,13 @@ function capturePagesApi(handler, context = {}) {
1122
1127
  exception = e instanceof Error ? e : new Error(String(e));
1123
1128
  throw e;
1124
1129
  } finally {
1125
- await chunkB5ZUQULZ_cjs.maybeExtractSupabaseActor();
1130
+ await chunk2YCQFLXW_cjs.maybeExtractSupabaseActor();
1126
1131
  const status = typeof res.statusCode === "number" ? res.statusCode : null;
1127
1132
  const getHeader = res.getHeader;
1133
+ const sdkHeader = typeof getHeader === "function" ? getHeader.call(res, INNGEST_SDK) : null;
1134
+ if (isJobRunnerSync(snapshot.method, inngestServerKind, sdkHeader ? String(sdkHeader) : null)) {
1135
+ delivery.jobDelivery = true;
1136
+ }
1128
1137
  await emitEvent({
1129
1138
  snapshot,
1130
1139
  context,
@@ -1142,7 +1151,7 @@ function capturePagesApi(handler, context = {}) {
1142
1151
  jobDelivery: delivery.jobDelivery
1143
1152
  });
1144
1153
  await flushOnServerless();
1145
- chunkB5ZUQULZ_cjs.endCorrelationScope();
1154
+ chunk2YCQFLXW_cjs.endCorrelationScope();
1146
1155
  }
1147
1156
  }))
1148
1157
  );
@@ -1163,12 +1172,12 @@ function captureServerAction(action, actionName) {
1163
1172
  return action(...invokeArgs);
1164
1173
  };
1165
1174
  try {
1166
- if (!chunkB5ZUQULZ_cjs.configuration().captureHttp) {
1175
+ if (!chunk2YCQFLXW_cjs.configuration().captureHttp) {
1167
1176
  return Promise.resolve(runAction(...args));
1168
1177
  }
1169
1178
  const headersAdapter = await readNextHeadersAsAdapter();
1170
- const correlationId = chunkB5ZUQULZ_cjs.resolveCorrelation(headersAdapter);
1171
- return await chunkB5ZUQULZ_cjs.runWithCorrelation(
1179
+ const correlationId = chunk2YCQFLXW_cjs.resolveCorrelation(headersAdapter);
1180
+ return await chunk2YCQFLXW_cjs.runWithCorrelation(
1172
1181
  correlationId,
1173
1182
  () => runWithActorAndAuditScope(async () => {
1174
1183
  const startMs = Date.now();
@@ -1176,11 +1185,11 @@ function captureServerAction(action, actionName) {
1176
1185
  let exception = null;
1177
1186
  await maybeRunActorHookFromServerAction();
1178
1187
  const record = async (input) => {
1179
- await chunkB5ZUQULZ_cjs.maybeExtractSupabaseActor();
1188
+ await chunk2YCQFLXW_cjs.maybeExtractSupabaseActor();
1180
1189
  await offTheResponse(async () => {
1181
1190
  await emitServerActionEvent(input);
1182
1191
  await flushOnServerless();
1183
- chunkB5ZUQULZ_cjs.endCorrelationScope();
1192
+ chunk2YCQFLXW_cjs.endCorrelationScope();
1184
1193
  });
1185
1194
  };
1186
1195
  let result;
@@ -1257,7 +1266,7 @@ async function __ezlogs_run_inline_server_action(actionName, body) {
1257
1266
  return wrapped();
1258
1267
  }
1259
1268
  function classifyServerActionResult(result) {
1260
- const classifier = chunkB5ZUQULZ_cjs.configuration().isServerActionError;
1269
+ const classifier = chunk2YCQFLXW_cjs.configuration().isServerActionError;
1261
1270
  if (classifier) {
1262
1271
  try {
1263
1272
  const verdict = classifier(result);
@@ -1333,7 +1342,7 @@ function hasErrorEntries(errors, depth = 0) {
1333
1342
  return Object.values(errors).some((v) => hasErrorEntries(v, depth + 1));
1334
1343
  }
1335
1344
  function formStateErrorMessage(r) {
1336
- const patterns = chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys;
1345
+ const patterns = chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys;
1337
1346
  const specific = Array.isArray(r.errors) ? specificErrorMessage({ errors: r.errors }, patterns) ?? specificErrorMessage({ formErrors: r.errors }, patterns) : specificErrorMessage({ fieldErrors: r.errors }, patterns);
1338
1347
  if (specific) return capErrorText(specific);
1339
1348
  if (typeof r.message === "string" && r.message.trim().length > 0) {
@@ -1361,7 +1370,7 @@ function defaultErrorMessage(result) {
1361
1370
  }
1362
1371
  var MAX_ERROR_MESSAGE_LENGTH = 200;
1363
1372
  function specificOrOwn(result, error) {
1364
- const specific = isGenericErrorText(error) ? specificErrorMessage(result, chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys) : null;
1373
+ const specific = isGenericErrorText(error) ? specificErrorMessage(result, chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys) : null;
1365
1374
  return capErrorText(specific ?? error);
1366
1375
  }
1367
1376
  function truncate(value) {
@@ -1379,7 +1388,7 @@ function isZodErrorLike(value) {
1379
1388
  return Array.isArray(issues) && issues.length > 0;
1380
1389
  }
1381
1390
  function formatZodIssues(issues) {
1382
- const patterns = chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys;
1391
+ const patterns = chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys;
1383
1392
  const messages = [];
1384
1393
  for (const issue of issues) {
1385
1394
  const m = issueMessage(issue, patterns);
@@ -1468,7 +1477,7 @@ function redirectPath(target, requestHost) {
1468
1477
  const url = new URL(target, "http://ezlogs.internal");
1469
1478
  if (absolute && (!requestHost || url.host.toLowerCase() !== requestHost.toLowerCase())) return null;
1470
1479
  const path = url.pathname.split("/").map((seg) => /^[A-Za-z0-9_-]{20,}$/.test(seg) && !UUID.test(seg) ? "[FILTERED]" : seg).join("/");
1471
- return path ? chunkB3WST6ES_cjs.scrubSecretsInText(path, { emails: true }) : null;
1480
+ return path ? chunkUC2KS5EG_cjs.scrubSecretsInText(path, { emails: true }) : null;
1472
1481
  } catch {
1473
1482
  return null;
1474
1483
  }
@@ -1482,9 +1491,9 @@ async function emitServerActionEvent(input) {
1482
1491
  const fromPage = referer ?? nextUrl ?? null;
1483
1492
  const argParams = extractServerActionArgs(input.args, input.actionName);
1484
1493
  const combined = argParams !== null || fromPage !== null ? { ...argParams ?? {}, ...fromPage !== null ? { from_page: fromPage } : {} } : null;
1485
- const requestParams = chunkB3WST6ES_cjs.maskAuthParams(
1494
+ const requestParams = chunkUC2KS5EG_cjs.maskAuthParams(
1486
1495
  combined,
1487
- chunkB3WST6ES_cjs.isAuthActionName(input.actionName) || chunkB3WST6ES_cjs.isAuthPath(pathOf(fromPage))
1496
+ chunkUC2KS5EG_cjs.isAuthActionName(input.actionName) || chunkUC2KS5EG_cjs.isAuthPath(pathOf(fromPage))
1488
1497
  );
1489
1498
  const syntheticUrl = new URL(
1490
1499
  `http://localhost/__server-action/${encodeURIComponent(input.actionName)}`
@@ -1499,7 +1508,7 @@ async function emitServerActionEvent(input) {
1499
1508
  userAgent,
1500
1509
  remoteIp: extractRemoteIp(await readNextHeadersAsAdapter()),
1501
1510
  contentType: null,
1502
- excludedVariableKeys: chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys
1511
+ excludedVariableKeys: chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys
1503
1512
  });
1504
1513
  if (input.redirectTo) {
1505
1514
  const host = await readNextHeader("x-forwarded-host") ?? await readNextHeader("host");
@@ -1511,18 +1520,18 @@ async function emitServerActionEvent(input) {
1511
1520
  input.exception,
1512
1521
  null
1513
1522
  );
1514
- const event = chunkB3WST6ES_cjs.build({
1523
+ const event = chunkUC2KS5EG_cjs.build({
1515
1524
  source_type: "http_request",
1516
1525
  source_data: sourceData,
1517
1526
  outcome,
1518
- correlation_id: chunkB5ZUQULZ_cjs.current(),
1527
+ correlation_id: chunk2YCQFLXW_cjs.current(),
1519
1528
  resource_ids: [],
1520
- context: chunkB5ZUQULZ_cjs.getCurrentActor() ? { actor: chunkB5ZUQULZ_cjs.getCurrentActor() } : null,
1529
+ context: chunk2YCQFLXW_cjs.getCurrentActor() ? { actor: chunk2YCQFLXW_cjs.getCurrentActor() } : null,
1521
1530
  duration_ms: input.durationMs,
1522
1531
  error_message,
1523
1532
  timestamp: input.startedAt
1524
1533
  });
1525
- chunkB3WST6ES_cjs.pushEvent(event);
1534
+ chunkUC2KS5EG_cjs.pushEvent(event);
1526
1535
  } catch (error) {
1527
1536
  chunkTWTG5ILJ_cjs.logger.error(`server-action capture emit failed: ${describeError5(error)}`);
1528
1537
  }
@@ -1605,7 +1614,7 @@ function actionWords(name) {
1605
1614
  return name.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/([a-zA-Z])(\d)/g, "$1 $2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean);
1606
1615
  }
1607
1616
  function looksLikeCardNumber(digits, paymentAction) {
1608
- if (digits.length < 13 || digits.length > 19 || !chunkB3WST6ES_cjs.passesLuhn(digits)) return false;
1617
+ if (digits.length < 13 || digits.length > 19 || !chunkUC2KS5EG_cjs.passesLuhn(digits)) return false;
1609
1618
  return paymentAction || digits.length === 15 || digits.length === 16;
1610
1619
  }
1611
1620
  function maskPositional(value, flags) {
@@ -1693,7 +1702,7 @@ function serializeArgValue(value) {
1693
1702
  return void 0;
1694
1703
  }
1695
1704
  async function captureHttpEvent(input) {
1696
- if (!chunkB5ZUQULZ_cjs.configuration().captureHttp) return;
1705
+ if (!chunk2YCQFLXW_cjs.configuration().captureHttp) return;
1697
1706
  const snapshot = await snapshotRequest(input.request);
1698
1707
  if (snapshot === null) return;
1699
1708
  let graphqlErrorMessage = null;
@@ -1759,7 +1768,7 @@ async function snapshotRequest(request) {
1759
1768
  return { method, url, userAgent, remoteIp, contentType, rawParams, graphqlBody, serverActionId };
1760
1769
  }
1761
1770
  async function maybeRunActorHook(request) {
1762
- const hook = chunkB5ZUQULZ_cjs.configuration().actorFromRequest;
1771
+ const hook = chunk2YCQFLXW_cjs.configuration().actorFromRequest;
1763
1772
  let hookResult = null;
1764
1773
  if (hook) {
1765
1774
  try {
@@ -1772,7 +1781,7 @@ async function maybeRunActorHook(request) {
1772
1781
  applyActorFromHookAndUa(hookResult, userAgent);
1773
1782
  }
1774
1783
  async function maybeRunActorHookFromPages(req) {
1775
- const hook = chunkB5ZUQULZ_cjs.configuration().actorFromRequest;
1784
+ const hook = chunk2YCQFLXW_cjs.configuration().actorFromRequest;
1776
1785
  let hookResult = null;
1777
1786
  if (hook) {
1778
1787
  try {
@@ -1786,7 +1795,7 @@ async function maybeRunActorHookFromPages(req) {
1786
1795
  applyActorFromHookAndUa(hookResult, userAgent);
1787
1796
  }
1788
1797
  async function maybeRunActorHookFromServerAction() {
1789
- const hook = chunkB5ZUQULZ_cjs.configuration().actorFromRequest;
1798
+ const hook = chunk2YCQFLXW_cjs.configuration().actorFromRequest;
1790
1799
  const headers = await loadNextHeaders();
1791
1800
  if (!hook && !headers) {
1792
1801
  chunkTWTG5ILJ_cjs.logger.debug("actorFromRequest (server action): no hook + no next/headers");
@@ -1928,11 +1937,17 @@ function readPagesHeader(req, name) {
1928
1937
  if (Array.isArray(value)) return value[0] ?? null;
1929
1938
  return null;
1930
1939
  }
1940
+ var INNGEST_SERVER_KIND = "x-inngest-server-kind";
1941
+ var INNGEST_SDK = "x-inngest-sdk";
1942
+ function isJobRunnerSync(method, inngestServerKind, sdkResponseHeader) {
1943
+ const m = (method ?? "").toUpperCase();
1944
+ return inngestServerKind !== null && sdkResponseHeader !== null && (m === "GET" || m === "PUT");
1945
+ }
1931
1946
  async function emitEvent(input) {
1932
1947
  try {
1933
1948
  await flushTriggerAuditLog();
1934
1949
  if (input.jobDelivery) return;
1935
- const config = chunkB5ZUQULZ_cjs.configuration();
1950
+ const config = chunk2YCQFLXW_cjs.configuration();
1936
1951
  let graphql = null;
1937
1952
  if (input.snapshot.graphqlBody !== null) {
1938
1953
  const parsed = parseGraphqlBody(
@@ -1948,9 +1963,9 @@ async function emitEvent(input) {
1948
1963
  method: input.snapshot.method,
1949
1964
  url: input.snapshot.url,
1950
1965
  statusCode: input.statusCode,
1951
- rawParams: chunkB3WST6ES_cjs.maskAuthParams(
1966
+ rawParams: chunkUC2KS5EG_cjs.maskAuthParams(
1952
1967
  unwrapTrpcParams(input.snapshot.rawParams, input.snapshot.url, input.context.routeModulePath ?? null),
1953
- chunkB3WST6ES_cjs.isAuthPath(input.snapshot.url.pathname)
1968
+ chunkUC2KS5EG_cjs.isAuthPath(input.snapshot.url.pathname)
1954
1969
  ),
1955
1970
  routeModulePath: input.context.routeModulePath ?? null,
1956
1971
  serverActionName,
@@ -1968,20 +1983,20 @@ async function emitEvent(input) {
1968
1983
  input.responseErrorMessage ?? null
1969
1984
  );
1970
1985
  const contextValue = buildContext();
1971
- const event = chunkB3WST6ES_cjs.build({
1986
+ const event = chunkUC2KS5EG_cjs.build({
1972
1987
  source_type: "http_request",
1973
1988
  source_data: sourceData,
1974
1989
  outcome,
1975
- correlation_id: chunkB5ZUQULZ_cjs.current(),
1990
+ correlation_id: chunk2YCQFLXW_cjs.current(),
1976
1991
  resource_ids: [],
1977
1992
  context: contextValue,
1978
1993
  duration_ms: input.durationMs,
1979
1994
  error_message,
1980
1995
  timestamp: input.startedAt
1981
1996
  });
1982
- chunkB3WST6ES_cjs.pushEvent(event);
1997
+ chunkUC2KS5EG_cjs.pushEvent(event);
1983
1998
  } catch (error) {
1984
- const cid = chunkB5ZUQULZ_cjs.current();
1999
+ const cid = chunk2YCQFLXW_cjs.current();
1985
2000
  const cidLabel = cid ? ` (correlation_id=${cid})` : "";
1986
2001
  chunkTWTG5ILJ_cjs.logger.error(`http capture emit failed${cidLabel}: ${describeError5(error)}`);
1987
2002
  }
@@ -1989,7 +2004,7 @@ async function emitEvent(input) {
1989
2004
  function followBody(response, method, onDone, onChunk) {
1990
2005
  try {
1991
2006
  if (!response.body || method === "HEAD" || response.bodyUsed) return null;
1992
- const capture = chunkB5ZUQULZ_cjs.makeAsyncContextCapture();
2007
+ const capture = chunk2YCQFLXW_cjs.makeAsyncContextCapture();
1993
2008
  if (!capture) return null;
1994
2009
  const keepAlive = isServerless() ? platformWaitUntil() : null;
1995
2010
  if (isServerless() && !keepAlive) return null;
@@ -2100,14 +2115,14 @@ function platformWaitUntil() {
2100
2115
  return null;
2101
2116
  }
2102
2117
  function buildContext() {
2103
- const currentActor = chunkB5ZUQULZ_cjs.getCurrentActor();
2118
+ const currentActor = chunk2YCQFLXW_cjs.getCurrentActor();
2104
2119
  if (!currentActor) return null;
2105
2120
  return { actor: currentActor };
2106
2121
  }
2107
2122
  async function flushTriggerAuditLog() {
2108
- const reader = chunkB5ZUQULZ_cjs.configuration().databaseReader;
2123
+ const reader = chunk2YCQFLXW_cjs.configuration().databaseReader;
2109
2124
  if (!reader) return;
2110
- const work = chunkO7SFYXJC_cjs.flushAuditLog(reader).catch(
2125
+ const work = chunkEXGEA4KE_cjs.flushAuditLog(reader).catch(
2111
2126
  (e) => chunkTWTG5ILJ_cjs.logger.debug(`trigger audit flush failed: ${describeError5(e)}`)
2112
2127
  );
2113
2128
  if (!isServerless()) return;
@@ -2125,13 +2140,13 @@ async function flushTriggerAuditLog() {
2125
2140
  ]).finally(() => clearTimeout(timer));
2126
2141
  }
2127
2142
  function runWithActorAndAuditScope(callback) {
2128
- if (chunkB5ZUQULZ_cjs.configuration().databaseReader == null) {
2129
- return chunkB5ZUQULZ_cjs.runWithActorScope(callback);
2143
+ if (chunk2YCQFLXW_cjs.configuration().databaseReader == null) {
2144
+ return chunk2YCQFLXW_cjs.runWithActorScope(callback);
2130
2145
  }
2131
- return chunkB5ZUQULZ_cjs.runWithActorScope(() => chunkO7SFYXJC_cjs.runWithEmittedAuditIdsScope(callback));
2146
+ return chunk2YCQFLXW_cjs.runWithActorScope(() => chunkEXGEA4KE_cjs.runWithEmittedAuditIdsScope(callback));
2132
2147
  }
2133
2148
  function isExcludedPath(path, method) {
2134
- const config = chunkB5ZUQULZ_cjs.configuration();
2149
+ const config = chunk2YCQFLXW_cjs.configuration();
2135
2150
  const normalizedMethod = (method ?? "").toUpperCase();
2136
2151
  for (const pattern of config.allExcludedPaths()) {
2137
2152
  if (typeof pattern === "string") {
@@ -2143,7 +2158,7 @@ function isExcludedPath(path, method) {
2143
2158
  return true;
2144
2159
  }
2145
2160
  }
2146
- if (hasExcludedExtension(path, chunkB5ZUQULZ_cjs.DEFAULT_EXCLUDED_EXTENSIONS)) return true;
2161
+ if (hasExcludedExtension(path, chunk2YCQFLXW_cjs.DEFAULT_EXCLUDED_EXTENSIONS)) return true;
2147
2162
  return false;
2148
2163
  }
2149
2164
  function extractRemoteIp(headers) {
@@ -2183,7 +2198,7 @@ function mergeRouteParams(rawParams, routeParams) {
2183
2198
  var MAX_ERROR_BODY_LENGTH = 16384;
2184
2199
  function authRedirectError(url, status, location) {
2185
2200
  try {
2186
- if (typeof status !== "number" || status < 300 || status >= 400 || !chunkB3WST6ES_cjs.isAuthPath(url.pathname)) return null;
2201
+ if (typeof status !== "number" || status < 300 || status >= 400 || !chunkUC2KS5EG_cjs.isAuthPath(url.pathname)) return null;
2187
2202
  if (typeof location !== "string" || !location) return null;
2188
2203
  const reason = new URL(location, url).searchParams.get("error");
2189
2204
  return reason ? capErrorText(reason) : null;
@@ -2199,7 +2214,7 @@ async function readResponseErrorMessage(response, trpcRoute = false) {
2199
2214
  const text = await response.clone().text();
2200
2215
  if (!text || text.length > MAX_ERROR_BODY_LENGTH) return null;
2201
2216
  const parsed = safeJsonParse2(text);
2202
- const trpc = trpcErrorMessage(parsed, chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys);
2217
+ const trpc = trpcErrorMessage(parsed, chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys);
2203
2218
  if (trpc) return trpc;
2204
2219
  if (response.status === 207) return null;
2205
2220
  const body = parsed;
@@ -2208,9 +2223,9 @@ async function readResponseErrorMessage(response, trpcRoute = false) {
2208
2223
  const raw = [body.error, body.message, nested?.message].find(
2209
2224
  (v) => typeof v === "string" && v.trim().length > 0
2210
2225
  );
2211
- const specific = !raw || isGenericErrorText(raw) ? specificErrorMessage(body, chunkB5ZUQULZ_cjs.configuration().excludedGraphqlVariableKeys) : null;
2226
+ const specific = !raw || isGenericErrorText(raw) ? specificErrorMessage(body, chunk2YCQFLXW_cjs.configuration().excludedGraphqlVariableKeys) : null;
2212
2227
  if (specific) return capErrorText(specific);
2213
- return raw ? truncate(chunkB3WST6ES_cjs.scrubSecretsInText(raw.trim(), { emails: true })) : null;
2228
+ return raw ? truncate(chunkUC2KS5EG_cjs.scrubSecretsInText(raw.trim(), { emails: true })) : null;
2214
2229
  } catch {
2215
2230
  return null;
2216
2231
  }
@@ -2234,23 +2249,23 @@ function applyActorFromHookAndUa(hookResult, userAgent) {
2234
2249
  const uaMatch = classifyUserAgent(userAgent);
2235
2250
  if (hookResult != null && typeof hookResult === "object" && !Array.isArray(hookResult)) {
2236
2251
  if (uaMatch === null) {
2237
- chunkB5ZUQULZ_cjs.setActor(hookResult);
2252
+ chunk2YCQFLXW_cjs.setActor(hookResult);
2238
2253
  return;
2239
2254
  }
2240
2255
  const hookObj = hookResult;
2241
2256
  const existingKind = hookObj.kind;
2242
2257
  if (typeof existingKind === "string" && existingKind.length > 0) {
2243
- chunkB5ZUQULZ_cjs.setActor(hookObj);
2258
+ chunk2YCQFLXW_cjs.setActor(hookObj);
2244
2259
  return;
2245
2260
  }
2246
- chunkB5ZUQULZ_cjs.setActor({ ...hookObj, kind: uaMatch.kind });
2261
+ chunk2YCQFLXW_cjs.setActor({ ...hookObj, kind: uaMatch.kind });
2247
2262
  return;
2248
2263
  }
2249
2264
  if (uaMatch !== null) {
2250
- chunkB5ZUQULZ_cjs.setActor(synthesizeAgentActor(uaMatch));
2265
+ chunk2YCQFLXW_cjs.setActor(synthesizeAgentActor(uaMatch));
2251
2266
  return;
2252
2267
  }
2253
- chunkB5ZUQULZ_cjs.setActor(null);
2268
+ chunk2YCQFLXW_cjs.setActor(null);
2254
2269
  }
2255
2270
  function synthesizeAgentActor(detection) {
2256
2271
  return {
@@ -2298,7 +2313,7 @@ function _resetStartupAnnouncementForTests() {
2298
2313
  }
2299
2314
  var ezlogs = {
2300
2315
  init(options) {
2301
- const config = chunkB5ZUQULZ_cjs.configuration();
2316
+ const config = chunk2YCQFLXW_cjs.configuration();
2302
2317
  config.apply(options);
2303
2318
  if (options.logLevel) chunkTWTG5ILJ_cjs.setLogLevel(options.logLevel);
2304
2319
  warnIfInsecureServerUrl(config.serverUrl, config.allowInsecureTransport);
@@ -2317,7 +2332,7 @@ var ezlogs = {
2317
2332
  }
2318
2333
  });
2319
2334
  } else if (options.patchDatabaseClient) {
2320
- chunkDM2EAOSF_cjs.patchPgClient(
2335
+ chunkXWEBKN65_cjs.patchPgClient(
2321
2336
  options.patchDatabaseClient
2322
2337
  );
2323
2338
  }
@@ -2364,7 +2379,7 @@ function detectDatabaseUrlFromEnv() {
2364
2379
  return null;
2365
2380
  }
2366
2381
  async function autoWireTriggerPathFromDatabaseUrl(options) {
2367
- const config = chunkB5ZUQULZ_cjs.configuration();
2382
+ const config = chunk2YCQFLXW_cjs.configuration();
2368
2383
  let pg;
2369
2384
  try {
2370
2385
  const dynImport = new Function(
@@ -2383,7 +2398,7 @@ async function autoWireTriggerPathFromDatabaseUrl(options) {
2383
2398
  max: 4
2384
2399
  });
2385
2400
  const reader = (sql, params) => pool.query(sql, params);
2386
- if (await chunkO7SFYXJC_cjs.auditLogInstalled(reader) === false) {
2401
+ if (await chunkEXGEA4KE_cjs.auditLogInstalled(reader) === false) {
2387
2402
  warnAuditLogMissing();
2388
2403
  void pool.end?.().catch(() => {
2389
2404
  });
@@ -2392,21 +2407,21 @@ async function autoWireTriggerPathFromDatabaseUrl(options) {
2392
2407
  if (config.databaseReader === null) {
2393
2408
  config.databaseReader = reader;
2394
2409
  }
2395
- chunkDM2EAOSF_cjs.patchPgClient(pg);
2396
- void chunkO7SFYXJC_cjs.checkAuditLogAccess(reader);
2410
+ chunkXWEBKN65_cjs.patchPgClient(pg);
2411
+ void chunkEXGEA4KE_cjs.checkAuditLogAccess(reader);
2397
2412
  runTriggerTrackedTablesDetection();
2398
2413
  }
2399
2414
  function applyDatabaseReaderDefaults() {
2400
- const config = chunkB5ZUQULZ_cjs.configuration();
2415
+ const config = chunk2YCQFLXW_cjs.configuration();
2401
2416
  const reader = config.databaseReader;
2402
2417
  if (!reader) return;
2403
- chunkO7SFYXJC_cjs.auditLogInstalled(reader).then((installed) => {
2418
+ chunkEXGEA4KE_cjs.auditLogInstalled(reader).then((installed) => {
2404
2419
  if (installed === false && config.databaseReader === reader) {
2405
2420
  config.databaseReader = null;
2406
2421
  warnAuditLogMissing();
2407
2422
  return;
2408
2423
  }
2409
- if (installed === true) void chunkO7SFYXJC_cjs.checkAuditLogAccess(reader);
2424
+ if (installed === true) void chunkEXGEA4KE_cjs.checkAuditLogAccess(reader);
2410
2425
  runTriggerTrackedTablesDetection();
2411
2426
  }).catch(() => {
2412
2427
  });
@@ -2417,10 +2432,10 @@ function warnAuditLogMissing() {
2417
2432
  );
2418
2433
  }
2419
2434
  function runTriggerTrackedTablesDetection() {
2420
- const config = chunkB5ZUQULZ_cjs.configuration();
2435
+ const config = chunk2YCQFLXW_cjs.configuration();
2421
2436
  if (!config.databaseReader) return;
2422
2437
  if (config.triggerTrackedTables !== null) return;
2423
- chunkO7SFYXJC_cjs.detectTriggerTrackedTables(config.databaseReader).then((tables) => {
2438
+ chunkEXGEA4KE_cjs.detectTriggerTrackedTables(config.databaseReader).then((tables) => {
2424
2439
  if (tables === null) {
2425
2440
  chunkTWTG5ILJ_cjs.logger.debug(
2426
2441
  "trigger-tracked-table detection failed; falling back to suppress-all on `databaseReader` paths. Untracked tables will not appear in the dashboard until detection succeeds or the table is added with `SELECT ezlogs_track('table_name')`."
@@ -2460,16 +2475,16 @@ function warnIfInsecureServerUrl(serverUrl, allowInsecure) {
2460
2475
  );
2461
2476
  }
2462
2477
  function _internalsForTests() {
2463
- return { buffer: chunkB3WST6ES_cjs.buffer_exports, flushScheduler };
2478
+ return { buffer: chunkUC2KS5EG_cjs.buffer_exports, flushScheduler };
2464
2479
  }
2465
2480
 
2466
2481
  Object.defineProperty(exports, "ArgError", {
2467
2482
  enumerable: true,
2468
- get: function () { return chunkB3WST6ES_cjs.ArgError; }
2483
+ get: function () { return chunkUC2KS5EG_cjs.ArgError; }
2469
2484
  });
2470
2485
  Object.defineProperty(exports, "buildEvent", {
2471
2486
  enumerable: true,
2472
- get: function () { return chunkB3WST6ES_cjs.build; }
2487
+ get: function () { return chunkUC2KS5EG_cjs.build; }
2473
2488
  });
2474
2489
  exports.__ezlogs_run_inline_server_action = __ezlogs_run_inline_server_action;
2475
2490
  exports._detectDatabaseUrlFromEnvForTests = _detectDatabaseUrlFromEnvForTests;