From baac278c6ce13f56e008a10d36955f7d0342bfdf Mon Sep 17 00:00:00 2001 From: Scott Gellock Date: Tue, 26 May 2020 08:15:38 -0700 Subject: [PATCH] r9 dependency updates (#2428) * update dependencies, fix lint errors * update dependencies - update all npm dependencies to be current - fix any lint errors - update README.md files to suggest Emulator 4.9.0 --- .../01.console-echo/.eslintrc.js | 1 + .../01.console-echo/consoleAdapter.js | 56 +++++++-------- .../01.console-echo/package.json | 10 +-- .../03.welcome-users/.eslintrc.js | 1 + .../03.welcome-users/README.md | 2 +- .../03.welcome-users/package.json | 12 ++-- .../05.multi-turn-prompt/.eslintrc.js | 1 + .../05.multi-turn-prompt/README.md | 2 +- .../05.multi-turn-prompt/package.json | 12 ++-- .../06.using-cards/.eslintrc.js | 1 + .../06.using-cards/README.md | 2 +- .../06.using-cards/package.json | 12 ++-- .../07.using-adaptive-cards/.eslintrc.js | 1 + .../07.using-adaptive-cards/README.md | 2 +- .../07.using-adaptive-cards/package.json | 16 ++--- .../08.suggested-actions/.eslintrc.js | 1 + .../08.suggested-actions/README.md | 2 +- .../08.suggested-actions/package.json | 12 ++-- .../11.qnamaker/.eslintrc.js | 1 + .../javascript_nodejs/11.qnamaker/README.md | 2 +- .../11.qnamaker/bots/QnABot.js | 18 +++-- .../javascript_nodejs/11.qnamaker/index.js | 6 +- .../11.qnamaker/package.json | 16 ++--- .../14.nlp-with-dispatch/.eslintrc.js | 3 +- .../14.nlp-with-dispatch/README.md | 2 +- .../14.nlp-with-dispatch/package.json | 12 ++-- .../15.handling-attachments/.eslintrc.js | 3 +- .../15.handling-attachments/README.md | 2 +- .../15.handling-attachments/package.json | 14 ++-- .../16.proactive-messages/.eslintrc.js | 1 + .../16.proactive-messages/README.md | 2 +- .../16.proactive-messages/package.json | 14 ++-- .../17.multilingual-bot/.eslintrc.js | 1 + .../17.multilingual-bot/README.md | 2 +- .../bots/multilingualBot.js | 1 - .../17.multilingual-bot/package.json | 12 ++-- .../18.bot-authentication/.eslintrc.js | 1 + .../18.bot-authentication/README.md | 2 +- .../18.bot-authentication/package.json | 16 ++--- .../19.custom-dialogs/.eslintrc.js | 1 + .../19.custom-dialogs/README.md | 2 +- .../19.custom-dialogs/package.json | 12 ++-- .../21.corebot-app-insights/.eslintrc.js | 5 +- .../21.corebot-app-insights/README.md | 4 +- .../bots/dialogAndWelcomeBot.js | 1 - .../21.corebot-app-insights/index.js | 2 +- .../21.corebot-app-insights/package.json | 18 ++--- .../23.facebook-events/.eslintrc.js | 1 + .../23.facebook-events/package.json | 12 ++-- .../.eslintrc.js | 1 + .../package.json | 12 ++-- .../25.message-reaction/.eslintrc.js | 1 + .../25.message-reaction/package.json | 16 ++--- .../40.timex-resolution/.eslintrc.js | 1 + .../40.timex-resolution/package.json | 14 ++-- .../43.complex-dialog/.eslintrc.js | 1 + .../43.complex-dialog/package.json | 12 ++-- .../44.prompt-for-user-input/.eslintrc.js | 1 + .../44.prompt-for-user-input/README.md | 2 +- .../44.prompt-for-user-input/package.json | 14 ++-- .../45.state-management/.eslintrc.js | 1 + .../45.state-management/README.md | 2 +- .../45.state-management/package.json | 12 ++-- .../46.teams-auth/.eslintrc.js | 1 + .../46.teams-auth/package.json | 12 ++-- .../47.inspection/.eslintrc.js | 3 +- .../javascript_nodejs/47.inspection/README.md | 2 +- .../47.inspection/package.json | 12 ++-- .../.eslintrc.js | 3 +- .../Helpers/dialogHelper.js | 1 + .../48.qnamaker-active-learning-bot/README.md | 2 +- .../package.json | 16 ++--- .../49.qnamaker-all-features/.eslintrc.js | 3 +- .../49.qnamaker-all-features/README.md | 4 +- .../dialogs/qnamakerBaseDialog.js | 4 -- .../dialogs/rootDialog.js | 4 +- .../49.qnamaker-all-features/index.js | 4 +- .../49.qnamaker-all-features/package.json | 12 ++-- .../.eslintrc.js | 1 + .../package.json | 18 ++--- .../.eslintrc.js | 1 + .../package.json | 16 ++--- .../.eslintrc.js | 1 + ...sMessagingExtensionsSearchAuthConfigBot.js | 2 +- .../package.json | 18 ++--- .../.eslintrc.js | 1 + .../package.json | 16 ++--- .../54.teams-task-module/.eslintrc.js | 1 + .../bots/teamsTaskModuleBot.js | 2 +- .../54.teams-task-module/package.json | 16 ++--- .../55.teams-link-unfurling/.eslintrc.js | 1 + .../bots/teamsLinkUnfurlingBot.js | 10 +-- .../55.teams-link-unfurling/package.json | 16 ++--- .../56.teams-file-upload/.eslintrc.js | 1 + .../bots/teamsFileUploadBot.js | 12 ++-- .../56.teams-file-upload/package.json | 18 ++--- .../57.teams-conversation-bot/.eslintrc.js | 1 + .../bots/teamsConversationBot.js | 71 +++++++++---------- .../57.teams-conversation-bot/package.json | 16 ++--- .../.eslintrc.js | 1 + .../package.json | 16 ++--- .../70.qnamaker-multiturn-sample/.eslintrc.js | 3 +- .../70.qnamaker-multiturn-sample/README.md | 70 +++++++++--------- .../dialogs/qnamakerMultiturnDialog.js | 3 +- .../70.qnamaker-multiturn-sample/index.js | 2 +- .../70.qnamaker-multiturn-sample/package.json | 12 ++-- .../utils/qnaCardBuilder.js | 2 +- .../80.skills-simple-bot-to-bot/README.md | 2 +- .../echo-skill-bot/.eslintrc.js | 3 +- .../echo-skill-bot/package.json | 12 ++-- .../simple-root-bot/.eslintrc.js | 3 +- .../simple-root-bot/package.json | 62 ++++++++-------- .../81.skills-skilldialog/README.md | 2 +- .../dialogRootBot/.eslintrc.js | 5 +- .../middleware/loggerMiddleware.js | 2 +- .../dialogRootBot/package.json | 16 ++--- .../dialogSkillBot/.eslintrc.js | 5 +- .../dialogSkillBot/package.json | 14 ++-- .../05.multi-turn-prompt/.eslintrc.js | 1 + .../05.multi-turn-prompt/README.md | 4 +- .../dialogs/userProfileDialog.js | 10 +-- .../05.multi-turn-prompt/index.js | 2 +- .../05.multi-turn-prompt/package.json | 12 ++-- .../06.using-cards/.eslintrc.js | 1 + .../06.using-cards/README.md | 4 +- .../06.using-cards/dialogs/mainDialog.js | 6 +- .../06.using-cards/index.js | 4 +- .../06.using-cards/package.json | 12 ++-- .../13.core-bot/.eslintrc.js | 5 +- .../language-generation/13.core-bot/README.md | 4 +- .../13.core-bot/bots/dialogAndWelcomeBot.js | 18 ++--- .../13.core-bot/dialogs/mainDialog.js | 11 ++- .../language-generation/13.core-bot/index.js | 6 +- .../13.core-bot/package.json | 18 ++--- .../20.custom-functions/.eslintrc.js | 3 +- .../20.custom-functions/README.md | 2 +- .../20.custom-functions/bot.js | 27 ++++--- .../20.custom-functions/index.js | 2 +- .../20.custom-functions/package.json | 12 ++-- 139 files changed, 587 insertions(+), 559 deletions(-) diff --git a/samples/javascript_nodejs/01.console-echo/.eslintrc.js b/samples/javascript_nodejs/01.console-echo/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/01.console-echo/.eslintrc.js +++ b/samples/javascript_nodejs/01.console-echo/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/01.console-echo/consoleAdapter.js b/samples/javascript_nodejs/01.console-echo/consoleAdapter.js index a67ec8788a..e68f03d02b 100644 --- a/samples/javascript_nodejs/01.console-echo/consoleAdapter.js +++ b/samples/javascript_nodejs/01.console-echo/consoleAdapter.js @@ -5,9 +5,9 @@ // @ts-check -const botbuilderCore = require("botbuilder-core"); +const botbuilderCore = require('botbuilder-core'); const { BotAdapter, TurnContext, ActivityTypes } = botbuilderCore; -const readline = require("readline"); +const readline = require('readline'); /** * Lets a user communicate with a bot from a console window. @@ -34,11 +34,11 @@ class ConsoleAdapter extends BotAdapter { super(); this.nextId = 0; this.reference = { - channelId: "console", - user: { id: "user", name: "User1" }, - bot: { id: "bot", name: "Bot" }, - conversation: { id: "convo1", name: "", isGroup: false }, - serviceUrl: "", + channelId: 'console', + user: { id: 'user', name: 'User1' }, + bot: { id: 'bot', name: 'Bot' }, + conversation: { id: 'convo1', name: '', isGroup: false }, + serviceUrl: '', ...reference }; } @@ -77,7 +77,7 @@ class ConsoleAdapter extends BotAdapter { output: process.stdout, terminal: false }); - rl.on("line", line => { + rl.on('line', line => { // Initialize activity const activity = TurnContext.applyConversationReference( { @@ -153,26 +153,26 @@ class ConsoleAdapter extends BotAdapter { responses.push({}); switch (activity.type) { - case "delay": - await this.sleep(activity.value); - break; - case ActivityTypes.Message: - if ( - activity.attachments && - activity.attachments.length > 0 - ) { - const append = - activity.attachments.length === 1 - ? `(1 attachment)` - : `(${activity.attachments.length} attachments)`; - this.print(`${activity.text} ${append}`); - } else { - this.print(activity.text || ""); - } - break; - default: - this.print(`[${activity.type}]`); - break; + case 'delay': + await this.sleep(activity.value); + break; + case ActivityTypes.Message: + if ( + activity.attachments && + activity.attachments.length > 0 + ) { + const append = + activity.attachments.length === 1 + ? '(1 attachment)' + : `(${ activity.attachments.length } attachments)`; + this.print(`${ activity.text } ${ append }`); + } else { + this.print(activity.text || ''); + } + break; + default: + this.print(`[${ activity.type }]`); + break; } } return responses; diff --git a/samples/javascript_nodejs/01.console-echo/package.json b/samples/javascript_nodejs/01.console-echo/package.json index 78bfdcc91b..b6d8a154e3 100644 --- a/samples/javascript_nodejs/01.console-echo/package.json +++ b/samples/javascript_nodejs/01.console-echo/package.json @@ -22,12 +22,12 @@ "readline": "^1.3.0" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/03.welcome-users/.eslintrc.js b/samples/javascript_nodejs/03.welcome-users/.eslintrc.js index 1c6ff1cba8..43b3d45dd2 100644 --- a/samples/javascript_nodejs/03.welcome-users/.eslintrc.js +++ b/samples/javascript_nodejs/03.welcome-users/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/03.welcome-users/README.md b/samples/javascript_nodejs/03.welcome-users/README.md index 71a317f42f..9975dc47de 100644 --- a/samples/javascript_nodejs/03.welcome-users/README.md +++ b/samples/javascript_nodejs/03.welcome-users/README.md @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/03.welcome-users/package.json b/samples/javascript_nodejs/03.welcome-users/package.json index 70224ad93f..6637219748 100644 --- a/samples/javascript_nodejs/03.welcome-users/package.json +++ b/samples/javascript_nodejs/03.welcome-users/package.json @@ -18,15 +18,15 @@ "dependencies": { "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/05.multi-turn-prompt/.eslintrc.js b/samples/javascript_nodejs/05.multi-turn-prompt/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/05.multi-turn-prompt/.eslintrc.js +++ b/samples/javascript_nodejs/05.multi-turn-prompt/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/05.multi-turn-prompt/README.md b/samples/javascript_nodejs/05.multi-turn-prompt/README.md index 3adc2914d6..c42692c207 100644 --- a/samples/javascript_nodejs/05.multi-turn-prompt/README.md +++ b/samples/javascript_nodejs/05.multi-turn-prompt/README.md @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/05.multi-turn-prompt/package.json b/samples/javascript_nodejs/05.multi-turn-prompt/package.json index 9362702a28..a611ef4a36 100644 --- a/samples/javascript_nodejs/05.multi-turn-prompt/package.json +++ b/samples/javascript_nodejs/05.multi-turn-prompt/package.json @@ -20,15 +20,15 @@ "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", "path": "^0.12.7", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/06.using-cards/.eslintrc.js b/samples/javascript_nodejs/06.using-cards/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/06.using-cards/.eslintrc.js +++ b/samples/javascript_nodejs/06.using-cards/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/06.using-cards/README.md b/samples/javascript_nodejs/06.using-cards/README.md index 775db3ebe5..5aed70579f 100644 --- a/samples/javascript_nodejs/06.using-cards/README.md +++ b/samples/javascript_nodejs/06.using-cards/README.md @@ -43,7 +43,7 @@ This bot has been created using [Microsoft Bot Framework][1], it shows how to cr [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/06.using-cards/package.json b/samples/javascript_nodejs/06.using-cards/package.json index caf64b0bac..9a7a64da36 100644 --- a/samples/javascript_nodejs/06.using-cards/package.json +++ b/samples/javascript_nodejs/06.using-cards/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/07.using-adaptive-cards/.eslintrc.js b/samples/javascript_nodejs/07.using-adaptive-cards/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/07.using-adaptive-cards/.eslintrc.js +++ b/samples/javascript_nodejs/07.using-adaptive-cards/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/07.using-adaptive-cards/README.md b/samples/javascript_nodejs/07.using-adaptive-cards/README.md index 3648a61315..bfe29db192 100644 --- a/samples/javascript_nodejs/07.using-adaptive-cards/README.md +++ b/samples/javascript_nodejs/07.using-adaptive-cards/README.md @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/07.using-adaptive-cards/package.json b/samples/javascript_nodejs/07.using-adaptive-cards/package.json index 55eaaa1292..01b3487935 100644 --- a/samples/javascript_nodejs/07.using-adaptive-cards/package.json +++ b/samples/javascript_nodejs/07.using-adaptive-cards/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/08.suggested-actions/.eslintrc.js b/samples/javascript_nodejs/08.suggested-actions/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/08.suggested-actions/.eslintrc.js +++ b/samples/javascript_nodejs/08.suggested-actions/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/08.suggested-actions/README.md b/samples/javascript_nodejs/08.suggested-actions/README.md index 7159d8144a..5e7f068363 100644 --- a/samples/javascript_nodejs/08.suggested-actions/README.md +++ b/samples/javascript_nodejs/08.suggested-actions/README.md @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/08.suggested-actions/package.json b/samples/javascript_nodejs/08.suggested-actions/package.json index 2c5fa963af..9a24f83459 100644 --- a/samples/javascript_nodejs/08.suggested-actions/package.json +++ b/samples/javascript_nodejs/08.suggested-actions/package.json @@ -18,15 +18,15 @@ "dependencies": { "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/11.qnamaker/.eslintrc.js b/samples/javascript_nodejs/11.qnamaker/.eslintrc.js index 1c6ff1cba8..43b3d45dd2 100644 --- a/samples/javascript_nodejs/11.qnamaker/.eslintrc.js +++ b/samples/javascript_nodejs/11.qnamaker/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/11.qnamaker/README.md b/samples/javascript_nodejs/11.qnamaker/README.md index 9aa48fcce2..f72bd5f922 100644 --- a/samples/javascript_nodejs/11.qnamaker/README.md +++ b/samples/javascript_nodejs/11.qnamaker/README.md @@ -59,7 +59,7 @@ QnA knowledge base setup and application configuration steps can be found [here] [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/11.qnamaker/bots/QnABot.js b/samples/javascript_nodejs/11.qnamaker/bots/QnABot.js index 78364f3b40..54e079a9e9 100644 --- a/samples/javascript_nodejs/11.qnamaker/bots/QnABot.js +++ b/samples/javascript_nodejs/11.qnamaker/bots/QnABot.js @@ -34,28 +34,26 @@ class QnABot extends ActivityHandler { // When a user sends a message, perform a call to the QnA Maker service to retrieve matching Question and Answer pairs. this.onMessage(async (context, next) => { if (!process.env.QnAKnowledgebaseId || !process.env.QnAEndpointKey || !process.env.QnAEndpointHostName) { - let unconfiguredQnaMessage = 'NOTE: \r\n' + + const unconfiguredQnaMessage = 'NOTE: \r\n' + 'QnA Maker is not configured. To enable all capabilities, add `QnAKnowledgebaseId`, `QnAEndpointKey` and `QnAEndpointHostName` to the .env file. \r\n' + - 'You may visit www.qnamaker.ai to create a QnA Maker knowledge base.' + 'You may visit www.qnamaker.ai to create a QnA Maker knowledge base.'; - await context.sendActivity(unconfiguredQnaMessage) - } - else { + await context.sendActivity(unconfiguredQnaMessage); + } else { console.log('Calling QnA Maker'); - + const qnaResults = await this.qnaMaker.getAnswers(context); - + // If an answer was received from QnA Maker, send the answer back to the user. if (qnaResults[0]) { await context.sendActivity(qnaResults[0].answer); - + // If no answers were returned from QnA Maker, reply with help. } else { await context.sendActivity('No QnA Maker answers were found.'); } - } - + // By calling next() you ensure that the next BotHandler is run. await next(); }); diff --git a/samples/javascript_nodejs/11.qnamaker/index.js b/samples/javascript_nodejs/11.qnamaker/index.js index bbcb20bd95..b2fc36cefe 100644 --- a/samples/javascript_nodejs/11.qnamaker/index.js +++ b/samples/javascript_nodejs/11.qnamaker/index.js @@ -46,8 +46,8 @@ adapter.onTurnError = async (context, error) => { await context.sendActivity(traceActivity); // Send a message to the user - await context.sendActivity(`The bot encountered an error or bug.`); - await context.sendActivity(`To continue to run this bot, please fix the bot source code.`); + await context.sendActivity('The bot encountered an error or bug.'); + await context.sendActivity('To continue to run this bot, please fix the bot source code.'); }; // Create the main dialog. @@ -57,7 +57,7 @@ const bot = new QnABot(); const server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function() { console.log(`\n${ server.name } listening to ${ server.url }`); - console.log(`\nGet Bot Framework Emulator: https://aka.ms/botframework-emulator`); + console.log('\nGet Bot Framework Emulator: https://aka.ms/botframework-emulator'); }); // Listen for incoming activities and route them to your bot main dialog. diff --git a/samples/javascript_nodejs/11.qnamaker/package.json b/samples/javascript_nodejs/11.qnamaker/package.json index 52823ea7e8..1a935003dd 100644 --- a/samples/javascript_nodejs/11.qnamaker/package.json +++ b/samples/javascript_nodejs/11.qnamaker/package.json @@ -18,16 +18,16 @@ "dependencies": { "botbuilder": "~4.9.0", "botbuilder-ai": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/14.nlp-with-dispatch/.eslintrc.js b/samples/javascript_nodejs/14.nlp-with-dispatch/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/14.nlp-with-dispatch/.eslintrc.js +++ b/samples/javascript_nodejs/14.nlp-with-dispatch/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/14.nlp-with-dispatch/README.md b/samples/javascript_nodejs/14.nlp-with-dispatch/README.md index dfb9686201..a5d97470c4 100644 --- a/samples/javascript_nodejs/14.nlp-with-dispatch/README.md +++ b/samples/javascript_nodejs/14.nlp-with-dispatch/README.md @@ -63,7 +63,7 @@ To learn how to configure Dispatch with multiple LUIS models and QnA Maker servi [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/14.nlp-with-dispatch/package.json b/samples/javascript_nodejs/14.nlp-with-dispatch/package.json index 675166d648..2b574fb6ae 100644 --- a/samples/javascript_nodejs/14.nlp-with-dispatch/package.json +++ b/samples/javascript_nodejs/14.nlp-with-dispatch/package.json @@ -21,15 +21,15 @@ "botbuilder-azure": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/15.handling-attachments/.eslintrc.js b/samples/javascript_nodejs/15.handling-attachments/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/15.handling-attachments/.eslintrc.js +++ b/samples/javascript_nodejs/15.handling-attachments/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/15.handling-attachments/README.md b/samples/javascript_nodejs/15.handling-attachments/README.md index 6276f92d81..e7512d6064 100644 --- a/samples/javascript_nodejs/15.handling-attachments/README.md +++ b/samples/javascript_nodejs/15.handling-attachments/README.md @@ -43,7 +43,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/15.handling-attachments/package.json b/samples/javascript_nodejs/15.handling-attachments/package.json index 69dd05e356..f193cd400a 100644 --- a/samples/javascript_nodejs/15.handling-attachments/package.json +++ b/samples/javascript_nodejs/15.handling-attachments/package.json @@ -16,18 +16,18 @@ "url": "https://github.com/Microsoft/BotBuilder-Samples.git" }, "dependencies": { - "axios": "^0.19.0", + "axios": "^0.19.2", "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/16.proactive-messages/.eslintrc.js b/samples/javascript_nodejs/16.proactive-messages/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/16.proactive-messages/.eslintrc.js +++ b/samples/javascript_nodejs/16.proactive-messages/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/16.proactive-messages/README.md b/samples/javascript_nodejs/16.proactive-messages/README.md index e54ea00cd7..ba1de8b222 100644 --- a/samples/javascript_nodejs/16.proactive-messages/README.md +++ b/samples/javascript_nodejs/16.proactive-messages/README.md @@ -52,7 +52,7 @@ all users who have previously messaged the bot. [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/16.proactive-messages/package.json b/samples/javascript_nodejs/16.proactive-messages/package.json index e383135b7c..9078fd2c9a 100644 --- a/samples/javascript_nodejs/16.proactive-messages/package.json +++ b/samples/javascript_nodejs/16.proactive-messages/package.json @@ -20,17 +20,17 @@ "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", "fetch-ponyfill": "^6.1.0", - "moment": "^2.24.0", + "moment": "^2.26.0", "path": "^0.12.7", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/17.multilingual-bot/.eslintrc.js b/samples/javascript_nodejs/17.multilingual-bot/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/17.multilingual-bot/.eslintrc.js +++ b/samples/javascript_nodejs/17.multilingual-bot/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/17.multilingual-bot/README.md b/samples/javascript_nodejs/17.multilingual-bot/README.md index 587d948896..e1e19f3af2 100644 --- a/samples/javascript_nodejs/17.multilingual-bot/README.md +++ b/samples/javascript_nodejs/17.multilingual-bot/README.md @@ -73,7 +73,7 @@ This sample **requires** prerequisites in order to run. [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/17.multilingual-bot/bots/multilingualBot.js b/samples/javascript_nodejs/17.multilingual-bot/bots/multilingualBot.js index b63c6633ce..b4f46ddc20 100644 --- a/samples/javascript_nodejs/17.multilingual-bot/bots/multilingualBot.js +++ b/samples/javascript_nodejs/17.multilingual-bot/bots/multilingualBot.js @@ -48,7 +48,6 @@ class MultilingualBot extends ActivityHandler { }); this.onMessage(async (context, next) => { - if (isLanguageChangeRequested(context.activity.text)) { const currentLang = context.activity.text.toLowerCase(); const lang = currentLang === englishEnglish || currentLang === spanishEnglish ? englishEnglish : englishSpanish; diff --git a/samples/javascript_nodejs/17.multilingual-bot/package.json b/samples/javascript_nodejs/17.multilingual-bot/package.json index 3669a06ffd..39adbc7c9d 100644 --- a/samples/javascript_nodejs/17.multilingual-bot/package.json +++ b/samples/javascript_nodejs/17.multilingual-bot/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "dotenv": "^8.2.0", "node-fetch": "^2.6.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/18.bot-authentication/.eslintrc.js b/samples/javascript_nodejs/18.bot-authentication/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/18.bot-authentication/.eslintrc.js +++ b/samples/javascript_nodejs/18.bot-authentication/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/18.bot-authentication/README.md b/samples/javascript_nodejs/18.bot-authentication/README.md index 3b0dce6591..36317e57fb 100644 --- a/samples/javascript_nodejs/18.bot-authentication/README.md +++ b/samples/javascript_nodejs/18.bot-authentication/README.md @@ -45,7 +45,7 @@ After Authentication has been configured via Azure Bot Service, you can test the [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/18.bot-authentication/package.json b/samples/javascript_nodejs/18.bot-authentication/package.json index 721d33c8f7..de1ce196fc 100644 --- a/samples/javascript_nodejs/18.bot-authentication/package.json +++ b/samples/javascript_nodejs/18.bot-authentication/package.json @@ -18,16 +18,16 @@ "dependencies": { "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/19.custom-dialogs/.eslintrc.js b/samples/javascript_nodejs/19.custom-dialogs/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/19.custom-dialogs/.eslintrc.js +++ b/samples/javascript_nodejs/19.custom-dialogs/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/19.custom-dialogs/README.md b/samples/javascript_nodejs/19.custom-dialogs/README.md index 287245b2c1..09beaf4a97 100644 --- a/samples/javascript_nodejs/19.custom-dialogs/README.md +++ b/samples/javascript_nodejs/19.custom-dialogs/README.md @@ -45,7 +45,7 @@ BotFramework provides a built-in base class called `Dialog`. By subclassing `Dia [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/19.custom-dialogs/package.json b/samples/javascript_nodejs/19.custom-dialogs/package.json index 4fb393571d..010b456708 100644 --- a/samples/javascript_nodejs/19.custom-dialogs/package.json +++ b/samples/javascript_nodejs/19.custom-dialogs/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/21.corebot-app-insights/.eslintrc.js b/samples/javascript_nodejs/21.corebot-app-insights/.eslintrc.js index fcc7331e71..40f81988db 100644 --- a/samples/javascript_nodejs/21.corebot-app-insights/.eslintrc.js +++ b/samples/javascript_nodejs/21.corebot-app-insights/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, @@ -14,6 +15,6 @@ module.exports = { "env": { "commonjs": true, "node": true, - "mocha": true + "mocha": true } }; \ No newline at end of file diff --git a/samples/javascript_nodejs/21.corebot-app-insights/README.md b/samples/javascript_nodejs/21.corebot-app-insights/README.md index 08837d44ec..3d7450333e 100644 --- a/samples/javascript_nodejs/21.corebot-app-insights/README.md +++ b/samples/javascript_nodejs/21.corebot-app-insights/README.md @@ -16,7 +16,7 @@ This sample **requires** prerequisites in order to run. ### Overview -This bot uses [LUIS](https://www.luis.ai), an AI based cognitive service, to implement language understanding +This bot uses [LUIS](https://www.luis.ai), an AI based cognitive service, to implement language understanding and [Application Insights](https://docs.microsoft.com/azure/azure-monitor/app/cloudservices), an extensible Application Performance Management (APM) service for web developers on multiple platforms. - [Node.js](https://nodejs.org) version 10.14 or higher @@ -76,7 +76,7 @@ Application Insights resource creation steps can be found [here](https://docs.mi [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/21.corebot-app-insights/bots/dialogAndWelcomeBot.js b/samples/javascript_nodejs/21.corebot-app-insights/bots/dialogAndWelcomeBot.js index 60b22721a3..6b2110acd6 100644 --- a/samples/javascript_nodejs/21.corebot-app-insights/bots/dialogAndWelcomeBot.js +++ b/samples/javascript_nodejs/21.corebot-app-insights/bots/dialogAndWelcomeBot.js @@ -26,4 +26,3 @@ class DialogAndWelcomeBot extends DialogBot { } module.exports.DialogAndWelcomeBot = DialogAndWelcomeBot; - diff --git a/samples/javascript_nodejs/21.corebot-app-insights/index.js b/samples/javascript_nodejs/21.corebot-app-insights/index.js index 9633429f48..af834c64fc 100644 --- a/samples/javascript_nodejs/21.corebot-app-insights/index.js +++ b/samples/javascript_nodejs/21.corebot-app-insights/index.js @@ -81,7 +81,7 @@ const userState = new UserState(memoryStorage); const { LuisAppId, LuisAPIKey, LuisAPIHostName } = process.env; const luisConfig = { applicationId: LuisAppId, endpointKey: LuisAPIKey, endpoint: `https://${ LuisAPIHostName }` }; -const luisRecognizer = new FlightBookingRecognizer(luisConfig, telemetryClient); +const luisRecognizer = new FlightBookingRecognizer(luisConfig, telemetryClient); // Create the main dialog. const bookingDialog = new BookingDialog(BOOKING_DIALOG); diff --git a/samples/javascript_nodejs/21.corebot-app-insights/package.json b/samples/javascript_nodejs/21.corebot-app-insights/package.json index 50af8eddc6..1636019570 100644 --- a/samples/javascript_nodejs/21.corebot-app-insights/package.json +++ b/samples/javascript_nodejs/21.corebot-app-insights/package.json @@ -21,15 +21,17 @@ "botbuilder-ai": "~4.9.0", "botbuilder-applicationinsights": "~4.9.0", "botbuilder-dialogs": "~4.9.0", - "dotenv": "^8.1.0", - "eslint": "^6.3.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "dotenv": "^8.2.0", + "path": "^0.12.7", + "restify": "~8.5.1" + }, + "devDependencies": { + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "^1.19.2", - "path": "^0.12.7", - "restify": "^8.4.0" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/23.facebook-events/.eslintrc.js b/samples/javascript_nodejs/23.facebook-events/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/23.facebook-events/.eslintrc.js +++ b/samples/javascript_nodejs/23.facebook-events/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/23.facebook-events/package.json b/samples/javascript_nodejs/23.facebook-events/package.json index 53af1f6a77..82dc8aeba3 100644 --- a/samples/javascript_nodejs/23.facebook-events/package.json +++ b/samples/javascript_nodejs/23.facebook-events/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/24.bot-authentication-msgraph/.eslintrc.js b/samples/javascript_nodejs/24.bot-authentication-msgraph/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/24.bot-authentication-msgraph/.eslintrc.js +++ b/samples/javascript_nodejs/24.bot-authentication-msgraph/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/24.bot-authentication-msgraph/package.json b/samples/javascript_nodejs/24.bot-authentication-msgraph/package.json index 8767b986c1..29a8426704 100644 --- a/samples/javascript_nodejs/24.bot-authentication-msgraph/package.json +++ b/samples/javascript_nodejs/24.bot-authentication-msgraph/package.json @@ -20,15 +20,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/25.message-reaction/.eslintrc.js b/samples/javascript_nodejs/25.message-reaction/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/25.message-reaction/.eslintrc.js +++ b/samples/javascript_nodejs/25.message-reaction/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/25.message-reaction/package.json b/samples/javascript_nodejs/25.message-reaction/package.json index a17dc6788c..16fd6632b3 100644 --- a/samples/javascript_nodejs/25.message-reaction/package.json +++ b/samples/javascript_nodejs/25.message-reaction/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/40.timex-resolution/.eslintrc.js b/samples/javascript_nodejs/40.timex-resolution/.eslintrc.js index f3d1e290ad..ac85640edb 100644 --- a/samples/javascript_nodejs/40.timex-resolution/.eslintrc.js +++ b/samples/javascript_nodejs/40.timex-resolution/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/40.timex-resolution/package.json b/samples/javascript_nodejs/40.timex-resolution/package.json index ae2483033d..9aae9596e6 100644 --- a/samples/javascript_nodejs/40.timex-resolution/package.json +++ b/samples/javascript_nodejs/40.timex-resolution/package.json @@ -16,16 +16,16 @@ "url": "https://github.com/Microsoft/BotBuilder-Samples.git" }, "dependencies": { - "@microsoft/recognizers-text-data-types-timex-expression": "^1.3.0", - "@microsoft/recognizers-text-date-time": "^1.3.0" + "@microsoft/recognizers-text-data-types-timex-expression": "1.3.0", + "@microsoft/recognizers-text-date-time": "1.3.0" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/43.complex-dialog/.eslintrc.js b/samples/javascript_nodejs/43.complex-dialog/.eslintrc.js index b4a10dfc6c..5d6bc15dd9 100644 --- a/samples/javascript_nodejs/43.complex-dialog/.eslintrc.js +++ b/samples/javascript_nodejs/43.complex-dialog/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/43.complex-dialog/package.json b/samples/javascript_nodejs/43.complex-dialog/package.json index 4f97d45cd8..38ab499e1a 100644 --- a/samples/javascript_nodejs/43.complex-dialog/package.json +++ b/samples/javascript_nodejs/43.complex-dialog/package.json @@ -15,15 +15,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/44.prompt-for-user-input/.eslintrc.js b/samples/javascript_nodejs/44.prompt-for-user-input/.eslintrc.js index 5ba442a836..d4119664c9 100644 --- a/samples/javascript_nodejs/44.prompt-for-user-input/.eslintrc.js +++ b/samples/javascript_nodejs/44.prompt-for-user-input/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/44.prompt-for-user-input/README.md b/samples/javascript_nodejs/44.prompt-for-user-input/README.md index 71e55c943c..a103811e8c 100644 --- a/samples/javascript_nodejs/44.prompt-for-user-input/README.md +++ b/samples/javascript_nodejs/44.prompt-for-user-input/README.md @@ -56,7 +56,7 @@ This sample is intended to be run and tested locally and is not designed to be d [Bot Framework Emulator][5] is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here][6] +- Install the Bot Framework Emulator version 4.9.0 or greater from [here][6] ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/44.prompt-for-user-input/package.json b/samples/javascript_nodejs/44.prompt-for-user-input/package.json index 7677f27216..c240855a29 100644 --- a/samples/javascript_nodejs/44.prompt-for-user-input/package.json +++ b/samples/javascript_nodejs/44.prompt-for-user-input/package.json @@ -15,17 +15,15 @@ "@microsoft/recognizers-text-suite": "~1.3.0", "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4", - "@types/node": "12.11.7", - "@types/restify": "8.4.1" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/45.state-management/.eslintrc.js b/samples/javascript_nodejs/45.state-management/.eslintrc.js index b4a10dfc6c..5d6bc15dd9 100644 --- a/samples/javascript_nodejs/45.state-management/.eslintrc.js +++ b/samples/javascript_nodejs/45.state-management/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/45.state-management/README.md b/samples/javascript_nodejs/45.state-management/README.md index d0678b3b37..16e44930a0 100644 --- a/samples/javascript_nodejs/45.state-management/README.md +++ b/samples/javascript_nodejs/45.state-management/README.md @@ -43,7 +43,7 @@ The bot maintains user state to track the user's answers. [Bot Framework Emulator][5] is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here][6] +- Install the Bot Framework Emulator version 4.9.0 or greater from [here][6] ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/45.state-management/package.json b/samples/javascript_nodejs/45.state-management/package.json index dffee74fda..dfaef0b27e 100644 --- a/samples/javascript_nodejs/45.state-management/package.json +++ b/samples/javascript_nodejs/45.state-management/package.json @@ -14,15 +14,15 @@ "dependencies": { "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/46.teams-auth/.eslintrc.js b/samples/javascript_nodejs/46.teams-auth/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/46.teams-auth/.eslintrc.js +++ b/samples/javascript_nodejs/46.teams-auth/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/46.teams-auth/package.json b/samples/javascript_nodejs/46.teams-auth/package.json index 26444e79bb..679022f7a4 100644 --- a/samples/javascript_nodejs/46.teams-auth/package.json +++ b/samples/javascript_nodejs/46.teams-auth/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/47.inspection/.eslintrc.js b/samples/javascript_nodejs/47.inspection/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/47.inspection/.eslintrc.js +++ b/samples/javascript_nodejs/47.inspection/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/47.inspection/README.md b/samples/javascript_nodejs/47.inspection/README.md index 73d3e75662..55cfeeda2e 100644 --- a/samples/javascript_nodejs/47.inspection/README.md +++ b/samples/javascript_nodejs/47.inspection/README.md @@ -49,7 +49,7 @@ More details are available [here](https://github.com/microsoft/BotFramework-Emul [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/47.inspection/package.json b/samples/javascript_nodejs/47.inspection/package.json index 7679096c33..7acea56b3f 100644 --- a/samples/javascript_nodejs/47.inspection/package.json +++ b/samples/javascript_nodejs/47.inspection/package.json @@ -18,15 +18,15 @@ "dependencies": { "botbuilder": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/.eslintrc.js b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/.eslintrc.js +++ b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/Helpers/dialogHelper.js b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/Helpers/dialogHelper.js index 607612525f..226d308f70 100644 --- a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/Helpers/dialogHelper.js +++ b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/Helpers/dialogHelper.js @@ -1,3 +1,4 @@ +/* eslint dot-notation: 0 */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. diff --git a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/README.md b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/README.md index 981f39614f..6cad0b2e9e 100644 --- a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/README.md +++ b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/README.md @@ -51,7 +51,7 @@ QnA knowledge base setup and application configuration steps can be found [here] [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/package.json b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/package.json index f06ce99ca5..628e6046e4 100644 --- a/samples/javascript_nodejs/48.qnamaker-active-learning-bot/package.json +++ b/samples/javascript_nodejs/48.qnamaker-active-learning-bot/package.json @@ -19,16 +19,16 @@ "botbuilder": "~4.9.0", "botbuilder-ai": "~4.9.0", "botbuilder-dialogs": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "^8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/.eslintrc.js b/samples/javascript_nodejs/49.qnamaker-all-features/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/.eslintrc.js +++ b/samples/javascript_nodejs/49.qnamaker-all-features/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/README.md b/samples/javascript_nodejs/49.qnamaker-all-features/README.md index 919421b2c9..55e83732e6 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/README.md +++ b/samples/javascript_nodejs/49.qnamaker-all-features/README.md @@ -60,7 +60,7 @@ QnA knowledge base setup and application configuration steps can be found [here] ``` ##### Microsoft Teams channel group chat fix - Goto `dialog/rootDialog.js` -- Add reference +- Add reference ~~~ const { TurnContext @@ -89,7 +89,7 @@ QnA knowledge base setup and application configuration steps can be found [here] [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/qnamakerBaseDialog.js b/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/qnamakerBaseDialog.js index 36c2537bc7..d1a20e56ec 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/qnamakerBaseDialog.js +++ b/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/qnamakerBaseDialog.js @@ -19,7 +19,6 @@ const DefaultCardTitle = 'Did you mean:'; const DefaultCardNoMatchText = 'None of the above.'; const DefaultCardNoMatchResponse = 'Thanks for the feedback.'; - /// QnA Maker dialog. const QNAMAKER_BASE_DIALOG = 'qnamaker-base-dailog'; @@ -29,14 +28,12 @@ class QnAMakerBaseDialog extends QnAMakerDialog { * @param {QnAMaker} qnaService A QnAMaker service object. */ constructor(knowledgebaseId, authkey, host) { - var noAnswer = ActivityFactory.DefaultNoAnswer; var filters = []; super(knowledgebaseId, authkey, host, noAnswer, DefaultThreshold, DefaultCardTitle, DefaultCardNoMatchText, DefaultTopN, ActivityFactory.cardNoMatchResponse, filters, QNAMAKER_BASE_DIALOG); this.id = QNAMAKER_BASE_DIALOG; } - } module.exports.QnAMakerBaseDialog = QnAMakerBaseDialog; @@ -47,4 +44,3 @@ module.exports.DefaultNoAnswer = DefaultNoAnswer; module.exports.DefaultCardTitle = DefaultCardTitle; module.exports.DefaultCardNoMatchText = DefaultCardNoMatchText; module.exports.DefaultCardNoMatchResponse = DefaultCardNoMatchResponse; - diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/rootDialog.js b/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/rootDialog.js index 11196e37ba..2b5bbe3b51 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/rootDialog.js +++ b/samples/javascript_nodejs/49.qnamaker-all-features/dialogs/rootDialog.js @@ -22,14 +22,13 @@ class RootDialog extends ComponentDialog { * @param {QnAMaker} qnaService A QnAMaker service object. */ constructor(knowledgebaseId, authkey, host) { - super(ROOT_DIALOG); + super(ROOT_DIALOG); // Initial waterfall dialog. this.addDialog(new WaterfallDialog(INITIAL_DIALOG, [ this.startInitialDialog.bind(this) ])); this.addDialog(new QnAMakerBaseDialog(knowledgebaseId, authkey, host)); this.initialDialogId = INITIAL_DIALOG; - } /** @@ -52,7 +51,6 @@ class RootDialog extends ComponentDialog { // This is the first step of the WaterfallDialog. // It kicks off the dialog with the QnA Maker with provided options. async startInitialDialog(step) { - return await step.beginDialog(QNAMAKER_BASE_DIALOG); } } diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/index.js b/samples/javascript_nodejs/49.qnamaker-all-features/index.js index 925d3e13d2..27b528146a 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/index.js +++ b/samples/javascript_nodejs/49.qnamaker-all-features/index.js @@ -9,7 +9,6 @@ const restify = require('restify'); // Import required bot services. See https://aka.ms/bot-services to learn more about the different parts of a bot. const { BotFrameworkAdapter, ConversationState, MemoryStorage, UserState } = require('botbuilder'); -const { QnAMaker } = require('botbuilder-ai'); const { QnABot } = require('./bots/QnABot'); const { RootDialog } = require('./dialogs/rootDialog'); @@ -66,11 +65,10 @@ if (!endpointHostName.startsWith('https://')) { endpointHostName = 'https://' + endpointHostName; } -if (!endpointHostName.includes('/v5.0') && !endpointHostName.endsWith('/qnamaker') ) { +if (!endpointHostName.includes('/v5.0') && !endpointHostName.endsWith('/qnamaker')) { endpointHostName = endpointHostName + '/qnamaker'; } - // Create the main dialog. const dialog = new RootDialog(process.env.QnAKnowledgebaseId, process.env.QnAEndpointKey, endpointHostName); diff --git a/samples/javascript_nodejs/49.qnamaker-all-features/package.json b/samples/javascript_nodejs/49.qnamaker-all-features/package.json index 9e23249d4c..d103d39fdb 100644 --- a/samples/javascript_nodejs/49.qnamaker-all-features/package.json +++ b/samples/javascript_nodejs/49.qnamaker-all-features/package.json @@ -20,15 +20,15 @@ "botbuilder-ai": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "^8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/50.teams-messaging-extensions-search/.eslintrc.js b/samples/javascript_nodejs/50.teams-messaging-extensions-search/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/50.teams-messaging-extensions-search/.eslintrc.js +++ b/samples/javascript_nodejs/50.teams-messaging-extensions-search/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/50.teams-messaging-extensions-search/package.json b/samples/javascript_nodejs/50.teams-messaging-extensions-search/package.json index e5cca67e99..5da542b67c 100644 --- a/samples/javascript_nodejs/50.teams-messaging-extensions-search/package.json +++ b/samples/javascript_nodejs/50.teams-messaging-extensions-search/package.json @@ -16,18 +16,18 @@ "url": "https://github.com/Microsoft/BotBuilder-Samples.git" }, "dependencies": { - "axios": "^0.19.0", + "axios": "^0.19.2", "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/51.teams-messaging-extensions-action/.eslintrc.js b/samples/javascript_nodejs/51.teams-messaging-extensions-action/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/51.teams-messaging-extensions-action/.eslintrc.js +++ b/samples/javascript_nodejs/51.teams-messaging-extensions-action/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/51.teams-messaging-extensions-action/package.json b/samples/javascript_nodejs/51.teams-messaging-extensions-action/package.json index 33db9301c2..0f2c48670d 100644 --- a/samples/javascript_nodejs/51.teams-messaging-extensions-action/package.json +++ b/samples/javascript_nodejs/51.teams-messaging-extensions-action/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/.eslintrc.js b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/.eslintrc.js +++ b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/bots/teamsMessagingExtensionsSearchAuthConfigBot.js b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/bots/teamsMessagingExtensionsSearchAuthConfigBot.js index e6fb22e4f5..6b0ab8501f 100644 --- a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/bots/teamsMessagingExtensionsSearchAuthConfigBot.js +++ b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/bots/teamsMessagingExtensionsSearchAuthConfigBot.js @@ -144,7 +144,7 @@ class TeamsMessagingExtensionsSearchAuthConfigBot extends TeamsActivityHandler { body: [ { type: 'TextBlock', - text: `You have been signed out.` + text: 'You have been signed out.' } ], actions: [ diff --git a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/package.json b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/package.json index c115c3b087..d43ee17490 100644 --- a/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/package.json +++ b/samples/javascript_nodejs/52.teams-messaging-extensions-search-auth-config/package.json @@ -17,18 +17,18 @@ }, "dependencies": { "@microsoft/microsoft-graph-client": "~2.0.0", - "axios": "^0.19.0", + "axios": "^0.19.2", "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/.eslintrc.js b/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/.eslintrc.js +++ b/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/package.json b/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/package.json index 33db9301c2..0f2c48670d 100644 --- a/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/package.json +++ b/samples/javascript_nodejs/53.teams-messaging-extensions-action-preview/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/54.teams-task-module/.eslintrc.js b/samples/javascript_nodejs/54.teams-task-module/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/54.teams-task-module/.eslintrc.js +++ b/samples/javascript_nodejs/54.teams-task-module/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/54.teams-task-module/bots/teamsTaskModuleBot.js b/samples/javascript_nodejs/54.teams-task-module/bots/teamsTaskModuleBot.js index f03833c71e..6032593a1f 100644 --- a/samples/javascript_nodejs/54.teams-task-module/bots/teamsTaskModuleBot.js +++ b/samples/javascript_nodejs/54.teams-task-module/bots/teamsTaskModuleBot.js @@ -65,7 +65,7 @@ class TeamsTaskModuleBot extends TeamsActivityHandler { body: [ { type: 'TextBlock', - text: `Enter Text Here` + text: 'Enter Text Here' }, { type: 'Input.Text', diff --git a/samples/javascript_nodejs/54.teams-task-module/package.json b/samples/javascript_nodejs/54.teams-task-module/package.json index 33db9301c2..0f2c48670d 100644 --- a/samples/javascript_nodejs/54.teams-task-module/package.json +++ b/samples/javascript_nodejs/54.teams-task-module/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/55.teams-link-unfurling/.eslintrc.js b/samples/javascript_nodejs/55.teams-link-unfurling/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/55.teams-link-unfurling/.eslintrc.js +++ b/samples/javascript_nodejs/55.teams-link-unfurling/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/55.teams-link-unfurling/bots/teamsLinkUnfurlingBot.js b/samples/javascript_nodejs/55.teams-link-unfurling/bots/teamsLinkUnfurlingBot.js index bb7eb2ebf9..ebe83c24c4 100644 --- a/samples/javascript_nodejs/55.teams-link-unfurling/bots/teamsLinkUnfurlingBot.js +++ b/samples/javascript_nodejs/55.teams-link-unfurling/bots/teamsLinkUnfurlingBot.js @@ -28,13 +28,13 @@ class TeamsLinkUnfurlingBot extends TeamsActivityHandler { async handleTeamsMessagingExtensionQuery(context, query) { // Note: The Teams manifest.json for this sample also inclues a Search Query, in order to enable installing from App Studio. // const searchQuery = query.parameters[0].value; + const heroCard = CardFactory.heroCard('This is a Link Unfurling Sample', + 'This sample demonstrates how to handle link unfurling in Teams. Please review the readme for more information.'); + heroCard.content.subtitle = 'It will unfurl links from *.BotFramework.com'; + const attachment = { ...heroCard, heroCard }; + switch (query.commandId) { case 'searchQuery': - const heroCard = CardFactory.heroCard('This is a Link Unfurling Sample', - 'This sample demonstrates how to handle link unfurling in Teams. Please review the readme for more information.'); - heroCard.content.subtitle = 'It will unfurl links from *.BotFramework.com'; - const attachment = { ...heroCard, heroCard }; - return { composeExtension: { type: 'result', diff --git a/samples/javascript_nodejs/55.teams-link-unfurling/package.json b/samples/javascript_nodejs/55.teams-link-unfurling/package.json index 33db9301c2..0f2c48670d 100644 --- a/samples/javascript_nodejs/55.teams-link-unfurling/package.json +++ b/samples/javascript_nodejs/55.teams-link-unfurling/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/56.teams-file-upload/.eslintrc.js b/samples/javascript_nodejs/56.teams-file-upload/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/56.teams-file-upload/.eslintrc.js +++ b/samples/javascript_nodejs/56.teams-file-upload/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/56.teams-file-upload/bots/teamsFileUploadBot.js b/samples/javascript_nodejs/56.teams-file-upload/bots/teamsFileUploadBot.js index b0ae41e063..0908de51cc 100644 --- a/samples/javascript_nodejs/56.teams-file-upload/bots/teamsFileUploadBot.js +++ b/samples/javascript_nodejs/56.teams-file-upload/bots/teamsFileUploadBot.js @@ -57,11 +57,13 @@ class TeamsFileUploadBot extends TeamsActivityHandler { const fileContent = Buffer.from(fs.readFileSync(fname, 'binary'), 'binary'); await axios.put( fileConsentCardResponse.uploadInfo.uploadUrl, - fileContent, - { headers: { - 'Content-Type': 'image/png', - 'Content-Length': fileInfo.size, - 'Content-Range': `bytes 0-${ fileInfo.size - 1 }/${ fileInfo.size }` } }); + fileContent, { + headers: { + 'Content-Type': 'image/png', + 'Content-Length': fileInfo.size, + 'Content-Range': `bytes 0-${ fileInfo.size - 1 }/${ fileInfo.size }` + } + }); await this.fileUploadCompleted(context, fileConsentCardResponse); } catch (e) { await this.fileUploadFailed(context, e.message); diff --git a/samples/javascript_nodejs/56.teams-file-upload/package.json b/samples/javascript_nodejs/56.teams-file-upload/package.json index e5cca67e99..5da542b67c 100644 --- a/samples/javascript_nodejs/56.teams-file-upload/package.json +++ b/samples/javascript_nodejs/56.teams-file-upload/package.json @@ -16,18 +16,18 @@ "url": "https://github.com/Microsoft/BotBuilder-Samples.git" }, "dependencies": { - "axios": "^0.19.0", + "axios": "^0.19.2", "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/57.teams-conversation-bot/.eslintrc.js b/samples/javascript_nodejs/57.teams-conversation-bot/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/57.teams-conversation-bot/.eslintrc.js +++ b/samples/javascript_nodejs/57.teams-conversation-bot/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/57.teams-conversation-bot/bots/teamsConversationBot.js b/samples/javascript_nodejs/57.teams-conversation-bot/bots/teamsConversationBot.js index 093dc9418d..6b113f2251 100644 --- a/samples/javascript_nodejs/57.teams-conversation-bot/bots/teamsConversationBot.js +++ b/samples/javascript_nodejs/57.teams-conversation-bot/bots/teamsConversationBot.js @@ -16,20 +16,20 @@ class TeamsConversationBot extends TeamsActivityHandler { super(); this.onMessage(async (context, next) => { TurnContext.removeRecipientMention(context.activity); - const text = context.activity.text.trim().toLocaleLowerCase() - if (text.includes("mention")) { + const text = context.activity.text.trim().toLocaleLowerCase(); + if (text.includes('mention')) { await this.mentionActivityAsync(context); - } else if(text.includes("update")) { + } else if (text.includes('update')) { await this.cardActivityAsync(context, true); - } else if (text.includes("delete")) { + } else if (text.includes('delete')) { await this.deleteCardActivityAsync(context); - } else if (text.includes("message")) { + } else if (text.includes('message')) { await this.messageAllMembersAsync(context); - } else if (text.includes("who")) { + } else if (text.includes('who')) { await this.getSingleMember(context); } else { - await this.cardActivityAsync(context, false) - } + await this.cardActivityAsync(context, false); + } }); this.onMembersAddedActivity(async (context, next) => { @@ -43,31 +43,30 @@ class TeamsConversationBot extends TeamsActivityHandler { } async cardActivityAsync(context, isUpdate) { - const cardActions = [ - { - type: ActionTypes.MessageBack, - title: 'Message all members', - value: null, - text: 'MessageAllMembers' - }, - { - type: ActionTypes.MessageBack, - title: 'Who am I?', - value: null, - text: 'whoami' - }, - { - type: ActionTypes.MessageBack, - title: 'Delete card', - value: null, - text: 'Delete' - } + const cardActions = [ + { + type: ActionTypes.MessageBack, + title: 'Message all members', + value: null, + text: 'MessageAllMembers' + }, + { + type: ActionTypes.MessageBack, + title: 'Who am I?', + value: null, + text: 'whoami' + }, + { + type: ActionTypes.MessageBack, + title: 'Delete card', + value: null, + text: 'Delete' + } ]; - if(isUpdate) { + if (isUpdate) { await this.sendUpdateCard(context, cardActions); - } - else { + } else { await this.sendWelcomeCard(context, cardActions); } } @@ -83,7 +82,7 @@ class TeamsConversationBot extends TeamsActivityHandler { }); const card = CardFactory.heroCard( 'Updated card', - `Update count: ${data.count}`, + `Update count: ${ data.count }`, null, cardActions ); @@ -116,18 +115,16 @@ class TeamsConversationBot extends TeamsActivityHandler { var member; try { member = await TeamsInfo.getMember(context, context.activity.from.id); - } - catch (e) { - if(e.code === 'MemberNotFoundInConversation') { + } catch (e) { + if (e.code === 'MemberNotFoundInConversation') { context.sendActivity(MessageFactory.text('Member not found.')); return; - } - else { + } else { console.log(e); throw e; } } - const message = MessageFactory.text(`You are: ${member.name}`); + const message = MessageFactory.text(`You are: ${ member.name }`); await context.sendActivity(message); } diff --git a/samples/javascript_nodejs/57.teams-conversation-bot/package.json b/samples/javascript_nodejs/57.teams-conversation-bot/package.json index d7037b4bad..0f2c48670d 100644 --- a/samples/javascript_nodejs/57.teams-conversation-bot/package.json +++ b/samples/javascript_nodejs/57.teams-conversation-bot/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/.eslintrc.js b/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/.eslintrc.js +++ b/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/package.json b/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/package.json index d7037b4bad..0f2c48670d 100644 --- a/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/package.json +++ b/samples/javascript_nodejs/58.teams-start-new-thread-in-channel/package.json @@ -17,16 +17,16 @@ }, "dependencies": { "botbuilder": "~4.9.0", - "dotenv": "^8.0.0", - "restify": "~8.3.3" + "dotenv": "^8.2.0", + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.0.1", - "eslint-config-standard": "^13.0.1", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^9.1.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.0", - "nodemon": "~1.19.1" + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/.eslintrc.js b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/.eslintrc.js +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/README.md b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/README.md index 83f7b1be2b..459758f906 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/README.md +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/README.md @@ -1,19 +1,19 @@ # QnA Maker Multiturn - + Bot Framework v4 QnA Maker Multiturn bot sample. This sample shows how to integrate multiturn in a bot with NodeJs. Click [here][72] to know more about using follow-up prompts to create multiturn conversation. - + This bot has been created using [Bot Framework](https://dev.botframework.com), it shows how to create a bot that uses the [QnA Maker Cognitive AI](https://www.qnamaker.ai) service. - + The [QnA Maker Service](https://www.qnamaker.ai) enables you to build, train and publish a simple question and answer bot based on FAQ URLs, structured documents or editorial content in minutes. In this sample, we demonstrate how to use the QnA Maker service to answer questions based on a FAQ text file used as input. - + ## Concepts introduced in this sample @@ -21,27 +21,27 @@ The [QnA Maker Service][19] enables you to build, train and publish a simple que In this sample, we demonstrate how to use the Multiturn experience for the knowledge base. - + # Prerequisites - + This samples **requires** prerequisites in order to run. - + ### Overview - + This bot uses [QnA Maker Service](https://www.qnamaker.ai), an AI based cognitive service, to implement simple Question and Answer conversational patterns. - + - [Node.js](https://nodejs.org) version 10.14 or higher - + ```bash @@ -51,23 +51,23 @@ node --version ``` - + ### Create a QnAMaker Application to enable QnA Knowledge Bases - + QnA knowledge base setup and application configuration steps can be found [here](https://aka.ms/qna-instructions). - + ## To try this sample - + - Clone the repository - + ```bash @@ -75,11 +75,11 @@ git clone https://github.com/microsoft/botbuilder-samples.git ``` - + - In a terminal, navigate to `samples/javascript_nodejs/58.qnamaker-multiturn-sample` - + ```bash @@ -87,11 +87,11 @@ cd samples/javascript_nodejs/58.qnamaker-multiturn-sample ``` - + - Install modules - + ```bash @@ -99,19 +99,19 @@ npm install ``` - + - Setup QnAMaker - + The prerequisite outlined above contain the steps necessary to provision a QnA Knowledge Base on www.qnamaker.ai. Refer to [Use QnA Maker to answer questions][41] for directions to setup and configure QnAMaker. - + - Run the sample - + ```bash @@ -119,23 +119,23 @@ npm start ``` - + ## Testing the bot using Bot Framework Emulator - + [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. - -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) - +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) + + ### Connect to the bot using Bot Framework Emulator - + - Launch Bot Framework Emulator @@ -143,23 +143,23 @@ npm start - Enter a Bot URL of `http://localhost:3999/api/messages` - + # QnA Maker service QnA Maker enables you to power a question and answer service from your semi-structured content. - + One of the basic requirements in writing your own bot is to seed it with questions and answers. In many cases, the questions and answers already exist in content like FAQ URLs/documents, product manuals, etc. With QnA Maker, users can query your application in a natural, conversational manner. QnA Maker uses machine learning to extract relevant question-answer pairs from your content. It also uses powerful matching and ranking algorithms to provide the best possible match between the user query and the questions. - + # Deploy the bot to Azure To learn more about deploying a bot to Azure, see [Deploy your bot to Azure][40] for a complete list of deployment instructions. - + # Further reading @@ -187,7 +187,7 @@ To learn more about deploying a bot to Azure, see [Deploy your bot to Azure][40] - [dotenv][31] - + [1]: https://dev.botframework.com @@ -231,7 +231,7 @@ To learn more about deploying a bot to Azure, see [Deploy your bot to Azure][40] [51]: https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/how-to/multiturn-conversation - + [41]: https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-qna?view=azure-bot-service-4.0&tabs=cs diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/dialogs/qnamakerMultiturnDialog.js b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/dialogs/qnamakerMultiturnDialog.js index c5e101fa7b..4052b4078e 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/dialogs/qnamakerMultiturnDialog.js +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/dialogs/qnamakerMultiturnDialog.js @@ -1,3 +1,4 @@ +/* eslint no-extra-boolean-cast: 0 */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. @@ -81,7 +82,7 @@ class QnAMakerMultiturnDialog extends ComponentDialog { qnaMakerOptions.context = { previousQnAId: prevQnAId }; - + qnaMakerOptions.qnaId = 0; if (previousContextData[stepContext.context.activity.text.toLowerCase()] !== null) { qnaMakerOptions.qnaId = previousContextData[stepContext.context.activity.text.toLowerCase()]; diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/index.js b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/index.js index ed037aed10..9e2643eb01 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/index.js +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/index.js @@ -66,7 +66,7 @@ if (!endpointHostName.startsWith('https://')) { endpointHostName = 'https://' + endpointHostName; } -if (!endpointHostName.includes('/v5.0') && !endpointHostName.endsWith('/qnamaker') ) { +if (!endpointHostName.includes('/v5.0') && !endpointHostName.endsWith('/qnamaker')) { endpointHostName = endpointHostName + '/qnamaker'; } diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/package.json b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/package.json index 8243339c14..7f9674f1a7 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/package.json +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/package.json @@ -20,15 +20,15 @@ "botbuilder-ai": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "^8.2.0", - "restify": "^8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/utils/qnaCardBuilder.js b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/utils/qnaCardBuilder.js index 9d5b3a4498..523c7f909d 100644 --- a/samples/javascript_nodejs/70.qnamaker-multiturn-sample/utils/qnaCardBuilder.js +++ b/samples/javascript_nodejs/70.qnamaker-multiturn-sample/utils/qnaCardBuilder.js @@ -51,7 +51,7 @@ class QnACardBuilder { [], CardFactory.actions(cardActions)); - return { text: cardTitle, attachments: [heroCard] }; + return { text: cardTitle, attachments: [heroCard] }; } } diff --git a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/README.md b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/README.md index 4b126ccb42..8b1c1a68dd 100644 --- a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/README.md +++ b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/README.md @@ -69,7 +69,7 @@ The solution includes a parent bot (`simple-root-bot`) and a skill bot (`echo-sk [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.7.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/.eslintrc.js b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/.eslintrc.js +++ b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/package.json b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/package.json index c9976bee71..4444a77f25 100644 --- a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/package.json +++ b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/echo-skill-bot/package.json @@ -19,15 +19,15 @@ "botbuilder": "~4.9.0", "botframework-connector": "~4.9.0", "dotenv": "~8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/.eslintrc.js b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/.eslintrc.js +++ b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/package.json b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/package.json index dd9321822b..ad4a8b766f 100644 --- a/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/package.json +++ b/samples/javascript_nodejs/80.skills-simple-bot-to-bot/simple-root-bot/package.json @@ -1,33 +1,33 @@ { - "name": "simple-root-bot", - "version": "1.0.0", - "description": "A simple root bot for testing skills", - "author": "Microsoft", - "license": "MIT", - "main": "index.js", - "scripts": { - "start": "node ./index.js", - "watch": "nodemon ./index.js", - "lint": "eslint .", - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "https://github.com" - }, - "dependencies": { - "botbuilder": "~4.9.0", - "botframework-connector": "~4.9.0", - "dotenv": "~8.2.0", - "restify": "~8.4.0" - }, - "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", - "eslint-plugin-promise": "^4.2.1", - "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" - } + "name": "simple-root-bot", + "version": "1.0.0", + "description": "A simple root bot for testing skills", + "author": "Microsoft", + "license": "MIT", + "main": "index.js", + "scripts": { + "start": "node ./index.js", + "watch": "nodemon ./index.js", + "lint": "eslint .", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com" + }, + "dependencies": { + "botbuilder": "~4.9.0", + "botframework-connector": "~4.9.0", + "dotenv": "~8.2.0", + "restify": "~8.5.1" + }, + "devDependencies": { + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^4.2.1", + "eslint-plugin-standard": "^4.0.1", + "nodemon": "~2.0.4" + } } diff --git a/samples/javascript_nodejs/81.skills-skilldialog/README.md b/samples/javascript_nodejs/81.skills-skilldialog/README.md index 5b6030a6ac..8510cbb475 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/README.md +++ b/samples/javascript_nodejs/81.skills-skilldialog/README.md @@ -74,7 +74,7 @@ For each bot directory, `dialogSkillBot` and `dialogRootBot` as `` [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.8.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/.eslintrc.js b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/.eslintrc.js index 525ed1a1e9..951d6c8753 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/.eslintrc.js +++ b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4, { "SwitchCase": 1 }], "no-return-await": 0, @@ -14,6 +15,6 @@ module.exports = { "env": { "commonjs": true, "node": true, - "mocha": true + "mocha": true } }; \ No newline at end of file diff --git a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/middleware/loggerMiddleware.js b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/middleware/loggerMiddleware.js index b4b8a2d383..6f1140260a 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/middleware/loggerMiddleware.js +++ b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/middleware/loggerMiddleware.js @@ -37,4 +37,4 @@ class LoggerMiddleware { } } -module.exports.LoggerMiddleware = LoggerMiddleware; \ No newline at end of file +module.exports.LoggerMiddleware = LoggerMiddleware; diff --git a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/package.json b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/package.json index 1bae9b35fb..58abe68ff2 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/package.json +++ b/samples/javascript_nodejs/81.skills-skilldialog/dialogRootBot/package.json @@ -19,17 +19,17 @@ "botbuilder": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "~8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "mocha": "^6.2.2", - "nodemon": "~1.19.4", - "nyc": "^14.1.1" + "mocha": "^7.1.2", + "nodemon": "~2.0.4", + "nyc": "^15.0.1" } } diff --git a/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/.eslintrc.js b/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/.eslintrc.js index 525ed1a1e9..951d6c8753 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/.eslintrc.js +++ b/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4, { "SwitchCase": 1 }], "no-return-await": 0, @@ -14,6 +15,6 @@ module.exports = { "env": { "commonjs": true, "node": true, - "mocha": true + "mocha": true } }; \ No newline at end of file diff --git a/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/package.json b/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/package.json index fe7c0ebf35..3f66944a4d 100644 --- a/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/package.json +++ b/samples/javascript_nodejs/81.skills-skilldialog/dialogSkillBot/package.json @@ -21,17 +21,17 @@ "botbuilder-ai": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "dotenv": "~8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "mocha": "^6.2.2", + "mocha": "^7.1.2", "nodemon": "~1.19.4", - "nyc": "^14.1.1" + "nyc": "^15.0.1" } } diff --git a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/.eslintrc.js b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/.eslintrc.js +++ b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/README.md b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/README.md index 04be0e5d12..2ba934e96b 100644 --- a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/README.md +++ b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/README.md @@ -1,6 +1,6 @@ # multi turn prompt sample -This sample demonstrates using [language generation][1] to achieve multi-turn prompt bot. +This sample demonstrates using [language generation][1] to achieve multi-turn prompt bot. This bot starts with the [multi-turn prompt sample][2] and updates it to use language generation capabilities. @@ -43,7 +43,7 @@ This bot starts with the [multi-turn prompt sample][2] and updates it to use lan [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/dialogs/userProfileDialog.js b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/dialogs/userProfileDialog.js index 6c3076f996..a051626c3f 100644 --- a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/dialogs/userProfileDialog.js +++ b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/dialogs/userProfileDialog.js @@ -82,7 +82,7 @@ class UserProfileDialog extends ComponentDialog { async nameConfirmStep(step) { step.values.name = step.result; - + // We can send messages to the user at any point in the WaterfallStep. await step.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('AckName', step.values))); @@ -94,9 +94,9 @@ class UserProfileDialog extends ComponentDialog { if (step.result) { // User said "yes" so we will be prompting for the age. // WaterfallStep always finishes with the end of the Waterfall or with another dialog, here it is a Prompt Dialog. - const promptOptions = { - prompt: ActivityFactory.fromObject(this.lgTemplates.evaluate('AskForAge')), - retryPrompt: ActivityFactory.fromObject(this.lgTemplates.evaluate('AskForAge.reprompt')) + const promptOptions = { + prompt: ActivityFactory.fromObject(this.lgTemplates.evaluate('AskForAge')), + retryPrompt: ActivityFactory.fromObject(this.lgTemplates.evaluate('AskForAge.reprompt')) }; return await step.prompt(NUMBER_PROMPT, promptOptions); @@ -111,7 +111,7 @@ class UserProfileDialog extends ComponentDialog { // We can send messages to the user at any point in the WaterfallStep. await step.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('AgeReadBack', { - userAge:step.values.age + userAge: step.values.age }))); // WaterfallStep always finishes with the end of the Waterfall or with another dialog, here it is a Prompt Dialog. diff --git a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/index.js b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/index.js index d966aef53f..5633c775a4 100644 --- a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/index.js +++ b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/index.js @@ -33,7 +33,7 @@ adapter.onTurnError = async (context, error) => { // NOTE: In production environment, you should consider logging this to Azure // application insights. console.error(lgTemplates.evaluate('SomethingWentWrong', { - message : `${error}` + message: `${ error }` })); // Send a trace activity, which will be displayed in Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/package.json b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/package.json index 06dd4eda5c..7e3f5cd8c5 100644 --- a/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/package.json +++ b/samples/javascript_nodejs/language-generation/05.multi-turn-prompt/package.json @@ -21,15 +21,15 @@ "botbuilder-lg": "~4.9.0", "dotenv": "^8.2.0", "path": "^0.12.7", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/language-generation/06.using-cards/.eslintrc.js b/samples/javascript_nodejs/language-generation/06.using-cards/.eslintrc.js index 4efa0c5f84..abe49d5995 100644 --- a/samples/javascript_nodejs/language-generation/06.using-cards/.eslintrc.js +++ b/samples/javascript_nodejs/language-generation/06.using-cards/.eslintrc.js @@ -1,3 +1,4 @@ +/* eslint-disable */ module.exports = { "extends": "standard", "rules": { diff --git a/samples/javascript_nodejs/language-generation/06.using-cards/README.md b/samples/javascript_nodejs/language-generation/06.using-cards/README.md index 1c296330bc..d11f47e5ac 100644 --- a/samples/javascript_nodejs/language-generation/06.using-cards/README.md +++ b/samples/javascript_nodejs/language-generation/06.using-cards/README.md @@ -4,7 +4,7 @@ Bot Framework v4 using cards bot sample This bot has been created using [Microsoft Bot Framework][1], it shows how to create a bot that uses rich cards to enhance your bot design. -In this sample, we will demonstrate use of [Language Generation][41] to generate all responses from the bot. +In this sample, we will demonstrate use of [Language Generation][41] to generate all responses from the bot. ## Prerequisites @@ -46,7 +46,7 @@ In this sample, we will demonstrate use of [Language Generation][41] to generate [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/06.using-cards/dialogs/mainDialog.js b/samples/javascript_nodejs/language-generation/06.using-cards/dialogs/mainDialog.js index 0b12352a76..91e15a35da 100644 --- a/samples/javascript_nodejs/language-generation/06.using-cards/dialogs/mainDialog.js +++ b/samples/javascript_nodejs/language-generation/06.using-cards/dialogs/mainDialog.js @@ -21,7 +21,7 @@ class MainDialog extends ComponentDialog { // The initial child Dialog to run. this.initialDialogId = MAIN_WATERFALL_DIALOG; - this.lgTemplates = Templates.parseFile("./resources/MainDialog.lg"); + this.lgTemplates = Templates.parseFile('./resources/MainDialog.lg'); } /** @@ -85,7 +85,7 @@ class MainDialog extends ComponentDialog { break; case 'Receipt Card': var data = { - receiptItems : [ + receiptItems: [ { title: 'Data Transfer', price: '$38.45', @@ -100,7 +100,7 @@ class MainDialog extends ComponentDialog { } ] }; - await stepContext.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate("ReceiptCard", data))); + await stepContext.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('ReceiptCard', data))); break; case 'Signin Card': await stepContext.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('SigninCard'))); diff --git a/samples/javascript_nodejs/language-generation/06.using-cards/index.js b/samples/javascript_nodejs/language-generation/06.using-cards/index.js index a6b69cad5a..4ba9efb251 100644 --- a/samples/javascript_nodejs/language-generation/06.using-cards/index.js +++ b/samples/javascript_nodejs/language-generation/06.using-cards/index.js @@ -6,7 +6,7 @@ // Import required packages const path = require('path'); const restify = require('restify'); -const {Templates} = require('botbuilder-lg'); +const { Templates } = require('botbuilder-lg'); // Import required bot services. // See https://aka.ms/bot-services to learn more about the different parts of a bot. @@ -34,7 +34,7 @@ adapter.onTurnError = async (context, error) => { // NOTE: In production environment, you should consider logging this to Azure // application insights. console.error(lgTemplates.evaluate('SomethingWentWrong', { - message : `${error}` + message: `${ error }` })); // Send a trace activity, which will be displayed in Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/06.using-cards/package.json b/samples/javascript_nodejs/language-generation/06.using-cards/package.json index 18e36d26c5..2813ee1fc1 100644 --- a/samples/javascript_nodejs/language-generation/06.using-cards/package.json +++ b/samples/javascript_nodejs/language-generation/06.using-cards/package.json @@ -20,15 +20,15 @@ "botbuilder-dialogs": "~4.9.0", "botbuilder-lg": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } } diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/.eslintrc.js b/samples/javascript_nodejs/language-generation/13.core-bot/.eslintrc.js index fcc7331e71..40f81988db 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/.eslintrc.js +++ b/samples/javascript_nodejs/language-generation/13.core-bot/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, @@ -14,6 +15,6 @@ module.exports = { "env": { "commonjs": true, "node": true, - "mocha": true + "mocha": true } }; \ No newline at end of file diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/README.md b/samples/javascript_nodejs/language-generation/13.core-bot/README.md index 055764c76f..81f0aa914e 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/README.md +++ b/samples/javascript_nodejs/language-generation/13.core-bot/README.md @@ -9,7 +9,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i - Handle user interruptions for such things as `Help` or `Cancel` - Prompt for and validate requests for information from the user -In this sample, we will demonstrate use of [Language Generation][41] to generate all responses from the bot. +In this sample, we will demonstrate use of [Language Generation][41] to generate all responses from the bot. ## Prerequisites @@ -72,7 +72,7 @@ LuisAPIHostName = "Your LUIS App region here (i.e: westus.api.cognitive.microsof [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/bots/dialogAndWelcomeBot.js b/samples/javascript_nodejs/language-generation/13.core-bot/bots/dialogAndWelcomeBot.js index e63907e5f7..220d1ed3bd 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/bots/dialogAndWelcomeBot.js +++ b/samples/javascript_nodejs/language-generation/13.core-bot/bots/dialogAndWelcomeBot.js @@ -12,27 +12,27 @@ class DialogAndWelcomeBot extends DialogBot { // Actions to include in the welcome card. These are passed to LG and are then included in the generated Welcome card. const actions = { - actions : [ + actions: [ { - title : "Get an overview", - url : "https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0" + title: 'Get an overview', + url: 'https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0' }, { - title : "Ask a question", - url : "https://stackoverflow.com/questions/tagged/botframework" + title: 'Ask a question', + url: 'https://stackoverflow.com/questions/tagged/botframework' }, { - title : "Learn how to deploy", - url : "https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-deploy-azure?view=azure-bot-service-4.0" + title: 'Learn how to deploy', + url: 'https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-deploy-azure?view=azure-bot-service-4.0' } ] }; - + this.onMembersAdded(async (context, next) => { const membersAdded = context.activity.membersAdded; for (let cnt = 0; cnt < membersAdded.length; cnt++) { if (membersAdded[cnt].id !== context.activity.recipient.id) { - const welcomeCard = ActivityFactory.fromObject(lgTemplates.evaluate('WelcomeCard', actions)) + const welcomeCard = ActivityFactory.fromObject(lgTemplates.evaluate('WelcomeCard', actions)); await context.sendActivity(welcomeCard); await dialog.run(context, conversationState.createProperty('DialogState')); } diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/dialogs/mainDialog.js b/samples/javascript_nodejs/language-generation/13.core-bot/dialogs/mainDialog.js index 8599127807..f24c0c2b80 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/dialogs/mainDialog.js +++ b/samples/javascript_nodejs/language-generation/13.core-bot/dialogs/mainDialog.js @@ -106,7 +106,7 @@ class MainDialog extends ComponentDialog { default: { // Catch all for unhandled intents await stepContext.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('Unknown.intent', { - intent : `${ LuisRecognizer.topIntent(luisResult) }` + intent: `${ LuisRecognizer.topIntent(luisResult) }` }))); } } @@ -131,7 +131,7 @@ class MainDialog extends ComponentDialog { if (unsupportedCities.length) { await context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('UnsupportedCities', { - cities : unsupportedCities + cities: unsupportedCities }))); } } @@ -151,11 +151,10 @@ class MainDialog extends ComponentDialog { // If the call to the booking service was successful tell the user. const timeProperty = new TimexProperty(result.travelDate); const travelDateMsg = timeProperty.toNaturalLanguage(new Date(Date.now())); - const msg = `I have you booked to ${ result.destination } from ${ result.origin } on ${ travelDateMsg }.`; await stepContext.context.sendActivity(ActivityFactory.fromObject(this.lgTemplates.evaluate('BookingConfirmation', { - Destination : result.destination, - Origin : result.origin, - DateMessage : travelDateMsg + Destination: result.destination, + Origin: result.origin, + DateMessage: travelDateMsg }))); } diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/index.js b/samples/javascript_nodejs/language-generation/13.core-bot/index.js index d7c2ee5e7a..1c7d847006 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/index.js +++ b/samples/javascript_nodejs/language-generation/13.core-bot/index.js @@ -34,7 +34,7 @@ const adapter = new BotFrameworkAdapter({ }); // Create template engine for language generation. -console.log(path.join(__dirname, './resources/AdapterWithErrorHandler.lg')) +console.log(path.join(__dirname, './resources/AdapterWithErrorHandler.lg')); const lgTemplates = Templates.parseFile(path.join(__dirname, './resources/AdapterWithErrorHandler.lg')); // Catch-all for errors. @@ -43,9 +43,9 @@ adapter.onTurnError = async (context, error) => { // NOTE: In production environment, you should consider logging this to Azure // application insights. console.error(lgTemplates.evaluate('SomethingWentWrong', { - message : `${error}` + message: `${ error }` })); - + // Send a trace activity, which will be displayed in Bot Framework Emulator await context.sendTraceActivity( 'OnTurnError Trace', diff --git a/samples/javascript_nodejs/language-generation/13.core-bot/package.json b/samples/javascript_nodejs/language-generation/13.core-bot/package.json index 3d6d41594a..01eb94904c 100644 --- a/samples/javascript_nodejs/language-generation/13.core-bot/package.json +++ b/samples/javascript_nodejs/language-generation/13.core-bot/package.json @@ -16,24 +16,24 @@ "url": "https://github.com/Microsoft/BotBuilder-Samples.git" }, "dependencies": { - "@microsoft/recognizers-text-data-types-timex-expression": "^1.1.4", + "@microsoft/recognizers-text-data-types-timex-expression": "1.1.4", "botbuilder": "~4.9.0", "botbuilder-ai": "~4.9.0", "botbuilder-dialogs": "~4.9.0", "botbuilder-testing": "~4.9.0", "botbuilder-lg": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "mocha": "^6.2.2", - "nodemon": "~1.19.4", - "nyc": "^14.1.1" + "mocha": "^7.1.2", + "nodemon": "~2.0.4", + "nyc": "^15.0.1" } } diff --git a/samples/javascript_nodejs/language-generation/20.custom-functions/.eslintrc.js b/samples/javascript_nodejs/language-generation/20.custom-functions/.eslintrc.js index 1c6ff1cba8..abe49d5995 100644 --- a/samples/javascript_nodejs/language-generation/20.custom-functions/.eslintrc.js +++ b/samples/javascript_nodejs/language-generation/20.custom-functions/.eslintrc.js @@ -1,6 +1,7 @@ +/* eslint-disable */ module.exports = { "extends": "standard", - "rules": { + "rules": { "semi": [2, "always"], "indent": [2, 4], "no-return-await": 0, diff --git a/samples/javascript_nodejs/language-generation/20.custom-functions/README.md b/samples/javascript_nodejs/language-generation/20.custom-functions/README.md index 7fd7d4dd7f..abd7d48bba 100644 --- a/samples/javascript_nodejs/language-generation/20.custom-functions/README.md +++ b/samples/javascript_nodejs/language-generation/20.custom-functions/README.md @@ -41,7 +41,7 @@ This sample demonstrates how to inject custom functions to [Adaptive expressions [Bot Framework Emulator](https://github.com/microsoft/botframework-emulator) is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel. -- Install the Bot Framework Emulator version 4.3.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) +- Install the Bot Framework Emulator version 4.9.0 or greater from [here](https://github.com/Microsoft/BotFramework-Emulator/releases) ### Connect to the bot using Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/20.custom-functions/bot.js b/samples/javascript_nodejs/language-generation/20.custom-functions/bot.js index e803a5141f..376f33c807 100644 --- a/samples/javascript_nodejs/language-generation/20.custom-functions/bot.js +++ b/samples/javascript_nodejs/language-generation/20.custom-functions/bot.js @@ -3,29 +3,26 @@ const { ActivityHandler, ActivityFactory, MessageFactory } = require('botbuilder'); const { Templates } = require('botbuilder-lg'); -const { Expression, ReturnType, ExpressionEvaluator, ExpressionFunctions } = require('adaptive-expressions'); +const { Expression } = require('adaptive-expressions'); const path = require('path'); - // prefix all functions with your namespace to avoid collisions. -const mySqrtFnName = "contoso.sqrt"; +const mySqrtFnName = 'contoso.sqrt'; class EchoBot extends ActivityHandler { constructor() { super(); - - let lgFilePath = path.join(__dirname, './resources/main.lg') + + const lgFilePath = path.join(__dirname, './resources/main.lg'); // add the custom function Expression.functions.add(mySqrtFnName, (args) => { let retValue = null; - if (args[0] !== null) - { + if (args[0] !== null) { try { - let dblValue = parseFloat(args[0]); - retValue = Math.sqrt(dblValue) - } - catch(ex) { + const dblValue = parseFloat(args[0]); + retValue = Math.sqrt(dblValue); + } catch (ex) { return retValue; } } @@ -37,17 +34,17 @@ class EchoBot extends ActivityHandler { // See https://aka.ms/about-bot-activity-message to learn more about the message and other activity types. this.onMessage(async (context, next) => { - var replyText = this.lgTemplates.evaluate("sqrtReadBack", context.activity); + var replyText = this.lgTemplates.evaluate('sqrtReadBack', context.activity); + + await context.sendActivity(ActivityFactory.fromObject(replyText)); - await context.sendActivity(ActivityFactory.fromObject(replyText)) - // By calling next() you ensure that the next BotHandler is run. await next(); }); this.onMembersAdded(async (context, next) => { const membersAdded = context.activity.membersAdded; - const welcomeText = "Hello and welcome! I will return a square root if you typed a number. Will echo everything back."; + const welcomeText = 'Hello and welcome! I will return a square root if you typed a number. Will echo everything back.'; for (let cnt = 0; cnt < membersAdded.length; ++cnt) { if (membersAdded[cnt].id !== context.activity.recipient.id) { await context.sendActivity(MessageFactory.text(welcomeText, welcomeText)); diff --git a/samples/javascript_nodejs/language-generation/20.custom-functions/index.js b/samples/javascript_nodejs/language-generation/20.custom-functions/index.js index 9c228fc75c..36ac259877 100644 --- a/samples/javascript_nodejs/language-generation/20.custom-functions/index.js +++ b/samples/javascript_nodejs/language-generation/20.custom-functions/index.js @@ -40,7 +40,7 @@ const onTurnErrorHandler = async (context, error) => { // NOTE: In production environment, you should consider logging this to Azure // application insights. console.error(lgTemplates.evaluate('SomethingWentWrong', { - message : `${error}` + message: `${ error }` })); // Send a trace activity, which will be displayed in Bot Framework Emulator diff --git a/samples/javascript_nodejs/language-generation/20.custom-functions/package.json b/samples/javascript_nodejs/language-generation/20.custom-functions/package.json index dbf5a64de8..fbb6155692 100644 --- a/samples/javascript_nodejs/language-generation/20.custom-functions/package.json +++ b/samples/javascript_nodejs/language-generation/20.custom-functions/package.json @@ -20,15 +20,15 @@ "botbuilder-lg": "~4.9.0", "adaptive-expressions": "~4.9.0", "dotenv": "^8.2.0", - "restify": "~8.4.0" + "restify": "~8.5.1" }, "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-standard": "^14.1.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-node": "^10.0.0", + "eslint": "^7.0.0", + "eslint-config-standard": "^14.1.1", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "nodemon": "~1.19.4" + "nodemon": "~2.0.4" } }