@prosopo/procaptcha-frictionless 2.24.3 → 2.25.1

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.
@@ -54,17 +54,18 @@ ViteCommonJSConfig: .
54
54
  vite v8.1.6 building ssr environment for production...
55
55
  Bundle build started
56
56
  
57
- ✓ 10 modules transformed.
57
+ ✓ 11 modules transformed.
58
58
  rendering chunks...
59
59
  computing gzip size...
60
60
  dist/cjs/index.cjs 0.55 kB │ gzip: 0.21 kB
61
61
  dist/cjs/widgetSlot.cjs 0.74 kB │ gzip: 0.33 kB
62
+ dist/cjs/bypassKeyCookie.cjs 0.78 kB │ gzip: 0.39 kB
62
63
  dist/cjs/detectorLoader.cjs 1.65 kB │ gzip: 0.90 kB
63
64
  dist/cjs/sessionInvalidatedRecovery.cjs 2.50 kB │ gzip: 1.14 kB
64
65
  dist/cjs/frictionlessResultGuard.cjs 2.78 kB │ gzip: 1.42 kB
65
66
  dist/cjs/detectorPrefetch.cjs 3.59 kB │ gzip: 1.57 kB
66
67
  dist/cjs/authenticatedBadge.cjs 3.81 kB │ gzip: 1.45 kB
67
- dist/cjs/customDetectBot.cjs 7.71 kB │ gzip: 2.26 kB
68
+ dist/cjs/customDetectBot.cjs 7.87 kB │ gzip: 2.30 kB
68
69
  dist/cjs/procaptchaFrictionless.cjs 15.00 kB │ gzip: 4.05 kB
69
70
 
70
- ✓ built in 39ms
71
+ ✓ built in 32ms
@@ -54,18 +54,19 @@ ViteEsmConfig: .
54
54
  vite v8.1.6 building ssr environment for production...
55
55
  Bundle build started
56
56
  
57
- ✓ 10 modules transformed.
57
+ ✓ 11 modules transformed.
58
58
  rendering chunks...
59
59
  computing gzip size...
60
60
  dist/esm/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
61
61
  dist/esm/index.js 0.33 kB │ gzip: 0.15 kB
62
62
  dist/esm/widgetSlot.js 0.66 kB │ gzip: 0.32 kB
63
+ dist/esm/bypassKeyCookie.js 0.73 kB │ gzip: 0.38 kB
63
64
  dist/esm/detectorLoader.js 1.63 kB │ gzip: 0.90 kB
64
65
  dist/esm/sessionInvalidatedRecovery.js 2.41 kB │ gzip: 1.13 kB
65
66
  dist/esm/frictionlessResultGuard.js 2.71 kB │ gzip: 1.41 kB
66
67
  dist/esm/authenticatedBadge.js 3.30 kB │ gzip: 1.42 kB
67
68
  dist/esm/detectorPrefetch.js 3.46 kB │ gzip: 1.54 kB
68
- dist/esm/customDetectBot.js 7.34 kB │ gzip: 2.24 kB
69
+ dist/esm/customDetectBot.js 7.44 kB │ gzip: 2.27 kB
69
70
  dist/esm/procaptchaFrictionless.js 14.16 kB │ gzip: 4.01 kB
70
71
 
71
- ✓ built in 46ms
72
+ ✓ built in 41ms
@@ -1,5 +1,5 @@
1
1
  $ tsc --build --verbose
2
- 10:07:47 AM - Projects in this build:
2
+ 11:15:25 AM - Projects in this build:
3
3
  * ../../dev/config/tsconfig.json
4
4
  * ../util/tsconfig.json
5
5
  * ../locale/tsconfig.json
@@ -24,51 +24,51 @@ $ tsc --build --verbose
24
24
  * ../procaptcha-react/tsconfig.json
25
25
  * tsconfig.json
26
26
 
27
- 10:07:47 AM - 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/dist/tsc/tsconfig.tsbuildinfo'
27
+ 11:15:25 AM - 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/dist/tsc/tsconfig.tsbuildinfo'
28
28
 
29
- 10:07:47 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
29
+ 11:15:25 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/text.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
30
30
 
31
- 10:07:47 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
31
+ 11:15:25 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
32
32
 
33
- 10:07:47 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
33
+ 11:15:25 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
34
34
 
35
- 10:07:47 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
35
+ 11:15:25 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
36
36
 
