@yrpri/api 9.0.92 → 9.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +2 -2
- package/package.json +53 -70
package/app.js
CHANGED
|
@@ -3,7 +3,7 @@ import session from "express-session";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
import morgan from "morgan";
|
|
5
5
|
import bodyParser from "body-parser";
|
|
6
|
-
import
|
|
6
|
+
import { RedisStore } from "connect-redis";
|
|
7
7
|
import useragent from "express-useragent";
|
|
8
8
|
import requestIp from "request-ip";
|
|
9
9
|
import compression from "compression";
|
|
@@ -506,7 +506,7 @@ export class YourPrioritiesApi {
|
|
|
506
506
|
this.app.use(compression());
|
|
507
507
|
this.app.set("views", __dirname + "/views");
|
|
508
508
|
this.app.set("view engine", "pug");
|
|
509
|
-
const store = new
|
|
509
|
+
const store = new RedisStore({ client: this.redisClient, ttl: 86400 });
|
|
510
510
|
const sessionConfig = {
|
|
511
511
|
store: store,
|
|
512
512
|
name: "yrpri.sid",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yrpri/api",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.93",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Robert Bjarnason & Citizens Foundation",
|
|
6
6
|
"repository": {
|
|
@@ -16,137 +16,120 @@
|
|
|
16
16
|
],
|
|
17
17
|
"type": "module",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@airbrake/node": "^2.1.
|
|
20
|
-
"@aws-sdk/client-s3": "^3.
|
|
19
|
+
"@airbrake/node": "^2.1.8",
|
|
20
|
+
"@aws-sdk/client-s3": "^3.750.0",
|
|
21
21
|
"@google-cloud/aiplatform": "^3.34.0",
|
|
22
22
|
"@google-cloud/speech": "^6.7.0",
|
|
23
|
-
"@google-cloud/storage": "^7.15.
|
|
23
|
+
"@google-cloud/storage": "^7.15.1",
|
|
24
24
|
"@google-cloud/translate": "^8.5.0",
|
|
25
25
|
"@google-cloud/vertexai": "^1.9.3",
|
|
26
|
-
"@google-cloud/vision": "^4.
|
|
27
|
-
"@policysynth/agents": "^1.3.
|
|
26
|
+
"@google-cloud/vision": "^4.3.2",
|
|
27
|
+
"@policysynth/agents": "^1.3.67",
|
|
28
|
+
"@types/connect-redis": "^0.0.23",
|
|
28
29
|
"async": "^3.2.6",
|
|
29
30
|
"authorized": "^1.0.0",
|
|
30
31
|
"aws-sdk": "^2.1692.0",
|
|
31
32
|
"axios": "^1.7.9",
|
|
32
|
-
"bcrypt": "^5.1.
|
|
33
|
+
"bcrypt": "^5.1.1",
|
|
33
34
|
"body-parser": "^1.20.3",
|
|
34
35
|
"bull": "^4.16.5",
|
|
35
|
-
"bunyan": "^1.8.
|
|
36
|
+
"bunyan": "^1.8.15",
|
|
36
37
|
"bunyan-prettystream": "git+https://github.com/rbjarnason/node-bunyan-prettystream.git",
|
|
37
38
|
"cheerio": "^1.0.0",
|
|
38
|
-
"color-hash": "^2.0.
|
|
39
|
-
"colors": "^1.4.0",
|
|
39
|
+
"color-hash": "^2.0.2",
|
|
40
40
|
"compression": "^1.8.0",
|
|
41
41
|
"concat-stream": "^2.0.0",
|
|
42
|
-
"connect-redis": "^
|
|
43
|
-
"cookie-parser": "^1.4.7",
|
|
42
|
+
"connect-redis": "^8.0.1",
|
|
44
43
|
"cors": "^2.8.5",
|
|
45
|
-
"deep-equal": "^2.
|
|
46
|
-
"docx": "^
|
|
44
|
+
"deep-equal": "^2.2.3",
|
|
45
|
+
"docx": "^9.2.0",
|
|
47
46
|
"download-file": "^0.1.5",
|
|
48
|
-
"ejs": "^3.1.
|
|
49
|
-
"exceljs": "^4.
|
|
47
|
+
"ejs": "^3.1.10",
|
|
48
|
+
"exceljs": "^4.4.0",
|
|
50
49
|
"express": "^4.21.2",
|
|
51
|
-
"express-rate-limit": "^7.
|
|
50
|
+
"express-rate-limit": "^7.5.0",
|
|
52
51
|
"express-session": "git+https://github.com/rbjarnason/session.git#upgrade-21",
|
|
53
|
-
"express-useragent": "^1.0.
|
|
54
|
-
"farmhash": "
|
|
52
|
+
"express-useragent": "^1.0.15",
|
|
53
|
+
"farmhash": "4.0.1",
|
|
55
54
|
"html-to-docx": "^1.8.0",
|
|
56
55
|
"i18next": "^24.2.2",
|
|
57
56
|
"i18next-node-fs-backend": "^2.1.3",
|
|
58
|
-
"image-size": "^1.0
|
|
57
|
+
"image-size": "^1.2.0",
|
|
59
58
|
"ip": "^2.0.1",
|
|
60
|
-
"isbot": "^5.1.
|
|
61
|
-
"iso-639-1": "^3.1.
|
|
59
|
+
"isbot": "^5.1.23",
|
|
60
|
+
"iso-639-1": "^3.1.5",
|
|
62
61
|
"jsonrepair": "^3.12.0",
|
|
63
62
|
"knuth-shuffle-seeded": "^1.0.6",
|
|
64
|
-
"lodash": "^4.17.
|
|
63
|
+
"lodash": "^4.17.21",
|
|
65
64
|
"marked": "^15.0.7",
|
|
66
|
-
"moment": "^2.
|
|
65
|
+
"moment": "^2.30.1",
|
|
67
66
|
"morgan": "~1.10.0",
|
|
68
67
|
"multer": "1.4.5-lts.1",
|
|
69
68
|
"multer-s3": "^3.0.1",
|
|
70
69
|
"multer-sharp-s3": "^0.2.5",
|
|
71
|
-
"newrelic": "^
|
|
72
|
-
"nodemailer": "^6.
|
|
70
|
+
"newrelic": "^12.14.0",
|
|
71
|
+
"nodemailer": "^6.10.0",
|
|
73
72
|
"nodemailer-sendgrid": "^1.0.3",
|
|
74
|
-
"open-graph-scraper": "^6.
|
|
75
|
-
"openai": "^4.85.
|
|
76
|
-
"passport": "^0.
|
|
73
|
+
"open-graph-scraper": "^6.9.0",
|
|
74
|
+
"openai": "^4.85.3",
|
|
75
|
+
"passport": "^0.7.0",
|
|
77
76
|
"passport-facebook": "^3.0.0",
|
|
78
|
-
"passport-github": "^1.
|
|
77
|
+
"passport-github": "^1.1.0",
|
|
79
78
|
"passport-google-oauth": "^2.0.0",
|
|
80
79
|
"passport-local": "^1.0.0",
|
|
81
80
|
"passport-openidconnect": "git+https://github.com/rbjarnason/passport-openidconnect.git",
|
|
82
81
|
"passport-saml": "git+https://github.com/rbjarnason/passport-saml.git#smarternj",
|
|
83
82
|
"passport-sso": "git+https://github.com/rbjarnason/passport-sso.git",
|
|
84
|
-
"
|
|
85
|
-
"pg-hstore": "^2.3.4",
|
|
86
|
-
"pgvector": "^0.2.0",
|
|
87
|
-
"ps": "^1.0.0",
|
|
88
|
-
"pug": "^3.0.2",
|
|
89
|
-
"randomstring": "^1.2.3",
|
|
83
|
+
"randomstring": "^1.3.1",
|
|
90
84
|
"rate-limit-redis": "^4.2.0",
|
|
91
|
-
"
|
|
92
|
-
"replicate": "^0.32.0",
|
|
85
|
+
"replicate": "^1.0.1",
|
|
93
86
|
"request": "^2.88.2",
|
|
94
87
|
"request-ip": "^3.3.0",
|
|
95
88
|
"sanitize-filename": "^1.6.3",
|
|
96
89
|
"sequelize": "^6.36.0",
|
|
97
|
-
"sequelize-cli": "^6.2.0",
|
|
98
90
|
"sharp": "^0.33.5",
|
|
99
|
-
"sitemap": "^
|
|
100
|
-
"socket.io": "^4.8.1",
|
|
91
|
+
"sitemap": "^8.0.0",
|
|
101
92
|
"stripe": "^17.6.0",
|
|
102
93
|
"striptags": "^3.2.0",
|
|
103
|
-
"uuid": "^
|
|
104
|
-
"
|
|
105
|
-
"ws": "^8.15.1"
|
|
94
|
+
"uuid": "^11.1.0",
|
|
95
|
+
"ws": "^8.18.0"
|
|
106
96
|
},
|
|
107
97
|
"devDependencies": {
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
110
|
-
"@tsconfig/node18": "^18.2.0",
|
|
98
|
+
"@maxmind/geoip2-node": "^6.0.0",
|
|
99
|
+
"@tsconfig/node18": "^18.2.4",
|
|
111
100
|
"@types/bunyan": "^1.8.11",
|
|
112
101
|
"@types/bunyan-prettystream": "^0.1.35",
|
|
113
102
|
"@types/compression": "^1.7.5",
|
|
103
|
+
"@types/cors": "^2.8.17",
|
|
114
104
|
"@types/express": "^4.17.21",
|
|
115
|
-
"@types/express-session": "^1.
|
|
105
|
+
"@types/express-session": "^1.18.1",
|
|
116
106
|
"@types/express-useragent": "^1.0.5",
|
|
117
|
-
"@types/html-docx-js": "^0.3.4",
|
|
118
107
|
"@types/marked": "^6.0.0",
|
|
119
108
|
"@types/morgan": "^1.9.9",
|
|
120
109
|
"@types/node": "^22.13.4",
|
|
121
|
-
"@types/passport": "^1.0.
|
|
122
|
-
"@types/pg": "^8.11.11",
|
|
110
|
+
"@types/passport": "^1.0.17",
|
|
123
111
|
"@types/request-ip": "^0.0.41",
|
|
124
|
-
"@types/sequelize": "^4.28.
|
|
112
|
+
"@types/sequelize": "^4.28.20",
|
|
125
113
|
"@types/sharp": "^0.32.0",
|
|
126
114
|
"@types/uuid": "^10.0.0",
|
|
127
|
-
"@types/validator": "^13.11.9",
|
|
128
115
|
"@types/ws": "^8.5.14",
|
|
129
|
-
"axios": "^1.
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"jshint": "^2.11.0",
|
|
116
|
+
"axios": "^1.7.9",
|
|
117
|
+
"csv-parse": "^5.6.0",
|
|
118
|
+
"diacritics": "^1.3.0",
|
|
119
|
+
"jshint": "^2.13.6",
|
|
134
120
|
"jslint": "^0.12.1",
|
|
135
121
|
"ncp": "^2.0.0",
|
|
136
|
-
"nodemon": "^3.
|
|
122
|
+
"nodemon": "^3.1.9",
|
|
137
123
|
"random-words": "^2.0.1",
|
|
138
|
-
"redis": "^4.
|
|
139
|
-
"sequelize": "^6.
|
|
140
|
-
"sequelize-cli": "^6.2
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"uuid": "^10.0.0",
|
|
146
|
-
"winston": "^3.11.0",
|
|
124
|
+
"redis": "^4.7.0",
|
|
125
|
+
"sequelize": "^6.37.5",
|
|
126
|
+
"sequelize-cli": "^6.6.2",
|
|
127
|
+
"temp": "^0.9.4",
|
|
128
|
+
"ts-node": "^10.9.2",
|
|
129
|
+
"typescript": "^5.7.3",
|
|
130
|
+
"uuid": "^11.1.0",
|
|
147
131
|
"wordwrap": "^1.0.0",
|
|
148
|
-
"
|
|
149
|
-
"ws": "^8.15.1",
|
|
132
|
+
"ws": "^8.18.0",
|
|
150
133
|
"yamljs": "^0.3.0"
|
|
151
134
|
},
|
|
152
135
|
"scripts": {
|