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

chore(examples): Various cleanup #2066

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
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
Binary file modified examples/bun-hono-rate-limit/bun.lockb
Binary file not shown.
Binary file modified examples/bun-rate-limit/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/express-newman/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ app.get("/api/bots", async (req, res) => {
const decision = await aj
// Only inline to self-contain the sample code.
// Static rules should be defined outside the handler for performance.
.withRule(detectBot({ mode: "LIVE" }))
.withRule(detectBot({ mode: "LIVE", allow: [] }))
.protect(req);

if (decision.isDenied()) {
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-fastify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Adapater](https://docs.nestjs.com/techniques/performance).
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/` in a browser.
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GraphQL applications using the `@arcjet/nest` adapter.
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/graphql` in a browser and submit a GraphQL
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs-launchdarkly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ applications using the `@arcjet/nest` adapter with rule configuration loaded via
6. Start the server.

```bash
npm start
npm run start:dev
```

7. Visit `http://localhost:3000/`.
Expand Down
2 changes: 1 addition & 1 deletion examples/nestjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ applications using the `@arcjet/nest` adapter.
4. Start the server.

```bash
npm start
npm run start:dev
```

5. Visit `http://localhost:3000/` in a browser.
Expand Down