@arcjet/node 1.0.0-beta.6 → 1.0.0-beta.8
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 +4 -3
- package/package.json +14 -14
package/index.js
CHANGED
|
@@ -11,8 +11,6 @@ import { readBody } from '@arcjet/body';
|
|
|
11
11
|
// An object with getters that access the `process.env.SOMEVAR` values directly.
|
|
12
12
|
// This allows bundlers to replace the dot-notation access with string literals
|
|
13
13
|
// while still allowing dynamic access in runtime environments.
|
|
14
|
-
// WARNING: This is fragile because any time we add a new key to `Env`, we need
|
|
15
|
-
// to add another getter here.
|
|
16
14
|
const env = {
|
|
17
15
|
get FLY_APP_NAME() {
|
|
18
16
|
return process.env.FLY_APP_NAME;
|
|
@@ -20,6 +18,9 @@ const env = {
|
|
|
20
18
|
get VERCEL() {
|
|
21
19
|
return process.env.VERCEL;
|
|
22
20
|
},
|
|
21
|
+
get RENDER() {
|
|
22
|
+
return process.env.RENDER;
|
|
23
|
+
},
|
|
23
24
|
get MODE() {
|
|
24
25
|
return process.env.MODE;
|
|
25
26
|
},
|
|
@@ -63,7 +64,7 @@ function createRemoteClient(options) {
|
|
|
63
64
|
// Transport is the HTTP client that the client uses to make requests.
|
|
64
65
|
const transport = createTransport(url);
|
|
65
66
|
const sdkStack = "NODEJS";
|
|
66
|
-
const sdkVersion = "1.0.0-beta.
|
|
67
|
+
const sdkVersion = "1.0.0-beta.8";
|
|
67
68
|
return createClient({
|
|
68
69
|
transport,
|
|
69
70
|
baseUrl: url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcjet/node",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"description": "Arcjet SDK for Node.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://arcjet.com",
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
"test": "node --test --experimental-test-coverage"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@arcjet/env": "1.0.0-beta.
|
|
43
|
-
"@arcjet/headers": "1.0.0-beta.
|
|
44
|
-
"@arcjet/ip": "1.0.0-beta.
|
|
45
|
-
"@arcjet/logger": "1.0.0-beta.
|
|
46
|
-
"@arcjet/protocol": "1.0.0-beta.
|
|
47
|
-
"@arcjet/transport": "1.0.0-beta.
|
|
48
|
-
"@arcjet/body": "1.0.0-beta.
|
|
49
|
-
"arcjet": "1.0.0-beta.
|
|
42
|
+
"@arcjet/env": "1.0.0-beta.8",
|
|
43
|
+
"@arcjet/headers": "1.0.0-beta.8",
|
|
44
|
+
"@arcjet/ip": "1.0.0-beta.8",
|
|
45
|
+
"@arcjet/logger": "1.0.0-beta.8",
|
|
46
|
+
"@arcjet/protocol": "1.0.0-beta.8",
|
|
47
|
+
"@arcjet/transport": "1.0.0-beta.8",
|
|
48
|
+
"@arcjet/body": "1.0.0-beta.8",
|
|
49
|
+
"arcjet": "1.0.0-beta.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@arcjet/eslint-config": "1.0.0-beta.
|
|
53
|
-
"@arcjet/rollup-config": "1.0.0-beta.
|
|
54
|
-
"@arcjet/tsconfig": "1.0.0-beta.
|
|
52
|
+
"@arcjet/eslint-config": "1.0.0-beta.8",
|
|
53
|
+
"@arcjet/rollup-config": "1.0.0-beta.8",
|
|
54
|
+
"@arcjet/tsconfig": "1.0.0-beta.8",
|
|
55
55
|
"@types/node": "18.18.0",
|
|
56
|
-
"@rollup/wasm-node": "4.
|
|
57
|
-
"eslint": "9.
|
|
56
|
+
"@rollup/wasm-node": "4.41.1",
|
|
57
|
+
"eslint": "9.27.0",
|
|
58
58
|
"expect": "29.7.0",
|
|
59
59
|
"typescript": "5.8.3"
|
|
60
60
|
},
|