@arcjet/bun 1.0.0-alpha.27 → 1.0.0-alpha.28

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/index.js +3 -2
  2. package/index.ts +1 -1
  3. package/package.json +14 -14
package/index.js CHANGED
@@ -33,7 +33,7 @@ function createRemoteClient(options) {
33
33
  // Transport is the HTTP client that the client uses to make requests.
34
34
  const transport = createTransport(url);
35
35
  const sdkStack = "BUN";
36
- const sdkVersion = "1.0.0-alpha.27";
36
+ const sdkVersion = "1.0.0-alpha.28";
37
37
  return createClient({
38
38
  transport,
39
39
  baseUrl: url,
@@ -71,7 +71,8 @@ function arcjet(options) {
71
71
  // workaround to the API design in Bun that requires access to the
72
72
  // `Server` to lookup an IP.
73
73
  ip: ipCache.get(request),
74
- }, headers, { platform: platform(env) });
74
+ headers,
75
+ }, { platform: platform(env) });
75
76
  if (ip === "") {
76
77
  // If the `ip` is empty but we're in development mode, we default the IP
77
78
  // so the request doesn't fail.
package/index.ts CHANGED
@@ -203,8 +203,8 @@ export default function arcjet<
203
203
  // workaround to the API design in Bun that requires access to the
204
204
  // `Server` to lookup an IP.
205
205
  ip: ipCache.get(request),
206
+ headers,
206
207
  },
207
- headers,
208
208
  { platform: platform(env) },
209
209
  );
210
210
  if (ip === "") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/bun",
3
- "version": "1.0.0-alpha.27",
3
+ "version": "1.0.0-alpha.28",
4
4
  "description": "Arcjet SDK for Bun.sh",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://arcjet.com",
@@ -38,24 +38,24 @@
38
38
  "test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests"
39
39
  },
40
40
  "dependencies": {
41
- "@arcjet/env": "1.0.0-alpha.27",
42
- "@arcjet/headers": "1.0.0-alpha.27",
43
- "@arcjet/ip": "1.0.0-alpha.27",
44
- "@arcjet/logger": "1.0.0-alpha.27",
45
- "@arcjet/protocol": "1.0.0-alpha.27",
46
- "@arcjet/transport": "1.0.0-alpha.27",
47
- "arcjet": "1.0.0-alpha.27"
41
+ "@arcjet/env": "1.0.0-alpha.28",
42
+ "@arcjet/headers": "1.0.0-alpha.28",
43
+ "@arcjet/ip": "1.0.0-alpha.28",
44
+ "@arcjet/logger": "1.0.0-alpha.28",
45
+ "@arcjet/protocol": "1.0.0-alpha.28",
46
+ "@arcjet/transport": "1.0.0-alpha.28",
47
+ "arcjet": "1.0.0-alpha.28"
48
48
  },
49
49
  "devDependencies": {
50
- "@arcjet/eslint-config": "1.0.0-alpha.27",
51
- "@arcjet/rollup-config": "1.0.0-alpha.27",
52
- "@arcjet/tsconfig": "1.0.0-alpha.27",
50
+ "@arcjet/eslint-config": "1.0.0-alpha.28",
51
+ "@arcjet/rollup-config": "1.0.0-alpha.28",
52
+ "@arcjet/tsconfig": "1.0.0-alpha.28",
53
53
  "@jest/globals": "29.7.0",
54
54
  "@types/node": "20.12.12",
55
- "@rollup/wasm-node": "4.23.0",
56
- "bun-types": "1.1.29",
55
+ "@rollup/wasm-node": "4.24.0",
56
+ "bun-types": "1.1.32",
57
57
  "jest": "29.7.0",
58
- "typescript": "5.6.2"
58
+ "typescript": "5.6.3"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public",