rankrunners-cms 0.0.42 → 0.0.44
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/package.json +4 -4
- package/src/captcha/api.ts +1 -5
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rankrunners-cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.44",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@puckeditor/core": "^0.21.1",
|
|
7
|
-
"@tanstack/react-router": "^1.
|
|
8
|
-
"@tanstack/router-core": "^1.
|
|
7
|
+
"@tanstack/react-router": "^1.167.0",
|
|
8
|
+
"@tanstack/router-core": "^1.167.0",
|
|
9
9
|
"lucide-react": "^0.577.0",
|
|
10
10
|
"next": "^16.1.6",
|
|
11
11
|
"react": "^19.2.4",
|
|
12
12
|
"valibot": "^1.2.0",
|
|
13
|
-
"hono": "^4.12.
|
|
13
|
+
"hono": "^4.12.8"
|
|
14
14
|
},
|
|
15
15
|
"peerDependenciesMeta": {
|
|
16
16
|
"next": {
|
package/src/captcha/api.ts
CHANGED
|
@@ -9,9 +9,6 @@ import type {
|
|
|
9
9
|
RedeemResponse,
|
|
10
10
|
ValidateResponse,
|
|
11
11
|
} from "./types.ts";
|
|
12
|
-
// Not ideal, due to this bug: https://github.com/vitejs/vite/issues/15618
|
|
13
|
-
// https://github.com/vitejs/vite/discussions/15547
|
|
14
|
-
import CapWorker from "./worker.ts?worker&inline";
|
|
15
12
|
|
|
16
13
|
export async function getChallenge(
|
|
17
14
|
context: Pick<CapHookProps, "endpoint" | "challengeHeaders">,
|
|
@@ -201,8 +198,7 @@ function prng(seed: string, length: number) {
|
|
|
201
198
|
}
|
|
202
199
|
|
|
203
200
|
function createWorker() {
|
|
204
|
-
|
|
205
|
-
return new CapWorker();
|
|
201
|
+
return new Worker(new URL("./worker.ts", import.meta.url));
|
|
206
202
|
}
|
|
207
203
|
|
|
208
204
|
export function isTokenExpired(token: CapToken) {
|