@prosopo/server 2.9.14 → 2.9.43

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/CHANGELOG.md CHANGED
@@ -1,5 +1,357 @@
1
1
  # @prosopo/server
2
2
 
3
+ ## 2.9.43
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [8f1773a]
7
+ - @prosopo/types@3.5.11
8
+ - @prosopo/api@3.1.32
9
+ - @prosopo/keyring@2.8.35
10
+ - @prosopo/load-balancer@2.8.8
11
+
12
+ ## 2.9.42
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [cb8ab85]
16
+ - @prosopo/types@3.5.10
17
+ - @prosopo/api@3.1.31
18
+ - @prosopo/keyring@2.8.34
19
+ - @prosopo/load-balancer@2.8.7
20
+
21
+ ## 2.9.41
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [43907e8]
25
+ - Updated dependencies [005ce66]
26
+ - Updated dependencies [b58046d]
27
+ - Updated dependencies [7101036]
28
+ - @prosopo/types@3.5.9
29
+ - @prosopo/load-balancer@2.8.6
30
+ - @prosopo/util@3.1.7
31
+ - @prosopo/api@3.1.30
32
+ - @prosopo/keyring@2.8.33
33
+
34
+ ## 2.9.40
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [e5c259d]
38
+ - @prosopo/types@3.5.8
39
+ - @prosopo/api@3.1.29
40
+ - @prosopo/keyring@2.8.32
41
+ - @prosopo/load-balancer@2.8.5
42
+
43
+ ## 2.9.39
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [c9d8fdf]
47
+ - Updated dependencies [b8185a4]
48
+ - @prosopo/api@3.1.28
49
+ - @prosopo/common@3.1.21
50
+ - @prosopo/config@3.1.21
51
+ - @prosopo/keyring@2.8.31
52
+ - @prosopo/load-balancer@2.8.4
53
+ - @prosopo/types@3.5.7
54
+ - @prosopo/util@3.1.6
55
+
56
+ ## 2.9.38
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [5d11a81]
60
+ - @prosopo/types@3.5.6
61
+ - @prosopo/api@3.1.27
62
+ - @prosopo/keyring@2.8.30
63
+ - @prosopo/load-balancer@2.8.3
64
+
65
+ ## 2.9.37
66
+ ### Patch Changes
67
+
68
+ - Updated dependencies [494c5a8]
69
+ - @prosopo/types@3.5.5
70
+ - @prosopo/api@3.1.26
71
+ - @prosopo/keyring@2.8.29
72
+ - @prosopo/load-balancer@2.8.2
73
+
74
+ ## 2.9.36
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [08ff50f]
78
+ - @prosopo/types@3.5.4
79
+ - @prosopo/api@3.1.25
80
+ - @prosopo/keyring@2.8.28
81
+ - @prosopo/load-balancer@2.8.1
82
+
83
+ ## 2.9.35
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [04d0f1a]
87
+ - Updated dependencies [1e3a838]
88
+ - @prosopo/load-balancer@2.8.0
89
+ - @prosopo/config@3.1.20
90
+ - @prosopo/api@3.1.24
91
+ - @prosopo/common@3.1.20
92
+ - @prosopo/keyring@2.8.27
93
+ - @prosopo/types@3.5.3
94
+ - @prosopo/util@3.1.5
95
+
96
+ ## 2.9.34
97
+ ### Patch Changes
98
+
99
+ - 5659b24: Release 3.4.4
100
+ - Updated dependencies [f912439]
101
+ - Updated dependencies [5659b24]
102
+ - @prosopo/common@3.1.19
103
+ - @prosopo/load-balancer@2.7.12
104
+ - @prosopo/keyring@2.8.26
105
+ - @prosopo/types@3.5.2
106
+ - @prosopo/util@3.1.4
107
+ - @prosopo/api@3.1.23
108
+ - @prosopo/config@3.1.19
109
+
110
+ ## 2.9.33
111
+ ### Patch Changes
112
+
113
+ - 50c4120: Release 3.4.3
114
+ - Updated dependencies [52cd544]
115
+ - Updated dependencies [b117ba3]
116
+ - Updated dependencies [50c4120]
117
+ - @prosopo/types@3.5.1
118
+ - @prosopo/load-balancer@2.7.11
119
+ - @prosopo/keyring@2.8.25
120
+ - @prosopo/common@3.1.18
121
+ - @prosopo/util@3.1.3
122
+ - @prosopo/api@3.1.22
123
+ - @prosopo/config@3.1.18
124
+
125
+ ## 2.9.32
126
+ ### Patch Changes
127
+
128
+ - 618703f: Release 3.4.2
129
+ - Updated dependencies [618703f]
130
+ - Updated dependencies [e20ad6b]
131
+ - @prosopo/load-balancer@2.7.10
132
+ - @prosopo/keyring@2.8.24
133
+ - @prosopo/common@3.1.17
134
+ - @prosopo/types@3.5.0
135
+ - @prosopo/util@3.1.2
136
+ - @prosopo/api@3.1.21
137
+ - @prosopo/config@3.1.17
138
+
139
+ ## 2.9.31
140
+ ### Patch Changes
141
+
142
+ - 11303d9: Release 3.4.0
143
+ - 18cb28b: Release 3.4.1
144
+ - Updated dependencies [11303d9]
145
+ - Updated dependencies [18cb28b]
146
+ - Updated dependencies [11303d9]
147
+ - @prosopo/load-balancer@2.7.9
148
+ - @prosopo/keyring@2.8.23
149
+ - @prosopo/common@3.1.16
150
+ - @prosopo/types@3.4.1
151
+ - @prosopo/util@3.1.1
152
+ - @prosopo/api@3.1.20
153
+ - @prosopo/config@3.1.16
154
+
155
+ ## 2.9.30
156
+ ### Patch Changes
157
+
158
+ - f3f7aec: Release 3.4.0
159
+ - Updated dependencies [f3f7aec]
160
+ - Updated dependencies [6768f14]
161
+ - @prosopo/load-balancer@2.7.8
162
+ - @prosopo/keyring@2.8.22
163
+ - @prosopo/common@3.1.15
164
+ - @prosopo/types@3.4.0
165
+ - @prosopo/util@3.1.0
166
+ - @prosopo/api@3.1.19
167
+ - @prosopo/config@3.1.15
168
+
169
+ ## 2.9.29
170
+ ### Patch Changes
171
+
172
+ - Release 3.3.1
173
+ - 0824221: Release 3.2.4
174
+ - Updated dependencies [97edf3f]
175
+ - Updated dependencies
176
+ - Updated dependencies [0824221]
177
+ - @prosopo/types@3.3.0
178
+ - @prosopo/load-balancer@2.7.7
179
+ - @prosopo/keyring@2.8.21
180
+ - @prosopo/common@3.1.14
181
+ - @prosopo/util@3.0.17
182
+ - @prosopo/api@3.1.18
183
+ - @prosopo/config@3.1.14
184
+
185
+ ## 2.9.28
186
+ ### Patch Changes
187
+
188
+ - 008d112: Release 3.3.0
189
+ - Updated dependencies [509be28]
190
+ - Updated dependencies [008d112]
191
+ - @prosopo/types@3.2.1
192
+ - @prosopo/load-balancer@2.7.6
193
+ - @prosopo/keyring@2.8.20
194
+ - @prosopo/common@3.1.13
195
+ - @prosopo/util@3.0.16
196
+ - @prosopo/api@3.1.17
197
+ - @prosopo/config@3.1.13
198
+
199
+ ## 2.9.27
200
+ ### Patch Changes
201
+
202
+ - 0824221: Release 3.2.4
203
+ - Updated dependencies [cf48565]
204
+ - Updated dependencies [0824221]
205
+ - @prosopo/types@3.2.0
206
+ - @prosopo/load-balancer@2.7.5
207
+ - @prosopo/keyring@2.8.19
208
+ - @prosopo/common@3.1.12
209
+ - @prosopo/util@3.0.15
210
+ - @prosopo/api@3.1.16
211
+ - @prosopo/config@3.1.12
212
+
213
+ ## 2.9.26
214
+ ### Patch Changes
215
+
216
+ - 1a23649: Release 3.2.3
217
+ - Updated dependencies [0d1a33e]
218
+ - Updated dependencies [0d1a33e]
219
+ - Updated dependencies [1a23649]
220
+ - @prosopo/types@3.1.4
221
+ - @prosopo/load-balancer@2.7.4
222
+ - @prosopo/keyring@2.8.18
223
+ - @prosopo/common@3.1.11
224
+ - @prosopo/util@3.0.14
225
+ - @prosopo/api@3.1.15
226
+ - @prosopo/config@3.1.11
227
+
228
+ ## 2.9.25
229
+ ### Patch Changes
230
+
231
+ - 657a827: Release 3.2.2
232
+ - Updated dependencies [36b23e0]
233
+ - Updated dependencies [657a827]
234
+ - @prosopo/api@3.1.14
235
+ - @prosopo/load-balancer@2.7.3
236
+ - @prosopo/keyring@2.8.17
237
+ - @prosopo/common@3.1.10
238
+ - @prosopo/types@3.1.3
239
+ - @prosopo/util@3.0.13
240
+ - @prosopo/config@3.1.10
241
+
242
+ ## 2.9.24
243
+ ### Patch Changes
244
+
245
+ - 4440947: fix type-only tsc compilation
246
+ - 7bdaca6: Release 3.2.1
247
+ - Updated dependencies [4440947]
248
+ - Updated dependencies [7bdaca6]
249
+ - Updated dependencies [809b984]
250
+ - Updated dependencies [1249ce0]
251
+ - Updated dependencies [809b984]
252
+ - @prosopo/load-balancer@2.7.2
253
+ - @prosopo/keyring@2.8.16
254
+ - @prosopo/common@3.1.9
255
+ - @prosopo/types@3.1.2
256
+ - @prosopo/util@3.0.12
257
+ - @prosopo/api@3.1.13
258
+ - @prosopo/config@3.1.9
259
+
260
+ ## 2.9.23
261
+ ### Patch Changes
262
+
263
+ - 6fe8570: Release 3.2.0
264
+ - Updated dependencies [1f980c4]
265
+ - Updated dependencies [6fe8570]
266
+ - @prosopo/load-balancer@2.7.1
267
+ - @prosopo/types@3.1.1
268
+ - @prosopo/keyring@2.8.15
269
+ - @prosopo/common@3.1.8
270
+ - @prosopo/util@3.0.11
271
+ - @prosopo/api@3.1.12
272
+ - @prosopo/config@3.1.8
273
+
274
+ ## 2.9.22
275
+ ### Patch Changes
276
+
277
+ - f304be9: Release 3.1.13
278
+ - Updated dependencies [f304be9]
279
+ - Updated dependencies [8bdc7f0]
280
+ - @prosopo/load-balancer@2.7.0
281
+ - @prosopo/keyring@2.8.14
282
+ - @prosopo/common@3.1.7
283
+ - @prosopo/types@3.1.0
284
+ - @prosopo/util@3.0.10
285
+ - @prosopo/api@3.1.11
286
+ - @prosopo/config@3.1.7
287
+
288
+ ## 2.9.21
289
+ ### Patch Changes
290
+
291
+ - a07db04: Release 3.1.12
292
+ - Updated dependencies [9eed772]
293
+ - Updated dependencies [a07db04]
294
+ - Updated dependencies [ebb0168]
295
+ - @prosopo/config@3.1.6
296
+ - @prosopo/api@3.1.10
297
+ - @prosopo/util@3.0.9
298
+ - @prosopo/common@3.1.6
299
+ - @prosopo/keyring@2.8.13
300
+ - @prosopo/load-balancer@2.6.21
301
+ - @prosopo/types@3.0.10
302
+
303
+ ## 2.9.20
304
+ ### Patch Changes
305
+
306
+ - @prosopo/api@3.1.9
307
+
308
+ ## 2.9.19
309
+ ### Patch Changes
310
+
311
+ - 6960643: lint detect missing and unneccessary imports
312
+ - Updated dependencies [6960643]
313
+ - @prosopo/load-balancer@2.6.20
314
+ - @prosopo/keyring@2.8.12
315
+ - @prosopo/common@3.1.5
316
+ - @prosopo/types@3.0.9
317
+ - @prosopo/util@3.0.8
318
+ - @prosopo/api@3.1.8
319
+
320
+ ## 2.9.18
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies [30e7d4d]
324
+ - @prosopo/config@3.1.5
325
+ - @prosopo/api@3.1.7
326
+ - @prosopo/common@3.1.4
327
+ - @prosopo/keyring@2.8.11
328
+ - @prosopo/load-balancer@2.6.19
329
+ - @prosopo/types@3.0.8
330
+
331
+ ## 2.9.17
332
+ ### Patch Changes
333
+
334
+ - 1f3a02f: Release 3.1.8
335
+ - Updated dependencies [1f3a02f]
336
+ - @prosopo/api@3.1.6
337
+
338
+ ## 2.9.16
339
+ ### Patch Changes
340
+
341
+ - @prosopo/api@3.1.5
342
+
343
+ ## 2.9.15
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies [44ffda2]
347
+ - Updated dependencies [a49b538]
348
+ - @prosopo/config@3.1.4
349
+ - @prosopo/common@3.1.3
350
+ - @prosopo/api@3.1.4
351
+ - @prosopo/keyring@2.8.10
352
+ - @prosopo/load-balancer@2.6.18
353
+ - @prosopo/types@3.0.7
354
+
3
355
  ## 2.9.14