37
- 10:07:47 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
37
+ 11:15:25 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
38
38
 
39
- 10:07:47 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
39
+ 11:15:25 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
40
40
 
41
- 10:07:47 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/dist/tsc/tsconfig.tsbuildinfo'
41
+ 11:15:25 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/dist/tsc/tsconfig.tsbuildinfo'
42
42
 
43
- 10:07:47 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.test.ts' is older than output '../fingerprint/dist/tsc/tsconfig.tsbuildinfo'
43
+ 11:15:25 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.test.ts' is older than output '../fingerprint/dist/tsc/tsconfig.tsbuildinfo'
44
44
 
45
- 10:07:48 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/dist/tsc/tsconfig.tsbuildinfo'
45
+ 11:15:25 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/productionProviderList.unit.test.ts' is older than output '../load-balancer/dist/tsc/tsconfig.tsbuildinfo'
46
46
 
47
- 10:07:48 AM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/theme.ts' is older than output '../widget-skeleton/dist/tsc/tsconfig.tsbuildinfo'
47
+ 11:15:25 AM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/dist/tsc/tsconfig.tsbuildinfo'
48
48
 
49
- 10:07:48 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/dist/tsc/tsconfig.tsbuildinfo'
49
+ 11:15:25 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/dist/tsc/tsconfig.tsbuildinfo'
50
50
 
51
- 10:07:48 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/custom.d.ts' is older than output '../account/dist/tsc/tsconfig.tsbuildinfo'
51
+ 11:15:25 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/tests/cryptoWorker.unit.test.ts' is older than output '../account/dist/tsc/tsconfig.tsbuildinfo'
52
52
 
53
- 10:07:48 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/usageBeacon.ts' is older than output '../procaptcha-common/dist/tsc/tsconfig.tsbuildinfo'
53
+ 11:15:26 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/extensionLoader.ts' is older than output '../procaptcha-common/dist/tsc/tsconfig.tsbuildinfo'
54
54
 
55
- 10:07:48 AM - Project '../procaptcha-audio/tsconfig.json' is up to date because newest input '../procaptcha-audio/src/errorSites.ts' is older than output '../procaptcha-audio/dist/tsc/tsconfig.tsbuildinfo'
55
+ 11:15:26 AM - Project '../procaptcha-audio/tsconfig.json' is up to date because newest input '../procaptcha-audio/src/errorSites.ts' is older than output '../procaptcha-audio/dist/tsc/tsconfig.tsbuildinfo'
56
56
 
57
- 10:07:48 AM - Project '../procaptcha-icon-order/tsconfig.json' is up to date because newest input '../procaptcha-icon-order/src/errorSites.ts' is older than output '../procaptcha-icon-order/dist/tsc/tsconfig.tsbuildinfo'
57
+ 11:15:26 AM - Project '../procaptcha-icon-order/tsconfig.json' is up to date because newest input '../procaptcha-icon-order/src/errorSites.ts' is older than output '../procaptcha-icon-order/dist/tsc/tsconfig.tsbuildinfo'
58
58
 
59
- 10:07:48 AM - Project '../procaptcha-pow/tsconfig.json' is up to date because newest input '../procaptcha-pow/src/custom.d.ts' is older than output '../procaptcha-pow/dist/tsc/tsconfig.tsbuildinfo'
59
+ 11:15:26 AM - Project '../procaptcha-pow/tsconfig.json' is up to date because newest input '../procaptcha-pow/src/custom.d.ts' is older than output '../procaptcha-pow/dist/tsc/tsconfig.tsbuildinfo'
60
60
 
61
- 10:07:48 AM - Project '../procaptcha-puzzle/tsconfig.json' is up to date because newest input '../procaptcha-puzzle/src/errorSites.ts' is older than output '../procaptcha-puzzle/dist/tsc/tsconfig.tsbuildinfo'
61
+ 11:15:26 AM - Project '../procaptcha-puzzle/tsconfig.json' is up to date because newest input '../procaptcha-puzzle/src/errorSites.ts' is older than output '../procaptcha-puzzle/dist/tsc/tsconfig.tsbuildinfo'
62
62
 
63
- 10:07:48 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
63
+ 11:15:26 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/logger.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
64
64
 
