@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.68 build:cjs
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
  dist/cjs/commands/siteKeyRegister.cjs 3.81 kB
81
81
  dist/cjs/prosopo.config.cjs 5.29 kB
82
82
  dist/cjs/RateLimiter.cjs 5.48 kB
83
- ✓ built in 224ms
83
+ ✓ built in 209ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.6.68 build:tsc
2
+ > @prosopo/cli@3.6.69 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 10:28:59 AM - Projects in this build:
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
- 10:28:59 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/vite/NodejsPolarsNativeFilePlugin.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/index.ts' is older than output '../api/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/index.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
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
- 10:28:59 AM - 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'
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
- 10:28:59 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
77
+ 8:52:57 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
78
78
 
79
- 10:28:59 AM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
79
+ 8:52:57 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
80
80
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.6.68 build
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.68 build:cross-env
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
  dist/commands/siteKeyRegister.js 3.67 kB
84
84
  dist/prosopo.config.js 4.91 kB
85
85
  dist/RateLimiter.js 5.25 kB
86
- ✓ built in 347ms
86
+ ✓ built in 351ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.6.69
4
+ ### Patch Changes
5
+
6
+ - @prosopo/env@3.6.16
7
+ - @prosopo/provider@4.15.9
8
+
3
9
  ## 3.6.68
4
10
  ### Patch Changes
5
11
 
@@ -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.68" : void 0, Lve = xMe || "dev", q6 = new Array(256), Bve = new Array(256 * 256);
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({ challenge: t }, [
94207
+ if ((await u.puzzlecaptcha.updateOne(
94208
+ { challenge: t },
94205
94209
  { $set: f }
94206
- ])).matchedCount === 0) {
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
- }, o = {};
94256
- if (r.serverChecked === !0 && (o.verifiedAtTimestamp = {
94257
- $ifNull: ["$verifiedAtTimestamp", i]
94258
- }), r.userSubmitted === !0 && (o.submittedAtTimestamp = {
94259
- $ifNull: ["$submittedAtTimestamp", i]
94260
- }), r.result?.status === ir.disapproved && (o.failedAtTimestamp = {
94261
- $ifNull: ["$failedAtTimestamp", i]
94262
- }), Object.keys(o).length === 0) {
94263
- await n.puzzlecaptcha.updateOne({ challenge: t }, { $set: s }), this.centralStreamer?.streamPuzzleUpdate(
94264
- () => this.getPuzzleCaptchaRecordByChallenge(t),
94265
- (a) => this.tables.puzzlecaptcha.updateOne(
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
- (a) => this.tables.puzzlecaptcha.updateOne(
94281
- { challenge: t, lastUpdatedTimestamp: { $lte: a } },
94271
+ (o) => this.tables.puzzlecaptcha.updateOne(
94272
+ { challenge: t, lastUpdatedTimestamp: { $lte: o } },
94282
94273
  {
94283
- $set: { storedAtTimestamp: a },
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.68",
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.15",
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.8",
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",