Skip to content

Commit

Permalink
A bunch of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Rangel committed Jan 18, 2025
1 parent 701d4a1 commit 54b270b
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 216 deletions.
1 change: 1 addition & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const app = express();

app.use(express.json());
app.use(express.static('public'));
/* app.use("/capsource", express.static('../widget/src/cap.js')); */

const cap = new Cap({
tokens_store_path: '.data/tokensList.json'
Expand Down
1 change: 0 additions & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cap-demo",
"version": "0.0.1",
"description": "Cap demo",
"license": "AGPL-3.0",
"author": "Tiago Rangel",
Expand Down
3 changes: 2 additions & 1 deletion demo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
</style>
</head>
<body>
<cap-widget id="cap" data-cap-api-endpoint="/api/"></cap-widget>
<cap-widget id="cap" data-cap-api-endpoint="/api/" data-cap-worker-count="30"></cap-widget>

<a href="https://github.com/tiagorangel1/cap/tree/main/demo" target="_blank" class="source">Source code</a>
</body>
<script src="https://cdn.jsdelivr.net/npm/@cap.js/widget"></script>
<!-- <script src="/capsource"></script> -->
</html>
2 changes: 1 addition & 1 deletion docs/guide/invisible.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log(result.token);
The following methods are supported:

#### `new Cap({ ... })`
Creates a new Cap instance.
Creates a new Cap instance. If a 2nd argument is provided, it will use that element instead of creating a new one in memory.

**Arguments**
```json
Expand Down
2 changes: 1 addition & 1 deletion widget/cap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cap.js/widget",
"version": "0.0.9",
"version": "0.0.10",
"description": "Cap widget",
"keywords": [
"captcha",
Expand Down
Loading

0 comments on commit 54b270b

Please sign in to comment.