65
- 10:07:48 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/captcha.unit.test.ts' is older than output '../datasets/dist/tsc/tsconfig.tsbuildinfo'
65
+ 11:15:26 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/captcha.unit.test.ts' is older than output '../datasets/dist/tsc/tsconfig.tsbuildinfo'
66
66
 
67
- 10:07:48 AM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/errorSites.ts' is older than output '../procaptcha/dist/tsc/tsconfig.tsbuildinfo'
67
+ 11:15:26 AM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/tests/manager.unit.test.ts' is older than output '../procaptcha/dist/tsc/tsconfig.tsbuildinfo'
68
68
 
69
- 10:07:48 AM - Project '../procaptcha-react/tsconfig.json' is up to date because newest input '../procaptcha-react/src/errorSites.ts' is older than output '../procaptcha-react/dist/tsc/tsconfig.tsbuildinfo'
69
+ 11:15:26 AM - Project '../procaptcha-react/tsconfig.json' is up to date because newest input '../procaptcha-react/src/errorSites.ts' is older than output '../procaptcha-react/dist/tsc/tsconfig.tsbuildinfo'
70
70
 
71
- 10:07:48 AM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
71
+ 11:15:26 AM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
72
72
 
73
- 10:07:48 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-frictionless/tsconfig.json'...
73
+ 11:15:26 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-frictionless/tsconfig.json'...
74
74
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @prosopo/procaptcha-frictionless
2
2
 
3
+ ## 2.25.1
4
+ ### Patch Changes
5
+
6
+ - Updated dependencies [b2e3f27]
7
+ - @prosopo/types@5.28.1
8
+ - @prosopo/api@4.10.1
9
+ - @prosopo/common@3.3.2
10
+ - @prosopo/fingerprint@2.8.16
11
+ - @prosopo/procaptcha-audio@0.3.5
12
+ - @prosopo/procaptcha-common@2.23.5
13
+ - @prosopo/procaptcha-icon-order@0.3.5
14
+ - @prosopo/procaptcha-pow@2.14.13
15
+ - @prosopo/procaptcha-puzzle@2.18.5
16
+ - @prosopo/procaptcha-react@2.14.24
17
+
18
+ ## 2.25.0
19
+ ### Minor Changes
20
+
21
+ - fc89f02: Site bypass keys: a browser carrying a site's bypass key skips the CAPTCHA on that site.
22
+
23
+ The widget reads a `prosopo_bypass_key` cookie from the page and sends it with the frictionless request. The provider
24
+ hashes it (SHA-256) and adds the hash to the request's user scope as `bypassKeyHash`, a new access-rule field. A
25
+ site-scoped Allow rule carrying that hash then takes the existing authenticated fast path, so the visitor gets an
26
+ `authenticated` token without a challenge, and verification still requires the visitor's IP. Rules only ever hold the
27
+ hash, never the key.
28
+
29
+ A reused frictionless session is now also evicted when an Allow rule matches and the cached session is not already
30
+ authenticated, so a visitor who loaded the page before adding a key, or before an IP Allow rule was created, is not
31
+ left on the old challenge.
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [fc89f02]
36
+ - @prosopo/types@5.28.0
37
+ - @prosopo/api@4.10.0
38
+ - @prosopo/locale@3.14.3
39
+ - @prosopo/procaptcha-audio@0.3.4
40
+ - @prosopo/procaptcha-common@2.23.4
41
+ - @prosopo/procaptcha-icon-order@0.3.4
42
+ - @prosopo/procaptcha-pow@2.14.12
43
+ - @prosopo/procaptcha-puzzle@2.18.4
44
+ - @prosopo/procaptcha-react@2.14.23
45
+ - @prosopo/common@3.3.2
46
+ - @prosopo/fingerprint@2.8.15
47
+
3
48
  ## 2.24.3
4
49
  ### Patch Changes
5
50
 
