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

@lab009/magma-config

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lab009/magma-config - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

12

envVars.js

@@ -30,11 +30,7 @@ /**

// e.g. /projects/.env.staging
ifElse(DEPLOYMENT)(
path.resolve(appRootDir.get(), `${envFile}.${DEPLOYMENT}`)
),
ifElse(DEPLOYMENT)(path.resolve(appRootDir.get(), `${envFile}.${DEPLOYMENT}`)),
])
// Find the first env file path match.
const envFilePath = envFileResolutionOrder.find(filePath =>
fs.existsSync(filePath)
)
const envFilePath = envFileResolutionOrder.find(filePath => fs.existsSync(filePath))

@@ -77,5 +73,3 @@ // If we found an env file match the register it.

function bool(name, defaultVal) {
return process.env[name]
? process.env[name] === 'true' || process.env[name] === '1'
: defaultVal
return process.env[name] ? process.env[name] === 'true' || process.env[name] === '1' : defaultVal
}

@@ -82,0 +76,0 @@

@@ -44,6 +44,3 @@ /**

if (
typeof window !== 'undefined' &&
typeof window.__CLIENT_CONFIG__ === 'object'
) {
if (typeof window !== 'undefined' && typeof window.__CLIENT_CONFIG__ === 'object') {
configCache = window.__CLIENT_CONFIG__

@@ -105,6 +102,3 @@ } else {

// This "if" block gets stripped away by webpack for production builds.
if (
process.env.BUILD_FLAG_IS_DEV === 'true' &&
process.env.BUILD_FLAG_IS_CLIENT === 'true'
) {
if (process.env.BUILD_FLAG_IS_DEV === 'true' && process.env.BUILD_FLAG_IS_CLIENT === 'true') {
throw new Error(

@@ -111,0 +105,0 @@ `${errorMessage} We have noticed that you are trying to access this configuration value from the client bundle (i.e. code that will be executed in a browser). For configuration values to be exposed to the client bundle you must ensure that the path is added to the client configuration filter in the project configuration values file.`

{
"name": "@lab009/magma-config",
"version": "1.1.5",
"version": "1.1.6",
"description": "Config for Magma.",

@@ -18,11 +18,11 @@ "repository": "lab009/magma",

"dependencies": {
"@lab009/magma-utils": "1.0.6",
"@lab009/magma-utils": "1.0.7",
"app-root-dir": "1.0.2",
"dotenv": "4.0.0",
"fs-extra": "3.0.1",
"serialize-javascript": "1.3.0"
"fs-extra": "4.0.0",
"serialize-javascript": "1.4.0"
},
"devDependencies": {
"react": "15.5.4"
"react": "15.6.1"
}
}

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