@appwarden/middleware 3.14.0 → 3.14.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.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![GitHub](https://img.shields.io/badge/GitHub-appwarden%2Fmiddleware-181717?logo=github&logoColor=white)](https://github.com/appwarden/middleware)
5
5
  [![npm version](https://img.shields.io/npm/v/@appwarden/middleware.svg)](https://www.npmjs.com/package/@appwarden/middleware)
6
6
  [![npm provenance](https://img.shields.io/badge/npm-provenance-green)](https://docs.npmjs.com/generating-provenance-statements)
7
- ![Test Coverage](https://img.shields.io/badge/coverage-93.71%25-brightgreen)
7
+ ![Test Coverage](https://img.shields.io/badge/coverage-93.34%25-brightgreen)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
9
9
 
10
10
  ## Core Features
@@ -11,7 +11,7 @@ import {
11
11
  LOCKDOWN_TEST_EXPIRY_MS,
12
12
  MIDDLEWARE_VERSION,
13
13
  validateHeartbeatResponseBody
14
- } from "./chunk-FE7E5Q5F.js";
14
+ } from "./chunk-LDKC5DRW.js";
15
15
 
16
16
  // src/utils/build-lock-page-url.ts
17
17
  function normalizeLockPageSlug(lockPageSlug) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useContentSecurityPolicy
3
- } from "./chunk-YPF5MTU3.js";
3
+ } from "./chunk-DM57ZOTI.js";
4
4
 
5
5
  // src/utils/apply-content-security-policy-to-response.ts
6
6
  var applyContentSecurityPolicyToResponse = async ({
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  isHTMLResponse,
3
3
  makeCSPHeader
4
- } from "./chunk-NC2TN3D5.js";
4
+ } from "./chunk-2FSRHIPY.js";
5
5
  import {
6
6
  UseCSPInputSchema
7
- } from "./chunk-FE7E5Q5F.js";
7
+ } from "./chunk-LDKC5DRW.js";
8
8
 
9
9
  // src/middlewares/use-content-security-policy.ts
10
10
  var AppendAttribute = (attribute, nonce) => ({
@@ -3,7 +3,7 @@ import {
3
3
  AppwardenApiTokenSchema,
4
4
  BooleanSchema,
5
5
  UseCSPInputSchema
6
- } from "./chunk-FE7E5Q5F.js";
6
+ } from "./chunk-LDKC5DRW.js";
7
7
 
8
8
  // src/schemas/use-appwarden.ts
9
9
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var MIDDLEWARE_VERSION = "3.13.4";
2
+ var MIDDLEWARE_VERSION = "3.14.0";
3
3
 
4
4
  // src/constants.ts
5
5
  var LOCKDOWN_TEST_EXPIRY_MS = 5 * 60 * 1e3;
@@ -2,13 +2,13 @@ import {
2
2
  MemoryCache,
3
3
  debug,
4
4
  printMessage
5
- } from "./chunk-NC2TN3D5.js";
5
+ } from "./chunk-2FSRHIPY.js";
6
6
  import {
7
7
  APPWARDEN_CACHE_KEY,
8
8
  APPWARDEN_MIDDLEWARE_USER_AGENT,
9
9
  APPWARDEN_TEST_ROUTE,
10
10
  LockValue
11
- } from "./chunk-FE7E5Q5F.js";
11
+ } from "./chunk-LDKC5DRW.js";
12
12
 
13
13
  // src/utils/cloudflare/cloudflare-cache.ts
14
14
  var store = {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  applyContentSecurityPolicyToResponse,
3
3
  isResponseLike
4
- } from "../chunk-VVE7MFVZ.js";
5
- import "../chunk-YPF5MTU3.js";
4
+ } from "../chunk-7BZFEX4Z.js";
5
+ import "../chunk-DM57ZOTI.js";
6
6
  import {
7
7
  getNowMs,
8
8
  logElapsed
9
9
  } from "../chunk-G6BMPIYD.js";
10
10
  import {
11
11
  checkLockStatus
12
- } from "../chunk-GMWSGC6T.js";
12
+ } from "../chunk-PCWFMNHW.js";
13
13
  import {
14
14
  TEMPORARY_REDIRECT_STATUS,
15
15
  buildLockPageUrl,
@@ -22,14 +22,14 @@ import {
22
22
  isOnLockPage,
23
23
  printMessage,
24
24
  sanitizeConfigErrors
25
- } from "../chunk-NC2TN3D5.js";
25
+ } from "../chunk-2FSRHIPY.js";
26
26
  import {
27
27
  AppwardenApiHostnameSchema,
28
28
  AppwardenApiTokenSchema,
29
29
  BooleanSchema,
30
30
  HEARTBEAT_SERVICES,
31
31
  UseCSPInputSchema
32
- } from "../chunk-FE7E5Q5F.js";
32
+ } from "../chunk-LDKC5DRW.js";
33
33
 