@@ -0,0 +1,27 @@
1
+ let _prosopo_types = require("@prosopo/types");
2
+ //#region src/bypassKeyCookie.ts
3
+ var parseBypassKeyCookie = (cookieString) => {
4
+ for (const pair of cookieString.split(";")) {
5
+ const separator = pair.indexOf("=");
6
+ if (separator === -1) continue;
7
+ if (pair.slice(0, separator).trim() !== _prosopo_types.BYPASS_KEY_COOKIE_NAME) continue;
8
+ const value = pair.slice(separator + 1).trim();
9
+ if (value.length === 0) return;
10
+ try {
11
+ return decodeURIComponent(value);
12
+ } catch {
13
+ return value;
14
+ }
15
+ }
16
+ };
17
+ var readBypassKeyCookie = () => {
18
+ if (typeof document === "undefined") return;
19
+ try {
20
+ return parseBypassKeyCookie(document.cookie);
21
+ } catch {
22
+ return;
23
+ }
24
+ };
25
+ //#endregion
26
+ exports.parseBypassKeyCookie = parseBypassKeyCookie;
27
+ exports.readBypassKeyCookie = readBypassKeyCookie;
@@ -1,3 +1,4 @@
1
+ const require_bypassKeyCookie = require("./bypassKeyCookie.cjs");
1
2
  const require_detectorLoader = require("./detectorLoader.cjs");
2
3
  const require_detectorPrefetch = require("./detectorPrefetch.cjs");
3
4
  let _prosopo_common = require("@prosopo/common");
@@ -132,7 +133,7 @@ var customDetectBot = async (config, container, restartFn, retryContext, refresh
132
133
  const userAccount = await ext.getAccount(config);
133
134
  const { currentUrl: fallbackUrl, iframeUrl: fallbackIframeUrl } = getCurrentPageUrls();
134
135
  const fallbackFingerprintProof = await fingerprintProofIfReady();
135
- const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(void 0, void 0, config.account.address, userAccount.account.address, config.mode, void 0, void 0, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf), 1e4);
136
+ const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(void 0, void 0, config.account.address, userAccount.account.address, config.mode, void 0, void 0, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf, require_bypassKeyCookie.readBypassKeyCookie()), 1e4);
136
137
  sendDnsBeacons(captcha);
137
138
  return {
138
139
  captchaType: captcha.captchaType,
@@ -152,7 +153,7 @@ var customDetectBot = async (config, container, restartFn, retryContext, refresh
152
153
  const pageBehaviour = (0, _prosopo_procaptcha_common.getPageBehaviour)();
153
154
  const { currentUrl, iframeUrl } = getCurrentPageUrls();
154
155
  const fingerprintProof = await fingerprintProofIfReady();
155
- const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, void 0, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf);
156
+ const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, void 0, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf, require_bypassKeyCookie.readBypassKeyCookie());
156
157
  if (detectionResult.getSimdReadings) detectionResult.getSimdReadings(6e4).catch(() => void 0);
157
158
  const captcha = await withTimeout(captchaPromise, 1e4);
158
159
  sendDnsBeacons(captcha);
@@ -0,0 +1,26 @@
1
+ import { BYPASS_KEY_COOKIE_NAME } from "@prosopo/types";
2
+ //#region src/bypassKeyCookie.ts
3
+ var parseBypassKeyCookie = (cookieString) => {
4
+ for (const pair of cookieString.split(";")) {
5
+ const separator = pair.indexOf("=");
6
+ if (separator === -1) continue;
7
+ if (pair.slice(0, separator).trim() !== BYPASS_KEY_COOKIE_NAME) continue;
8
+ const value = pair.slice(separator + 1).trim();
9
+ if (value.length === 0) return;
10
+ try {
11
+ return decodeURIComponent(value);
12
+ } catch {
13
+ return value;
14
+ }
15
+ }
16
+ };
17
+ var readBypassKeyCookie = () => {
18
+ if (typeof document === "undefined") return;
19
+ try {
20
+ return parseBypassKeyCookie(document.cookie);
21
+ } catch {
22
+ return;
23
+ }
24
+ };
25
+ //#endregion
26
+ export { parseBypassKeyCookie, readBypassKeyCookie };
@@ -1,3 +1,4 @@
1
+ import { readBypassKeyCookie } from "./bypassKeyCookie.js";
1
2
  import { DetectorLoaderFromScript } from "./detectorLoader.js";
2
3
  import { takePrefetchedDetector } from "./detectorPrefetch.js";
3
4
  import { ProsopoError } from "@prosopo/common";
@@ -131,7 +132,7 @@ var customDetectBot = async (config, container, restartFn, retryContext, refresh
131
132
  const userAccount = await ext.getAccount(config);
132
133
  const { currentUrl: fallbackUrl, iframeUrl: fallbackIframeUrl } = getCurrentPageUrls();
133
134
  const fallbackFingerprintProof = await fingerprintProofIfReady();
134
- const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(void 0, void 0, config.account.address, userAccount.account.address, config.mode, void 0, void 0, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf), 1e4);
135
+ const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(void 0, void 0, config.account.address, userAccount.account.address, config.mode, void 0, void 0, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf, readBypassKeyCookie()), 1e4);
135
136
  sendDnsBeacons(captcha);
