@arcjet/astro 1.0.0-beta.2 → 1.0.0-beta.4

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 (2) hide show
  1. package/internal.js +4 -2
  2. package/package.json +15 -14
package/internal.js CHANGED
@@ -46,7 +46,7 @@ function createRemoteClient(options) {
46
46
  // Transport is the HTTP client that the client uses to make requests.
47
47
  const transport = createTransport(url);
48
48
  const sdkStack = "ASTRO";
49
- const sdkVersion = "1.0.0-beta.2";
49
+ const sdkVersion = "1.0.0-beta.4";
50
50
  return createClient({
51
51
  transport,
52
52
  baseUrl: url,
@@ -70,6 +70,9 @@ function createArcjetClient(options) {
70
70
  : new Logger({
71
71
  level: logLevel(env),
72
72
  });
73
+ if (isDevelopment(process.env)) {
74
+ log.warn("Arcjet will use 127.0.0.1 when missing public IP address in development mode");
75
+ }
73
76
  function toArcjetRequest(request, props) {
74
77
  const clientAddress = Reflect.get(request, ipSymbol);
75
78
  if (!clientAddress) {
@@ -87,7 +90,6 @@ function createArcjetClient(options) {
87
90
  // If the `ip` is empty but we're in development mode, we default the IP
88
91
  // so the request doesn't fail.
89
92
  if (isDevelopment(env)) {
90
- log.warn("Using 127.0.0.1 as IP address in development mode");
91
93
  ip = "127.0.0.1";
92
94
  }
93
95
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/astro",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "Arcjet SDK integration for Astro",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://arcjet.com",
@@ -37,25 +37,26 @@
37
37
  "test": "node --test --experimental-test-coverage"
38
38
  },
39
39
  "dependencies": {
40
- "@arcjet/env": "1.0.0-beta.2",
41
- "@arcjet/headers": "1.0.0-beta.2",
42
- "@arcjet/ip": "1.0.0-beta.2",
43
- "@arcjet/logger": "1.0.0-beta.2",
44
- "@arcjet/protocol": "1.0.0-beta.2",
45
- "@arcjet/transport": "1.0.0-beta.2",
46
- "arcjet": "1.0.0-beta.2"
40
+ "@arcjet/env": "1.0.0-beta.4",
41
+ "@arcjet/headers": "1.0.0-beta.4",
42
+ "@arcjet/ip": "1.0.0-beta.4",
43
+ "@arcjet/logger": "1.0.0-beta.4",
44
+ "@arcjet/protocol": "1.0.0-beta.4",
45
+ "@arcjet/transport": "1.0.0-beta.4",
46
+ "arcjet": "1.0.0-beta.4"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "astro": "^5"
50
50
  },
51
51
  "devDependencies": {
52
- "@arcjet/eslint-config": "1.0.0-beta.2",
53
- "@arcjet/rollup-config": "1.0.0-beta.2",
54
- "@arcjet/tsconfig": "1.0.0-beta.2",
55
- "@rollup/wasm-node": "4.34.2",
56
- "astro": "5.2.5",
52
+ "@arcjet/eslint-config": "1.0.0-beta.4",
53
+ "@arcjet/rollup-config": "1.0.0-beta.4",
54
+ "@arcjet/tsconfig": "1.0.0-beta.4",
55
+ "@rollup/wasm-node": "4.35.0",
56
+ "astro": "5.5.2",
57
+ "eslint": "9.22.0",
57
58
  "expect": "29.7.0",
58
- "typescript": "5.7.3"
59
+ "typescript": "5.8.2"
59
60
  },
60
61
  "publishConfig": {
61
62
  "access": "public",