-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 9.29 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 9.29 KB
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
{
"name": "whatson-api",
"version": "3.40.0",
"description": "What's on? API to retrieve movies and tvshows",
"main": "index.js",
"scripts": {
"check-static-usage": "node scripts/checkStaticUsage.js",
"manage-api-key": "node scripts/manageApiKey.js",
"test": "DISABLE_NEW_RELIC=true jest tests",
"test-remote": "DISABLE_NEW_RELIC=true SOURCE=remote jest tests --ci --reporters=default --reporters=jest-junit",
"test-sync": "npm run test -- --testPathIgnorePatterns=\"mojo|mongodb|popularity\" --json --outputFile=temp_test_results.json",
"prettier": "prettier --write .",
"update-packages": "rm -rf node_modules package-lock.json && ncu -u --reject newrelic && npm install",
"check-dataset": "bash src/data/checkIds.sh check_dataset movie $HEAD_NUMBER $EXCLUDED_IDS_MOVIE && bash src/data/checkIds.sh check_dataset tvshow $HEAD_NUMBER $EXCLUDED_IDS_TVSHOW",
"check-local-with-remote-ids": "node src/data/updateData.js movie no_update_ids update_db local no_active check 0 no_force skip_mojo skip_services && node src/data/updateData.js tvshow no_update_ids update_db local no_active check 0 no_force skip_mojo skip_services",
"update-local-movie": "bash src/data/getIds.sh local movie",
"update-local-tvshow": "bash src/data/getIds.sh local tvshow",
"update-local": "npm run update-local-movie && npm run update-local-tvshow",
"update-local-stop-movie": "bash src/data/getIds.sh local movie stop imdb",
"update-local-stop-tvshow": "bash src/data/getIds.sh local tvshow stop imdb",
"update-local-stop": "npm run update-local-stop-movie && npm run update-local-stop-tvshow",
"update-dataset": "bash src/data/checkIds.sh check movie && bash src/data/checkIds.sh check tvshow",
"update-active-dataset": "bash src/data/checkIds.sh check movie active && bash src/data/checkIds.sh check tvshow active",
"update-all-ids-dataset-movie": "bash src/data/checkIds.sh check movie all_ids",
"update-all-ids-dataset-tvshow": "bash src/data/checkIds.sh check tvshow all_ids",
"update-all-ids-dataset": "npm run update-all-ids-dataset-movie && npm run update-all-ids-dataset-tvshow",
"confirm-dataset-movie": "bash src/data/checkIds.sh update movie",
"confirm-dataset-tvshow": "bash src/data/checkIds.sh update tvshow",
"confirm-dataset": "npm run confirm-dataset-movie && npm run confirm-dataset-tvshow",
"mcp": "node src/mcp/server.mjs",
"check-api-version": "node src/utils/checkApiVersion.js",
"commit": "git add . && czg",
"pull-all-platforms": "git pull origin main && git pull bitbucket main && git pull bitbucket_2 main && git pull bitbucket_3 main",
"push-all-platforms": "git push origin main && git push bitbucket main && git push bitbucket_2 main && git push bitbucket_3 main",
"push": "npm run check-api-version && npm run check-static-usage && npm run prettier && npm run test && npm run commit && npm run push-all-platforms",
"push-sync": "npm run check-api-version && npm run check-static-usage && npm run prettier && npm run test-sync && npm run commit && npm run push-all-platforms",
"push-dataset": "npm run prettier && npm run test && git add . && git commit -m 'build: update dataset' && npm run push-all-platforms",
"push-without-tests": "npm run check-api-version && npm run prettier && npm run commit && npm run push-all-platforms",
"push-without-version": "npm run prettier && npm run test && npm run commit && npm run push-all-platforms",
"push-without-tests-and-version": "npm run prettier && npm run commit && npm run push-all-platforms",
"remove-temp-files": "find . -maxdepth 1 -name 'temp_*' -exec rm -f {} +",
"sync-launch": "launchctl print gui/$(stat -f%u /dev/console)/com.whatson.api.sync >/dev/null 2>&1 || launchctl bootstrap gui/$(stat -f%u /dev/console) \"$(eval echo ~$(stat -f%Su /dev/console))/Library/LaunchAgents/com.whatson.api.sync.plist\"",
"sync-terminate": "launchctl bootout gui/$(stat -f%u /dev/console)/com.whatson.api.sync",
"update-all-movie-data": "node ./src/data/updateData.js movie no_update_ids update_db circleci no_active no_check_db_ids 0 force no_skip_mojo no_skip_services no_delete 7 1000000000 all_ids",
"update-all-tvshow-data": "node ./src/data/updateData.js tvshow no_update_ids update_db circleci no_active no_check_db_ids 0 force no_skip_mojo no_skip_services no_delete 7 1000000000 all_ids",
"update-all-movie-data-local": "node ./src/data/updateData.js movie no_update_ids update_db local no_active no_check_db_ids 0 force no_skip_mojo no_skip_services no_delete 7 1000000000 all_ids",
"update-all-tvshow-data-local": "node ./src/data/updateData.js tvshow no_update_ids update_db local no_active no_check_db_ids 0 force no_skip_mojo no_skip_services no_delete 7 1000000000 all_ids",
"check-ids-before-update-all-ids": "npm run update-local && npm run update-active-dataset && npm run confirm-dataset && npm run update-all-ids",
"check-ids-before-update-all-ids-force": "npm run update-local && npm run update-active-dataset && npm run confirm-dataset && npm run update-all-ids-force",
"check-ids-and-stop-before-update-all-ids": "npm run update-local-stop && npm run update-active-dataset && npm run confirm-dataset && npm run update-all-ids",
"check-ids-and-stop-before-update-all-ids-force": "npm run update-local-stop && npm run update-active-dataset && npm run confirm-dataset && npm run update-all-ids-force",
"update-all-ids-movie": "node src/data/updateData.js movie update_ids update_db local active",
"update-all-ids-tvshow": "node src/data/updateData.js tvshow update_ids update_db local active",
"update-all-ids": "npm run update-all-ids-movie && npm run update-all-ids-tvshow && npm run test",
"update-all-ids-sync": "npm run remove-temp-files && npm run update-all-ids-movie && npm run update-all-ids-tvshow && { npm run test-sync; status=$?; node src/utils/sendRecapEmail.js; exit $status; }",
"update-all-ids-force-movie": "node src/data/updateData.js movie update_ids update_db local active no_check_db_ids 0 force",
"update-all-ids-force-tvshow": "node src/data/updateData.js tvshow update_ids update_db local active no_check_db_ids 0 force",
"update-all-ids-force": "npm run update-all-ids-force-movie && npm run update-all-ids-force-tvshow && npm run test",
"update-all-active-ids-movie": "node src/data/updateData.js movie no_update_ids update_db local active",
"update-all-active-ids-tvshow": "node src/data/updateData.js tvshow no_update_ids update_db local active",
"update-all-active-ids-movie-force": "node src/data/updateData.js movie no_update_ids update_db local active no_check_db_ids 0 force",
"update-all-active-ids-tvshow-force": "node src/data/updateData.js tvshow no_update_ids update_db local active no_check_db_ids 0 force",
"update-all-active-ids": "npm run update-all-active-ids-movie && npm run update-all-active-ids-tvshow && npm run test",
"update-all-non-active-ids-movie": "node src/data/updateData.js movie no_update_ids update_db local no_active no_check_db_ids $INDEX force mojo no_skip_services no_delete_ids $DAYS_NUMBER $MAX_INDEX",
"update-all-non-active-ids-tvshow": "node src/data/updateData.js tvshow no_update_ids update_db local no_active no_check_db_ids $INDEX force mojo no_skip_services no_delete_ids $DAYS_NUMBER $MAX_INDEX",
"update-all-non-active-ids": "npm run update-all-non-active-ids-movie && npm run update-all-non-active-ids-tvshow && npm run test",
"update-all-non-active-and-top-ids": "export MOJO_MAX_ITERATIONS=1 && node src/data/updateData.js movie no_update_ids update_db local no_active no_check_db_ids 0 force mojo no_skip_services no_delete_ids 0 1000000 all_ids && export MOJO_MAX_ITERATIONS=50",
"update-all-non-active-and-top-ids-circleci": "export MOJO_MAX_ITERATIONS=1 && node src/data/updateData.js movie no_update_ids update_db circleci no_active no_check_db_ids 0 force mojo no_skip_services no_delete_ids 0 1000000 all_ids",
"update-all-non-active-and-old-ids-movie": "node src/data/updateData.js movie no_update_ids update_db local no_active no_check_db_ids 0 force mojo no_skip_services no_delete_ids 180 1000000 all_ids",
"update-all-non-active-and-old-ids-tvshow": "node src/data/updateData.js tvshow no_update_ids update_db local no_active no_check_db_ids 0 force mojo no_skip_services no_delete_ids 60 1000000 all_ids",
"update-all-non-active-and-old-ids": "npm run update-all-non-active-and-old-ids-movie && npm run update-all-non-active-and-old-ids-tvshow"
},
"author": "Pierre Vanoverschelde",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"axios": "^1.20.0",
"axios-retry": "^4.5.0",
"cheerio": "^1.2.0",
"compression": "^1.8.2",
"cors": "^2.8.6",
"csvtojson": "^2.0.14",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"he": "^1.2.0",
"jshashes": "^1.0.8",
"mongodb": "^7.6.0",
"newrelic": "14.1.2",
"playwright": "^1.63.0",
"prettier": "^3.9.7",
"rate-limiter-flexible": "^11.2.0",
"shelljs": "^0.10.0",
"tough-cookie": "^6.0.2"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"cz-conventional-changelog": "^3.3.0",
"jest": "^30.5.1",
"jest-junit": "^17.0.0"
},
"jest": {
"setupFiles": [
"<rootDir>/tests/setup.js"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}