34
34
  // src/adapters/astro-cloudflare.ts
35
35
  import { env as cloudflareEnv, waitUntil } from "cloudflare:workers";
@@ -7,7 +7,7 @@ import {
7
7
  } from "../chunk-G6BMPIYD.js";
8
8
  import {
9
9
  checkLockStatus
10
- } from "../chunk-GMWSGC6T.js";
10
+ } from "../chunk-PCWFMNHW.js";
11
11
  import {
12
12
  TEMPORARY_REDIRECT_STATUS,
13
13
  buildLockPageUrl,
@@ -20,14 +20,14 @@ import {
20
20
  makeCSPHeader,
21
21
  printMessage,
22
22
  sanitizeConfigErrors
23
- } from "../chunk-NC2TN3D5.js";
23
+ } from "../chunk-2FSRHIPY.js";
24
24
  import {
25
25
  AppwardenApiHostnameSchema,
26
26
  AppwardenApiTokenSchema,
27
27
  BooleanSchema,
28
28
  HEARTBEAT_SERVICES,
29
29
  UseCSPInputSchema
30
- } from "../chunk-FE7E5Q5F.js";
30
+ } from "../chunk-LDKC5DRW.js";
31
31
 
32
32
  // src/adapters/nextjs-cloudflare.ts
33
33
  import { getCloudflareContext } from "@opennextjs/cloudflare";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  applyContentSecurityPolicyToResponse,
3
3
  isResponseLike
4
- } from "../chunk-VVE7MFVZ.js";
5
- import "../chunk-YPF5MTU3.js";
4
+ } from "../chunk-7BZFEX4Z.js";
5
+ import "../chunk-DM57ZOTI.js";
6
6
  import {
7
7
  getNowMs,
8
8
  logElapsed
9
9
  } from "../chunk-G6BMPIYD.js";
10
10
  import {
11
11
  checkLockStatus
12
- } from "../chunk-GMWSGC6T.js";
12
+ } from "../chunk-PCWFMNHW.js";
13
13
  import {
14
14
  buildLockPageUrl,
15
15
  createHeartbeatConfigError,
@@ -21,14 +21,14 @@ import {
21
21
  isOnLockPage,
22
22
  printMessage,
23
23
  sanitizeConfigErrors
24
- } from "../chunk-NC2TN3D5.js";
24
+ } from "../chunk-2FSRHIPY.js";
25
25
  import {
26
26
  AppwardenApiHostnameSchema,
27
27
  AppwardenApiTokenSchema,
28
28
  BooleanSchema,
29
29
  HEARTBEAT_SERVICES,
30
30
  UseCSPInputSchema
31
- } from "../chunk-FE7E5Q5F.js";
31
+ } from "../chunk-LDKC5DRW.js";
32
32
 
33
33
  // src/adapters/react-router-cloudflare.ts
34
34
  import { waitUntil } from "cloudflare:workers";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  applyContentSecurityPolicyToResponse,
