@prosopo/cli 3.6.64 → 3.6.66
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 +2 -2
- package/.turbo/turbo-build$colon$tsc.log +27 -27
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +41 -0
- package/dist/bundle/provider.cli.bundle.js +8502 -8396
- package/dist/tests/RateLimiter.unit.test.d.ts +2 -0
- package/dist/tests/RateLimiter.unit.test.d.ts.map +1 -0
- package/dist/tests/RateLimiter.unit.test.js +161 -0
- package/dist/tests/RateLimiter.unit.test.js.map +1 -0
- package/dist/tests/commands/validators.unit.test.d.ts +2 -0
- package/dist/tests/commands/validators.unit.test.d.ts.map +1 -0
- package/dist/tests/commands/validators.unit.test.js +84 -0
- package/dist/tests/commands/validators.unit.test.js.map +1 -0
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.66 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 258ms[39m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/cli@3.6.
|
|
2
|
+
> @prosopo/cli@3.6.66 build:tsc
|
|
3
3
|
> tsc --build --verbose
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
4:36:14 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
|
+
4:36:14 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/index.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/rule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
4:36:14 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
|
+
4:36:14 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 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
|
+
4:36:14 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/middlewares/requestLoggerMiddleware.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
4:36:14 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/mocks/data/captchas.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
4:36:14 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
|
+
4:36:14 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/dns.ts' is older than output '../provider/tsconfig.tsbuildinfo'
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
4:36:14 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
|
+
4:36:14 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
4:36:14 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.66 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.66 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 189ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @prosopo/cli
|
|
2
2
|
|
|
3
|
+
## 3.6.66
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [b500d56]
|
|
7
|
+
- @prosopo/locale@3.2.7
|
|
8
|
+
- @prosopo/env@3.6.13
|
|
9
|
+
- @prosopo/provider@4.15.6
|
|
10
|
+
- @prosopo/common@3.1.46
|
|
11
|
+
- @prosopo/types@4.9.9
|
|
12
|
+
- @prosopo/keyring@2.9.57
|
|
13
|
+
- @prosopo/api@3.5.16
|
|
14
|
+
|
|
15
|
+
## 3.6.65
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 6855422: test(cli): unit-test coverage for `RateLimiter.getRateLimitConfig` and `commands/validators`
|
|
19
|
+
|
|
20
|
+
Adds two new vitest files under `@prosopo/cli/src/tests/`:
|
|
21
|
+
|
|
22
|
+
- `RateLimiter.unit.test.ts` — 7 tests covering `getRateLimitConfig`:
|
|
23
|
+
every ClientApiPaths / AdminApiPaths / PublicApiPaths route referenced in
|
|
24
|
+
the source has a mapped entry (regression guard against silently dropping
|
|
25
|
+
routes on refactor); env vars are propagated verbatim to `windowMs` /
|
|
26
|
+
`limit`; no WINDOW/LIMIT crossover; and the config is re-read on every
|
|
27
|
+
invocation rather than cached at module load (so ops can hot-toggle a
|
|
28
|
+
rate window without restarting the provider). Snapshots and restores
|
|
29
|
+
every `PROSOPO_*` env var it touches so the suite doesn't leak state.
|
|
30
|
+
|
|
31
|
+
- `commands/validators.unit.test.ts` — 14 tests covering the four
|
|
32
|
+
argv validators: `validateAddress`, `validateSiteKey`, `validateValue`,
|
|
33
|
+
`validateScheduleExpression`. Verifies SS58 ↔ hex address round-tripping
|
|
34
|
+
through `encodeStringAddress`; `ProsopoContractError` with
|
|
35
|
+
`CONTRACT.INVALID_ADDRESS` on garbage address input;
|
|
36
|
+
`ProsopoEnvError` with `CLI.PARAMETER_ERROR` for non-numeric values
|
|
37
|
+
(string, boolean, object, null, undefined); and cron parsing across a
|
|
38
|
+
spread of standard schedule expressions.
|
|
39
|
+
|
|
40
|
+
No behaviour change — pure test additions. Fills a coverage gap in a
|
|
41
|
+
package that previously had a single integration-style bundle test and
|
|
42
|
+
no unit tests for these pure helpers.
|
|
43
|
+
|
|
3
44
|
## 3.6.64
|
|
4
45
|
### Patch Changes
|
|
5
46
|
|