@arcjet/bun 1.0.0-beta.15 → 1.0.0-beta.16

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 +9 -0
  2. package/index.js +3 -2
  3. package/package.json +13 -13
package/README.md CHANGED
@@ -95,6 +95,15 @@ export default {
95
95
  For more on how to configure Arcjet with Bun and how to protect Bun,
96
96
  see the [Arcjet Bun SDK reference][arcjet-reference-bun] on our website.
97
97
 
98
+ ## Test
99
+
100
+ This monorepo is tested with Node.js but this package targets Bun.
101
+ Run the tests from this package folder with:
102
+
103
+ ```sh
104
+ bun test
105
+ ```
106
+
98
107
  ## License
99
108
 
100
109
  [Apache License, Version 2.0][apache-license] © [Arcjet Labs, Inc.][arcjet]
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import * as core from 'arcjet';
1
2
  import core__default from 'arcjet';
2
3
  export * from 'arcjet';
3
4
  import findIp, { parseProxy } from '@arcjet/ip';
@@ -37,7 +38,7 @@ function createRemoteClient(options) {
37
38
  // Transport is the HTTP client that the client uses to make requests.
38
39
  const transport = createTransport(url);
39
40
  const sdkStack = "BUN";
40
- const sdkVersion = "1.0.0-beta.15";
41
+ const sdkVersion = "1.0.0-beta.16";
41
42
  return createClient({
42
43
  transport,
43
44
  baseUrl: url,
@@ -72,7 +73,7 @@ function arcjet(options) {
72
73
  const proxies = Array.isArray(options.proxies)
73
74
  ? options.proxies.map(parseProxy)
74
75
  : undefined;
75
- if (isDevelopment(process.env)) {
76
+ if (isDevelopment(env)) {
76
77
  log.warn("Arcjet will use 127.0.0.1 when missing public IP address in development mode");
77
78
  }
78
79
  function toArcjetRequest(request, props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/bun",
3
- "version": "1.0.0-beta.15",
3
+ "version": "1.0.0-beta.16",
4
4
  "description": "Arcjet SDK for Bun",
5
5
  "keywords": [
6
6
  "analyze",
@@ -45,20 +45,20 @@
45
45
  "test": "npm run build && npm run lint"
46
46
  },
47
47
  "dependencies": {
48
- "@arcjet/env": "1.0.0-beta.15",
49
- "@arcjet/headers": "1.0.0-beta.15",
50
- "@arcjet/ip": "1.0.0-beta.15",
51
- "@arcjet/logger": "1.0.0-beta.15",
52
- "@arcjet/protocol": "1.0.0-beta.15",
53
- "@arcjet/transport": "1.0.0-beta.15",
54
- "arcjet": "1.0.0-beta.15"
48
+ "@arcjet/env": "1.0.0-beta.16",
49
+ "@arcjet/headers": "1.0.0-beta.16",
50
+ "@arcjet/ip": "1.0.0-beta.16",
51
+ "@arcjet/logger": "1.0.0-beta.16",
52
+ "@arcjet/protocol": "1.0.0-beta.16",
53
+ "@arcjet/transport": "1.0.0-beta.16",
54
+ "arcjet": "1.0.0-beta.16"
55
55
  },
56
56
  "devDependencies": {
57
- "@arcjet/eslint-config": "1.0.0-beta.15",
58
- "@arcjet/rollup-config": "1.0.0-beta.15",
59
- "@rollup/wasm-node": "4.52.5",
60
- "bun-types": "1.3.1",
61
- "eslint": "9.38.0",
57
+ "@arcjet/eslint-config": "1.0.0-beta.16",
58
+ "@arcjet/rollup-config": "1.0.0-beta.16",
59
+ "@rollup/wasm-node": "4.54.0",
60
+ "bun-types": "1.3.5",
61
+ "eslint": "9.39.2",
62
62
  "typescript": "5.9.3",
63
63
  "undici-types": "7.15.0"
64
64
  },