@prosopo/types-database 4.11.11 → 4.11.13
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/.turbo/turbo-build$colon$cjs.log +5 -5
- package/.turbo/turbo-build$colon$tsc.log +15 -15
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +23 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/types/captcha.cjs +5 -0
- package/dist/cjs/types/index.cjs +1 -0
- package/dist/index.js +2 -1
- package/dist/types/captcha.d.ts +4 -2
- package/dist/types/captcha.d.ts.map +1 -1
- package/dist/types/captcha.js +6 -1
- package/dist/types/captcha.js.map +1 -1
- package/dist/types/index.js +2 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/types-database@4.11.
|
|
2
|
+
> @prosopo/types-database@4.11.13 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -41,9 +41,9 @@ rendering chunks...
|
|
|
41
41
|
[2mdist/cjs/[22m[36mtypes/userAgent.cjs [39m[1m[2m 0.01 kB[22m[1m[22m
|
|
42
42
|
[2mdist/cjs/[22m[36mtypes/bannedDomain.cjs [39m[1m[2m 0.35 kB[22m[1m[22m
|
|
43
43
|
[2mdist/cjs/[22m[36mtypes/spamEmailDomain.cjs [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
44
|
-
[2mdist/cjs/[22m[36mtypes/captcha.cjs [39m[1m[2m
|
|
45
|
-
[2mdist/cjs/[22m[36mtypes/index.cjs [39m[1m[2m 2.
|
|
46
|
-
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m 2.
|
|
44
|
+
[2mdist/cjs/[22m[36mtypes/captcha.cjs [39m[1m[2m 1.01 kB[22m[1m[22m
|
|
45
|
+
[2mdist/cjs/[22m[36mtypes/index.cjs [39m[1m[2m 2.15 kB[22m[1m[22m
|
|
46
|
+
[2mdist/cjs/[22m[36mindex.cjs [39m[1m[2m 2.15 kB[22m[1m[22m
|
|
47
47
|
[2mdist/cjs/[22m[36mtypes/client.cjs [39m[1m[2m 6.27 kB[22m[1m[22m
|
|
48
48
|
[2mdist/cjs/[22m[36mtypes/provider.cjs [39m[1m[2m26.24 kB[22m[1m[22m
|
|
49
|
-
[32m✓ built in
|
|
49
|
+
[32m✓ built in 226ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/types-database@4.11.
|
|
2
|
+
> @prosopo/types-database@4.11.13 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
10:28:09 AM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -16,29 +16,29 @@
|
|
|
16
16
|
* ../user-access-policy/tsconfig.json
|
|
17
17
|
* tsconfig.json
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
10:28:09 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/NodejsPolarsNativeFilePlugin.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
10:28:09 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
10:28:09 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
10:28:09 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
10:28:09 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
10:28:09 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
10:28:09 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
10:28:09 AM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
10:28:09 AM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
10:28:09 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
10:28:10 AM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
10:28:10 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
10:28:10 AM - Building project '/home/runner/work/captcha/captcha/packages/types-database/tsconfig.json'...
|
|
44
44
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/types-database@4.11.
|
|
2
|
+
> @prosopo/types-database@4.11.13 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/types-database@4.11.
|
|
6
|
+
> @prosopo/types-database@4.11.13 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -45,9 +45,9 @@ rendering chunks...
|
|
|
45
45
|
[2mdist/[22m[36mtypes/userAgent.js [39m[1m[2m 0.00 kB[22m[1m[22m
|
|
46
46
|
[2mdist/[22m[36mtypes/bannedDomain.js [39m[1m[2m 0.23 kB[22m[1m[22m
|
|
47
47
|
[2mdist/[22m[36mtypes/spamEmailDomain.js [39m[1m[2m 0.24 kB[22m[1m[22m
|
|
48
|
-
[2mdist/[22m[36mtypes/captcha.js [39m[1m[2m 0.
|
|
49
|
-
[2mdist/[22m[36mtypes/index.js [39m[1m[2m 1.
|
|
50
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m 1.
|
|
48
|
+
[2mdist/[22m[36mtypes/captcha.js [39m[1m[2m 0.81 kB[22m[1m[22m
|
|
49
|
+
[2mdist/[22m[36mtypes/index.js [39m[1m[2m 1.58 kB[22m[1m[22m
|
|
50
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m 1.59 kB[22m[1m[22m
|
|
51
51
|
[2mdist/[22m[36mtypes/client.js [39m[1m[2m 6.29 kB[22m[1m[22m
|
|
52
52
|
[2mdist/[22m[36mtypes/provider.js [39m[1m[2m25.38 kB[22m[1m[22m
|
|
53
|
-
[32m✓ built in
|
|
53
|
+
[32m✓ built in 278ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @prosopo/types-database
|
|
2
2
|
|
|
3
|
+
## 4.11.13
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [0a4f902]
|
|
7
|
+
- @prosopo/types@4.9.10
|
|
8
|
+
- @prosopo/user-access-policy@3.12.5
|
|
9
|
+
|
|
10
|
+
## 4.11.12
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2bba03a: feat(database): stream puzzle captcha records to the central captchastorage DB in real-time
|
|
14
|
+
|
|
15
|
+
Puzzle records were being written to each provider node's local mongo but never reached the central `captchastorage` DB on mongo1 — `CentralDbStreamer` only exposed `streamPow*` and `streamImage*` methods, and `provider.ts`'s `storePuzzleCaptchaRecord` / `updatePuzzleCaptchaRecordResult` / `updatePuzzleCaptchaRecord` had no streamer calls at all. As a result 35 puzzle records were successfully written to per-pronode mongos over 7d but zero landed in the central store, so portal aggregations and the audit search return no puzzle data regardless of live activity.
|
|
16
|
+
|
|
17
|
+
Adds `streamPuzzleRecord` / `streamPuzzleUpdate` on `CentralDbStreamer` mirroring the PoW pattern (fire-and-forget, `challenge` upsert key, `pendingStage` guard callback so concurrent updates aren't dropped). Wires those calls into every puzzle write/update site in `provider.ts`. Adds `puzzlecaptcha` to `CaptchaDatabase`'s tables and extends `saveCaptchas`/`getCaptchas` with a puzzle branch for parity with the existing pow/image bulk-write paths. Adds `StoredPuzzleCaptchaRecordSchema` in `@prosopo/types-database` and threads `PuzzleCaptchaRecord` through the `ICaptchaDatabase` interface.
|
|
18
|
+
|
|
19
|
+
Existing puzzle records on pronode local mongos are not backfilled — this change is forward-only.
|
|
20
|
+
- Updated dependencies [b500d56]
|
|
21
|
+
- @prosopo/locale@3.2.7
|
|
22
|
+
- @prosopo/common@3.1.46
|
|
23
|
+
- @prosopo/types@4.9.9
|
|
24
|
+
- @prosopo/user-access-policy@3.12.4
|
|
25
|
+
|
|
3
26
|
## 4.11.11
|
|
4
27
|
### Patch Changes
|
|
5
28
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ exports.TableNames = client.TableNames;
|
|
|
27
27
|
exports.UserDataSchema = client.UserDataSchema;
|
|
28
28
|
exports.UserSettingsSchema = client.UserSettingsSchema;
|
|
29
29
|
exports.StoredPoWCaptchaRecordSchema = captcha.StoredPoWCaptchaRecordSchema;
|
|
30
|
+
exports.StoredPuzzleCaptchaRecordSchema = captcha.StoredPuzzleCaptchaRecordSchema;
|
|
30
31
|
exports.StoredSessionRecordSchema = captcha.StoredSessionRecordSchema;
|
|
31
32
|
exports.StoredUserCommitmentRecordSchema = captcha.StoredUserCommitmentRecordSchema;
|
|
32
33
|
exports.SpamEmailDomainRecordSchema = spamEmailDomain.SpamEmailDomainRecordSchema;
|
|
@@ -11,6 +11,11 @@ const StoredPoWCaptchaRecordSchema = new mongoose.Schema({
|
|
|
11
11
|
...provider.PoWCaptchaRecordSchema.obj
|
|
12
12
|
});
|
|
13
13
|
StoredPoWCaptchaRecordSchema.index({ sessionId: 1 });
|
|
14
|
+
const StoredPuzzleCaptchaRecordSchema = new mongoose.Schema({
|
|
15
|
+
...provider.PuzzleCaptchaRecordSchema.obj
|
|
16
|
+
});
|
|
17
|
+
StoredPuzzleCaptchaRecordSchema.index({ sessionId: 1 });
|
|
14
18
|
exports.StoredPoWCaptchaRecordSchema = StoredPoWCaptchaRecordSchema;
|
|
19
|
+
exports.StoredPuzzleCaptchaRecordSchema = StoredPuzzleCaptchaRecordSchema;
|
|
15
20
|
exports.StoredSessionRecordSchema = StoredSessionRecordSchema;
|
|
16
21
|
exports.StoredUserCommitmentRecordSchema = StoredUserCommitmentRecordSchema;
|
package/dist/cjs/types/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ exports.TableNames = client.TableNames;
|
|
|
28
28
|
exports.UserDataSchema = client.UserDataSchema;
|
|
29
29
|
exports.UserSettingsSchema = client.UserSettingsSchema;
|
|
30
30
|
exports.StoredPoWCaptchaRecordSchema = captcha.StoredPoWCaptchaRecordSchema;
|
|
31
|
+
exports.StoredPuzzleCaptchaRecordSchema = captcha.StoredPuzzleCaptchaRecordSchema;
|
|
31
32
|
exports.StoredSessionRecordSchema = captcha.StoredSessionRecordSchema;
|
|
32
33
|
exports.StoredUserCommitmentRecordSchema = captcha.StoredUserCommitmentRecordSchema;
|
|
33
34
|
exports.SpamEmailDomainRecordSchema = spamEmailDomain.SpamEmailDomainRecordSchema;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./types/index.js";
|
|
2
2
|
import { CaptchaRecordSchema, ClientContextEntropyRecordSchema, ClientRecordSchema, CompositeIpAddressRecordSchemaObj, DatasetRecordSchema, DecisionMachineArtifactRecordSchema, DetectorRecordSchema, PoWCaptchaRecordSchema, PuzzleCaptchaRecordSchema, ScheduledTaskRecordSchema, ScheduledTaskSchema, SessionRecordSchema, SolutionRecordSchema, UserCommitmentRecordSchema, UserSolutionRecordSchema } from "./types/provider.js";
|
|
3
3
|
import { AccountSchema, IPValidationRulesSchema, TableNames, UserDataSchema, UserSettingsSchema } from "./types/client.js";
|
|
4
|
-
import { StoredPoWCaptchaRecordSchema, StoredSessionRecordSchema, StoredUserCommitmentRecordSchema } from "./types/captcha.js";
|
|
4
|
+
import { StoredPoWCaptchaRecordSchema, StoredPuzzleCaptchaRecordSchema, StoredSessionRecordSchema, StoredUserCommitmentRecordSchema } from "./types/captcha.js";
|
|
5
5
|
import { SpamEmailDomainRecordSchema } from "./types/spamEmailDomain.js";
|
|
6
6
|
import { BannedDomainRecordSchema } from "./types/bannedDomain.js";
|
|
7
7
|
export {
|
|
@@ -23,6 +23,7 @@ export {
|
|
|
23
23
|
SolutionRecordSchema,
|
|
24
24
|
SpamEmailDomainRecordSchema,
|
|
25
25
|
StoredPoWCaptchaRecordSchema,
|
|
26
|
+
StoredPuzzleCaptchaRecordSchema,
|
|
26
27
|
StoredSessionRecordSchema,
|
|
27
28
|
StoredUserCommitmentRecordSchema,
|
|
28
29
|
TableNames,
|
package/dist/types/captcha.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import type { PoWCaptcha, UserCommitment } from "@prosopo/types";
|
|
2
2
|
import { type RootFilterQuery, Schema } from "mongoose";
|
|
3
3
|
import type { IDatabase } from "./mongo.js";
|
|
4
|
-
import { type PoWCaptchaRecord, type SessionRecord, type UserCommitmentRecord } from "./provider.js";
|
|
4
|
+
import { type PoWCaptchaRecord, type PuzzleCaptchaRecord, type SessionRecord, type UserCommitmentRecord } from "./provider.js";
|
|
5
5
|
export type StoredSession = SessionRecord;
|
|
6
6
|
export declare const StoredSessionRecordSchema: Schema;
|
|
7
7
|
export declare const StoredUserCommitmentRecordSchema: Schema;
|
|
8
8
|
export declare const StoredPoWCaptchaRecordSchema: Schema;
|
|
9
|
+
export declare const StoredPuzzleCaptchaRecordSchema: Schema;
|
|
9
10
|
export interface ICaptchaDatabase extends IDatabase {
|
|
10
|
-
saveCaptchas(sessionEvents: StoredSession[], imageCaptchaEvents: UserCommitmentRecord[], powCaptchaEvents: PoWCaptchaRecord[]): Promise<void>;
|
|
11
|
+
saveCaptchas(sessionEvents: StoredSession[], imageCaptchaEvents: UserCommitmentRecord[], powCaptchaEvents: PoWCaptchaRecord[], puzzleCaptchaEvents?: PuzzleCaptchaRecord[]): Promise<void>;
|
|
11
12
|
getCaptchas(filter: RootFilterQuery<CaptchaProperties>, limit: number): Promise<{
|
|
12
13
|
userCommitmentRecords: UserCommitmentRecord[];
|
|
13
14
|
powCaptchaRecords: PoWCaptchaRecord[];
|
|
15
|
+
puzzleCaptchaRecords: PuzzleCaptchaRecord[];
|
|
14
16
|
}>;
|
|
15
17
|
}
|
|
16
18
|
export interface CaptchaProperties extends Partial<UserCommitment & PoWCaptcha> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captcha.d.ts","sourceRoot":"","sources":["../../src/types/captcha.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EACN,KAAK,gBAAgB,EAErB,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAEzB,MAAM,eA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AAiB,CAAC,EAC1C,KAAK,EAAE,MAAM,GACX,OAAO,CAAC;QACV,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;QAC9C,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;QACtC,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;KAC5C,CAAC,CAAC;CACH;AAED,MAAM,WAAW,iBAChB,SAAQ,OAAO,CAAC,cAAc,GAAG,UAAU,CAAC;CAAG"}
|
package/dist/types/captcha.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "mongoose";
|
|
2
|
-
import { SessionRecordSchema, UserCommitmentRecordSchema, PoWCaptchaRecordSchema } from "./provider.js";
|
|
2
|
+
import { SessionRecordSchema, UserCommitmentRecordSchema, PoWCaptchaRecordSchema, PuzzleCaptchaRecordSchema } from "./provider.js";
|
|
3
3
|
const StoredSessionRecordSchema = SessionRecordSchema;
|
|
4
4
|
const StoredUserCommitmentRecordSchema = new Schema({
|
|
5
5
|
...UserCommitmentRecordSchema.obj
|
|
@@ -9,8 +9,13 @@ const StoredPoWCaptchaRecordSchema = new Schema({
|
|
|
9
9
|
...PoWCaptchaRecordSchema.obj
|
|
10
10
|
});
|
|
11
11
|
StoredPoWCaptchaRecordSchema.index({ sessionId: 1 });
|
|
12
|
+
const StoredPuzzleCaptchaRecordSchema = new Schema({
|
|
13
|
+
...PuzzleCaptchaRecordSchema.obj
|
|
14
|
+
});
|
|
15
|
+
StoredPuzzleCaptchaRecordSchema.index({ sessionId: 1 });
|
|
12
16
|
export {
|
|
13
17
|
StoredPoWCaptchaRecordSchema,
|
|
18
|
+
StoredPuzzleCaptchaRecordSchema,
|
|
14
19
|
StoredSessionRecordSchema,
|
|
15
20
|
StoredUserCommitmentRecordSchema
|
|
16
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captcha.js","sourceRoot":"","sources":["../../src/types/captcha.ts"],"names":[],"mappings":"AAeA,OAAO,EAAwB,MAAM,EAAE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AG,yBAAyB,CAAC,GAAG;CAChC,CAAC,CAAC;AACH,+BAA+B,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./mongo.js";
|
|
2
2
|
import { CaptchaRecordSchema, ClientContextEntropyRecordSchema, ClientRecordSchema, CompositeIpAddressRecordSchemaObj, DatasetRecordSchema, DecisionMachineArtifactRecordSchema, DetectorRecordSchema, PoWCaptchaRecordSchema, PuzzleCaptchaRecordSchema, ScheduledTaskRecordSchema, ScheduledTaskSchema, SessionRecordSchema, SolutionRecordSchema, UserCommitmentRecordSchema, UserSolutionRecordSchema } from "./provider.js";
|
|
3
3
|
import { AccountSchema, IPValidationRulesSchema, TableNames, UserDataSchema, UserSettingsSchema } from "./client.js";
|
|
4
|
-
import { StoredPoWCaptchaRecordSchema, StoredSessionRecordSchema, StoredUserCommitmentRecordSchema } from "./captcha.js";
|
|
4
|
+
import { StoredPoWCaptchaRecordSchema, StoredPuzzleCaptchaRecordSchema, StoredSessionRecordSchema, StoredUserCommitmentRecordSchema } from "./captcha.js";
|
|
5
5
|
import "./userAgent.js";
|
|
6
6
|
import { SpamEmailDomainRecordSchema } from "./spamEmailDomain.js";
|
|
7
7
|
import { BannedDomainRecordSchema } from "./bannedDomain.js";
|
|
@@ -24,6 +24,7 @@ export {
|
|
|
24
24
|
SolutionRecordSchema,
|
|
25
25
|
SpamEmailDomainRecordSchema,
|
|
26
26
|
StoredPoWCaptchaRecordSchema,
|
|
27
|
+
StoredPuzzleCaptchaRecordSchema,
|
|
27
28
|
StoredSessionRecordSchema,
|
|
28
29
|
StoredUserCommitmentRecordSchema,
|
|
29
30
|
TableNames,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/types-database",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.13",
|
|
4
4
|
"description": "Types for prosopo database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@prosopo/common": "3.1.
|
|
40
|
-
"@prosopo/locale": "3.2.
|
|
39
|
+
"@prosopo/common": "3.1.46",
|
|
40
|
+
"@prosopo/locale": "3.2.7",
|
|
41
41
|
"@prosopo/logger": "2.0.3",
|
|
42
|
-
"@prosopo/types": "4.9.
|
|
43
|
-
"@prosopo/user-access-policy": "3.12.
|
|
42
|
+
"@prosopo/types": "4.9.10",
|
|
43
|
+
"@prosopo/user-access-policy": "3.12.5",
|
|
44
44
|
"bson": "6.10.4",
|
|
45
45
|
"mongoose": "8.13.0",
|
|
46
46
|
"zod": "3.23.8"
|