4
356
  ### Patch Changes
5
357
 
@@ -0,0 +1,38 @@
1
+ export declare const getServerConfig: () => {
2
+ timeouts: {
3
+ image: {
4
+ verifiedTimeout: number;
5
+ challengeTimeout: number;
6
+ solutionTimeout: number;
7
+ cachedTimeout: number;
8
+ };
9
+ pow: {
10
+ verifiedTimeout: number;
11
+ solutionTimeout: number;
12
+ cachedTimeout: number;
13
+ };
14
+ contract: {
15
+ maxVerifiedTime: number;
16
+ };
17
+ };
18
+ logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "log";
19
+ defaultEnvironment: "development" | "staging" | "production";
20
+ account: {
21
+ secret?: string | undefined;
22
+ address?: string | undefined;
23
+ password?: string | undefined;
24
+ };
25
+ web2: boolean;
26
+ solutionThreshold: number;
27
+ dappName: string;
28
+ database?: Partial<Record<"development" | "staging" | "production", {
29
+ type: string;
30
+ endpoint: string;
31
+ dbname: string;
32
+ authSource: string;
33
+ }>> | undefined;
34
+ userAccountAddress?: string | undefined;
35
+ serverUrl?: string | undefined;
36
+ };
37
+ export declare const getServerUrl: () => string;
38
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;cAqBw7e,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;CAX/hf,CAAC;AAEJ,eAAO,MAAM,YAAY,QAAO,MAQ/B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CACnC,yBAAyB,CAAC,KAAK,CAAC;IAC/B,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;IAC3D,SAAS,EAAE,YAAY,EAAE;IACzB,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,uBAAuB;IAClE,OAAO,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;QAC3C,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,EAAE;KAClD;CACD,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,YAAY,GAAG,GAAW,EAAE;IACxC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;YAClD,OAAO,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;QACvC,CAAC;QACD,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,IAAI,EAAE,CAAC;IACvF,CAAC;IACD,OAAO,uBAAuB,CAAC;AAChC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ProsopoServer } from "./server.js";
2
+ export { ProsopoServer } from "./server.js";
3
+ export { getServerConfig, getServerUrl } from "./config.js";
4
+ import type { ProsopoServerConfigOutput } from "@prosopo/types";
5
+ export declare const PublicProsopoServer: (config: ProsopoServerConfigOutput) => Promise<ProsopoServer>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAChE,eAAO,MAAM,mBAAmB,WACvB,yBAAyB,2BAKjC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACvC,MAAiC,EAChC,EAAE;IAEH,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxD,OAAO,IAAI,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ProviderApi } from "@prosopo/api";
2
+ import { type Logger } from "@prosopo/common";
3
+ import { Keyring } from "@prosopo/keyring";
4
+ import type { KeyringPair } from "@prosopo/types";
5
+ import { type CaptchaTimeoutOutput, type ProcaptchaToken, type ProsopoServerConfigOutput, type VerificationResponse } from "@prosopo/types";
6
+ export declare class ProsopoServer {
7
+ config: ProsopoServerConfigOutput;
8
+ dappAccount: string | undefined;
9
+ defaultEnvironment: string;
10
+ logger: Logger;
11
+ keyring: Keyring;
12
+ pair: KeyringPair | undefined;
13
+ constructor(config: ProsopoServerConfigOutput, pair?: KeyringPair);
14
+ getProviderApi(providerUrl: string): ProviderApi;
15
+ verifyProvider(token: string, timeouts: CaptchaTimeoutOutput, providerUrl: string, timestamp: number, user: string, challenge?: string, ip?: string): Promise<VerificationResponse>;
16
+ isVerified(token: ProcaptchaToken, ip?: string): Promise<VerificationResponse>;
17
+ }
18
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAEN,KAAK,MAAM,EAIX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EACN,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAEzB,MAAM,gBAAgB,CAAC;AAIxB,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,CAAC,CAAC,CAAC;YAEJ,OAAO,oBAAoB,CAAC;QAC7B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;YACpD,MAAM,IAAI,eAAe,CAAC,iBAAiB,EAAE;gBAC5C,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE;aAC7B,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@prosopo/server",
3
- "version": "2.9.14",
3
+ "version": "2.9.43",
4
4
  "description": "NodeJS package for server side communication with the prosopo captcha client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "engines": {
