Skip to content

Commit e07847c

Browse files
author
Tracy Boehrer
committed
Merge branch 'main' into releases/4.22
2 parents 2628f0b + 2f45467 commit e07847c

File tree

10 files changed

+108
-159
lines changed

10 files changed

+108
-159
lines changed

libraries/botbuilder-dialogs-adaptive-runtime-integration-express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"botbuilder": "4.1.6",
4343
"botbuilder-dialogs-adaptive-runtime": "4.1.6",
4444
"botbuilder-dialogs-adaptive-runtime-core": "4.1.6",
45-
"express": "^4.17.3",
45+
"express": "^4.19.2",
4646
"zod": "^3.22.4"
4747
}
4848
}

libraries/botbuilder-dialogs/src/memory/dialogStateManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ export class DialogStateManager {
118118
// Get memory scope to search over
119119
const scope = this.getMemoryScope(segments[0].toString());
120120
if (scope == undefined) {
121-
throw new Error(`DialogStateManager.getValue: a scope of '${segments[0]}' wasn't found.`);
121+
console.warn(
122+
`DialogStateManager.getValue: a scope of '${segments[0]}' wasn't found for '${pathExpression}'.`
123+
);
124+
return returnDefault();
122125
}
123126

124127
// Search over path

libraries/botbuilder-dialogs/tests/memory/dialogStateManager.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ describe('Dialog State Manager', function () {
229229
});
230230

231231
it('raise an error if getValue() called with an invalid scope.', function () {
232-
assert.throws(() => this.dc.state.getValue('foo.bar'));
232+
assert.strictEqual(this.dc.state.getValue('foo.bar'), undefined);
233233
});
234234

235235
it('raise an error if setValue() called with missing path.', function () {

libraries/botbuilder/etc/botbuilder.api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import { InvokeResponse } from 'botbuilder-core';
5050
import { IReceiveRequest } from 'botframework-streaming';
5151
import { IStreamingTransportServer } from 'botframework-streaming';
5252
import { MeetingEndEventDetails } from 'botbuilder-core';
53+
import { MeetingInfo } from 'botbuilder-core';
5354
import { MeetingNotification } from 'botbuilder-core';
5455
import { MeetingNotificationResponse } from 'botbuilder-core';
5556
import { MeetingParticipantsEventDetails } from 'botbuilder-core';
@@ -481,7 +482,7 @@ export function teamsGetTenant(activity: Activity): TenantInfo | null;
481482
export class TeamsInfo {
482483
static cancelOperation(context: TurnContext, operationId: string): Promise<CancelOperationResponse>;
483484
static getFailedEntries(context: TurnContext, operationId: string): Promise<BatchFailedEntriesResponse>;
484-
static getMeetingInfo(context: TurnContext, meetingId?: string): Promise<TeamsMeetingInfo>;
485+
static getMeetingInfo(context: TurnContext, meetingId?: string): Promise<MeetingInfo>;
485486
static getMeetingParticipant(context: TurnContext, meetingId?: string, participantId?: string, tenantId?: string): Promise<TeamsMeetingParticipant>;
486487
static getMember(context: TurnContext, userId: string): Promise<TeamsChannelAccount>;
487488
// @deprecated

libraries/botbuilder/src/teamsInfo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
ConversationParameters,
2121
ConversationReference,
2222
TeamsMeetingParticipant,
23-
TeamsMeetingInfo,
23+
MeetingInfo,
2424
Channels,
2525
MeetingNotification,
2626
MeetingNotificationResponse,
@@ -101,9 +101,9 @@ export class TeamsInfo {
101101
*
102102
* @param context The [TurnContext](xref:botbuilder-core.TurnContext) for this turn.
103103
* @param meetingId The BASE64-encoded id of the Teams meeting.
104-
* @returns The [TeamsMeetingInfo](xref:botbuilder-core.TeamsMeetingInfo) fetched
104+
* @returns The [MeetingInfo](xref:botframework-schema.MeetingInfo) fetched
105105
*/
106-
static async getMeetingInfo(context: TurnContext, meetingId?: string): Promise<TeamsMeetingInfo> {
106+
static async getMeetingInfo(context: TurnContext, meetingId?: string): Promise<MeetingInfo> {
107107
if (!context) {
108108
throw new Error('context is required.');
109109
}

libraries/botframework-connector/src/teams/models/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { HttpResponse, ServiceClientOptions, RequestOptionsBase } from '@azure/c
77
import {
88
ConversationList,
99
TeamDetails,
10-
TeamsMeetingInfo,
10+
MeetingInfo,
1111
MeetingNotificationResponse,
1212
TeamsMeetingParticipant,
1313
BatchOperationResponse,
@@ -112,7 +112,7 @@ export interface TeamsFetchMeetingParticipantOptionalParams extends RequestOptio
112112
/**
113113
* Contains response data for the fetchMeetingInfo operation.
114114
*/
115-
export type TeamsMeetingInfoResponse = TeamsMeetingInfo & {
115+
export type TeamsMeetingInfoResponse = MeetingInfo & {
116116
/**
117117
* The underlying HTTP response.
118118
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"**/@babel/plugin-proposal-class-properties/@babel/core": "^7.23.2",
5959
"follow-redirects": "^1.15.4",
6060
"@types/ramda": "0.26.0",
61+
"@types/jsonwebtoken": "7.2.8",
6162
"@azure/msal-browser": "^2.38.3",
6263
"@azure/msal-node": "^1.18.4",
6364
"axios": "0.28.0",
@@ -69,7 +70,6 @@
6970
"@microsoft/api-extractor": "^7.38.2",
7071
"@standardlabs/downlevel-dts": "^0.7.5",
7172
"@standardlabs/is-private": "^1.0.1",
72-
"@types/jsonwebtoken": "7.2.8",
7373
"@types/lodash": "^4.14.134",
7474
"@types/mocha": "^5.2.7",
7575
"@types/sinon": "^9.0.11",

testing/bot-integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@types/express": "^4.17.7",
2020
"@types/restify": "^8.4.2",
21-
"express": "^4.17.3",
21+
"express": "^4.19.2",
2222
"restify": "^8.5.1"
2323
}
2424
}

testing/browser-functional/browser-echo-bot/yarn.lock

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,21 +1753,21 @@ bn.js@^5.0.0, bn.js@^5.2.1:
17531753
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70"
17541754
integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==
17551755

1756-
body-parser@1.20.1:
1757-
version "1.20.1"
1758-
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
1759-
integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==
1756+
body-parser@1.20.2:
1757+
version "1.20.2"
1758+
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd"
1759+
integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==
17601760
dependencies:
17611761
bytes "3.1.2"
1762-
content-type "~1.0.4"
1762+
content-type "~1.0.5"
17631763
debug "2.6.9"
17641764
depd "2.0.0"
17651765
destroy "1.2.0"
17661766
http-errors "2.0.0"
17671767
iconv-lite "0.4.24"
17681768
on-finished "2.4.1"
17691769
qs "6.11.0"
1770-
raw-body "2.5.1"
1770+
raw-body "2.5.2"
17711771
type-is "~1.6.18"
17721772
unpipe "1.0.0"
17731773

@@ -2351,6 +2351,11 @@ content-type@~1.0.4:
23512351
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
23522352
integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==
23532353

2354+
content-type@~1.0.5:
2355+
version "1.0.5"
2356+
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918"
2357+
integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==
2358+
23542359
convert-source-map@^2.0.0:
23552360
version "2.0.0"
23562361
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a"
@@ -2361,10 +2366,10 @@ cookie-signature@1.0.6:
23612366
resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
23622367
integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==
23632368

2364-
cookie@0.5.0:
2365-
version "0.5.0"
2366-
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b"
2367-
integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==
2369+
cookie@0.6.0:
2370+
version "0.6.0"
2371+
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051"
2372+
integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==
23682373

23692374
copy-concurrently@^1.0.0:
23702375
version "1.0.5"
@@ -3098,16 +3103,16 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2:
30983103
homedir-polyfill "^1.0.1"
30993104

31003105
express@^4.17.1:
3101-
version "4.18.2"
3102-
resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59"
3103-
integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==
3106+
version "4.19.2"
3107+
resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
3108+
integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
31043109
dependencies:
31053110
accepts "~1.3.8"
31063111
array-flatten "1.1.1"
3107-
body-parser "1.20.1"
3112+
body-parser "1.20.2"
31083113
content-disposition "0.5.4"
31093114
content-type "~1.0.4"
3110-
cookie "0.5.0"
3115+
cookie "0.6.0"
31113116
cookie-signature "1.0.6"
31123117
debug "2.6.9"
31133118
depd "2.0.0"
@@ -3322,9 +3327,9 @@ flush-write-stream@^1.0.0:
33223327
readable-stream "^2.3.6"
33233328

33243329
follow-redirects@^1.0.0, follow-redirects@^1.15.4:
3325-
version "1.15.5"
3326-
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.5.tgz#54d4d6d062c0fa7d9d17feb008461550e3ba8020"
3327-
integrity sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==
3330+
version "1.15.6"
3331+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
3332+
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
33283333

33293334
for-in@^1.0.2:
33303335
version "1.0.2"
@@ -5463,10 +5468,10 @@ range-parser@^1.2.1, range-parser@~1.2.1:
54635468
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
54645469
integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==
54655470

5466-
raw-body@2.5.1:
5467-
version "2.5.1"
5468-
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857"
5469-
integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==
5471+
raw-body@2.5.2:
5472+
version "2.5.2"
5473+
resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a"
5474+
integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==
54705475
dependencies:
54715476
bytes "3.1.2"
54725477
http-errors "2.0.0"

0 commit comments

Comments
 (0)