-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
package.json
147 lines (147 loc) · 4.83 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
139
140
141
142
143
144
145
146
147
{
"name": "data.jsdelivr.com",
"version": "1.3.0",
"license": "OSL-3.0",
"description": "jsDelivr API",
"private": true,
"main": "./src/index.js",
"dependencies": {
"@elastic/elasticsearch": "^8.15.1",
"@isaacs/ttlcache": "^1.4.1",
"@octokit/rest": "^19.0.13",
"@redocly/openapi-core": "^1.25.6",
"badge-maker": "^3.3.1",
"bluebird": "^3.7.2",
"config": "^3.3.12",
"config-mapper-env": "^2.0.0",
"countries-list": "^2.6.1",
"dedent-js": "^1.0.1",
"elastic-apm-node": "^3.51.0",
"elastic-apm-utils": "^3.2.0",
"fs-extra": "^11.2.0",
"got": "^11.8.6",
"h-logger2": "^1.1.2",
"h-logger2-elastic": "^5.0.1",
"http-link-header": "^1.1.3",
"husky": "^8.0.3",
"is-hexdigest": "^1.0.1",
"is-semver-static": "^1.0.1",
"joi": "^17.13.3",
"knex": "^2.5.1",
"koa": "^2.15.3",
"koa-compress": "^5.1.1",
"koa-conditional-get": "^3.0.0",
"koa-etag": "^4.0.0",
"koa-favicon": "^2.1.0",
"koa-json": "^2.0.2",
"koa-logger": "^3.2.1",
"koa-response-time": "^2.1.0",
"koa-router": "^12.0.1",
"koa-static": "^5.0.0",
"lodash": "^4.17.21",
"micromatch": "^4.0.8",
"mysql": "^2.18.1",
"number-abbreviate": "^2.0.0",
"p-timeout": "^3.2.0",
"promise-retry": "^2.0.1",
"redis": "^3.1.2",
"relative-day-utc": "^1.3.0",
"semver": "^7.6.3",
"serve-favicon": "^2.5.0",
"signal-exit": "^3.0.7",
"statuses": "^2.0.1",
"tar-stream": "^3.1.7",
"v-compare": "^1.0.0"
},
"devDependencies": {
"@apideck/portman": "1.26.1",
"@apidevtools/swagger-parser": "^10.1.0",
"@martin-kolarik/eslint-config": "^7.3.2",
"@redocly/cli": "^1.25.6",
"@sinonjs/fake-timers": "^10.3.0",
"@stoplight/spectral-cli": "^6.13.1",
"@types/blocked": "^1.3.4",
"@types/bluebird": "^3.5.42",
"@types/chai": "^4.3.20",
"@types/config": "^3.3.5",
"@types/eslint": "^8.56.12",
"@types/fs-extra": "^11.0.4",
"@types/http-link-header": "^1.0.7",
"@types/koa": "^2.15.0",
"@types/koa-compress": "^4.0.6",
"@types/koa-conditional-get": "^2.0.3",
"@types/koa-etag": "^3.0.3",
"@types/koa-favicon": "^2.1.3",
"@types/koa-json": "^2.0.23",
"@types/koa-logger": "^3.1.5",
"@types/koa-response-time": "^2.1.5",
"@types/koa-router": "^7.4.8",
"@types/lodash": "^4.17.10",
"@types/micromatch": "^4.0.9",
"@types/mocha": "^10.0.9",
"@types/mysql": "^2.15.26",
"@types/promise-retry": "^1.1.6",
"@types/semver": "^7.5.8",
"@types/serve-favicon": "^2.5.7",
"@types/signal-exit": "^3.0.4",
"@types/statuses": "^2.0.5",
"@types/tar-stream": "^2.2.3",
"ajv": "^8.17.1",
"better-ajv-errors": "^1.2.0",
"blocked": "^1.3.0",
"chai": "^4.5.0",
"chai-http": "^4.4.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-plugin-chai-expect": "^3.1.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.6.0",
"expect-assert": "github:MartinKolarik/expect-assert",
"lint-staged": "^13.3.0",
"mocha": "^10.7.3",
"nock": "^13.5.5",
"nyc": "^15.1.0",
"recursive-readdir": "^2.2.3",
"start-server-and-test": "^2.0.8",
"url-template": "^2.0.8"
},
"scripts": {
"coverage": "cross-env FORCE_SETUP=1 nyc mocha",
"knex": "knex",
"lint": "npm run lint:js && npm run lint:docs",
"lint:fix": "npm run lint:js:fix && npm run lint:docs",
"lint:docs": "spectral lint src/public/**/spec.yaml",
"lint:js": "eslint --cache .",
"lint:js:fix": "npm run lint -- --fix",
"migrate": "knex migrate:latest",
"prepare": "husky install",
"start": "cross-env NODE_ENV=production node --no-experimental-fetch src",
"start:dev": "cross-env NODE_ENV=development node --no-experimental-fetch src",
"start:test": "cross-env NODE_ENV=test node --no-experimental-fetch test/setup",
"test": "npm run lint && npm run test:mocha && npm run test:portman",
"test:mocha": "mocha",
"test:mocha:prune": "cross-env PRUNE_OLD_SNAPSHOTS=1 mocha",
"test:mocha:snapshot": "cross-env SNAPSHOT_RESPONSES=1 mocha",
"test:mocha:update": "cross-env UPDATE_EXISTING_SNAPSHOTS=1 PRUNE_OLD_SNAPSHOTS=1 mocha",
"test:mocha:updateNoPrune": "cross-env UPDATE_EXISTING_SNAPSHOTS=1 mocha",
"test:portman": "start-test 'npm run start:test' http://localhost:4454/heartbeat 'npm run test:portman:create && npm run test:portman:run' 2> /dev/null || E=$?; rm -rf tmp; exit $E;",
"test:portman:create": "mkdir -p tmp && redocly bundle src/public/v1/spec.yaml > tmp/spec.yaml && portman --cliOptionsFile test/tests/contract/portman-cli.json",
"test:portman:run": "newman run tmp/converted/jsDelivrApi.json -e test/tests/contract/newman-env.json --ignore-redirects"
},
"lint-staged": {
"*.js": "eslint --cache --fix"
},
"repository": {
"type": "git",
"url": "git@github.com:jsdelivr/data.jsdelivr.com.git"
},
"bugs": {
"url": "https://github.com/jsdelivr/data.jsdelivr.com/issues"
},
"engines": {
"node": "^20"
}
}