3
3
  isResponseLike
4
- } from "../chunk-VVE7MFVZ.js";
5
- import "../chunk-YPF5MTU3.js";
4
+ } from "../chunk-7BZFEX4Z.js";
5
+ import "../chunk-DM57ZOTI.js";
6
6
  import {
7
7
  getNowMs,
8
8
  logElapsed
9
9
  } from "../chunk-G6BMPIYD.js";
10
10
  import {
11
11
  checkLockStatus
12
- } from "../chunk-GMWSGC6T.js";
12
+ } from "../chunk-PCWFMNHW.js";
13
13
  import {
14
14
  buildLockPageUrl,
15
15
  createHeartbeatConfigError,
@@ -21,14 +21,14 @@ import {
21
21
  isOnLockPage,
22
22
  printMessage,
23
23
  sanitizeConfigErrors
24
- } from "../chunk-NC2TN3D5.js";
24
+ } from "../chunk-2FSRHIPY.js";
25
25
  import {
26
26
  AppwardenApiHostnameSchema,
27
27
  AppwardenApiTokenSchema,
28
28
  BooleanSchema,
29
29
  HEARTBEAT_SERVICES,
30
30
  UseCSPInputSchema
31
- } from "../chunk-FE7E5Q5F.js";
31
+ } from "../chunk-LDKC5DRW.js";
32
32
 
33
33
  // src/adapters/tanstack-start-cloudflare.ts
34
34
  import { waitUntil } from "cloudflare:workers";
package/cloudflare.d.ts CHANGED
@@ -515,6 +515,7 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
515
515
  debug: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, boolean, string | boolean | undefined>>;
516
516
  }, "strip", z.ZodTypeAny, {
517
517
  lockPageSlug: string;
518
+ debug?: boolean | undefined;
518
519
  contentSecurityPolicy?: {
519
520
  mode: "disabled" | "report-only" | "enforced";
520
521
  directives?: {
@@ -546,9 +547,9 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
546
547
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
547
548
  } | undefined;
548
549
  } | undefined;
549
- debug?: boolean | undefined;
550
550
  }, {
551
551
  lockPageSlug: string;
552
+ debug?: string | boolean | undefined;
552
553
  contentSecurityPolicy?: {
553
554
  mode: "disabled" | "report-only" | "enforced";
554
555
  directives: string | {
@@ -580,7 +581,6 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
580
581
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
581
582
  };
582
583
  } | undefined;
583
- debug?: string | boolean | undefined;
584
584
  }>>>;
585
585
  appwardenApiToken: z.ZodEffects<z.ZodString, string, string>;
586
586
  appwardenApiHostname: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -621,6 +621,7 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
621
621
  } | undefined;
622
622
  multidomainConfig?: Record<string, {
623
623
  lockPageSlug: string;
624
+ debug?: boolean | undefined;
624
625
  contentSecurityPolicy?: {
625
626
  mode: "disabled" | "report-only" | "enforced";
626
627
  directives?: {
@@ -652,11 +653,11 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
652
653
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
653
654
  } | undefined;
654
655
  } | undefined;
655
- debug?: boolean | undefined;
656
656
  }> | undefined;
657
657
  appwardenApiHostname?: string | undefined;
658
658
  }, {
659
659
  appwardenApiToken: string;
660
+ debug?: string | boolean | undefined;
660
661
  lockPageSlug?: string | undefined;
661
662
  contentSecurityPolicy?: {
662
663
  mode: "disabled" | "report-only" | "enforced";
@@ -689,9 +690,9 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
689
690
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
690
691
  };
691
692
  } | undefined;
