@yrpri/api 9.0.232 → 9.0.233
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.
|
@@ -322,7 +322,7 @@ export class SubscriptionManager {
|
|
|
322
322
|
return { freeSubscription: true };
|
|
323
323
|
}
|
|
324
324
|
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
|
325
|
-
apiVersion: "2026-
|
|
325
|
+
apiVersion: "2026-04-22.dahlia",
|
|
326
326
|
});
|
|
327
327
|
// Create a PaymentIntent with Stripe
|
|
328
328
|
const paymentIntent = await stripe.paymentIntents.create({
|
|
@@ -360,7 +360,7 @@ export class SubscriptionManager {
|
|
|
360
360
|
async handleSuccessfulPayment(paymentIntentId) {
|
|
361
361
|
try {
|
|
362
362
|
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, {
|
|
363
|
-
apiVersion: "2026-
|
|
363
|
+
apiVersion: "2026-04-22.dahlia",
|
|
364
364
|
});
|
|
365
365
|
const paymentIntent = await stripe.paymentIntents.retrieve(paymentIntentId);
|
|
366
366
|
if (paymentIntent.status !== "succeeded") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yrpri/api",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.233",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Robert Bjarnason & Citizens Foundation",
|
|
6
6
|
"repository": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@airbrake/node": "^2.1.9",
|
|
20
20
|
"@aws-sdk/client-s3": "^3.1029.0",
|
|
21
|
-
"@google-cloud/aiplatform": "^6.
|
|
22
|
-
"@google-cloud/speech": "^7.3.
|
|
21
|
+
"@google-cloud/aiplatform": "^6.8.0",
|
|
22
|
+
"@google-cloud/speech": "^7.3.1",
|
|
23
23
|
"@google-cloud/storage": "^7.19.0",
|
|
24
|
-
"@google-cloud/translate": "^9.
|
|
24
|
+
"@google-cloud/translate": "^9.4.1",
|
|
25
25
|
"@google-cloud/vertexai": "^1.10.0",
|
|
26
|
-
"@google-cloud/vision": "^5.3.
|
|
26
|
+
"@google-cloud/vision": "^5.3.6",
|
|
27
27
|
"@node-saml/passport-saml": "^5.1.0",
|
|
28
|
-
"@policysynth/agents": "^1.3.
|
|
28
|
+
"@policysynth/agents": "^1.3.182",
|
|
29
29
|
"async": "^3.2.6",
|
|
30
30
|
"authorized": "^1.0.0",
|
|
31
31
|
"aws-sdk": "^2.1693.0",
|
|
32
|
-
"axios": "^1.
|
|
32
|
+
"axios": "^1.16.1",
|
|
33
33
|
"bcrypt": "^6.0.0",
|
|
34
34
|
"body-parser": "^2.2.2",
|
|
35
35
|
"bullmq": "^5.31.0",
|
|
@@ -44,30 +44,30 @@
|
|
|
44
44
|
"deep-equal": "^2.2.3",
|
|
45
45
|
"docx": "^9.6.1",
|
|
46
46
|
"download-file": "^0.1.5",
|
|
47
|
-
"ejs": "^5.0.
|
|
47
|
+
"ejs": "^5.0.2",
|
|
48
48
|
"exceljs": "^4.4.0",
|
|
49
49
|
"express": "^5.2.1",
|
|
50
|
-
"express-rate-limit": "^8.
|
|
50
|
+
"express-rate-limit": "^8.5.1",
|
|
51
51
|
"express-session": "git+https://github.com/rbjarnason/session.git#upgrade-21",
|
|
52
|
-
"express-useragent": "^2.1.
|
|
52
|
+
"express-useragent": "^2.1.1",
|
|
53
53
|
"farmhash": "4.0.1",
|
|
54
54
|
"form-data": "^4.0.4",
|
|
55
55
|
"html-to-docx": "^1.8.0",
|
|
56
|
-
"i18next": "^26.0
|
|
56
|
+
"i18next": "^26.1.0",
|
|
57
57
|
"i18next-fs-backend": "^2.6.5",
|
|
58
58
|
"image-size": "^2.0.2",
|
|
59
|
-
"isbot": "^5.1.
|
|
59
|
+
"isbot": "^5.1.40",
|
|
60
60
|
"iso-639-1": "^3.1.5",
|
|
61
61
|
"jsonrepair": "^3.12.0",
|
|
62
62
|
"knuth-shuffle-seeded": "^1.0.6",
|
|
63
63
|
"lodash": "^4.18.1",
|
|
64
|
-
"marked": "^18.0.
|
|
64
|
+
"marked": "^18.0.3",
|
|
65
65
|
"moment": "^2.30.1",
|
|
66
66
|
"morgan": "^1.10.1",
|
|
67
67
|
"multer": "^2.1.1",
|
|
68
68
|
"multer-s3": "^3.0.1",
|
|
69
|
-
"newrelic": "^13.
|
|
70
|
-
"nodemailer": "^8.0.
|
|
69
|
+
"newrelic": "^13.20.0",
|
|
70
|
+
"nodemailer": "^8.0.7",
|
|
71
71
|
"open-graph-scraper": "^6.11.0",
|
|
72
72
|
"openai": "^6.36.0",
|
|
73
73
|
"passport": "^0.7.0",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"pug": "^3.0.4",
|
|
81
81
|
"randomstring": "^1.3.1",
|
|
82
82
|
"rate-limit-redis": "^4.3.1",
|
|
83
|
-
"redis": "^5.
|
|
83
|
+
"redis": "^5.12.1",
|
|
84
84
|
"replicate": "^1.4.0",
|
|
85
85
|
"request-ip": "^3.3.0",
|
|
86
86
|
"sanitize-filename": "^1.6.4",
|
|
87
87
|
"sequelize": "^6.37.7",
|
|
88
88
|
"sharp": "^0.34.5",
|
|
89
89
|
"sitemap": "^9.0.1",
|
|
90
|
-
"stripe": "^22.
|
|
90
|
+
"stripe": "^22.1.1",
|
|
91
91
|
"striptags": "^3.2.0",
|
|
92
|
-
"uuid": "^13.0.
|
|
92
|
+
"uuid": "^13.0.2",
|
|
93
93
|
"ws": "^8.18.2"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
@@ -100,17 +100,18 @@
|
|
|
100
100
|
"@types/bunyan-prettystream": "^0.1.35",
|
|
101
101
|
"@types/compression": "^1.8.1",
|
|
102
102
|
"@types/cors": "^2.8.19",
|
|
103
|
-
"@types/express": "
|
|
104
|
-
"@types/express-
|
|
103
|
+
"@types/express": "5.0.6",
|
|
104
|
+
"@types/express-serve-static-core": "5.0.7",
|
|
105
|
+
"@types/express-session": "^1.19.0",
|
|
105
106
|
"@types/express-useragent": "^1.0.5",
|
|
106
107
|
"@types/lodash": "^4.17.24",
|
|
107
108
|
"@types/morgan": "^1.9.10",
|
|
108
|
-
"@types/node": "^22.19.
|
|
109
|
+
"@types/node": "^22.19.19",
|
|
109
110
|
"@types/passport": "^1.0.17",
|
|
110
111
|
"@types/request-ip": "^0.0.41",
|
|
111
112
|
"@types/uuid": "^10.0.0",
|
|
112
113
|
"@types/ws": "^8.18.1",
|
|
113
|
-
"axios": "^1.
|
|
114
|
+
"axios": "^1.16.1",
|
|
114
115
|
"copyfiles": "^2.4.1",
|
|
115
116
|
"csv-parse": "^6.2.1",
|
|
116
117
|
"diacritics": "^1.3.0",
|
|
@@ -127,52 +128,16 @@
|
|
|
127
128
|
"yamljs": "^0.3.0"
|
|
128
129
|
},
|
|
129
130
|
"overrides": {
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
"follow-redirects": "1.16.0",
|
|
133
|
-
"protobufjs": "7.5.5",
|
|
134
|
-
"validator": "13.15.35",
|
|
135
|
-
"path-to-regexp": "8.4.2",
|
|
136
|
-
"picomatch": "2.3.2",
|
|
137
|
-
"dottie": "2.0.7",
|
|
138
|
-
"glob@6.0.4": {
|
|
139
|
-
"minimatch": {
|
|
140
|
-
"brace-expansion": "1.1.14"
|
|
141
|
-
}
|
|
131
|
+
"@types/express@5.0.6": {
|
|
132
|
+
"@types/express-serve-static-core": "5.0.7"
|
|
142
133
|
},
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
}
|
|
134
|
+
"@google-cloud/storage": {
|
|
135
|
+
"retry-request": "8.0.2",
|
|
136
|
+
"teeny-request": "10.1.2"
|
|
147
137
|
},
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"copyfiles": {
|
|
154
|
-
"minimatch": {
|
|
155
|
-
".": "3.1.4",
|
|
156
|
-
"brace-expansion": "1.1.14"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"readdir-glob": {
|
|
160
|
-
"minimatch": {
|
|
161
|
-
".": "5.1.9",
|
|
162
|
-
"brace-expansion": "2.1.0"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"@types/request": {
|
|
166
|
-
"form-data": "2.5.4"
|
|
167
|
-
},
|
|
168
|
-
"graphql-request": {
|
|
169
|
-
"form-data": "3.0.4"
|
|
170
|
-
},
|
|
171
|
-
"prebuild-install": {
|
|
172
|
-
"tar-fs": "2.1.4"
|
|
173
|
-
},
|
|
174
|
-
"prebuildify": {
|
|
175
|
-
"tar-fs": "2.1.4"
|
|
138
|
+
"express-session": {
|
|
139
|
+
"cookie": "0.7.2",
|
|
140
|
+
"on-headers": "1.1.0"
|
|
176
141
|
}
|
|
177
142
|
},
|
|
178
143
|
"scripts": {
|