@prosopo/cli 3.6.68 → 3.6.69
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.69 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -80,4 +80,4 @@ rendering chunks...
|
|
|
80
80
|
[2mdist/cjs/[22m[36mcommands/siteKeyRegister.cjs [39m[1m[2m3.81 kB[22m[1m[22m
|
|
81
81
|
[2mdist/cjs/[22m[36mprosopo.config.cjs [39m[1m[2m5.29 kB[22m[1m[22m
|
|
82
82
|
[2mdist/cjs/[22m[36mRateLimiter.cjs [39m[1m[2m5.48 kB[22m[1m[22m
|
|
83
|
-
[32m✓ built in
|
|
83
|
+
[32m✓ built in 209ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.69 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
8:52:56 PM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -28,53 +28,53 @@
|
|
|
28
28
|
* ../../dev/workspace/tsconfig.json
|
|
29
29
|
* tsconfig.json
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
8:52:56 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/vite.threads.test.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
8:52:56 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
8:52:56 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
8:52:56 PM - 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'
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
8:52:56 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/keyring/keyring/types.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
8:52:56 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
8:52:56 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
8:52:56 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
8:52:56 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
8:52:56 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
8:52:56 PM - 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'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
8:52:56 PM - 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'
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
8:52:56 PM - 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'
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
8:52:56 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/index.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
8:52:56 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/unit/redisCacheEscalation.unit.test.ts' is older than output '../database/tsconfig.tsbuildinfo'
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
8:52:57 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
8:52:57 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
8:52:57 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/index.ts' is older than output '../env/tsconfig.tsbuildinfo'
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
8:52:57 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/middlewares/authMiddleware.unit.test.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
8:52:57 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/dataset.unit.test.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
8:52:57 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
8:52:57 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
8:52:57 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
8:52:57 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
8:52:57 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
|
|
80
80
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.69 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/cli@3.6.
|
|
6
|
+
> @prosopo/cli@3.6.69 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -83,4 +83,4 @@ rendering chunks...
|
|
|
83
83
|
[2mdist/[22m[36mcommands/siteKeyRegister.js [39m[1m[2m3.67 kB[22m[1m[22m
|
|
84
84
|
[2mdist/[22m[36mprosopo.config.js [39m[1m[2m4.91 kB[22m[1m[22m
|
|
85
85
|
[2mdist/[22m[36mRateLimiter.js [39m[1m[2m5.25 kB[22m[1m[22m
|
|
86
|
-
[32m✓ built in
|
|
86
|
+
[32m✓ built in 351ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1782,7 +1782,7 @@ function zr(e, t, r) {
|
|
|
1782
1782
|
throw new Error(`Index ${t} smaller than 0`);
|
|
1783
1783
|
return e[t];
|
|
1784
1784
|
}
|
|
1785
|
-
const xMe = typeof process < "u" ? "3.6.
|
|
1785
|
+
const xMe = typeof process < "u" ? "3.6.69" : void 0, Lve = xMe || "dev", q6 = new Array(256), Bve = new Array(256 * 256);
|
|
1786
1786
|
for (let e = 0; e < 256; e++)
|
|
1787
1787
|
q6[e] = e.toString(16).padStart(2, "0");
|
|
1788
1788
|
for (let e = 0; e < 256; e++) {
|
|
@@ -94136,6 +94136,12 @@ class L6 extends hq {
|
|
|
94136
94136
|
userAccount: 1,
|
|
94137
94137
|
dappAccount: 1,
|
|
94138
94138
|
requestedAtTimestamp: 1,
|
|
94139
|
+
// submittedAtTimestamp gates the submit → verify
|
|
94140
|
+
// recency check in serverVerifyPuzzleCaptchaSolution.
|
|
94141
|
+
// Missing it here silently trips the "too old" path
|
|
94142
|
+
// even on freshly-solved puzzles because the code
|
|
94143
|
+
// treats a missing field as Number.POSITIVE_INFINITY.
|
|
94144
|
+
submittedAtTimestamp: 1,
|
|
94139
94145
|
ipAddress: 1,
|
|
94140
94146
|
headers: 1,
|
|
94141
94147
|
ja4: 1,
|
|
@@ -94193,17 +94199,15 @@ class L6 extends hq {
|
|
|
94193
94199
|
userSignature: s,
|
|
94194
94200
|
lastUpdatedTimestamp: c,
|
|
94195
94201
|
pendingStage: !0,
|
|
94196
|
-
...o && { coords: o }
|
|
94202
|
+
...o && { coords: o },
|
|
94203
|
+
...i && { submittedAtTimestamp: c },
|
|
94204
|
+
...l && { failedAtTimestamp: c }
|
|
94197
94205
|
};
|
|
94198
|
-
i && (f.submittedAtTimestamp = {
|
|
94199
|
-
$ifNull: ["$submittedAtTimestamp", c]
|
|
94200
|
-
}), l && (f.failedAtTimestamp = {
|
|
94201
|
-
$ifNull: ["$failedAtTimestamp", c]
|
|
94202
|
-
});
|
|
94203
94206
|
try {
|
|
94204
|
-
if ((await u.puzzlecaptcha.updateOne(
|
|
94207
|
+
if ((await u.puzzlecaptcha.updateOne(
|
|
94208
|
+
{ challenge: t },
|
|
94205
94209
|
{ $set: f }
|
|
94206
|
-
|
|
94210
|
+
)).matchedCount === 0) {
|
|
94207
94211
|
const h = new yr("DATABASE.CAPTCHA_GET_FAILED", {
|
|
94208
94212
|
context: {
|
|
94209
94213
|
challenge: t,
|
|
@@ -94251,36 +94255,23 @@ class L6 extends hq {
|
|
|
94251
94255
|
async updatePuzzleCaptchaRecord(t, r) {
|
|
94252
94256
|
const n = this.getTables(), i = /* @__PURE__ */ new Date(), s = {
|
|
94253
94257
|
...r,
|
|
94254
|
-
pendingStage: !0
|
|
94255
|
-
|
|
94256
|
-
|
|
94257
|
-
|
|
94258
|
-
|
|
94259
|
-
|
|
94260
|
-
|
|
94261
|
-
|
|
94262
|
-
|
|
94263
|
-
|
|
94264
|
-
|
|
94265
|
-
|
|
94266
|
-
{ challenge: t, lastUpdatedTimestamp: { $lte: a } },
|
|
94267
|
-
{
|
|
94268
|
-
$set: { storedAtTimestamp: a },
|
|
94269
|
-
$unset: { pendingStage: 1 }
|
|
94270
|
-
}
|
|
94271
|
-
).then(() => {
|
|
94272
|
-
})
|
|
94273
|
-
);
|
|
94274
|
-
return;
|
|
94275
|
-
}
|
|
94276
|
-
await n.puzzlecaptcha.updateOne({ challenge: t }, [
|
|
94277
|
-
{ $set: { ...s, ...o } }
|
|
94278
|
-
]), this.centralStreamer?.streamPuzzleUpdate(
|
|
94258
|
+
pendingStage: !0,
|
|
94259
|
+
...r.serverChecked === !0 && {
|
|
94260
|
+
verifiedAtTimestamp: i
|
|
94261
|
+
},
|
|
94262
|
+
...r.userSubmitted === !0 && {
|
|
94263
|
+
submittedAtTimestamp: i
|
|
94264
|
+
},
|
|
94265
|
+
...r.result?.status === ir.disapproved && {
|
|
94266
|
+
failedAtTimestamp: i
|
|
94267
|
+
}
|
|
94268
|
+
};
|
|
94269
|
+
await n.puzzlecaptcha.updateOne({ challenge: t }, { $set: s }), this.centralStreamer?.streamPuzzleUpdate(
|
|
94279
94270
|
() => this.getPuzzleCaptchaRecordByChallenge(t),
|
|
94280
|
-
(
|
|
94281
|
-
{ challenge: t, lastUpdatedTimestamp: { $lte:
|
|
94271
|
+
(o) => this.tables.puzzlecaptcha.updateOne(
|
|
94272
|
+
{ challenge: t, lastUpdatedTimestamp: { $lte: o } },
|
|
94282
94273
|
{
|
|
94283
|
-
$set: { storedAtTimestamp:
|
|
94274
|
+
$set: { storedAtTimestamp: o },
|
|
94284
94275
|
$unset: { pendingStage: 1 }
|
|
94285
94276
|
}
|
|
94286
94277
|
).then(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.69",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@prosopo/common": "3.1.46",
|
|
37
37
|
"@prosopo/logger": "2.0.3",
|
|
38
38
|
"@prosopo/dotenv": "3.0.49",
|
|
39
|
-
"@prosopo/env": "3.6.
|
|
39
|
+
"@prosopo/env": "3.6.16",
|
|
40
40
|
"@prosopo/keyring": "2.9.58",
|
|
41
41
|
"@prosopo/locale": "3.2.7",
|
|
42
|
-
"@prosopo/provider": "4.15.
|
|
42
|
+
"@prosopo/provider": "4.15.9",
|
|
43
43
|
"@prosopo/types": "4.9.10",
|
|
44
44
|
"@prosopo/util": "3.3.4",
|
|
45
45
|
"@prosopo/workspace": "3.1.20",
|