@unstoppabledomains/config
Advanced tools
Comparing version 0.0.8-experimental.2 to 0.0.8-experimental.3
@@ -19,11 +19,2 @@ import merge from 'lodash/merge'; | ||
} | ||
// To support Jest plugins (e.g. for Jest VSCode extension running tests in the background) | ||
// https://jestjs.io/docs/environment-variables | ||
if (process.env.NODE_ENV === 'test') { | ||
return 'test'; | ||
} | ||
// if running in next.js, require a valid env to be specified | ||
if (Object.keys(process.env).find(k => k.toLowerCase().startsWith('next_public'))) { | ||
throw new Error('APP_ENV must be set to development, test, e2e, staging, or production'); | ||
} | ||
// in plain node.js, default to development if no env specified | ||
@@ -30,0 +21,0 @@ if (process.env.NODE_ENV) { |
{ | ||
"name": "@unstoppabledomains/config", | ||
"version": "0.0.8-experimental.2", | ||
"version": "0.0.8-experimental.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Configuration variables for Unstoppable Domains environments", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
3
29019
615