Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 2.15 KB
/
Copy pathpackage.json
File metadata and controls
78 lines (78 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "next-armored",
"version": "1.0.0",
"description": "Security middlewares for Next.js",
"homepage": "https://github.com/marek-e/next-armored#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/marek-e/next-armored.git"
},
"type": "module",
"scripts": {
"build": "tsup",
"build:watch": "tsup --watch",
"lint": "tsc",
"eslint": "eslint .",
"format": "prettier --write .",
"check-format": "prettier --check .",
"check-exports": "attw --config-path .attw.json --pack .",
"prepublishOnly": "pnpm run ci",
"new-version": "changeset",
"local-release": "changeset version && changeset publish",
"ci": "pnpm run build && pnpm run check-format && pnpm run lint && pnpm run check-exports"
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Marek Elmayan <marek.elmayan@theodo.com>",
"license": "MIT",
"devDependencies": {
"@arethetypeswrong/cli": "^0.16.4",
"@changesets/cli": "^2.27.9",
"@eslint/js": "^9.10.0",
"@types/node": "^22.5.4",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0",
"next": "^14.2.23",
"prettier": "^3.3.3",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0"
},
"peerDependencies": {
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"
},
"packageManager": "pnpm@9.9.0",
"exports": {
".": {
"import": "./dist/index.js",
"default": "./dist/index.cjs"
},
"./cors": {
"import": "./dist/middlewares/cross-origin-resource-sharing/index.js",
"default": "./dist/middlewares/cross-origin-resource-sharing/index.js"
},
"./csp": {
"import": "./dist/middlewares/content-security-policy/index.js",
"default": "./dist/middlewares/content-security-policy/index.js"
}
},
"publishConfig": {
"access": "public"
},
"files": [
"dist/**/*"
],
"keywords": [
"next",
"next.js",
"cors",
"middleware",
"security",
"csp",
"content-security-policy",
"cross-origin-resource-sharing"
]
}