Skip to content

Commit

Permalink
workaround really frustrating bun type stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
blaine-arcjet committed May 15, 2024
1 parent 96cb69f commit 55a071b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions arcjet-bun/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="bun-types/bun.d.ts" />
import { createConnectTransport } from "@connectrpc/connect-node";
import core, {
ArcjetDecision,
Expand Down
2 changes: 1 addition & 1 deletion arcjet-bun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"@arcjet/rollup-config": "1.0.0-alpha.12",
"@arcjet/tsconfig": "1.0.0-alpha.12",
"@jest/globals": "29.7.0",
"@types/bun": "1.1.2",
"@types/node": "20.12.12",
"@rollup/wasm-node": "4.17.2",
"bun-types": "1.1.8",
"jest": "29.7.0",
"typescript": "5.4.5"
},
Expand Down
Binary file modified examples/bun-rl/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/bun-rl/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import arcjet, { fixedWindow, shield } from "@arcjet/bun"

const aj = arcjet({
key: process.env.ARCJET_KEY!,
key: Bun.env.ARCJET_KEY!,
rules: [
shield({ mode: "LIVE" }),
fixedWindow({
Expand Down
11 changes: 1 addition & 10 deletions package-lock.json

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

0 comments on commit 55a071b

Please sign in to comment.