692
- debug?: string | boolean | undefined;
693
693
  multidomainConfig?: Record<string, {
694
694
  lockPageSlug: string;
695
+ debug?: string | boolean | undefined;
695
696
  contentSecurityPolicy?: {
696
697
  mode: "disabled" | "report-only" | "enforced";
697
698
  directives: string | {
@@ -723,7 +724,6 @@ declare const ConfigFnInputSchema: z.ZodFunction<z.ZodTuple<[z.ZodType<RequestCo
723
724
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
724
725
  };
725
726
  } | undefined;
726
- debug?: string | boolean | undefined;
727
727
  }> | undefined;
728
728
  appwardenApiHostname?: string | undefined;
729
729
  }>, any, any>>>;
package/cloudflare.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  UseAppwardenInputSchema,
3
3
  lockPageSlugRefinement
4
- } from "./chunk-HKPJZTYK.js";
4
+ } from "./chunk-JJOX4UAG.js";
5
5
  import {
6
6
  getErrors
7
7
  } from "./chunk-NV7K5PRA.js";
8
8
  import {
9
9
  useContentSecurityPolicy
10
- } from "./chunk-YPF5MTU3.js";
10
+ } from "./chunk-DM57ZOTI.js";
11
11
  import {
12
12
  checkLockStatus
13
- } from "./chunk-GMWSGC6T.js";
13
+ } from "./chunk-PCWFMNHW.js";
14
14
  import {
15
15
  buildLockPageUrl,
16
16
  createHeartbeatConfigError,
@@ -22,10 +22,10 @@ import {
22
22
  isOnLockPage,
23
23
  printMessage,
24
24
  sanitizeConfigErrors
25
- } from "./chunk-NC2TN3D5.js";
25
+ } from "./chunk-2FSRHIPY.js";
26
26
  import {
27
27
  HEARTBEAT_SERVICES
28
- } from "./chunk-FE7E5Q5F.js";
28
+ } from "./chunk-LDKC5DRW.js";
29
29
 
30
30
  // src/runners/appwarden-on-cloudflare.ts
31
31
  import { ZodError } from "zod";
package/index.d.ts CHANGED
@@ -710,6 +710,7 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
710
710
  debug: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>, boolean, string | boolean | undefined>>;
711
711
  }, "strip", z.ZodTypeAny, {
712
712
  lockPageSlug: string;
713
+ debug?: boolean | undefined;
713
714
  contentSecurityPolicy?: {
714
715
  mode: "disabled" | "report-only" | "enforced";
715
716
  directives?: {
@@ -741,9 +742,9 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
741
742
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
742
743
  } | undefined;
743
744
  } | undefined;
744
- debug?: boolean | undefined;
745
745
  }, {
746
746
  lockPageSlug: string;
747
+ debug?: string | boolean | undefined;
747
748
  contentSecurityPolicy?: {
748
749
  mode: "disabled" | "report-only" | "enforced";
749
750
  directives: string | {
@@ -775,7 +776,6 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
775
776
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
776
777
  };
777
778
  } | undefined;
778
- debug?: string | boolean | undefined;
779
779
  }>>>;
780
780
  appwardenApiToken: z.ZodEffects<z.ZodString, string, string>;
781
781
  appwardenApiHostname: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -816,6 +816,7 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
816
816
  } | undefined;
817
817
  multidomainConfig?: Record<string, {
818
818
  lockPageSlug: string;
819
+ debug?: boolean | undefined;
819
820
  contentSecurityPolicy?: {
820
821
  mode: "disabled" | "report-only" | "enforced";
821
822
  directives?: {
@@ -847,11 +848,11 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
847
848
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
848
849
  } | undefined;
849
850
  } | undefined;
850
- debug?: boolean | undefined;
851
851
  }> | undefined;
852
852
  appwardenApiHostname?: string | undefined;
853
853
  }, {
854
854
  appwardenApiToken: string;
855
+ debug?: string | boolean | undefined;
855
856
  lockPageSlug?: string | undefined;
856
857
  contentSecurityPolicy?: {
857
858
  mode: "disabled" | "report-only" | "enforced";
@@ -884,9 +885,9 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
884
885
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
885
886
  };
886
887
  } | undefined;
