aboutsummaryrefslogtreecommitdiff
path: root/package-lock.json
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2021-01-05 22:58:41 +0200
committerZephyrrus <[email protected]>2021-01-07 10:47:16 +0200
commitf151a8ac3a8f944829e55fc007823b167f1a2597 (patch)
treea6611e4ef497ee560812105c15d377364bddf1d6 /package-lock.json
parentfeat: Add experimental stats endpoint (no cache system yet) (diff)
downloadhost.fuwn.me-f151a8ac3a8f944829e55fc007823b167f1a2597.tar.xz
host.fuwn.me-f151a8ac3a8f944829e55fc007823b167f1a2597.zip
chore: Move statistics related functions to it's own file
fix: Extract database constructor to a separate file to ensure we only create one knex instance/db feat: Add cron for saving the stats to the database every hour feat: Get cached stats from database (if a stat is not found in the db, generate it)
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index ed78da3..c698786 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5560,6 +5560,14 @@
"sha.js": "^2.4.8"
}
},
+ "cron": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/cron/-/cron-1.8.2.tgz",
+ "integrity": "sha512-Gk2c4y6xKEO8FSAUTklqtfSr7oTq0CiPQeLBG5Fl0qoXpZyMcj1SG59YL+hqq04bu6/IuEA7lMkYDAplQNKkyg==",
+ "requires": {
+ "moment-timezone": "^0.5.x"
+ }
+ },
"cross-env": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz",
@@ -11911,6 +11919,14 @@
"resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
},
+ "moment-timezone": {
+ "version": "0.5.32",
+ "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.32.tgz",
+ "integrity": "sha512-Z8QNyuQHQAmWucp8Knmgei8YNo28aLjJq6Ma+jy1ZSpSk5nyfRT8xgUbSQvD2+2UajISfenndwvFuH3NGS+nvA==",
+ "requires": {
+ "moment": ">= 2.9.0"
+ }
+ },
"morgan": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",