-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (45 loc) · 1.77 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
{
"name": "mutual_tls",
"version": "1.0.0",
"description": "Mutual TLS client and server",
"author": "Ben",
"license": "ISC",
"main": "./src/server_http.js",
"repository": {
"type": "git",
"url": "https://github.com/BenEdridge/Mutual_TLS.git"
},
"engineStrict": true,
"engines": {
"node": ">=14.x",
"npm": ">=6.12.x"
},
"scripts": {
"start": "TYPE=server PROTOCOL=http node ./src/start.js",
"start:server_http": "TYPE=server PROTOCOL=http node ./src/start.js",
"start:server_wss": "TYPE=server PROTOCOL=wss node ./src/start.js",
"start:server_grpc": "TYPE=server PROTOCOL=grpc node ./src/start.js",
"start:client_http": "TYPE=client PROTOCOL=http HTTP_VER=1 node ./src/start.js",
"start:client_http2": "TYPE=client PROTOCOL=http HTTP_VER=2 node ./src/start.js",
"start:client_wss": "TYPE=client PROTOCOL=wss node ./src/start.js",
"start:client_grpc": "TYPE=client PROTOCOL=grpc node ./src/start.js",
"generate:keys-forge": "node ./src/cert_generator_forge.js",
"generate:keys-openssl": "sh ./src/scripts/cert_generator_openssl.sh",
"generate:clean": "rm keys/*",
"docker:build": "docker build -t mutual-tls:latest .",
"docker:run:server": "docker run -d --name mutual-tls-server mutual-tls:latest npm run start:server",
"docker:run:client": "docker run -i --rm --network container:mutual-tls-server --name mutual-tls-client mutual-tls:latest npm run start:client",
"test:e2e": "npm run docker:run:server && npm run docker:run:client",
"pretest": "npm run generate:keys-forge",
"test": "tap --jobs=1 --no-check-coverage"
},
"devDependencies": {
"node-forge": "^0.10.0",
"tap": "^15.0.10"
},
"dependencies": {
"@grpc/proto-loader": "^0.6.6",
"grpc": "^1.24.11",
"ws": "^8.2.3"
}
}