887
- debug?: string | boolean | undefined;
888
888
  multidomainConfig?: Record<string, {
889
889
  lockPageSlug: string;
890
+ debug?: string | boolean | undefined;
890
891
  contentSecurityPolicy?: {
891
892
  mode: "disabled" | "report-only" | "enforced";
892
893
  directives: string | {
@@ -918,7 +919,6 @@ declare const UseAppwardenInputSchema: z.ZodObject<{
918
919
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
919
920
  };
920
921
  } | undefined;
921
- debug?: string | boolean | undefined;
922
922
  }> | undefined;
923
923
  appwardenApiHostname?: string | undefined;
924
924
  }>;
package/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-QEFORWCW.js";
6
6
  import {
7
7
  UseAppwardenInputSchema
8
- } from "./chunk-HKPJZTYK.js";
8
+ } from "./chunk-JJOX4UAG.js";
9
9
  import {
10
10
  APPWARDEN_CACHE_KEY,
11
11
  APPWARDEN_HEARTBEAT_ROUTE,
@@ -28,7 +28,7 @@ import {
28
28
  HeartbeatResponseBodySchema,
29
29
  LOCKDOWN_TEST_EXPIRY_MS,
30
30
  validateHeartbeatResponseBody
31
- } from "./chunk-FE7E5Q5F.js";
31
+ } from "./chunk-LDKC5DRW.js";
32
32
  export {
33
33
  APPWARDEN_CACHE_KEY,
34
34
  APPWARDEN_HEARTBEAT_ROUTE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appwarden/middleware",
3
- "version": "3.14.0",
3
+ "version": "3.14.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",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "packageManager": "pnpm@10.4.1",
57
57
  "engines": {
58
- "node": ">=24"
58
+ "node": ">=22.14.0"
59
59
  },
60
60
  "dependencies": {
61
61
  "@upstash/redis": "^1.37.0",
@@ -104,12 +104,18 @@
104
104
  "body-parser@>=2.2.0 <2.2.1": ">=2.2.1",
105
105
  "cookie@<0.7.0": ">=0.7.0",
106
106
  "devalue@<5.6.4": ">=5.6.4",
107
+ "dompurify@<=3.3.1": ">=3.3.2",
107
108
  "esbuild@<=0.24.2": ">=0.25.0",
108
- "fast-xml-parser@>=4.0.0-beta.3 <=5.5.5": ">=5.5.6",
109
+ "fast-xml-parser@5.3.4": "5.5.10",
110
+ "flatted@<3.4.2": ">=3.4.2",
109
111
  "h3@<1.15.6": ">=1.15.6",
110
112
  "h3@>=2.0.0 <=2.0.1-rc.14": ">=2.0.1-rc.15",
113
+ "handlebars@4.7.8": "4.7.9",
111
114
  "js-yaml@<3.14.2": ">=3.14.2",
112
115
  "jws@=4.0.0": ">=4.0.1",
116
+ "lodash@>=4.0.0 <=4.17.23": ">=4.18.1",
117
+ "lodash-es@>=4.0.0 <=4.17.23": ">=4.18.1",
118
+ "mermaid@<10.9.5": ">=10.9.5",
113
119
  "minimatch@<10.2.1": ">=10.2.3",
114
120
  "next@>=10.0.0 <16.1.7": ">=16.1.7",
115
121
  "npm@<=11.8.0": ">=11.9.0",
@@ -122,7 +128,17 @@
122
128
  "tar@<=7.5.10": ">=7.5.11",
123
129
  "undici@<7.24.0": ">=7.24.0",
124
130
  "wrangler@>=4.0.0 <4.59.1": ">=4.59.1",
125
- "@tanstack/start-server-core@1.163.2>h3-v2": "npm:h3@2.0.1-rc.16"
131
+ "@tanstack/start-server-core@1.163.2>h3-v2": "npm:h3@2.0.1-rc.16",
132
+ "h3@>=2.0.0-beta.0 <=2.0.1-rc.16": ">=2.0.1-rc.17",
133
+ "h3@>=2.0.0-beta.4 <2.0.1-rc.18": ">=2.0.1-rc.18",
134
+ "h3@>=2.0.1-alpha.0 <=2.0.1-rc.16": ">=2.0.1-rc.17",
135
+ "defu@<=6.1.4": ">=6.1.5",
136
+ "vite@<=6.4.1": ">=6.4.2",
137
+ "vite@>=7.0.0 <=7.3.1": ">=7.3.2",
138
+ "vite@>=7.1.0 <=7.3.1": ">=7.3.2",
139
+ "vite@>=6.0.0 <=6.4.1": ">=6.4.2",
140
+ "next@>=16.0.0-beta.0 <16.2.3": ">=16.2.3",
141
+ "follow-redirects@<=1.15.11": ">=1.16.0"
126
142
  }
127
143
  }
