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

@thinkmill/devops-env-vars

Package Overview
Dependencies
Maintainers
9
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thinkmill/devops-env-vars - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.npmignore

10

index.js

@@ -89,7 +89,9 @@ /*

const serverIp = getServerIp();
var envRtn = 'development';
Object.keys(VPC_IP_RANGES).forEach(cidr => {
const cidrEnv = VPC_IP_RANGES[cidr];
if (new Netmask(cidr).contains(serverIp) && supportedEnvs.includes(cidrEnv)) {
debug(`APP_ENV determined from server IP as ${chalk.cyan(processAppEnv)} (${chalk.green(serverIp)} is within ${chalk.green(cidr)})`);
return cidrEnv;
debug(`APP_ENV determined from server IP as ${chalk.cyan(cidrEnv)} (${chalk.green(serverIp)} is within ${chalk.green(cidr)})`);
envRtn = cidrEnv;
}

@@ -99,4 +101,4 @@ });

// Default to development
debug(`APP_ENV defaulting to ${chalk.cyan('development')}`);
return 'development';
debug(`APP_ENV returning as ${chalk.cyan(envRtn)}`);
return envRtn;
}

@@ -103,0 +105,0 @@

3

package.json
{
"name": "@thinkmill/devops-env-vars",
"version": "0.0.1",
"version": "0.0.2",
"description": "Helper functions that encapsulate our treatment of environment vars for KeystoneJS apps",

@@ -14,3 +14,2 @@ "main": "index.js",

"author": "John Molomby <john@thinkmill.com.au>",
"license": "ISC",
"bugs": {

@@ -17,0 +16,0 @@ "url": "https://github.com/Thinkmill/devops-env-vars/issues"

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