-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
package.json
138 lines (138 loc) · 7.78 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "swagger-stats",
"version": "0.99.7",
"description": "API Telemetry and APM. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices, based on express routes and Swagger (Open API) specification",
"main": "lib/index.js",
"scripts": {
"build": "npm run copy:ux",
"copy:ux": "ncp node_modules/swagger-stats-ux/dist ux",
"start": "node examples/testapp/testapp.js",
"hapitestapp": "cross-env SWS_AUTHTEST_MAXAGE=2 nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/hapitestapp node examples/hapijstest/hapijstest.js",
"fastifytestapp": "cross-env SWS_AUTHTEST_MAXAGE=2 nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/fastifytestapp node examples/fastify/fasifytest.js",
"restifytestapp": "cross-env SWS_AUTHTEST_MAXAGE=2 nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/restifytestapp node examples/restify/restifytest.js",
"testappstop": "mocha --delay --exit test/stoptestapp.js",
"delay1s": "mocha --delay --exit test/delay.js",
"test": "npm run testExpress && npm run testHapi && npm run testFastify && npm run testRestify && npm run coverage-report",
"testExpress": "npm run cov000 && npm run cov010 && npm run cov100 && npm run cov200 && npm run cov300 && npm run cov400 && npm run cov500",
"cov000": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/000 mocha --delay --exit test/000_baseline.js",
"cov010": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/010 mocha --delay --exit test/010_swsapistats.js",
"cov100": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/100 mocha --delay --exit test/100_method.js",
"cov200": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/200 mocha --delay --exit test/200_apicore.js",
"cov300": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/300 mocha --delay --exit test/300_timeline.js",
"cov400": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/400 mocha --delay --exit test/400_auth.js",
"cov500": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/500 mocha --delay --exit test/500_elastic.js",
"testHapi": "concurrently -k --success first \"npm run hapitestapp\" \"npm run covHapi\"",
"covHapi": "npm run delay1s && npm run cov000h && npm run cov100h && npm run cov200h && npm run cov300h && npm run cov400h && npm run cov500h && npm run testappstop",
"cov000h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/000h mocha --delay --exit test/000_baseline.js",
"cov100h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/100h mocha --delay --exit test/100_method.js",
"cov200h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/200h mocha --delay --exit test/200_apicore.js",
"cov300h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/300h mocha --delay --exit test/300_timeline.js",
"cov400h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/400h mocha --delay --exit test/400_auth.js",
"cov500h": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/500h mocha --delay --exit test/500_elastic.js",
"testFastify": "concurrently -k --success first \"npm run fastifytestapp\" \"npm run covFastify\"",
"covFastify": "npm run delay1s && npm run cov000f && npm run cov100f && npm run cov200f && npm run cov300f && npm run cov400f && npm run cov500f && npm run testappstop",
"cov000f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/000f mocha --delay --exit test/000_baseline.js",
"cov100f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/100f mocha --delay --exit test/100_method.js",
"cov200f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/200f mocha --delay --exit test/200_apicore.js",
"cov300f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/300f mocha --delay --exit test/300_timeline.js",
"cov400f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/400f mocha --delay --exit test/400_auth.js",
"cov500f": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/500f mocha --delay --exit test/500_elastic.js",
"testRestify": "concurrently -k --success first \"npm run restifytestapp\" \"npm run covRestify\"",
"covRestify": "npm run delay1s && npm run cov000r && npm run cov100r && npm run cov200r && npm run cov300r && npm run cov400r && npm run testappstop",
"cov000r": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/000f mocha --delay --exit test/000_baseline.js",
"cov100r": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/100f mocha --delay --exit test/100_method.js",
"cov200r": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/200f mocha --delay --exit test/200_apicore.js",
"cov300r": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/300f mocha --delay --exit test/300_timeline.js",
"cov400r": "nyc --reporter=lcov --reporter=html --reporter=json --reporter=text --report-dir=coverage/400f mocha --delay --exit test/400_auth.js",
"coverage-report": "node_modules/.bin/istanbul report --root ./coverage --dir ./coverage-report lcov",
"specstest": "mocha test/specstest/swaggerspecstest.js"
},
"keywords": [
"api",
"observability",
"telemetry",
"node",
"express",
"koa",
"hapi",
"fastify",
"rest",
"statistics",
"monitoring",
"alerting",
"swagger",
"openapi",
"schema",
"prometheus",
"metrics",
"elasticsearch",
"kibana",
"grafana"
],
"files": [
"dashboards/**/*",
"examples/**/*",
"lib/**/*",
"schema/**/*",
"scripts/**/*",
"ux/**/*",
"package.json",
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "https://github.com/slanatech/swagger-stats"
},
"author": "https://github.com/sv2",
"homepage": "http://swaggerstats.io",
"bugs": {
"url": "https://github.com/slanatech/swagger-stats/issues",
"email": "[email protected]"
},
"license": "MIT",
"dependencies": {
"basic-auth": "^2.0.1",
"cookies": "^0.8.0",
"debug": "^4.3.4",
"moment": "^2.29.4",
"path-to-regexp": "^6.2.1",
"qs": "^6.11.2",
"send": "^0.18.0",
"uuid": "^9.0.0",
"axios": "^1.4.0"
},
"peerDependencies": {
"prom-client": ">= 10 <= 14"
},
"devDependencies": {
"@hapi/hapi": "^21.3.2",
"@hapi/inert": "^7.1.0",
"body-parser": "^1.20.2",
"chai": "^4.3.7",
"chokidar": "^3.5.3",
"concurrently": "^8.0.1",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"cuid": "^3.0.0",
"express": "^4.18.2",
"fastify": "^4.17.0",
"fastify-express": "^0.4.0",
"istanbul": "^0.4.5",
"mocha": "^10.2.0",
"ncp": "^2.0.0",
"nyc": "^15.1.0",
"prom-client": "^14.2.0",
"q": "^1.5.1",
"restify": "^11.1.0",
"serve-favicon": "^2.5.0",
"serve-static": "^1.15.0",
"should": "^13.2.3",
"supertest": "^6.3.3",
"swagger-parser": "^10.0.3",
"swagger-stats-ux": "^0.95.29",
"request": "^2.88.2"
}
}