Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(examples): Update Sveltekite deps & fix a typo #939

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/sveltekit/README.md
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ This example shows how to use Arcjet to protect [SvelteKit](https://kit.svelte.d
2. Enter this directory and install the example's dependencies.

```bash
cd examples/svelte
cd examples/sveltekit
npm ci
```

34 changes: 17 additions & 17 deletions examples/sveltekit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/sveltekit/src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ export async function handle({
// Ignore routes that extend the Arcjet rules - they will call `.protect` themselves
const filteredRoutes = ["/api/rate-limited", "/rate-limited"];
if (filteredRoutes.includes(event.url.pathname)) {
// return - route will handle protecttion
// return - route will handle protection
return resolve(event);
}

@@ -24,4 +24,4 @@ export async function handle({

// Continue with the route
return resolve(event);
}
}