@arcjet/bun 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -2
  2. package/index.js +1 -1
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -133,7 +133,7 @@ For the full reference, see the [Arcjet Bun SDK docs][arcjet-reference-bun].
133
133
 
134
134
  Detect and block prompt injection attacks — attempts to override your AI
135
135
  model's instructions — before they reach your model. Pass the user's message
136
- via `detectPromptInjectionMessage` on each `protect()` call. Tune sensitivity with the `threshold` parameter (0.0–1.0, default 0.5) — higher values are more conservative.
136
+ via `detectPromptInjectionMessage` on each `protect()` call.
137
137
 
138
138
  ```ts
139
139
  import arcjet, { detectPromptInjection } from "@arcjet/bun";
@@ -144,7 +144,6 @@ const aj = arcjet({
144
144
  rules: [
145
145
  detectPromptInjection({
146
146
  mode: "LIVE", // Blocks requests. Use "DRY_RUN" to log only
147
- threshold: 0.5, // Score above which requests are blocked (default: 0.5)
148
147
  }),
149
148
  ],
150
149
  });
package/index.js CHANGED
@@ -26,7 +26,7 @@ function createRemoteClient(options) {
26
26
  // Transport is the HTTP client that the client uses to make requests.
27
27
  const transport = createTransport(url);
28
28
  const sdkStack = "BUN";
29
- const sdkVersion = "1.3.1";
29
+ const sdkVersion = "1.4.0";
30
30
  return createClient({
31
31
  transport,
32
32
  baseUrl: url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/bun",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Arcjet runtime security SDK for Bun — bot protection, rate limiting, prompt injection detection, PII blocking, and WAF",
5
5
  "keywords": [
6
6
  "ai",
@@ -51,18 +51,18 @@
51
51
  "test": "npm run build && npm run lint"
52
52
  },
53
53
  "dependencies": {
54
- "@arcjet/body": "1.3.1",
55
- "@arcjet/env": "1.3.1",
56
- "@arcjet/headers": "1.3.1",
57
- "@arcjet/ip": "1.3.1",
58
- "@arcjet/logger": "1.3.1",
59
- "@arcjet/protocol": "1.3.1",
60
- "@arcjet/transport": "1.3.1",
61
- "arcjet": "1.3.1"
54
+ "@arcjet/body": "1.4.0",
55
+ "@arcjet/env": "1.4.0",
56
+ "@arcjet/headers": "1.4.0",
57
+ "@arcjet/ip": "1.4.0",
58
+ "@arcjet/logger": "1.4.0",
59
+ "@arcjet/protocol": "1.4.0",
60
+ "@arcjet/transport": "1.4.0",
61
+ "arcjet": "1.4.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@arcjet/eslint-config": "1.3.1",
65
- "@arcjet/rollup-config": "1.3.1",
64
+ "@arcjet/eslint-config": "1.4.0",
65
+ "@arcjet/rollup-config": "1.4.0",
66
66
  "@rollup/wasm-node": "4.59.0",
67
67
  "bun-types": "1.3.10",
68
68
  "eslint": "9.39.3",