watson-developer-cloud
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -42,7 +42,8 @@ 'use strict'; | ||
* | ||
* @param {String} name | ||
* @returns {{api_key: String|undefined}} | ||
*/ | ||
BaseService.prototype.getCredentialsFromEnvironment = function() { | ||
BaseServiceAlchemy.prototype.getCredentialsFromEnvironment = function(name) { | ||
return { | ||
api_key: process.env[this.name.toUpperCase() + '_API_KEY'] | ||
api_key: process.env[name.toUpperCase() + '_API_KEY'] | ||
} | ||
@@ -49,0 +50,0 @@ }; |
{ | ||
"name": "watson-developer-cloud", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Client library to use the IBM Watson Services and AlchemyAPI", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
@@ -10,4 +10,3 @@ Watson Developer Cloud Node.js SDK | ||
Node client library to use the [Watson Developer Cloud][wdc] services, a collection of REST | ||
APIs and SDKs that use cognitive computing to solve complex problems. | ||
Node.js client library to use the [Watson Developer Cloud][wdc] services, a collection of APIs that use cognitive computing to solve complex problems. | ||
@@ -14,0 +13,0 @@ ## Table of Contents |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
232963
4832
663