widget@0.1.34: fix #162
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user