next-geo-block 0.2.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/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "next-geo-block",
3
+ "version": "0.2.0",
4
+ "description": "Per-page geo-blocking for Next.js (proxy/middleware) with country-header detection and an optional timezone fallback when no IP-country header is present.",
5
+ "keywords": [
6
+ "next",
7
+ "nextjs",
8
+ "next.js",
9
+ "geo",
10
+ "geoblock",
11
+ "geo-block",
12
+ "geoblocking",
13
+ "middleware",
14
+ "proxy",
15
+ "country",
16
+ "timezone",
17
+ "iso-3166",
18
+ "vercel",
19
+ "cloudflare"
20
+ ],
21
+ "license": "MIT",
22
+ "author": "Bharadwaj Giridhar",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/goforbg/next-geo-block.git"
26
+ },
27
+ "homepage": "https://github.com/goforbg/next-geo-block#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/goforbg/next-geo-block/issues"
30
+ },
31
+ "type": "module",
32
+ "main": "./dist/index.cjs",
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js",
39
+ "require": "./dist/index.cjs"
40
+ }
41
+ },
42
+ "files": [
43
+ "dist",
44
+ "README.md",
45
+ "LICENSE"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean --target es2022",
49
+ "test": "vitest run",
50
+ "test:watch": "vitest",
51
+ "prepublishOnly": "npm run test && npm run build"
52
+ },
53
+ "engines": {
54
+ "node": ">=18"
55
+ },
56
+ "peerDependencies": {
57
+ "next": ">=13"
58
+ },
59
+ "devDependencies": {
60
+ "next": "^15.0.0",
61
+ "tsup": "^8.3.0",
62
+ "typescript": "^5.6.0",
63
+ "vitest": "^2.1.0"
64
+ }
65
+ }