@appwarden/middleware 1.6.0 → 2.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @appwarden/middleware
2
2
 
3
- ![Test Coverage](https://img.shields.io/badge/coverage-97.01%25-brightgreen)
3
+ ![Test Coverage](https://img.shields.io/badge/coverage-95.82%25-brightgreen)
4
4
  [![npm version](https://img.shields.io/npm/v/@appwarden/middleware.svg)](https://www.npmjs.com/package/@appwarden/middleware)
5
5
  [![npm provenance](https://img.shields.io/badge/npm-provenance-green)](https://docs.npmjs.com/generating-provenance-statements)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
package/cloudflare.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as Middleware, B as Bindings } from './use-content-security-policy-Bh2qDCKv.js';
2
- export { u as useContentSecurityPolicy } from './use-content-security-policy-Bh2qDCKv.js';
1
+ import { M as Middleware, B as Bindings } from './use-content-security-policy-DjRTjIpm.js';
2
+ export { u as useContentSecurityPolicy } from './use-content-security-policy-DjRTjIpm.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  declare const UseAppwardenInputSchema: z.ZodObject<{
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { B as Bindings, C as CSPDirectivesSchema, a as CSPModeSchema, M as Middleware, u as useContentSecurityPolicy } from './use-content-security-policy-Bh2qDCKv.js';
1
+ export { B as Bindings, C as CSPDirectivesSchema, a as CSPModeSchema, M as Middleware, u as useContentSecurityPolicy } from './use-content-security-policy-DjRTjIpm.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const LOCKDOWN_TEST_EXPIRY_MS: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appwarden/middleware",
3
- "version": "1.6.0",
3
+ "version": "2.0.0",
4
4
  "description": "Instantly shut off access your app deployed on Cloudflare or Vercel",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -58,7 +58,6 @@
58
58
  "node": ">=24"
59
59
  },
60
60
  "dependencies": {
61
- "@cloudflare/next-on-pages": "^1.13.16",
62
61
  "@upstash/redis": "^1.36.2",
63
62
  "@vercel/edge-config": "^1.4.3",
64
63
  "zod": "^3.25.76"
@@ -84,10 +84,6 @@ declare const ContentSecurityPolicySchema: z.ZodObject<{
84
84
  }>;
85
85
  type ContentSecurityPolicyType = z.infer<typeof ContentSecurityPolicySchema>;
86
86
 
87
- declare global {
88
- interface CloudflareEnv extends Bindings {
89
- }
90
- }
91
87
  type Bindings = {
92
88
  DEBUG: string | boolean;
93
89
  LOCK_PAGE_SLUG: string;
@@ -96,6 +92,10 @@ type Bindings = {
96
92
  APPWARDEN_API_TOKEN: string;
97
93
  APPWARDEN_API_HOSTNAME?: string;
98
94
  };
95
+ declare global {
96
+ interface CloudflareEnv extends Bindings {
97
+ }
98
+ }
99
99
 
100
100
  interface MiddlewareContext {
101
101
  hostname: string;