Comparing version 1.1.0 to 1.2.0
@@ -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
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
78362
361
388
+ Addedunderscore@1.9.2(transitive)
- Removedunderscore@1.8.3(transitive)
Updatedunderscore@1.9.x