@prosopo/types-database 4.0.0 → 4.0.5
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 +43 -0
- package/dist/cjs/types/provider.cjs +3 -2
- package/dist/types/provider.js +3 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @prosopo/types-database
|
|
2
2
|
|
|
3
|
+
## 4.0.5
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- 93d92a7: little bump for publish all
|
|
7
|
+
- Updated dependencies [93d92a7]
|
|
8
|
+
- @prosopo/common@3.1.25
|
|
9
|
+
- @prosopo/locale@3.1.25
|
|
10
|
+
- @prosopo/types@3.6.3
|
|
11
|
+
- @prosopo/user-access-policy@3.5.31
|
|
12
|
+
|
|
13
|
+
## 4.0.4
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 8ee8434: bump node engines to 24 and npm version to 11
|
|
17
|
+
- cfee479: make @prosopo/config a dev dep
|
|
18
|
+
- Updated dependencies [8ee8434]
|
|
19
|
+
- Updated dependencies [cfee479]
|
|
20
|
+
- @prosopo/user-access-policy@3.5.30
|
|
21
|
+
- @prosopo/common@3.1.24
|
|
22
|
+
- @prosopo/locale@3.1.24
|
|
23
|
+
- @prosopo/types@3.6.2
|
|
24
|
+
|
|
25
|
+
## 4.0.3
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- e926831: mega mini bump for all to trigger publish all
|
|
29
|
+
- Updated dependencies [e926831]
|
|
30
|
+
- @prosopo/config@3.1.23
|
|
31
|
+
- @prosopo/common@3.1.23
|
|
32
|
+
- @prosopo/locale@3.1.23
|
|
33
|
+
- @prosopo/types@3.6.1
|
|
34
|
+
- @prosopo/user-access-policy@3.5.29
|
|
35
|
+
|
|
36
|
+
## 4.0.2
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- 0a9887c: Remove unique from token index
|
|
40
|
+
|
|
41
|
+
## 4.0.1
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- 3e5d80a: add reason field
|
|
45
|
+
|
|
3
46
|
## 4.0.0
|
|
4
47
|
### Major Changes
|
|
5
48
|
|
|
@@ -276,7 +276,7 @@ ScheduledTaskRecordSchema.index({ _id: 1, status: 1 });
|
|
|
276
276
|
const SessionRecordSchema = new mongoose.Schema({
|
|
277
277
|
sessionId: { type: String, required: true },
|
|
278
278
|
createdAt: { type: Date, required: true },
|
|
279
|
-
token: { type: String, required: true
|
|
279
|
+
token: { type: String, required: true },
|
|
280
280
|
score: { type: Number, required: true },
|
|
281
281
|
threshold: { type: Number, required: true },
|
|
282
282
|
scoreComponents: {
|
|
@@ -298,7 +298,8 @@ const SessionRecordSchema = new mongoose.Schema({
|
|
|
298
298
|
userSitekeyIpHash: { type: String, required: false },
|
|
299
299
|
webView: { type: Boolean, required: true, default: false },
|
|
300
300
|
iFrame: { type: Boolean, required: true, default: false },
|
|
301
|
-
decryptedHeadHash: { type: String, required: false, default: "" }
|
|
301
|
+
decryptedHeadHash: { type: String, required: false, default: "" },
|
|
302
|
+
reason: { type: String, required: false }
|
|
302
303
|
});
|
|
303
304
|
SessionRecordSchema.index({ createdAt: 1 });
|
|
304
305
|
SessionRecordSchema.index({ deleted: 1 });
|
package/dist/types/provider.js
CHANGED
|
@@ -274,7 +274,7 @@ ScheduledTaskRecordSchema.index({ _id: 1, status: 1 });
|
|
|
274
274
|
const SessionRecordSchema = new Schema({
|
|
275
275
|
sessionId: { type: String, required: true },
|
|
276
276
|
createdAt: { type: Date, required: true },
|
|
277
|
-
token: { type: String, required: true
|
|
277
|
+
token: { type: String, required: true },
|
|
278
278
|
score: { type: Number, required: true },
|
|
279
279
|
threshold: { type: Number, required: true },
|
|
280
280
|
scoreComponents: {
|
|
@@ -296,7 +296,8 @@ const SessionRecordSchema = new Schema({
|
|
|
296
296
|
userSitekeyIpHash: { type: String, required: false },
|
|
297
297
|
webView: { type: Boolean, required: true, default: false },
|
|
298
298
|
iFrame: { type: Boolean, required: true, default: false },
|
|
299
|
-
decryptedHeadHash: { type: String, required: false, default: "" }
|
|
299
|
+
decryptedHeadHash: { type: String, required: false, default: "" },
|
|
300
|
+
reason: { type: String, required: false }
|
|
300
301
|
});
|
|
301
302
|
SessionRecordSchema.index({ createdAt: 1 });
|
|
302
303
|
SessionRecordSchema.index({ deleted: 1 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/types-database",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Types for prosopo database",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
17
|
-
"npm": "
|
|
16
|
+
"node": "^24",
|
|
17
|
+
"npm": "^11"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@prosopo/common": "3.1.
|
|
38
|
-
"@prosopo/locale": "3.1.
|
|
39
|
-
"@prosopo/types": "3.6.
|
|
40
|
-
"@prosopo/user-access-policy": "3.5.
|
|
41
|
-
"@prosopo/config": "3.1.22",
|
|
37
|
+
"@prosopo/common": "3.1.25",
|
|
38
|
+
"@prosopo/locale": "3.1.25",
|
|
39
|
+
"@prosopo/types": "3.6.3",
|
|
40
|
+
"@prosopo/user-access-policy": "3.5.31",
|
|
42
41
|
"mongoose": "8.13.0",
|
|
43
42
|
"zod": "3.23.8"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
45
|
+
"@prosopo/config": "3.1.25",
|
|
46
46
|
"@types/node": "22.10.2",
|
|
47
47
|
"@vitest/coverage-v8": "3.2.4",
|
|
48
48
|
"concurrently": "9.0.1",
|