@prosopo/database 3.0.10 → 3.0.12
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 +20 -0
- package/dist/cjs/databases/captcha.cjs +16 -3
- package/dist/databases/captcha.js +16 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @prosopo/database
|
|
2
2
|
|
|
3
|
+
## 3.0.12
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- eb71691: configure typecheck before bundle for vue packages
|
|
7
|
+
- eb71691: make typecheck script always recompile
|
|
8
|
+
- Updated dependencies [eb71691]
|
|
9
|
+
- Updated dependencies [eb71691]
|
|
10
|
+
- @prosopo/user-access-policy@3.3.2
|
|
11
|
+
- @prosopo/types-database@3.0.12
|
|
12
|
+
- @prosopo/common@3.1.1
|
|
13
|
+
- @prosopo/types@3.0.5
|
|
14
|
+
- @prosopo/config@3.1.2
|
|
15
|
+
|
|
16
|
+
## 3.0.11
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 625fef8: ua parsing
|
|
20
|
+
- Updated dependencies [625fef8]
|
|
21
|
+
- @prosopo/types-database@3.0.11
|
|
22
|
+
|
|
3
23
|
## 3.0.10
|
|
4
24
|
### Patch Changes
|
|
5
25
|
|
|
@@ -65,7 +65,10 @@ class CaptchaDatabase extends mongo.MongoDatabase {
|
|
|
65
65
|
})
|
|
66
66
|
);
|
|
67
67
|
logger.info(() => ({
|
|
68
|
-
data: {
|
|
68
|
+
data: {
|
|
69
|
+
insertedCount: result.insertedCount,
|
|
70
|
+
totalProcessed: sessionEvents.length
|
|
71
|
+
},
|
|
69
72
|
msg: "Mongo Saved Session Events"
|
|
70
73
|
}));
|
|
71
74
|
}
|
|
@@ -83,7 +86,12 @@ class CaptchaDatabase extends mongo.MongoDatabase {
|
|
|
83
86
|
})
|
|
84
87
|
);
|
|
85
88
|
logger.info(() => ({
|
|
86
|
-
data: {
|
|
89
|
+
data: {
|
|
90
|
+
upsertedCount: result.upsertedCount,
|
|
91
|
+
matchedCount: result.matchedCount,
|
|
92
|
+
modifiedCount: result.modifiedCount,
|
|
93
|
+
totalProcessed: imageCaptchaEvents.length
|
|
94
|
+
},
|
|
87
95
|
msg: "Mongo Saved Image Events"
|
|
88
96
|
}));
|
|
89
97
|
}
|
|
@@ -101,7 +109,12 @@ class CaptchaDatabase extends mongo.MongoDatabase {
|
|
|
101
109
|
})
|
|
102
110
|
);
|
|
103
111
|
logger.info(() => ({
|
|
104
|
-
data: {
|
|
112
|
+
data: {
|
|
113
|
+
upsertedCount: result.upsertedCount,
|
|
114
|
+
matchedCount: result.matchedCount,
|
|
115
|
+
modifiedCount: result.modifiedCount,
|
|
116
|
+
totalProcessed: powCaptchaEvents.length
|
|
117
|
+
},
|
|
105
118
|
msg: "Mongo Saved PoW Events"
|
|
106
119
|
}));
|
|
107
120
|
}
|
|
@@ -63,7 +63,10 @@ class CaptchaDatabase extends MongoDatabase {
|
|
|
63
63
|
})
|
|
64
64
|
);
|
|
65
65
|
logger.info(() => ({
|
|
66
|
-
data: {
|
|
66
|
+
data: {
|
|
67
|
+
insertedCount: result.insertedCount,
|
|
68
|
+
totalProcessed: sessionEvents.length
|
|
69
|
+
},
|
|
67
70
|
msg: "Mongo Saved Session Events"
|
|
68
71
|
}));
|
|
69
72
|
}
|
|
@@ -81,7 +84,12 @@ class CaptchaDatabase extends MongoDatabase {
|
|
|
81
84
|
})
|
|
82
85
|
);
|
|
83
86
|
logger.info(() => ({
|
|
84
|
-
data: {
|
|
87
|
+
data: {
|
|
88
|
+
upsertedCount: result.upsertedCount,
|
|
89
|
+
matchedCount: result.matchedCount,
|
|
90
|
+
modifiedCount: result.modifiedCount,
|
|
91
|
+
totalProcessed: imageCaptchaEvents.length
|
|
92
|
+
},
|
|
85
93
|
msg: "Mongo Saved Image Events"
|
|
86
94
|
}));
|
|
87
95
|
}
|
|
@@ -99,7 +107,12 @@ class CaptchaDatabase extends MongoDatabase {
|
|
|
99
107
|
})
|
|
100
108
|
);
|
|
101
109
|
logger.info(() => ({
|
|
102
|
-
data: {
|
|
110
|
+
data: {
|
|
111
|
+
upsertedCount: result.upsertedCount,
|
|
112
|
+
matchedCount: result.matchedCount,
|
|
113
|
+
modifiedCount: result.modifiedCount,
|
|
114
|
+
totalProcessed: powCaptchaEvents.length
|
|
115
|
+
},
|
|
103
116
|
msg: "Mongo Saved PoW Events"
|
|
104
117
|
}));
|
|
105
118
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/database",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Prosopo database plugins for provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "NODE_ENV=${NODE_ENV:-production}; 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:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
24
|
-
"typecheck": "tsc --build --declaration --emitDeclarationOnly",
|
|
24
|
+
"typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
|
|
25
25
|
"test": "echo no tests"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/prosopo/captcha#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@prosopo/common": "3.1.
|
|
39
|
-
"@prosopo/config": "3.1.
|
|
40
|
-
"@prosopo/types": "3.0.
|
|
41
|
-
"@prosopo/types-database": "3.0.
|
|
42
|
-
"@prosopo/user-access-policy": "3.3.
|
|
38
|
+
"@prosopo/common": "3.1.1",
|
|
39
|
+
"@prosopo/config": "3.1.2",
|
|
40
|
+
"@prosopo/types": "3.0.5",
|
|
41
|
+
"@prosopo/types-database": "3.0.12",
|
|
42
|
+
"@prosopo/user-access-policy": "3.3.2",
|
|
43
43
|
"@typegoose/auto-increment": "4.13.0",
|
|
44
44
|
"axios": "1.10.0",
|
|
45
45
|
"esbuild": "0.25.6",
|