@prosopo/cli 3.6.56 → 3.6.57
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.57 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 198ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.57 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
12:39:20 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
|
+
12:39:20 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'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 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'
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/bannedDomain.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 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
|
+
12:39:20 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
12:39:20 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/apiExpressRouterFactory.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
12:39:20 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
12:39:20 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
|
+
12:39:21 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
|
+
12:39:21 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
|
+
12:39:21 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
12:39:21 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.57 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.57 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 342ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @prosopo/cli
|
|
2
2
|
|
|
3
|
+
## 3.6.57
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [6cb3218]
|
|
7
|
+
- @prosopo/types@4.9.5
|
|
8
|
+
- @prosopo/provider@4.14.4
|
|
9
|
+
- @prosopo/api@3.5.12
|
|
10
|
+
- @prosopo/env@3.6.8
|
|
11
|
+
- @prosopo/keyring@2.9.52
|
|
12
|
+
|
|
3
13
|
## 3.6.56
|
|
4
14
|
### Patch Changes
|
|
5
15
|
|
|
@@ -1769,7 +1769,7 @@ function zr(e, t, r) {
|
|
|
1769
1769
|
throw new Error(`Index ${t} smaller than 0`);
|
|
1770
1770
|
return e[t];
|
|
1771
1771
|
}
|
|
1772
|
-
const bMe = typeof process < "u" ? "3.6.
|
|
1772
|
+
const bMe = typeof process < "u" ? "3.6.57" : void 0, Tve = bMe || "dev", k6 = new Array(256), wve = new Array(256 * 256);
|
|
1773
1773
|
for (let e = 0; e < 256; e++)
|
|
1774
1774
|
k6[e] = e.toString(16).padStart(2, "0");
|
|
1775
1775
|
for (let e = 0; e < 256; e++) {
|
|
@@ -11599,24 +11599,30 @@ ut({
|
|
|
11599
11599
|
});
|
|
11600
11600
|
var Rr = /* @__PURE__ */ ((e) => (e.SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register", e.SiteKeysRegister = "/v1/prosopo/provider/admin/sitekeys/register", e.UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update", e.RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove", e.ToggleMaintenanceMode = "/v1/prosopo/provider/admin/maintenance/toggle", e.UpdateDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/update", e.GetAllDecisionMachines = "/v1/prosopo/provider/admin/decision-machine/get-all", e.GetDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/get", e.RemoveDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/remove", e.RemoveAllDecisionMachines = "/v1/prosopo/provider/admin/decision-machine/remove-all", e.ClearAllCounters = "/v1/prosopo/provider/admin/counters/clear-all", e.SiteKeyRemove = "/v1/prosopo/provider/admin/sitekey/remove", e.SiteKeysRemove = "/v1/prosopo/provider/admin/sitekeys/remove", e.DnsEvent = "/v1/prosopo/provider/admin/dns/event", e))(Rr || {});
|
|
11601
11601
|
const Lbe = {
|
|
11602
|
-
"/v1/prosopo/provider/client/captcha/image": { windowMs: 6e4, limit:
|
|
11603
|
-
"/v1/prosopo/provider/client/captcha/pow": { windowMs: 6e4, limit:
|
|
11604
|
-
"/v1/prosopo/provider/client/solution": {
|
|
11602
|
+
"/v1/prosopo/provider/client/captcha/image": { windowMs: 6e4, limit: 150 },
|
|
11603
|
+
"/v1/prosopo/provider/client/captcha/pow": { windowMs: 6e4, limit: 300 },
|
|
11604
|
+
"/v1/prosopo/provider/client/solution": {
|
|
11605
|
+
windowMs: 6e4,
|
|
11606
|
+
limit: 300
|
|
11607
|
+
},
|
|
11605
11608
|
"/v1/prosopo/provider/client/captcha/frictionless": {
|
|
11606
11609
|
windowMs: 6e4,
|
|
11607
|
-
limit:
|
|
11610
|
+
limit: 300
|
|
11611
|
+
},
|
|
11612
|
+
"/v1/prosopo/provider/client/pow/solution": { windowMs: 6e4, limit: 300 },
|
|
11613
|
+
"/v1/prosopo/provider/client/pow/verify": { windowMs: 6e4, limit: 15e3 },
|
|
11614
|
+
"/v1/prosopo/provider/client/captcha/puzzle": { windowMs: 6e4, limit: 300 },
|
|
11615
|
+
"/v1/prosopo/provider/client/puzzle/solution": {
|
|
11616
|
+
windowMs: 6e4,
|
|
11617
|
+
limit: 300
|
|
11608
11618
|
},
|
|
11609
|
-
"/v1/prosopo/provider/client/pow/solution": { windowMs: 6e4, limit: 60 },
|
|
11610
|
-
"/v1/prosopo/provider/client/pow/verify": { windowMs: 6e4, limit: 3e3 },
|
|
11611
|
-
"/v1/prosopo/provider/client/captcha/puzzle": { windowMs: 6e4, limit: 60 },
|
|
11612
|
-
"/v1/prosopo/provider/client/puzzle/solution": { windowMs: 6e4, limit: 60 },
|
|
11613
11619
|
"/v1/prosopo/provider/client/puzzle/verify": {
|
|
11614
11620
|
windowMs: 6e4,
|
|
11615
|
-
limit:
|
|
11621
|
+
limit: 15e3
|
|
11616
11622
|
},
|
|
11617
11623
|
"/v1/prosopo/provider/client/image/dapp/verify": {
|
|
11618
11624
|
windowMs: 6e4,
|
|
11619
|
-
limit:
|
|
11625
|
+
limit: 15e3
|
|
11620
11626
|
},
|
|
11621
11627
|
"/v1/prosopo/provider/client/status": { windowMs: 6e4, limit: 60 },
|
|
11622
11628
|
"/v1/prosopo/provider/client/spam/email": { windowMs: 6e4, limit: 60 },
|
|
@@ -123949,22 +123955,36 @@ async function jut(e, t = !1, r) {
|
|
|
123949
123955
|
const h = {
|
|
123950
123956
|
...e.config.rateLimits,
|
|
123951
123957
|
...Qat()
|
|
123952
|
-
}, p = Object.values(Rr)
|
|
123953
|
-
|
|
123954
|
-
|
|
123955
|
-
|
|
123956
|
-
|
|
123958
|
+
}, p = Object.values(Rr), g = (m) => (y, E, _, S) => {
|
|
123959
|
+
e.logger.warn(() => ({
|
|
123960
|
+
msg: "Rate limit exceeded",
|
|
123961
|
+
data: {
|
|
123962
|
+
path: m,
|
|
123963
|
+
ip: y.ip,
|
|
123964
|
+
siteKey: y.headers["prosopo-site-key"]
|
|
123965
|
+
}
|
|
123966
|
+
})), E.status(S.statusCode).send(S.message);
|
|
123967
|
+
};
|
|
123968
|
+
for (const [m, y] of Object.entries(h)) {
|
|
123969
|
+
const E = m;
|
|
123970
|
+
p.includes(E) ? n.use(
|
|
123971
|
+
E,
|
|
123957
123972
|
Sk({
|
|
123958
|
-
...
|
|
123959
|
-
|
|
123973
|
+
...y,
|
|
123974
|
+
handler: g(E),
|
|
123975
|
+
keyGenerator: (_) => Uut(_) || _.ip || "unknown"
|
|
123960
123976
|
})
|
|
123961
|
-
) :
|
|
123962
|
-
|
|
123977
|
+
) : m === Ar.VerifyImageCaptchaSolutionDapp || m === Ar.VerifyPowCaptchaSolution ? n.use(
|
|
123978
|
+
E,
|
|
123963
123979
|
Sk({
|
|
123964
|
-
...
|
|
123965
|
-
|
|
123980
|
+
...y,
|
|
123981
|
+
handler: g(E),
|
|
123982
|
+
keyGenerator: (_) => _.headers["prosopo-site-key"] || _.ip || "unknown"
|
|
123966
123983
|
})
|
|
123967
|
-
) : n.use(
|
|
123984
|
+
) : n.use(
|
|
123985
|
+
E,
|
|
123986
|
+
Sk({ ...y, handler: g(E) })
|
|
123987
|
+
);
|
|
123968
123988
|
}
|
|
123969
123989
|
}
|
|
123970
123990
|
const l = await Txe({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.57",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@polkadot/types-codec": "16.4.9",
|
|
35
|
-
"@prosopo/api": "3.5.
|
|
35
|
+
"@prosopo/api": "3.5.12",
|
|
36
36
|
"@prosopo/common": "3.1.43",
|
|
37
37
|
"@prosopo/logger": "2.0.1",
|
|
38
38
|
"@prosopo/dotenv": "3.0.47",
|
|
39
|
-
"@prosopo/env": "3.6.
|
|
40
|
-
"@prosopo/keyring": "2.9.
|
|
39
|
+
"@prosopo/env": "3.6.8",
|
|
40
|
+
"@prosopo/keyring": "2.9.52",
|
|
41
41
|
"@prosopo/locale": "3.2.6",
|
|
42
|
-
"@prosopo/provider": "4.14.
|
|
43
|
-
"@prosopo/types": "4.9.
|
|
42
|
+
"@prosopo/provider": "4.14.4",
|
|
43
|
+
"@prosopo/types": "4.9.5",
|
|
44
44
|
"@prosopo/util": "3.3.3",
|
|
45
45
|
"@prosopo/workspace": "3.1.20",
|
|
46
46
|
"cron-parser": "4.9.0",
|