New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ibm-watson/assistant-intermediate

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ibm-watson/assistant-intermediate - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

functions/searchDocs.js

20

app.js

@@ -21,3 +21,3 @@ /**

var bodyParser = require('body-parser'); // parser for post requests
var AssistantV2 = require('watson-developer-cloud/assistant/v2'); // watson sdk
var AssistantV2 = require('ibm-watson/assistant/v2'); // watson sdk

@@ -27,2 +27,5 @@ var Actions = require('./functions/actions');

var SearchDocs = require('./functions/searchDocs');
var searchDocs = new SearchDocs();
var BankFunctions = require('./functions/bankFunctions');

@@ -82,4 +85,2 @@ var bankFunctions = new BankFunctions();

//console.log(JSON.stringify(contextWithAcc, null, 2));
var textIn = '';

@@ -103,3 +104,3 @@

};
// Send the input to the assistant service

@@ -110,6 +111,9 @@ assistant.message(payload, function (err, data) {

}
actions.testForAction(data, req.body.session_id).then(function (d) {
return res.json(d);
}).catch(function (error) {
return res.json(error);
searchDocs.addDocs(data, function () {
actions.testForAction(data, req.body.session_id).then(function (d) {
return res.json(d);
}).catch(function (error) {
return res.json(error);
});
});

@@ -116,0 +120,0 @@ });

14

package.json
{
"name": "@ibm-watson/assistant-intermediate",
"description": "A simple Node.js based web app which shows how to use the Watson Assistant API to recognize user intents.",
"version": "2.1.0",
"version": "2.1.1",
"main": "server.js",

@@ -23,5 +23,5 @@ "scripts": {

"body-parser": "^1.18.3",
"dotenv": "^6.1.0",
"dotenv": "^6.2.0",
"express": "^4.16.4",
"watson-developer-cloud": "^3.13.1"
"ibm-watson": "4.1.0"
},

@@ -39,8 +39,8 @@ "publishConfig": {

"casperjs": "^1.1.4",
"codecov": "^3.1.0",
"eslint": "^5.8.0",
"jest": "^23.6.0",
"codecov": "^3.2.0",
"eslint": "^5.14.0",
"jest": "^24.1.0",
"phantomjs-prebuilt": "^2.1.16",
"supertest": "^3.3.0"
"supertest": "^3.4.2"
}
}

@@ -248,3 +248,3 @@ // The ConversationPanel module is designed to handle

'<br>' + ((res.body.length > 200) ? res.body.substring(0, 120) + '...' : res.body) +
((res.url !== null && res.url.length > 0) ? '<br><a href="' + res.url + '" target="_blank">' + res.url + '</a>': '') +
'<br><a href="docs/doc' + (i + 1)+ '.html" target="_blank">Full document</a>' +
'</div>';

@@ -251,0 +251,0 @@ }

@@ -154,7 +154,7 @@ <h1 align="center" style="border-bottom: none;">🚀 Watson Assistant (formerly Conversation) Sample Application</h1>

[demo_url]: https://assistant-intermediate.ng.bluemix.net/
[doc_intents]: (https://console.bluemix.net/docs/services/conversation/intents-entities.html#planning-your-entities)
[docs]: https://console.bluemix.net/docs/services/conversation/index.html
[docs_landing]: (https://console.bluemix.net/docs/services/conversation/index.html)
[doc_intents]: (https://cloud.ibm.com/docs/services/conversation/intents-entities.html#planning-your-entities)
[docs]: https://cloud.ibm.com/docs/services/assistant?topic=assistant-index
[docs_landing]: (https://cloud.ibm.com/docs/services/assistant?topic=assistant-index)
[node_link]: (http://nodejs.org/)
[npm_link]: (https://www.npmjs.com/)
[sign_up]: bluemix.net/registration
[sign_up]: cloud.ibm.com/registration

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