@arcjet/env
Advanced tools
Comparing version 1.0.0-alpha.27 to 1.0.0-alpha.28
export type Env = { | ||
[key: string]: unknown; | ||
FLY_APP_NAME?: string; | ||
VERCEL?: string; | ||
NODE_ENV?: string; | ||
@@ -10,3 +11,3 @@ ARCJET_KEY?: string; | ||
}; | ||
export declare function platform(env: Env): "fly-io" | undefined; | ||
export declare function platform(env: Env): "fly-io" | "vercel" | undefined; | ||
export declare function isDevelopment(env: Env): boolean; | ||
@@ -13,0 +14,0 @@ export declare function logLevel(env: Env): "debug" | "info" | "warn" | "error"; |
@@ -5,2 +5,5 @@ function platform(env) { | ||
} | ||
if (typeof env["VERCEL"] === "string" && env["VERCEL"] === "1") { | ||
return "vercel"; | ||
} | ||
} | ||
@@ -7,0 +10,0 @@ function isDevelopment(env) { |
export type Env = { | ||
[key: string]: unknown; | ||
FLY_APP_NAME?: string; | ||
VERCEL?: string; | ||
NODE_ENV?: string; | ||
@@ -15,2 +16,6 @@ ARCJET_KEY?: string; | ||
} | ||
if (typeof env["VERCEL"] === "string" && env["VERCEL"] === "1") { | ||
return "vercel" as const; | ||
} | ||
} | ||
@@ -17,0 +22,0 @@ |
{ | ||
"name": "@arcjet/env", | ||
"version": "1.0.0-alpha.27", | ||
"version": "1.0.0-alpha.28", | ||
"description": "Arcjet environment detection", | ||
@@ -44,9 +44,9 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@arcjet/eslint-config": "1.0.0-alpha.27", | ||
"@arcjet/rollup-config": "1.0.0-alpha.27", | ||
"@arcjet/tsconfig": "1.0.0-alpha.27", | ||
"@arcjet/eslint-config": "1.0.0-alpha.28", | ||
"@arcjet/rollup-config": "1.0.0-alpha.28", | ||
"@arcjet/tsconfig": "1.0.0-alpha.28", | ||
"@jest/globals": "29.7.0", | ||
"@rollup/wasm-node": "4.23.0", | ||
"@rollup/wasm-node": "4.24.0", | ||
"jest": "29.7.0", | ||
"typescript": "5.6.2" | ||
"typescript": "5.6.3" | ||
}, | ||
@@ -53,0 +53,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19937
157