-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
77 lines (77 loc) · 2.28 KB
/
package.json
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
{
"name": "csrf-csrf",
"version": "3.0.7",
"description": "A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.",
"type": "module",
"main": "./lib/cjs/index.cjs",
"exports": {
".": {
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/cjs/index.cjs"
},
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/esm/index.js"
}
}
},
"types": "./lib/index.d.ts",
"files": [
"lib/esm/index.js",
"lib/cjs/index.cjs",
"lib/index.d.ts",
"lib/index.d.cts"
],
"scripts": {
"test": "mocha --recursive ./src/tests/*.test.ts",
"clean": "rm -rf ./lib",
"lint": "npx eslint .",
"prettify": "npx prettier --write .",
"build:types": "npx tsup src/index.ts --out-dir lib --dts-only --format esm,cjs",
"build:cjs": "tsc -p tsconfig.cjs.json && mv ./lib/cjs/index.js ./lib/cjs/index.cjs && rm ./lib/cjs/types.js",
"build:esm": "tsc -p tsconfig.json && rm ./lib/esm/types.js",
"build:code": "npm run build:cjs && npm run build:esm",
"build": "npm run build:types && npm run build:code",
"build:clean": "npm run clean && npm run build",
"pack": "npm pack",
"pack:clean": "rm -rf *.tgz && npm run pack",
"changelog": "standard-version"
},
"author": "psibean",
"license": "ISC",
"homepage": "https://github.com/Psifi-Solutions/csrf-csrf",
"repository": "https://github.com/Psifi-Solutions/csrf-csrf",
"keywords": [
"csrf",
"middleware",
"express",
"tokens"
],
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/cookie": "^0.6.0",
"@types/cookie-parser": "^1.4.6",
"@types/cookie-signature": "^1.1.2",
"@types/express": "^4.17.21",
"@types/http-errors": "^2.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^18.15.8",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"chai": "^4.3.10",
"cookie": "^0.6.0",
"cookie-parser": "^1.4.6",
"cookie-signature": "^1.2.1",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"prettier": "^3.1.1",
"standard-version": "^9.5.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
"http-errors": "^2.0.0"
}
}