9
- "node": "20",
10
- "npm": "10.8.2"
9
+ "node": ">=v20.0.0",
10
+ "npm": ">=10.6.0"
11
11
  },
12
12
  "exports": {
13
13
  ".": {
@@ -21,7 +21,7 @@
21
21
  "build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
22
22
  "build:tsc": "tsc --build --verbose",
23
23
  "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
24
- "typecheck": "tsc --build --declaration --emitDeclarationOnly"
24
+ "typecheck": "tsc --project tsconfig.types.json"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -35,28 +35,25 @@
35
35
  "homepage": "https://github.com/prosopo/captcha#readme",
36
36
  "sideEffects": false,
37
37
  "dependencies": {
38
- "@polkadot/util": "12.6.2",
39
- "@prosopo/api": "3.1.3",
40
- "@prosopo/common": "3.1.2",
41
- "@prosopo/config": "3.1.3",
42
- "@prosopo/keyring": "2.8.9",
43
- "@prosopo/load-balancer": "2.6.17",
44
- "@prosopo/types": "3.0.6",
45
- "@typegoose/auto-increment": "4.13.0",
46
- "axios": "1.10.0",
47
- "esbuild": "0.25.6",
48
- "openpgp": "5.11.3",
49
- "webpack-dev-server": "5.2.2"
38
+ "@prosopo/api": "3.1.32",
39
+ "@prosopo/common": "3.1.21",
40
+ "@prosopo/config": "3.1.21",
41
+ "@prosopo/keyring": "2.8.35",
42
+ "@prosopo/load-balancer": "2.8.8",
43
+ "@prosopo/types": "3.5.11",
44
+ "@prosopo/util": "3.1.7",
45
+ "i18next": "24.1.0"
50
46
  },
51
47
  "devDependencies": {
52
- "@vitest/coverage-v8": "3.0.9",
48
+ "@types/node": "22.10.2",
49
+ "@vitest/coverage-v8": "3.2.4",
53
50
  "concurrently": "9.0.1",
54
51
  "del-cli": "6.0.0",
55
52
  "npm-run-all": "4.1.5",
56
53
  "tslib": "2.7.0",
57
54
  "tsx": "4.20.3",
58
55
  "typescript": "5.6.2",
59
- "vite": "6.3.5",
60
- "vitest": "3.0.9"
56
+ "vite": "6.4.1",
57
+ "vitest": "3.2.4"
61
58
  }
62
59
  }