New:Socket for Asana Is Now Available.Learn more
Get Started

@arcjet/bun

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/bun - npm Package Compare versions

Comparing version
1.10.0
to
1.11.0
+1
-1
dist/index.d.ts

@@ -29,3 +29,3 @@ import { ProxyService, ProxyService as ProxyService$1, cloudflare } from "@arcjet/ip";

*
* Defaults to `500` in production and `1000` in development.
* Defaults to `2000` (2 seconds) to allow for API cold starts.
*/

@@ -32,0 +32,0 @@ timeout?: number;

@@ -7,3 +7,3 @@ import { cloudflare, findIp, parseProxies } from "@arcjet/ip";

import { Logger } from "@arcjet/logger";
import { createClient } from "@arcjet/protocol/client.js";
import { createClient, resolveClientTimeout } from "@arcjet/protocol/client.js";
import { createTransport } from "@arcjet/transport";

@@ -14,3 +14,3 @@ import { env } from "bun";

/** SDK version. Updated by the release process. */
const VERSION = "1.10.0";
const VERSION = "1.11.0";
let warnedForAutomaticBodyRead = false;

@@ -27,5 +27,6 @@ /**

const url = options?.baseUrl ?? baseUrl(env);
const timeout = options?.timeout ?? (isDevelopment(env) ? 1e3 : 500);
const timeout = resolveClientTimeout(options?.timeout);
const transport = createTransport(url);
return createClient({
transport: createTransport(url),
transport,
baseUrl: url,

@@ -67,4 +68,6 @@ timeout,

});
if (ip === "") if (isDevelopment(env)) ip = "127.0.0.1";
else log.warn(`Client IP address is missing. If this is a dev environment set the ARCJET_ENV env var to "development"`);
if (ip === "") {
if (isDevelopment(env)) ip = "127.0.0.1";
else log.warn(`Client IP address is missing. If this is a dev environment set the ARCJET_ENV env var to "development"`);
}
return {

@@ -71,0 +74,0 @@ ...props,

{
"name": "@arcjet/bun",
"version": "1.10.0",
"version": "1.11.0",
"description": "Arcjet runtime security SDK for Bun — bot protection, rate limiting, prompt injection detection, PII blocking, and WAF",

@@ -62,18 +62,18 @@ "keywords": [

"dependencies": {
"@arcjet/body": "1.10.0",
"@arcjet/env": "1.10.0",
"@arcjet/headers": "1.10.0",
"@arcjet/ip": "1.10.0",
"@arcjet/logger": "1.10.0",
"@arcjet/protocol": "1.10.0",
"@arcjet/transport": "1.10.0",
"arcjet": "1.10.0"
"@arcjet/body": "1.11.0",
"@arcjet/env": "1.11.0",
"@arcjet/headers": "1.11.0",
"@arcjet/ip": "1.11.0",
"@arcjet/logger": "1.11.0",
"@arcjet/protocol": "1.11.0",
"@arcjet/transport": "1.11.0",
"arcjet": "1.11.0"
},
"devDependencies": {
"bun-types": "1.3.14",
"tsdown": "0.22.7",
"tsdown": "0.22.14",
"typescript": "7.0.2",
"undici-types": "7.28.0"
"undici-types": "7.29.0"
},
"engines": {}
}