136
137
  return {
137
138
  captchaType: captcha.captchaType,
@@ -151,7 +152,7 @@ var customDetectBot = async (config, container, restartFn, retryContext, refresh
151
152
  const pageBehaviour = getPageBehaviour();
152
153
  const { currentUrl, iframeUrl } = getCurrentPageUrls();
153
154
  const fingerprintProof = await fingerprintProofIfReady();
154
- const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, void 0, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf);
155
+ const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, void 0, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf, readBypassKeyCookie());
155
156
  if (detectionResult.getSimdReadings) detectionResult.getSimdReadings(6e4).catch(() => void 0);
156
157
  const captcha = await withTimeout(captchaPromise, 1e4);
157
158
  sendDnsBeacons(captcha);
@@ -0,0 +1,3 @@
1
+ export declare const parseBypassKeyCookie: (cookieString: string) => string | undefined;
2
+ export declare const readBypassKeyCookie: () => string | undefined;
3
+ //# sourceMappingURL=bypassKeyCookie.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.d.ts","sourceRoot":"","sources":["../../src/bypassKeyCookie.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oBAAoB,iBAClB,MAAM,KAClB,MAAM,GAAG,SAoBX,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAAM,GAAG,SAU/C,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { BYPASS_KEY_COOKIE_NAME } from "@prosopo/types";
2
+ export const parseBypassKeyCookie = (cookieString) => {
3
+ for (const pair of cookieString.split(";")) {
4
+ const separator = pair.indexOf("=");
5
+ if (separator === -1) {
6
+ continue;
7
+ }
8
+ if (pair.slice(0, separator).trim() !== BYPASS_KEY_COOKIE_NAME) {
9
+ continue;
10
+ }
11
+ const value = pair.slice(separator + 1).trim();
12
+ if (value.length === 0) {
13
+ return undefined;
14
+ }
15
+ try {
16
+ return decodeURIComponent(value);
17
+ }
18
+ catch {
19
+ return value;
20
+ }
21
+ }
22
+ return undefined;
23
+ };
24
+ export const readBypassKeyCookie = () => {
25
+ if (typeof document === "undefined") {
26
+ return undefined;
27
+ }
28
+ try {
29
+ return parseBypassKeyCookie(document.cookie);
30
+ }
31
+ catch {
32
+ return undefined;
33
+ }
34
+ };
35
+ //# sourceMappingURL=bypassKeyCookie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.js","sourceRoot":"","sources":["../../src/bypassKeyCookie.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,s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BAA8B,EAI9B,MAAM,gBAAgB,CAAC;AA4FxB,eAAO,MAAM,cAAc,gCAGxB,IAAI,CAAC,8BAA8B,EAAE,SAAS,GAAG,eAAe,CAAC,KAAG,IAiBtE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,CAAC,WACzB,OAAO,CAAC,CAAC,CAAC,MACf,MAAM,KACR,OAAO,CAAC,CAAC,CA0BX,CAAC;AAuCF,QAAA,MAAM,eAAe,EAAE,oBAsQtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"customDetectBot.d.ts","sourceRoot":"","sources":["../../src/customDetectBot.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACX,oBAAoB,EACpB,8BAA8B,EAI9B,MAAM,gBAAgB,CAAC;AA6FxB,eAAO,MAAM,cAAc,gCAGxB,IAAI,CAAC,8BAA8B,EAAE,SAAS,GAAG,eAAe,CAAC,KAAG,IAiBtE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,CAAC,WACzB,OAAO,CAAC,CAAC,CAAC,MACf,MAAM,KACR,OAAO,CAAC,CAAC,CA0BX,CAAC;AAuCF,QAAA,MAAM,eAAe,EAAE,oBAwQtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -2,6 +2,7 @@ import { ProviderApi } from "@prosopo/api";
2
2
  import { ProsopoError } from "@prosopo/common";
3
3
  import { FINGERPRINT_DISCLOSURE_KEYS, encodeFingerprintProof, getFingerprintProof, } from "@prosopo/fingerprint";
