Skip to content

Commit 308bcfb

Browse files
committed
3.18.2 forced changes
1 parent 9d502b2 commit 308bcfb

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"qs": "6.x",
1212
"image-type": "^2.0.2",
1313
"watson-developer-cloud": "^3.18.2",
14+
"ibm-cloud-sdk-core": "^0.0.1",
1415
"word-count": "^0.2.2",
1516
"is-docx": "^0.0.3",
1617
"stream-to-array": "^2.3.0",

services/natural_language_classifier/v1.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,10 @@ module.exports = function(RED) {
143143
} else if ('string' === typeof msg.payload) {
144144
return Promise.resolve(null);
145145
}
146-
else {
147-
var p = node.openTemp()
148-
.then(function(info) {
149-
return node.streamFile(msg, config, info);
150-
});
151-
return p;
152-
}
146+
return node.openTemp()
147+
.then(function(info) {
148+
return node.streamFile(msg, config, info);
149+
});
153150
};
154151

155152
node.buildParams = function(msg, config, info, payloadData) {

services/speech_to_text/v1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function (RED) {
2828
iamutils = require('../../utilities/iam-utils'),
2929
sttutils = require('./stt-utils'),
3030
AuthV1 = require('watson-developer-cloud/authorization/v1'),
31-
//AuthIAMV1 = require('watson-developer-cloud/iam-token-manager/v1'),
31+
AuthIAMV1 = require('ibm-cloud-sdk-core/iam-token-manager/v1'),
3232
muteMode = true, discardMode = false, autoConnect = true,
3333
username = '', password = '', sUsername = '', sPassword = '',
3434
apikey = '', sApikey = '',
@@ -304,8 +304,8 @@ module.exports = function (RED) {
304304
// console.log('Creating token with endpoint ', endpoint);
305305
// tokenService = new AuthIAMV1.IamTokenManagerV1({iamApikey : apikey, iamUrl: endpoint});
306306

307-
//tokenService = new AuthIAMV1.IamTokenManagerV1({iamApikey : apikey});
308-
tokenService = new iamutils(apikey);
307+
tokenService = new AuthIAMV1.IamTokenManagerV1({iamApikey : apikey});
308+
//tokenService = new iamutils(apikey);
309309

310310
} else {
311311
tokenService = new AuthV1(stt.getCredentials());

0 commit comments

Comments
 (0)