Skip to content

Commit

Permalink
fix(examples): Update Sveltekite deps & fix a typo (#939)
Browse files Browse the repository at this point in the history
* fix(examples): Fix typo

* fix(deps): Bump deps
  • Loading branch information
davidmytton authored Jun 12, 2024
1 parent 9fe6927 commit dffd4a5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/sveltekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
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
Expand Up @@ -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);
}

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

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

0 comments on commit dffd4a5

Please sign in to comment.