4
4
  import { ExtensionLoader, PAGE_BEHAVIOUR_LIMITS, getPageBehaviour, getProcaptchaRandomActiveProvider, mergeBehaviourPoints, pickIpMode, resolveClientSessionId, stopPageBehaviourCapture, widgetRequestHeaders, } from "@prosopo/procaptcha-common";
5
+ import { readBypassKeyCookie } from "./bypassKeyCookie.js";
5
6
  import { DetectorLoaderFromScript, } from "./detectorLoader.js";
6
7
  import { takePrefetchedDetector, } from "./detectorPrefetch.js";
7
8
  const ASSIGN_TIMEOUT_MS = 10_000;
@@ -148,7 +149,7 @@ const customDetectBot = async (config, container, restartFn, retryContext, refre
148
149
  const userAccount = await ext.getAccount(config);
149
150
  const { currentUrl: fallbackUrl, iframeUrl: fallbackIframeUrl } = getCurrentPageUrls();
150
151
  const fallbackFingerprintProof = await fingerprintProofIfReady();
151
- const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(undefined, undefined, config.account.address, userAccount.account.address, config.mode, undefined, undefined, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf), 10000);
152
+ const captcha = await withTimeout(providerApi.getFrictionlessCaptcha(undefined, undefined, config.account.address, userAccount.account.address, config.mode, undefined, undefined, fallbackUrl, fallbackIframeUrl, clientSessionId, refreshOf, switchTo, fallbackFingerprintProof, widgetSlot, retryOf, readBypassKeyCookie()), 10000);
152
153
  sendDnsBeacons(captcha);
