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

cfenv

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cfenv - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

lib/cfenv.js

@@ -218,4 +218,4 @@ // Generated by CoffeeScript 1.12.7

getPort = function(appEnv) {
var port, portString;
portString = process.env.PORT || process.env.CF_INSTANCE_PORT || process.env.VCAP_APP_PORT;
var port, portString, ref;
portString = process.env.PORT || process.env.CF_INSTANCE_PORT || process.env.VCAP_APP_PORT || (appEnv != null ? (ref = appEnv.app) != null ? ref.port : void 0 : void 0);
if (portString == null) {

@@ -222,0 +222,0 @@ if (appEnv.name == null) {

@@ -5,3 +5,3 @@ {

"description": "easy access to your Cloud Foundry application environment",
"version": "1.1.0",
"version": "1.2.0",
"author": "pmuellr",

@@ -23,3 +23,3 @@ "license": "Apache-2.0",

"ports": "1.1.x",
"underscore": "1.8.x"
"underscore": "1.9.x"
},

@@ -26,0 +26,0 @@ "devDependencies": {

@@ -104,4 +104,6 @@ cfenv - easy access to your Cloud Foundry application environment

This function returns an object with the following properties:
#### return value
The `getAppEnv()` function returns an object with the following properties:
* `app`: object version of `VCAP_APPLICATION` env var

@@ -327,2 +329,12 @@ * `services`: object version of `VCAP_SERVICES` env var

**1.2.0** - 2019/02/21
- use vcapFile port value if available - [pr #36][]
- upgrade underscore from 1.8.x to 1.9.x - [pr #37][]
- use `random-route:` instead of `${random-word}` in sample manifest - [pr #38][]
[pr #36]: https://github.com/cloudfoundry-community/node-cfenv/pull/36
[pr #37]: https://github.com/cloudfoundry-community/node-cfenv/pull/37
[pr #38]: https://github.com/cloudfoundry-community/node-cfenv/pull/38
**1.1.0** - 2018/04/18

@@ -329,0 +341,0 @@

{
"application": {
"port": 42
},
"services": {

@@ -3,0 +6,0 @@ "service-a-label": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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