@appwarden/middleware 3.9.0 → 3.9.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.
@@ -21,7 +21,6 @@ import {
21
21
  } from "../chunk-QGXPAVOA.js";
22
22
 
23
23
  // src/adapters/nextjs-cloudflare.ts
24
- import { waitUntil } from "cloudflare:workers";
25
24
  import {
26
25
  NextResponse
27
26
  } from "next/server";
@@ -90,7 +89,7 @@ function createAppwardenMiddleware(configFn) {
90
89
  appwardenApiHostname: config.appwardenApiHostname,
91
90
  debug: config.debug,
92
91
  lockPageSlug: config.lockPageSlug,
93
- waitUntil
92
+ waitUntil: ctx.waitUntil.bind(ctx)
94
93
  });
95
94
  if (result.isLocked) {
96
95
  const lockPageUrl = buildLockPageUrl(config.lockPageSlug, request.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appwarden/middleware",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "Instantly disable all user interaction with your app deployed on Cloudflare or Vercel",
5
5
  "type": "module",
6
6
  "license": "MIT",