@microsoft/teamsfx 2.2.3-alpha.2f75fb932.0 → 2.2.3-alpha.35dcda472.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm2017.mjs
CHANGED
@@ -2424,6 +2424,7 @@ function cloneConversation(conversation) {
|
|
2424
2424
|
*/
|
2425
2425
|
function getKey(reference) {
|
2426
2426
|
var _a, _b;
|
2427
|
+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
2427
2428
|
return `_${(_a = reference.conversation) === null || _a === void 0 ? void 0 : _a.tenantId}_${(_b = reference.conversation) === null || _b === void 0 ? void 0 : _b.id}`;
|
2428
2429
|
}
|
2429
2430
|
/**
|
@@ -3503,8 +3504,7 @@ class DefaultBotSsoExecutionActivityHandler extends TeamsActivityHandler {
|
|
3503
3504
|
timeout: (_h = (_g = ssoConfig.dialog) === null || _g === void 0 ? void 0 : _g.ssoPromptConfig) === null || _h === void 0 ? void 0 : _h.timeout,
|
3504
3505
|
endOnInvalidMessage: (_k = (_j = ssoConfig.dialog) === null || _j === void 0 ? void 0 : _j.ssoPromptConfig) === null || _k === void 0 ? void 0 : _k.endOnInvalidMessage,
|
3505
3506
|
};
|
3506
|
-
|
3507
|
-
this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, teamsfx);
|
3507
|
+
this.ssoExecutionDialog = new BotSsoExecutionDialog(dedupStorage, settings, customConfig, customConfig.initiateLoginEndpoint);
|
3508
3508
|
this.conversationState = conversationState;
|
3509
3509
|
this.dialogState = conversationState.createProperty("DialogState");
|
3510
3510
|
this.userState = userState;
|
@@ -3665,9 +3665,12 @@ class ConversationBot$1 {
|
|
3665
3665
|
// the default error handler
|
3666
3666
|
adapter.onTurnError = async (context, error) => {
|
3667
3667
|
// This check writes out errors to console.
|
3668
|
+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
3668
3669
|
console.error(`[onTurnError] unhandled error: ${error}`);
|
3669
3670
|
// Send a trace activity, which will be displayed in Bot Framework Emulator
|
3670
|
-
await context.sendTraceActivity("OnTurnError Trace",
|
3671
|
+
await context.sendTraceActivity("OnTurnError Trace",
|
3672
|
+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
3673
|
+
`${error}`, "https://www.botframework.com/schemas/error", "TurnError");
|
3671
3674
|
// Send a message to the user
|
3672
3675
|
await context.sendActivity(`The bot encountered unhandled error: ${error.message}`);
|
3673
3676
|
await context.sendActivity("To continue to run this bot, please fix the bot source code.");
|