diff --git a/examples/sveltekit/README.md b/examples/sveltekit/README.md index 8b95d79e4..33389cc5d 100644 --- a/examples/sveltekit/README.md +++ b/examples/sveltekit/README.md @@ -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 ``` diff --git a/examples/sveltekit/package-lock.json b/examples/sveltekit/package-lock.json index 686c5a2a1..cb826dfcc 100644 --- a/examples/sveltekit/package-lock.json +++ b/examples/sveltekit/package-lock.json @@ -33,22 +33,22 @@ }, "../../arcjet-sveltekit": { "name": "@arcjet/sveltekit", - "version": "1.0.0-alpha.13", + "version": "1.0.0-alpha.14", "license": "Apache-2.0", "dependencies": { - "@arcjet/env": "1.0.0-alpha.13", - "@arcjet/headers": "1.0.0-alpha.13", - "@arcjet/ip": "1.0.0-alpha.13", - "@arcjet/logger": "1.0.0-alpha.13", - "@arcjet/runtime": "1.0.0-alpha.13", + "@arcjet/env": "1.0.0-alpha.14", + "@arcjet/headers": "1.0.0-alpha.14", + "@arcjet/ip": "1.0.0-alpha.14", + "@arcjet/logger": "1.0.0-alpha.14", + "@arcjet/runtime": "1.0.0-alpha.14", "@connectrpc/connect-node": "1.4.0", "@connectrpc/connect-web": "1.4.0", - "arcjet": "1.0.0-alpha.13" + "arcjet": "1.0.0-alpha.14" }, "devDependencies": { - "@arcjet/eslint-config": "1.0.0-alpha.13", - "@arcjet/rollup-config": "1.0.0-alpha.13", - "@arcjet/tsconfig": "1.0.0-alpha.13", + "@arcjet/eslint-config": "1.0.0-alpha.14", + "@arcjet/rollup-config": "1.0.0-alpha.14", + "@arcjet/tsconfig": "1.0.0-alpha.14", "@jest/globals": "29.7.0", "@rollup/wasm-node": "4.18.0", "@types/node": "18.18.0", @@ -1491,12 +1491,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -2119,9 +2119,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" diff --git a/examples/sveltekit/src/hooks.server.ts b/examples/sveltekit/src/hooks.server.ts index 02261ad2e..a64616e99 100644 --- a/examples/sveltekit/src/hooks.server.ts +++ b/examples/sveltekit/src/hooks.server.ts @@ -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); -} +} \ No newline at end of file