@prosopo/procaptcha-bundle 4.1.47 → 4.1.49
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 +3 -3
- package/.turbo/turbo-build$colon$tsc.log +26 -26
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +39 -0
- package/package.json +8 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +12 -0
- package/vite.iife.config.ts +12 -0
package/vite.config.ts
CHANGED
|
@@ -84,6 +84,14 @@ const translationKeys = Object.keys(
|
|
|
84
84
|
|
|
85
85
|
// Merge with generic frontend config
|
|
86
86
|
export default defineConfig(async ({ command, mode }) => {
|
|
87
|
+
// Test-only escape hatch for the firefox cypress leg: cypress can only
|
|
88
|
+
// dispatch trusted input over the chrome devtools protocol (chromium
|
|
89
|
+
// only), so on firefox the specs click synthetically and the widget's
|
|
90
|
+
// isEventTrusted() gate would drop every one. Anything other than an
|
|
91
|
+
// explicit "1" on a non-production build compiles the allowance out.
|
|
92
|
+
const allowUntrustedEvents =
|
|
93
|
+
mode !== "production" && process.env.PROSOPO_ALLOW_UNTRUSTED_EVENTS === "1";
|
|
94
|
+
|
|
87
95
|
const frontendConfig = await ViteFrontendConfig(
|
|
88
96
|
packageName,
|
|
89
97
|
bundleName,
|
|
@@ -98,6 +106,10 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
98
106
|
|
|
99
107
|
return {
|
|
100
108
|
...frontendConfig,
|
|
109
|
+
define: {
|
|
110
|
+
...frontendConfig.define,
|
|
111
|
+
__PROSOPO_ALLOW_UNTRUSTED_EVENTS__: JSON.stringify(allowUntrustedEvents),
|
|
112
|
+
},
|
|
101
113
|
worker: {
|
|
102
114
|
format: "es",
|
|
103
115
|
},
|
package/vite.iife.config.ts
CHANGED
|
@@ -58,6 +58,14 @@ const translationKeys = Object.keys(
|
|
|
58
58
|
);
|
|
59
59
|
|
|
60
60
|
export default defineConfig(async ({ command, mode }) => {
|
|
61
|
+
// Test-only escape hatch for the firefox cypress leg: cypress can only
|
|
62
|
+
// dispatch trusted input over the chrome devtools protocol (chromium
|
|
63
|
+
// only), so on firefox the specs click synthetically and the widget's
|
|
64
|
+
// isEventTrusted() gate would drop every one. Anything other than an
|
|
65
|
+
// explicit "1" on a non-production build compiles the allowance out.
|
|
66
|
+
const allowUntrustedEvents =
|
|
67
|
+
mode !== "production" && process.env.PROSOPO_ALLOW_UNTRUSTED_EVENTS === "1";
|
|
68
|
+
|
|
61
69
|
const frontendConfig = await ViteFrontendConfig(
|
|
62
70
|
packageName,
|
|
63
71
|
bundleName,
|
|
@@ -72,6 +80,10 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
72
80
|
|
|
73
81
|
return {
|
|
74
82
|
...frontendConfig,
|
|
83
|
+
define: {
|
|
84
|
+
...frontendConfig.define,
|
|
85
|
+
__PROSOPO_ALLOW_UNTRUSTED_EVENTS__: JSON.stringify(allowUntrustedEvents),
|
|
86
|
+
},
|
|
75
87
|
worker: {
|
|
76
88
|
format: "es",
|
|
77
89
|
},
|