widget@0.1.34: fix #162

This commit is contained in:
tiago
2026-01-27 12:52:14 +00:00
parent dc51bafc0d
commit 3111bf186c
3 changed files with 6 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@cap.js/widget",
"version": "0.1.33",
"version": "0.1.34",
"description": "Client-side widget for Cap, a lightweight, modern open-source CAPTCHA alternative designed using SHA-256 PoW.",
"keywords": [
"security",
+4
View File
@@ -193,6 +193,10 @@
"Missing API endpoint. Either custom fetch or an API endpoint must be provided.",
);
if (!apiEndpoint.endsWith("/")) {
apiEndpoint += "/";
}
const { challenge, token } = await (
await capFetch(`${apiEndpoint}challenge`, {
method: "POST",