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

@axah/env-utils

Package Overview
Dependencies
Maintainers
7
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axah/env-utils - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

lib/parse-env-variable/utils.js

@@ -23,2 +23,6 @@ "use strict";

const getDevValueOrThrowError = (key, valueInDev) => {
if (!process.env.NODE_ENV) {
throw new Error('The environment variable NODE_ENV is not set. The package axah/env-utils only works with a defined NODE_ENV.');
}
if (process.env.NODE_ENV !== 'development') {

@@ -28,6 +32,2 @@ throw new Error(`The environment variable ${key} has not been defined or is empty.`);

if (valueInDev === undefined) {
throw new Error(`The dev-environment variable ${key} has not been defined.`);
}
return valueInDev;

@@ -34,0 +34,0 @@ };

{
"name": "@axah/env-utils",
"version": "1.1.0",
"version": "1.1.1",
"main": "lib/main.js",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",

Sorry, the diff of this file is not supported yet

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