153
154
  return {
154
155
  captchaType: captcha.captchaType,
@@ -169,7 +170,7 @@ const customDetectBot = async (config, container, restartFn, retryContext, refre
169
170
  const pageBehaviour = getPageBehaviour();
170
171
  const { currentUrl, iframeUrl } = getCurrentPageUrls();
171
172
  const fingerprintProof = await fingerprintProofIfReady();
172
- const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, undefined, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf);
173
+ const captchaPromise = providerApi.getFrictionlessCaptcha(detectionResult.token, detectionResult.encryptHeadHash, config.account.address, userAccount.account.address, config.mode, undefined, detectorSessionId, currentUrl, iframeUrl, clientSessionId, refreshOf, switchTo, fingerprintProof, widgetSlot, retryOf, readBypassKeyCookie());
173
174
  if (detectionResult.getSimdReadings) {
174
175
  void detectionResult.getSimdReadings(60_000).catch(() => undefined);
175
176
  }
@@ -1 +1 @@
1
- {"version":3,"file":"customDetectBot.js","sourceRoot":"","sources":["../../src/customDetectBot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Ae,CAAC,eAAe;KAChD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bypassKeyCookie.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.test.d.ts","sourceRoot":"","sources":["../../../src/tests/bypassKeyCookie.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { parseBypassKeyCookie } from "../bypassKeyCookie.js";
3
+ describe("parseBypassKeyCookie", () => {
4
+ it("reads the bypass key from among other cookies", () => {
5
+ expect(parseBypassKeyCookie("theme=dark; prosopo_bypass_key=pbk_abc123; lang=en")).toBe("pbk_abc123");
6
+ });
7
+ it("decodes a percent-encoded value", () => {
8
+ expect(parseBypassKeyCookie("prosopo_bypass_key=pbk_a%2Bb")).toBe("pbk_a+b");
9
+ });
10
+ it("keeps a value that is not valid percent-encoding as-is", () => {
11
+ expect(parseBypassKeyCookie("prosopo_bypass_key=pbk_%E0%A4%A")).toBe("pbk_%E0%A4%A");
12
+ });
13
+ it.each([
14
+ ["no cookies", ""],
15
+ ["other cookies only", "theme=dark; lang=en"],
16
+ ["an empty value", "prosopo_bypass_key="],
17
+ [
18
+ "a cookie whose name only ends with the key name",
19
+ "x_prosopo_bypass_key=1",
20
+ ],
21
+ ])("returns undefined for %s", (_label, cookieString) => {
22
+ expect(parseBypassKeyCookie(cookieString)).toBeUndefined();
23
+ });
24
+ });
25
+ //# sourceMappingURL=bypassKeyCookie.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.test.js","sourceRoot":"","sources":["../../../src/tests/bypassKeyCookie.test.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACxD,MAAM,CACL,oBAAoB,CACnB,oDAAoD,CACpD,CACD,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,oBAAoB,CAAC,8BAA8B,CAAC,CAAC,CAAC,IAAI,CAChE,SAAS,CACT,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;QACjE,MAAM,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,CAAC,CAAC,IAAI,CACnE,cAAc,CACd,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,IAAI,CAAC;QACP,CAAC,YAAY,EAAE,EAAE,CAAC;QAClB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;QAC7C,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;QACzC;YACC,iDAAiD;YACjD,wBAAwB;SACxB;KACD,CAAC,CAAC,0BAA0B,EAAE,CAAC,MAAc,EAAE,YAAoB,EAAE,EAAE;QACvE,MAAM,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;IAC5D,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const parseBypassKeyCookie: (cookieString: string) => string | undefined;
2
+ export declare const readBypassKeyCookie: () => string | undefined;
3
+ //# sourceMappingURL=bypassKeyCookie.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.d.ts","sourceRoot":"","sources":["../../src/bypassKeyCookie.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oBAAoB,iBAClB,MAAM,KAClB,MAAM,GAAG,SAoBX,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAAM,GAAG,SAU/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"customDetectBot.d.ts","sourceRoot":"","sources":["../../src/customDetectBot.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACX,oBAAoB,EACpB,8BAA8B,EAI9B,MAAM,gBAAgB,CAAC;AA4FxB,eAAO,MAAM,cAAc,gCAGxB,IAAI,CAAC,8BAA8B,EAAE,SAAS,GAAG,eAAe,CAAC,KAAG,IAiBtE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,CAAC,WACzB,OAAO,CAAC,CAAC,CAAC,MACf,MAAM,KACR,OAAO,CAAC,CAAC,CA0BX,CAAC;AAuCF,QAAA,MAAM,eAAe,EAAE,oBAsQtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"customDetectBot.d.ts","sourceRoot":"","sources":["../../src/customDetectBot.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACX,oBAAoB,EACpB,8BAA8B,EAI9B,MAAM,gBAAgB,CAAC;AA6FxB,eAAO,MAAM,cAAc,gCAGxB,IAAI,CAAC,8BAA8B,EAAE,SAAS,GAAG,eAAe,CAAC,KAAG,IAiBtE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,CAAC,WACzB,OAAO,CAAC,CAAC,CAAC,MACf,MAAM,KACR,OAAO,CAAC,CAAC,CA0BX,CAAC;AAuCF,QAAA,MAAM,eAAe,EAAE,oBAwQtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bypassKeyCookie.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bypassKeyCookie.test.d.ts","sourceRoot":"","sources":["../../../src/tests/bypassKeyCookie.test.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/procaptcha-frictionless",
3
- "version": "2.24.3",
3
+ "version": "2.25.1",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/esm/index.js",
@@ -22,17 +22,17 @@
22
22
  "> 0.5%, last 2 versions, not dead"
23
23
  ],
24
24
  "dependencies": {
25
- "@prosopo/api": "4.9.2",
25
+ "@prosopo/api": "4.10.1",
26
26
  "@prosopo/common": "3.3.2",
27
- "@prosopo/fingerprint": "2.8.14",
28
- "@prosopo/locale": "3.14.2",
29
- "@prosopo/procaptcha-audio": "0.3.3",
30
- "@prosopo/procaptcha-common": "2.23.3",
31
- "@prosopo/procaptcha-icon-order": "0.3.3",
32
- "@prosopo/procaptcha-pow": "2.14.11",
33
- "@prosopo/procaptcha-puzzle": "2.18.3",
34
- "@prosopo/procaptcha-react": "2.14.22",
35
- "@prosopo/types": "5.27.0",
27
+ "@prosopo/fingerprint": "2.8.16",
28
+ "@prosopo/locale": "3.14.3",
29
+ "@prosopo/procaptcha-audio": "0.3.5",
30
+ "@prosopo/procaptcha-common": "2.23.5",
31
+ "@prosopo/procaptcha-icon-order": "0.3.5",
32
+ "@prosopo/procaptcha-pow": "2.14.13",
33
+ "@prosopo/procaptcha-puzzle": "2.18.5",
34
+ "@prosopo/procaptcha-react": "2.14.24",
35
+ "@prosopo/types": "5.28.1",
36
36
  "@prosopo/widget-skeleton": "2.10.5",
37
37
  "dotenv": "18.0.8"
38
38
  },