@arcjet/bun 1.0.0-alpha.27 → 1.0.0-alpha.29
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.
- package/index.js +3 -2
- package/index.ts +1 -1
- 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.
|
|
36
|
+
const sdkVersion = "1.0.0-alpha.29";
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.0-alpha.29",
|
|
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.
|
|
42
|
-
"@arcjet/headers": "1.0.0-alpha.
|
|
43
|
-
"@arcjet/ip": "1.0.0-alpha.
|
|
44
|
-
"@arcjet/logger": "1.0.0-alpha.
|
|
45
|
-
"@arcjet/protocol": "1.0.0-alpha.
|
|
46
|
-
"@arcjet/transport": "1.0.0-alpha.
|
|
47
|
-
"arcjet": "1.0.0-alpha.
|
|
41
|
+
"@arcjet/env": "1.0.0-alpha.29",
|
|
42
|
+
"@arcjet/headers": "1.0.0-alpha.29",
|
|
43
|
+
"@arcjet/ip": "1.0.0-alpha.29",
|
|
44
|
+
"@arcjet/logger": "1.0.0-alpha.29",
|
|
45
|
+
"@arcjet/protocol": "1.0.0-alpha.29",
|
|
46
|
+
"@arcjet/transport": "1.0.0-alpha.29",
|
|
47
|
+
"arcjet": "1.0.0-alpha.29"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@arcjet/eslint-config": "1.0.0-alpha.
|
|
51
|
-
"@arcjet/rollup-config": "1.0.0-alpha.
|
|
52
|
-
"@arcjet/tsconfig": "1.0.0-alpha.
|
|
50
|
+
"@arcjet/eslint-config": "1.0.0-alpha.29",
|
|
51
|
+
"@arcjet/rollup-config": "1.0.0-alpha.29",
|
|
52
|
+
"@arcjet/tsconfig": "1.0.0-alpha.29",
|
|
53
53
|
"@jest/globals": "29.7.0",
|
|
54
54
|
"@types/node": "20.12.12",
|
|
55
|
-
"@rollup/wasm-node": "4.
|
|
56
|
-
"bun-types": "1.1.
|
|
55
|
+
"@rollup/wasm-node": "4.27.3",
|
|
56
|
+
"bun-types": "1.1.34",
|
|
57
57
|
"jest": "29.7.0",
|
|
58
|
-
"typescript": "5.6.
|
|
58
|
+
"typescript": "5.6.3"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|