128
144
  }
package/vercel.d.ts CHANGED
@@ -318,6 +318,7 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
318
318
  lockPageSlug: string;
319
319
  appwardenApiToken: string;
320
320
  cacheUrl: string;
321
+ debug?: boolean | undefined;
321
322
  contentSecurityPolicy?: {
322
323
  mode: "disabled" | "report-only" | "enforced";
323
324
  directives?: {
@@ -349,12 +350,12 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
349
350
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
350
351
  } | undefined;
351
352
  } | undefined;
352
- debug?: boolean | undefined;
353
353
  appwardenApiHostname?: string | undefined;
354
354
  vercelApiToken?: string | undefined;
355
355
  }, {
356
356
  appwardenApiToken: string;
357
357
  cacheUrl: string;
358
+ debug?: boolean | undefined;
358
359
  lockPageSlug?: string | undefined;
359
360
  contentSecurityPolicy?: {
360
361
  mode: "disabled" | "report-only" | "enforced";
@@ -387,13 +388,13 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
387
388
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
388
389
  };
389
390
  } | undefined;
390
- debug?: boolean | undefined;
391
391
  appwardenApiHostname?: string | undefined;
392
392
  vercelApiToken?: string | undefined;
393
393
  }>, {
394
394
  lockPageSlug: string;
395
395
  appwardenApiToken: string;
396
396
  cacheUrl: string;
397
+ debug?: boolean | undefined;
397
398
  contentSecurityPolicy?: {
398
399
  mode: "disabled" | "report-only" | "enforced";
399
400
  directives?: {
@@ -425,12 +426,12 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
425
426
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
426
427
  } | undefined;
427
428
  } | undefined;
428
- debug?: boolean | undefined;
429
429
  appwardenApiHostname?: string | undefined;
430
430
  vercelApiToken?: string | undefined;
431
431
  }, {
432
432
  appwardenApiToken: string;
433
433
  cacheUrl: string;
434
+ debug?: boolean | undefined;
434
435
  lockPageSlug?: string | undefined;
435
436
  contentSecurityPolicy?: {
436
437
  mode: "disabled" | "report-only" | "enforced";
@@ -463,13 +464,13 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
463
464
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
464
465
  };
465
466
  } | undefined;
466
- debug?: boolean | undefined;
467
467
  appwardenApiHostname?: string | undefined;
468
468
  vercelApiToken?: string | undefined;
