Socket
Socket
Sign inDemoInstall

cfenv

Package Overview
Dependencies
Maintainers
1
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 0.2.0 to 1.0.0

9

lib/cfenv.js

@@ -130,2 +130,11 @@ // Generated by CoffeeScript 1.7.1

AppEnv.prototype.getServiceCreds = function(spec) {
var service;
service = this.getService(spec);
if (service == null) {
return null;
}
return service.credentials || {};
};
return AppEnv;

@@ -132,0 +141,0 @@

10

package.json

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

"description": "easy access to your Cloud Foundry application environment",
"version": "0.2.0",
"version": "1.0.0",
"author": "pmuellr",

@@ -15,11 +15,11 @@ "license": "Apache-2.0",

"dependencies": {
"js-yaml": "3.0.x",
"js-yaml": "3.2.x",
"ports": "1.1.x",
"underscore": "1.6.x"
"underscore": "1.7.x"
},
"devDependencies": {
"coffee-script": "1.7.x",
"mocha": "1.19.x",
"coffee-script": "1.8.x",
"mocha": "1.21.x",
"expect.js": "0.3.x"
}
}

@@ -112,2 +112,3 @@ cfenv - easy access to your Cloud Foundry application environment

* `appEnv.getServiceURL(spec, replacements)`
* `appEnv.getServiceCreds(spec)`

@@ -198,3 +199,3 @@ If no value can be determined for `port`, and the `name` property on the

`appEnv.getServiceURL(spec, replacements)`
**`appEnv.getServiceURL(spec, replacements)`**
--------------------------------------------------------------------------------

@@ -270,3 +271,18 @@

**`appEnv.getServiceCreds(spec)`**
--------------------------------------------------------------------------------
Returns the `credentials` object of a service by name.
The `spec` parameter is the same as that used by the `appEnv.getServiceURL()`
method. If there is no service that matches the `spec` parameter, this method
will return `null`.
If there is a service that matches the `spec` parameter, the value of it's
`credentials` property will be returned. If for some reason, there is no
`credentials` property on the service, an empty object - `{}` - will be
returned.
testing with Cloud Foundry

@@ -273,0 +289,0 @@ ================================================================================

@@ -45,3 +45,3 @@ # sample environmental data

## `cf-env.getCore()`
## `cfenv.getAppEnv()`

@@ -107,6 +107,7 @@ {

],
"url": "https://<cf-host>.<cf-domain>"
"url": "https://<cf-host>.<cf-domain>",
"isLocal": false
}
## `cf-env.getServices`
## `appEnv.getServices()`

@@ -113,0 +114,0 @@ {

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