-
-
Notifications
You must be signed in to change notification settings - Fork 269
/
package.json
299 lines (299 loc) · 11.6 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"private": true,
"name": "opencollective-api",
"description": "Open Collective API",
"license": "MIT",
"contributors": [
"Arnaud Bénard (https://github.com/arnaudbenard)",
"Aseem Sood (https://github.com/asood123)",
"Benjamin Piouffle (https://github.com/Betree)",
"François Hodierne (https://github.com/znarf)",
"Kate Beard (https://github.com/sbinlondon)",
"Leo Kewitz (https://github.com/kewitz)",
"Lincoln de Sousa (https://github.com/clarete)",
"Nick Hehr (https://github.com/HipsterBrown)",
"Oluwaseun Omoyajowo (https://github.com/flickz)",
"Philippe Modard (https://github.com/Philmod)",
"Pia Mancini (https://github.com/piamancini)",
"Sébastien Dubois (https://github.com/sedubois)",
"Xavier Damman (https://github.com/xdamman)"
],
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-api.git"
},
"main": "server/index.js",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@apollo/server": "4.11.2",
"@aws-sdk/client-s3": "3.678.0",
"@babel/core": "7.26.0",
"@babel/node": "7.26.0",
"@babel/plugin-transform-typescript": "7.25.9",
"@babel/preset-env": "7.26.0",
"@elastic/elasticsearch": "8.15.1",
"@escape.tech/graphql-armor": "3.1.1",
"@hyperwatch/hyperwatch": "4.0.0",
"@json2csv/plainjs": "^7.0.6",
"@node-oauth/oauth2-server": "4.3.3",
"@octokit/auth-oauth-app": "7.1.0",
"@octokit/rest": "19.0.13",
"@opencollective/taxes": "5.0.0",
"@paypal/payouts-sdk": "1.1.1",
"@peculiar/asn1-schema": "2.3.13",
"@peculiar/asn1-x509": "2.3.8",
"@sentry/node": "7.119.2",
"@sentry/types": "7.119.2",
"@shopify/address": "4.3.0",
"@simplewebauthn/server": "11.0.0",
"@simplewebauthn/types": "11.0.0",
"@superfaceai/passport-twitter-oauth2": "1.2.4",
"argparse": "2.0.1",
"async-mutex": "0.5.0",
"axios": "1.7.7",
"babel-plugin-add-module-exports": "1.0.4",
"bayes": "1.0.0",
"bcrypt": "5.1.1",
"blurhash": "2.0.5",
"burner-email-providers": "github:opencollective/burner-email-providers",
"cloudflare": "3.4.0",
"cloudflare-ip": "0.0.7",
"commander": "12.1.0",
"config": "3.3.12",
"connect-redis": "7.1.1",
"cookie-parser": "1.4.7",
"cors": "2.8.5",
"crypto-js": "4.2.0",
"crypto-random-string": "3.3.1",
"csv-parse": "5.5.6",
"dataloader": "2.2.2",
"dataloader-sequelize": "2.3.3",
"debug": "4.3.7",
"deepmerge": "4.3.1",
"dotenv": "16.4.5",
"errorhandler": "1.5.1",
"express": "4.21.1",
"express-basic-auth": "1.2.1",
"express-session": "1.18.1",
"express-ws": "5.0.2",
"fast-levenshtein": "3.0.0",
"fast-redact": "3.5.0",
"fs-extra": "11.2.0",
"get-urls": "10.0.1",
"gqlmin": "0.1.1",
"graphql": "16.9.0",
"graphql-scalars": "1.23.0",
"graphql-upload": "15.0.2",
"handlebars": "4.7.8",
"hashids": "2.3.0",
"hcaptcha": "0.1.1",
"helmet": "7.2.0",
"html-pdf": "3.0.1",
"html-to-text": "9.0.5",
"ics": "3.8.1",
"intl-messageformat": "10.7.6",
"jsonwebtoken": "9.0.2",
"juice": "10.0.1",
"limax": "4.1.0",
"lodash": "4.17.21",
"lru-cache": "11.0.1",
"moment": "2.30.1",
"moment-timezone": "0.5.45",
"multer": "1.4.5-lts.1",
"node-fetch": "2.7.0",
"node-statsd": "0.1.1",
"nodemailer": "6.9.16",
"p-filter": "2.1.0",
"p-map": "4.0.0",
"p-queue": "6.6.2",
"passport": "0.7.0",
"passport-github": "1.1.0",
"paypal-adaptive": "0.4.2",
"pg": "8.12.0",
"pg-connection-string": "2.7.0",
"pg-format": "1.0.4",
"plaid": "29.0.0",
"prepend-http": "3.0.1",
"redis": "4.6.6",
"sanitize-html": "2.13.1",
"sequelize": "6.37.4",
"sequelize-cli": "6.6.2",
"sequelize-temporal": "2.0.0",
"sharp": "0.33.4",
"spdx-license-list": "6.9.0",
"speakeasy": "2.0.0",
"stripe": "17.3.1",
"throng": "5.0.0",
"tweetnacl": "1.0.3",
"tweetnacl-util": "0.15.1",
"twitter-api-v2": "1.17.2",
"uuid": "10.0.0",
"validator": "13.12.0",
"winston": "3.15.0",
"zod": "3.23.8"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/register": "^7.23.7",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/auto-instrumentations-node": "^0.52.0",
"@opentelemetry/exporter-trace-otlp-proto": "^0.54.0",
"@opentelemetry/instrumentation": "^0.54.0",
"@opentelemetry/resources": "^1.20.0",
"@opentelemetry/sdk-trace-base": "^1.20.0",
"@opentelemetry/sdk-trace-node": "^1.20.0",
"@types/express": "^4.17.21",
"@types/graphql-upload": "16.0.7",
"@types/jsonwebtoken": "^9.0.5",
"@types/lodash": "^4.14.202",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.2",
"@types/node-fetch": "^2.6.10",
"@types/nodemailer": "^6.4.14",
"@types/validator": "^13.11.8",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"babel-plugin-istanbul": "^7.0.0",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"chai-jest-snapshot": "^2.0.0",
"chai-sorted": "^0.2.0",
"chai-subset": "^1.6.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-opencollective": "^4.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "10.5.0",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"exif-reader": "^2.0.1",
"fake-tag": "^3.0.0",
"geoip-lite": "^1.4.9",
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"markdown-table": "^2.0.0",
"mocha": "^10.2.0",
"nock": "^13.5.0",
"nodemon": "^3.0.2",
"npm-run-all2": "^6.0.0",
"nyc": "^17.0.0",
"opentelemetry-instrumentation-sequelize": "^0.41.0",
"prettier": "3.3.3",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"supertest": "^7.0.0",
"ts-unused-exports": "^10.1.0",
"typescript": "5.6.3"
},
"scripts": {
"build": "npm run build:clean && npm run build:updates && npm run build:server",
"build:clean": "rm -rf dist && mkdir dist",
"build:server": "babel server --copy-files --extensions .js,.ts -d ./dist",
"build:updates": "npm --prefix node_modules/cloudflare-ip run update-list",
"clean": "npm run build:clean && npm run test:clean",
"commit": "git-cz",
"compile:email": "babel-node --extensions .js,.ts scripts/compile-email.js",
"compile:email:watch": "./scripts/watch_email_template.sh",
"cron:10mn": "./scripts/cron.sh 10mn",
"cron:daily": "./scripts/cron.sh daily",
"cron:hourly": "./scripts/cron.sh hourly",
"cron:monthly": "./scripts/cron.sh monthly",
"cron:weekly": "./scripts/cron.sh weekly",
"cron:yearly": "./scripts/cron.sh yearly",
"db:clean": "babel-node --extensions .js,.ts ./scripts/sanitize-db.ts",
"db:copy:prod": "./scripts/db_copy_to_localhost.sh prod && PG_DATABASE=opencollective_prod_snapshot npm run db:sanitize",
"db:copy:prod:staging": "./scripts/db_copy_prod_to_staging.sh opencollective-staging-api && heroku run npm run db:sanitize --app opencollective-staging-api",
"db:copy:prod:staging-dev": "./scripts/db_copy_prod_to_staging.sh $DEV && heroku run npm run db:sanitize --app $DEV",
"db:copy:staging": "./scripts/db_copy_to_localhost.sh staging",
"db:dump:dev": "./scripts/db_migrate_opencollective_dvl.sh",
"db:migrate": "./scripts/sequelize.sh db:migrate",
"db:migrate:undo": "./scripts/sequelize.sh db:migrate:undo",
"db:migration:create": "./scripts/sequelize.sh migration:create",
"db:migration:archive": "babel-node --extensions .js,.ts scripts/db_migrations_archive.ts",
"db:restore": "./scripts/db_restore.sh",
"db:restore:e2e": "npm run db:restore -- -d opencollective_e2e",
"db:restore:test": "NODE_ENV=test npm run db:restore -- -d opencollective_test && NODE_ENV=test npm run db:migrate",
"db:sanitize": "babel-node --extensions .js,.ts scripts/sanitize-db.ts",
"db:sanitize-collective-tags": "babel-node --extensions .js,.ts scripts/sanitize-collective-tags",
"db:seed": "./scripts/sequelize.sh db:seed",
"db:setup": "babel-node --extensions .js,.ts ./scripts/db_setup.js",
"depcheck": "npx @opencollective/depcheck .",
"deploy:production": "./scripts/pre-deploy.sh production && git push production main",
"deploy:staging": "./scripts/pre-deploy.sh staging && git push -f staging main",
"dev": "nodemon server/index.js -x \"babel-node --extensions .js,.ts\" . -e js,hbs,ts",
"docs:generate:oauth": "babel-node --extensions .js,.ts ./scripts/docs/oauth.ts",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:updateV1": "npm run script scripts/update-gql-schemas.ts http://localhost:3060/graphql/v1 server/graphql/schemaV1.graphql && prettier server/graphql/schemaV1.graphql --write",
"graphql:updateV2": "npm run script scripts/update-gql-schemas.ts http://localhost:3060/graphql/v2 server/graphql/schemaV2.graphql && prettier server/graphql/schemaV2.graphql --write",
"lint": "eslint . --ext='js,ts,graphql'",
"lint:check": "npm run lint -- --quiet",
"lint:fix": "npm run lint -- --fix",
"mailpit": "./scripts/dev/run-docker.sh compose -f docker-compose.dev.yml --profile mail up",
"postinstall": "./scripts/postinstall.sh",
"prettier": "prettier \"**/*.@(js|ts|json|md)\" --ignore-path .eslintignore",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"script": "babel-node --extensions .js,.ts $1",
"search": "./scripts/dev/run-docker.sh compose -f docker-compose.dev.yml --profile search up",
"sequelize": "babel-node --extensions .js,.ts -- ./node_modules/.bin/sequelize --config config/sequelize-cli.js",
"start": "node ./dist/index.js",
"start:e2e": "TZ=UTC NODE_ENV=production OC_ENV=e2e E2E_TEST=1 npm-run-all db:restore:e2e db:migrate build start:e2e:server",
"start:e2e:server": "node ./dist/e2e.js",
"test:watch": "TZ=UTC nyc mocha --watch",
"test": "TZ=UTC nyc --all mocha",
"test:update": "CHAI_JEST_SNAPSHOT_UPDATE_ALL=true npm run test",
"test:clean-db-snapshots": "rm -rf test/dbdumps/snapshots/*",
"test:update-db-snapshots": "npm run test:clean-db-snapshots && UPDATE_DB_SNAPSHOTS=true npm run test $(grep -rH 'getOrCreateDBSnapshot' --include='*.test.js' --include='*.test.ts' . | cut -d ':' -f 1 | uniq)",
"test:clean": "rm -rf .nyc_output coverage",
"test:generate": "./scripts/dev/create-test.sh $1",
"test:graphql": "npm run test test/server/graphql",
"test:lib": "npm run test test/server/lib",
"test:models": "npm run test test/server/models",
"test:payment-providers": "npm run test test/server/paymentProviders",
"test:routes": "npm run test test/server/routes",
"test:scripts": "npm run test test/scripts",
"test:sql": "npm run test test/sql",
"ts-unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=server/types --ignoreFiles=server/paymentProviders/types",
"type:check": "tsc",
"prepare": "husky",
"lint-staged": "lint-staged"
},
"engines": {
"node": "20.x",
"npm": "10.x"
},
"lint-staged": {
"*.{js,ts,json,md}": [
"prettier --write"
]
},
"nyc": {
"reporter": [
"lcov"
],
"cache": true
},
"@opencollective/depcheck": {
"ignoreDirs": [
"dist",
"dbdumps",
"migrations/archives"
],
"specials": [
"babel",
"bin",
"commitizen",
"eslint",
"husky",
"lint-staged",
"mocha"
]
}
}