469
469
  }>, {
470
470
  lockPageSlug: string;
471
471
  appwardenApiToken: string;
472
472
  cacheUrl: string;
473
+ debug?: boolean | undefined;
473
474
  contentSecurityPolicy?: {
474
475
  mode: "disabled" | "report-only" | "enforced";
475
476
  directives?: {
@@ -501,12 +502,12 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
501
502
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
502
503
  } | undefined;
503
504
  } | undefined;
504
- debug?: boolean | undefined;
505
505
  appwardenApiHostname?: string | undefined;
506
506
  vercelApiToken?: string | undefined;
507
507
  }, {
508
508
  appwardenApiToken: string;
509
509
  cacheUrl: string;
510
+ debug?: boolean | undefined;
510
511
  lockPageSlug?: string | undefined;
511
512
  contentSecurityPolicy?: {
512
513
  mode: "disabled" | "report-only" | "enforced";
@@ -539,13 +540,13 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
539
540
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
540
541
  };
541
542
  } | undefined;
542
- debug?: boolean | undefined;
543
543
  appwardenApiHostname?: string | undefined;
544
544
  vercelApiToken?: string | undefined;
545
545
  }>, {
546
546
  lockPageSlug: string;
547
547
  appwardenApiToken: string;
548
548
  cacheUrl: string;
549
+ debug?: boolean | undefined;
549
550
  contentSecurityPolicy?: {
550
551
  mode: "disabled" | "report-only" | "enforced";
551
552
  directives?: {
@@ -577,12 +578,12 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
577
578
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
578
579
  } | undefined;
579
580
  } | undefined;
580
- debug?: boolean | undefined;
581
581
  appwardenApiHostname?: string | undefined;
582
582
  vercelApiToken?: string | undefined;
583
583
  }, {
584
584
  appwardenApiToken: string;
585
585
  cacheUrl: string;
586
+ debug?: boolean | undefined;
586
587
  lockPageSlug?: string | undefined;
587
588
  contentSecurityPolicy?: {
588
589
  mode: "disabled" | "report-only" | "enforced";
@@ -615,13 +616,13 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
615
616
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
616
617
  };
617
618
  } | undefined;
618
- debug?: boolean | undefined;
619
619
  appwardenApiHostname?: string | undefined;
620
620
  vercelApiToken?: string | undefined;
621
621
  }>, {
622
622
  lockPageSlug: string;
623
623
  appwardenApiToken: string;
624
624
  cacheUrl: string;
625
+ debug?: boolean | undefined;
625
626
  contentSecurityPolicy?: {
626
627
  mode: "disabled" | "report-only" | "enforced";
627
628
  directives?: {
@@ -653,12 +654,12 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
653
654
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
654
655
  } | undefined;
655
656
  } | undefined;
656
- debug?: boolean | undefined;
657
657
  appwardenApiHostname?: string | undefined;
658
658
  vercelApiToken?: string | undefined;
659
659
  }, {
660
660
  appwardenApiToken: string;
661
661
  cacheUrl: string;
662
+ debug?: boolean | undefined;
662
663
  lockPageSlug?: string | undefined;
663
664
  contentSecurityPolicy?: {
664
665
  mode: "disabled" | "report-only" | "enforced";
@@ -691,7 +692,6 @@ declare const AppwardenConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Zo
691
692
  "require-trusted-types-for"?: string | boolean | string[] | undefined;
692
693
  };
693
694
  } | undefined;
694
- debug?: boolean | undefined;
695
695
  appwardenApiHostname?: string | undefined;
696
696
  vercelApiToken?: string | undefined;
697
697
  }>;
package/vercel.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  makeCSPHeader,
21
21
  printMessage,
22
22
  sanitizeConfigErrors
23
- } from "./chunk-NC2TN3D5.js";
23
+ } from "./chunk-2FSRHIPY.js";
24
24
  import {
25
25
  APPWARDEN_CACHE_KEY,
26
26
  APPWARDEN_MIDDLEWARE_USER_AGENT,
@@ -31,7 +31,7 @@ import {
31
31
  LockValue,
32
32
  errors,
33
33
  globalErrors
34
- } from "./chunk-FE7E5Q5F.js";
34
+ } from "./chunk-LDKC5DRW.js";
35
35
 
36
36
  // src/runners/appwarden-on-vercel.ts
37
37
  import { waitUntil } from "@vercel/functions";