@prosopo/cli 3.7.24 → 3.7.25
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 +28 -28
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +10 -0
- package/dist/bundle/prosopo-native-ja4.node +0 -0
- package/dist/bundle/prosopo-native-merkle.node +0 -0
- package/dist/bundle/provider.cli.bundle.js +29 -21
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.25 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -70,7 +70,9 @@ dist/cjs/commands/storeCaptchasExternally.cjs 0.93 kB │ gzip: 0.45 kB
|
|
|
70
70
|
dist/cjs/commands/validators.cjs 0.93 kB │ gzip: 0.44 kB
|
|
71
71
|
dist/cjs/_virtual/_rolldown/runtime.cjs 1.00 kB │ gzip: 0.50 kB
|
|
72
72
|
dist/cjs/commands/ensureExternalIndexes.cjs 1.07 kB │ gzip: 0.50 kB
|
|
73
|
+
[33m[33m[EMPTY_IMPORT_META] [0m`import.meta` may not be a valid syntax with the `cjs` output format.
|
|
73
74
|
dist/cjs/files.cjs 1.21 kB │ gzip: 0.56 kB
|
|
75
|
+
[38;5;246m╭[0m[38;5;246m─[0m[38;5;246m[[0m src/prosopo.config.ts:56:21 [38;5;246m][0m
|
|
74
76
|
dist/cjs/commands/index.cjs 1.30 kB │ gzip: 0.29 kB
|
|
75
77
|
dist/cjs/commands/providerSetDataset.cjs 1.49 kB │ gzip: 0.65 kB
|
|
76
78
|
dist/cjs/commands/updateSpamEmailDomains.cjs 1.58 kB │ gzip: 0.65 kB
|
|
@@ -83,13 +85,11 @@ dist/cjs/commands/siteKeyRegisterApi.cjs 3.08 kB │ gzip: 1.08 kB
|
|
|
83
85
|
dist/cjs/commands/siteKeyRegister.cjs 3.48 kB │ gzip: 1.15 kB
|
|
84
86
|
dist/cjs/prosopo.config.cjs 4.58 kB │ gzip: 1.46 kB
|
|
85
87
|
dist/cjs/RateLimiter.cjs 5.58 kB │ gzip: 0.89 kB
|
|
86
|
-
|
|
87
|
-
[33m[33m[EMPTY_IMPORT_META] [0m`import.meta` may not be a valid syntax with the `cjs` output format.
|
|
88
|
-
[38;5;246m╭[0m[38;5;246m─[0m[38;5;246m[[0m src/prosopo.config.ts:56:21 [38;5;246m][0m
|
|
89
88
|
[38;5;246m│[0m
|
|
89
|
+
|
|
90
90
|
[38;5;246m56 │[0m [38;5;249m [0m[38;5;249m [0m[38;5;249m [0m[38;5;249m [0m[38;5;249mc[0m[38;5;249mo[0m[38;5;249mn[0m[38;5;249ms[0m[38;5;249mt[0m[38;5;249m [0m[38;5;249mi[0m[38;5;249mm[0m[38;5;249mp[0m[38;5;249mo[0m[38;5;249mr[0m[38;5;249mt[0m[38;5;249mM[0m[38;5;249me[0m[38;5;249mt[0m[38;5;249ma[0m[38;5;249m [0m[38;5;249m=[0m[38;5;249m [0mimport.meta[38;5;249m;[0m
|
|
91
91
|
[38;5;240m │[0m ─────┬─────
|
|
92
92
|
[38;5;240m │[0m ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
|
|
93
|
+
[32m✓ built in 56ms[39m
|
|
93
94
|
[38;5;246m────╯[0m
|
|
94
95
|
[39m
|
|
95
|
-
[32m✓ built in 56ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.25 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
12:33:11 PM - Projects in this build:
|
|
6
6
|
* ../../dev/config/tsconfig.json
|
|
7
7
|
* ../locale/tsconfig.json
|
|
8
8
|
* ../util/tsconfig.json
|
|
@@ -29,55 +29,55 @@
|
|
|
29
29
|
* ../../dev/workspace/tsconfig.json
|
|
30
30
|
* tsconfig.json
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
12:33:11 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
12:33:11 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
12:33:11 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
12:33:11 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'
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
12:33:11 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
12:33:11 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
12:33:11 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/tests/loggerBrowser.unit.test.ts' is older than output '../logger/tsconfig.tsbuildinfo'
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
12:33:11 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/objectUtils.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
12:33:11 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
12:33:11 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/types.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
12:33:11 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/apiRoutes.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
12:33:11 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/tests/testRedisConnection.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
12:33:11 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'
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
12:33:11 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'
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
12:33:11 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
12:33:11 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
12:33:11 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/tests/typesEnv.test-d.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
12:33:11 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
12:33:11 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/testDoubles.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
12:33:11 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'
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
12:33:11 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/providers.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
12:33:11 PM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/browser.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
12:33:11 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/dns.ts' is older than output '../provider/tsconfig.tsbuildinfo'
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
12:33:11 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'
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
12:33:11 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
12:33:11 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
|
|
83
83
|
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.7.
|
|
2
|
+
> @prosopo/cli@3.7.25 build
|
|
3
3
|
> npm run build:cross-env -- --mode ${NODE_ENV:-development}
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @prosopo/cli@3.7.
|
|
6
|
+
> @prosopo/cli@3.7.25 build:cross-env
|
|
7
7
|
> vite build --config vite.esm.config.ts --mode production
|
|
8
8
|
|
|
9
9
|
ViteEsmConfig: .
|
|
@@ -34,7 +34,6 @@ ViteEsmConfig: .
|
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
{
|
|
37
|
-
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
38
37
|
externals: [
|
|
39
38
|
'@prosopo/api',
|
|
40
39
|
'@prosopo/types',
|
|
@@ -60,6 +59,7 @@ ViteEsmConfig: .
|
|
|
60
59
|
'@prosopo/puzzle-assets'
|
|
61
60
|
]
|
|
62
61
|
}
|
|
62
|
+
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
|
63
63
|
[36mvite v8.1.5 [32mbuilding ssr environment for production...[36m[39m
|
|
64
64
|
Bundle build started
|
|
65
65
|
[2K
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @prosopo/cli
|
|
2
2
|
|
|
3
|
+
## 3.7.25
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [b30ad41]
|
|
7
|
+
- @prosopo/types@5.3.0
|
|
8
|
+
- @prosopo/provider@5.4.0
|
|
9
|
+
- @prosopo/api@4.0.15
|
|
10
|
+
- @prosopo/env@3.6.42
|
|
11
|
+
- @prosopo/keyring@2.9.78
|
|
12
|
+
|
|
3
13
|
## 3.7.24
|
|
4
14
|
### Patch Changes
|
|
5
15
|
|
|
Binary file
|
|
Binary file
|
|
@@ -1392,7 +1392,7 @@ function sn(e, t, n) {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
//#endregion
|
|
1394
1394
|
//#region ../util/dist/version.js
|
|
1395
|
-
var cn = (typeof process < "u" ? "3.7.
|
|
1395
|
+
var cn = (typeof process < "u" ? "3.7.25" : void 0) || "dev", ln = Array(256), un = Array(256 * 256);
|
|
1396
1396
|
for (let e = 0; e < 256; e++) ln[e] = e.toString(16).padStart(2, "0");
|
|
1397
1397
|
for (let e = 0; e < 256; e++) {
|
|
1398
1398
|
let t = e << 8;
|
|
@@ -71379,12 +71379,13 @@ var ZQ = (e) => e.find((e) => e.deferToVerify === !0 || e.type === SG.Block && !
|
|
|
71379
71379
|
type: t
|
|
71380
71380
|
});
|
|
71381
71381
|
}
|
|
71382
|
-
getVerificationResponse(t, n, r, i, a) {
|
|
71382
|
+
getVerificationResponse(t, n, r, i, a, o) {
|
|
71383
71383
|
return {
|
|
71384
71384
|
status: r(t ? "API.USER_VERIFIED" : "API.USER_NOT_VERIFIED"),
|
|
71385
71385
|
[Y.verified]: t,
|
|
71386
71386
|
...e.canClientSeeScore(n.tier, i) && { [Y.score]: i },
|
|
71387
|
-
...!t && n.tier !== Dp.Free && a && { [Y.reason]: a }
|
|
71387
|
+
...!t && n.tier !== Dp.Free && a && { [Y.reason]: a },
|
|
71388
|
+
...o && { [Y.sessionId]: o }
|
|
71388
71389
|
};
|
|
71389
71390
|
}
|
|
71390
71391
|
async getPrioritisedAccessPolicies(e, t, n, r) {
|
|
@@ -75028,17 +75029,20 @@ var B2 = async (e, t, n) => {
|
|
|
75028
75029
|
};
|
|
75029
75030
|
if (h.serverChecked) return {
|
|
75030
75031
|
status: "API.USER_ALREADY_VERIFIED",
|
|
75031
|
-
verified: !1
|
|
75032
|
+
verified: !1,
|
|
75033
|
+
...h.sessionId && { sessionId: h.sessionId }
|
|
75032
75034
|
};
|
|
75033
75035
|
if (await this.db.markDappUserCommitmentsChecked([h.id]), h.result.status === qm.disapproved) return {
|
|
75034
75036
|
status: h.result.reason || "API.USER_NOT_VERIFIED",
|
|
75035
|
-
verified: !1
|
|
75037
|
+
verified: !1,
|
|
75038
|
+
...h.sessionId && { sessionId: h.sessionId }
|
|
75036
75039
|
};
|
|
75037
75040
|
i ||= 60 * 1e3;
|
|
75038
75041
|
let g = Date.now(), _ = h.submittedAtTimestamp;
|
|
75039
75042
|
if ((_ instanceof Date ? g - _.getTime() : Infinity) > i) return m.debug(() => ({ msg: "Not verified - timed out" })), {
|
|
75040
75043
|
status: "API.USER_NOT_VERIFIED_TIME_EXPIRED",
|
|
75041
|
-
verified: !1
|
|
75044
|
+
verified: !1,
|
|
75045
|
+
...h.sessionId && { sessionId: h.sessionId }
|
|
75042
75046
|
};
|
|
75043
75047
|
let v = {}, y, b;
|
|
75044
75048
|
if (c) try {
|
|
@@ -75231,15 +75235,16 @@ var B2 = async (e, t, n) => {
|
|
|
75231
75235
|
status: T ? vg.USER_VERIFIED : E,
|
|
75232
75236
|
verified: T,
|
|
75233
75237
|
commitmentId: h.id.toString(),
|
|
75234
|
-
...D && { score: D }
|
|
75238
|
+
...D && { score: D },
|
|
75239
|
+
...h.sessionId && { sessionId: h.sessionId }
|
|
75235
75240
|
};
|
|
75236
75241
|
}
|
|
75237
75242
|
checkLangRules(e) {
|
|
75238
75243
|
return _Q(this.config, e);
|
|
75239
75244
|
}
|
|
75240
|
-
getVerificationResponse(e, t, n, r, i, a) {
|
|
75245
|
+
getVerificationResponse(e, t, n, r, i, a, o) {
|
|
75241
75246
|
return {
|
|
75242
|
-
...super.getVerificationResponse(e, t, n, r, a),
|
|
75247
|
+
...super.getVerificationResponse(e, t, n, r, a, o),
|
|
75243
75248
|
...i && { [Y.commitmentId]: i }
|
|
75244
75249
|
};
|
|
75245
75250
|
}
|
|
@@ -75417,9 +75422,10 @@ var B2 = async (e, t, n) => {
|
|
|
75417
75422
|
return m0(this.decisionMachineRunner, this.usageCounters, u, l, this.logger, "postPow");
|
|
75418
75423
|
}
|
|
75419
75424
|
async serverVerifyPowCaptchaSolution(e, t, n, r, i, a, o, s = !1, c, l, u = !1) {
|
|
75420
|
-
let d = (e) => ({
|
|
75425
|
+
let d = (e, t) => ({
|
|
75421
75426
|
verified: !1,
|
|
75422
|
-
reason: e
|
|
75427
|
+
reason: e,
|
|
75428
|
+
...t && { sessionId: t }
|
|
75423
75429
|
}), f = this.logger.with({
|
|
75424
75430
|
challenge: t,
|
|
75425
75431
|
dappAccount: e
|
|
@@ -75430,7 +75436,7 @@ var B2 = async (e, t, n) => {
|
|
|
75430
75436
|
failedFuncName: this.serverVerifyPowCaptchaSolution.name,
|
|
75431
75437
|
challenge: t
|
|
75432
75438
|
} });
|
|
75433
|
-
if (p.serverChecked) return d("API.USER_ALREADY_VERIFIED");
|
|
75439
|
+
if (p.serverChecked) return d("API.USER_ALREADY_VERIFIED", p.sessionId);
|
|
75434
75440
|
let m = p.dappAccount;
|
|
75435
75441
|
if (e !== m) throw new up("CAPTCHA.DAPP_USER_SOLUTION_NOT_FOUND", { context: {
|
|
75436
75442
|
failedFuncName: this.serverVerifyPowCaptchaSolution.name,
|
|
@@ -75629,9 +75635,10 @@ var B2 = async (e, t, n) => {
|
|
|
75629
75635
|
result: T,
|
|
75630
75636
|
...yg(X.pow, T) && { blocked: !0 },
|
|
75631
75637
|
...v && { matchedRule: v }
|
|
75632
|
-
}, !0)), E.length > 0 && await Promise.all(E), _ ? d(_) : {
|
|
75638
|
+
}, !0)), E.length > 0 && await Promise.all(E), _ ? d(_, p.sessionId) : {
|
|
75633
75639
|
verified: !0,
|
|
75634
|
-
...w ? { score: w } : {}
|
|
75640
|
+
...w ? { score: w } : {},
|
|
75641
|
+
...p.sessionId && { sessionId: p.sessionId }
|
|
75635
75642
|
};
|
|
75636
75643
|
}
|
|
75637
75644
|
}, u4 = (e, t, n, r, i) => Math.sqrt((e - n) ** 2 + (t - r) ** 2) <= i, d4 = class extends QQ {
|
|
@@ -75752,7 +75759,7 @@ var B2 = async (e, t, n) => {
|
|
|
75752
75759
|
dappAccount: e
|
|
75753
75760
|
}), p = await this.db.getPuzzleCaptchaRecordByChallenge(t);
|
|
75754
75761
|
if (!p) return f.debug(() => ({ msg: `No record of this challenge: ${t}` })), d;
|
|
75755
|
-
if (p.result.status !== qm.approved) throw new hp("CAPTCHA.INVALID_SOLUTION", { context: {
|
|
75762
|
+
if (d.sessionId = p.sessionId, p.result.status !== qm.approved) throw new hp("CAPTCHA.INVALID_SOLUTION", { context: {
|
|
75756
75763
|
code: 400,
|
|
75757
75764
|
failedFuncName: this.serverVerifyPuzzleCaptchaSolution.name,
|
|
75758
75765
|
challenge: t
|
|
@@ -76012,7 +76019,8 @@ var B2 = async (e, t, n) => {
|
|
|
76012
76019
|
result: { status: qm.approved }
|
|
76013
76020
|
}), {
|
|
76014
76021
|
verified: !0,
|
|
76015
|
-
...b ? { score: b } : {}
|
|
76022
|
+
...b ? { score: b } : {},
|
|
76023
|
+
...p.sessionId && { sessionId: p.sessionId }
|
|
76016
76024
|
};
|
|
76017
76025
|
}
|
|
76018
76026
|
}, f4 = null, p4 = !1, m4 = class e {
|
|
@@ -99316,7 +99324,7 @@ function lne(e) {
|
|
|
99316
99324
|
h5(o, p.toString(), b);
|
|
99317
99325
|
let x = await v.imgCaptchaManager.verifyImageCaptchaSolution(d, f, m, e, l, c, y.settings.disallowWebView, y.settings.contextAware?.enabled, n, u, y.settings.spamEmailDomainCheckEnabled, y.settings.spamFilter, y.settings.trafficFilter, y.settings.storeMetadata);
|
|
99318
99326
|
t.logger.debug(() => ({ data: { response: x } }));
|
|
99319
|
-
let S = v.imgCaptchaManager.getVerificationResponse(x[Y.verified], y, t.i18n.t, x[Y.score], x[Y.commitmentId], x[Y.status]);
|
|
99327
|
+
let S = v.imgCaptchaManager.getVerificationResponse(x[Y.verified], y, t.i18n.t, x[Y.score], x[Y.commitmentId], x[Y.status], x[Y.sessionId]);
|
|
99320
99328
|
r.json(S);
|
|
99321
99329
|
} catch (e) {
|
|
99322
99330
|
return t.logger.error(() => ({
|
|
@@ -99393,8 +99401,8 @@ function lne(e) {
|
|
|
99393
99401
|
}
|
|
99394
99402
|
let y = e.keyring.addFromAddress(u);
|
|
99395
99403
|
h5(s, f.toString(), y);
|
|
99396
|
-
let { verified: b, score: x, reason: S } = await _.powCaptchaManager.serverVerifyPowCaptchaSolution(u, p, v.settings.verifiedTimeout, e, c, n, l, v.settings.spamEmailDomainCheckEnabled, v.settings.spamFilter, v.settings.trafficFilter, v.settings.storeMetadata),
|
|
99397
|
-
return r.json(
|
|
99404
|
+
let { verified: b, score: x, reason: S, sessionId: C } = await _.powCaptchaManager.serverVerifyPowCaptchaSolution(u, p, v.settings.verifiedTimeout, e, c, n, l, v.settings.spamEmailDomainCheckEnabled, v.settings.spamFilter, v.settings.trafficFilter, v.settings.storeMetadata), w = _.powCaptchaManager.getVerificationResponse(b, v, t.i18n.t, x, S, C);
|
|
99405
|
+
return r.json(w);
|
|
99398
99406
|
} catch (e) {
|
|
99399
99407
|
return t.logger.error(() => ({
|
|
99400
99408
|
msg: "Error in verifyPowCaptchaSolution",
|
|
@@ -99469,8 +99477,8 @@ function lne(e) {
|
|
|
99469
99477
|
}
|
|
99470
99478
|
let y = e.keyring.addFromAddress(u);
|
|
99471
99479
|
h5(s, f.toString(), y);
|
|
99472
|
-
let { verified: b, score: x } = await _.puzzleCaptchaManager.serverVerifyPuzzleCaptchaSolution(u, p, v.settings.verifiedTimeout, e, c, n, l, v.settings.spamEmailDomainCheckEnabled, v.settings.spamFilter, v.settings.trafficFilter, v.settings.storeMetadata),
|
|
99473
|
-
return r.json(
|
|
99480
|
+
let { verified: b, score: x, sessionId: S } = await _.puzzleCaptchaManager.serverVerifyPuzzleCaptchaSolution(u, p, v.settings.verifiedTimeout, e, c, n, l, v.settings.spamEmailDomainCheckEnabled, v.settings.spamFilter, v.settings.trafficFilter, v.settings.storeMetadata), C = _.puzzleCaptchaManager.getVerificationResponse(b, v, t.i18n.t, x, void 0, S);
|
|
99481
|
+
return r.json(C);
|
|
99474
99482
|
} catch (e) {
|
|
99475
99483
|
return t.logger.error(() => ({
|
|
99476
99484
|
msg: "Error in verifyPuzzleCaptchaSolution",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.25",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@polkadot/types-codec": "16.5.6",
|
|
38
|
-
"@prosopo/api": "4.0.
|
|
38
|
+
"@prosopo/api": "4.0.15",
|
|
39
39
|
"@prosopo/common": "3.1.51",
|
|
40
40
|
"@prosopo/logger": "2.0.7",
|
|
41
41
|
"@prosopo/dotenv": "3.0.53",
|
|
42
|
-
"@prosopo/env": "3.6.
|
|
43
|
-
"@prosopo/keyring": "2.9.
|
|
42
|
+
"@prosopo/env": "3.6.42",
|
|
43
|
+
"@prosopo/keyring": "2.9.78",
|
|
44
44
|
"@prosopo/locale": "3.3.1",
|
|
45
|
-
"@prosopo/provider": "5.
|
|
46
|
-
"@prosopo/types": "5.
|
|
45
|
+
"@prosopo/provider": "5.4.0",
|
|
46
|
+
"@prosopo/types": "5.3.0",
|
|
47
47
|
"@prosopo/util": "3.3.7",
|
|
48
48
|
"@prosopo/workspace": "3.2.0",
|
|
49
49
|
"cron-parser": "4.9.0",
|