Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcjet/env

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/env - npm Package Compare versions

Comparing version 1.0.0-alpha.27 to 1.0.0-alpha.28

3

index.d.ts
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc