botbuilder-core
Advanced tools
Comparing version
@@ -22,4 +22,4 @@ /** | ||
*/ | ||
postActivity: (<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity) => Promise<InvokeResponse<T>>) | ((fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity) => Promise<InvokeResponse>); | ||
postActivity: <T = any>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity) => Promise<InvokeResponse<T>>; | ||
} | ||
//# sourceMappingURL=botFrameworkClient.d.ts.map |
@@ -8,2 +8,3 @@ "use strict"; | ||
const botframework_schema_1 = require("botframework-schema"); | ||
const _1 = require("."); | ||
const internal_1 = require("./internal"); | ||
@@ -349,2 +350,7 @@ const turnContextStateCollection_1 = require("./turnContextStateCollection"); | ||
this.bufferedReplyActivities.push(a); | ||
// Ensure the TurnState has the InvokeResponseKey, since this activity | ||
// is not being sent through the adapter, where it would be added to TurnState. | ||
if (a.type === botframework_schema_1.ActivityTypes.InvokeResponse) { | ||
this.turnState.set(_1.INVOKE_RESPONSE_KEY, a); | ||
} | ||
responses.push({ id: undefined }); | ||
@@ -351,0 +357,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"description": "Core components for Microsoft Bot Builder. Components in this library can run either in a browser or on the server.", | ||
"version": "4.11.0-rc0", | ||
"version": "4.11.0-rc1", | ||
"license": "MIT", | ||
@@ -25,4 +25,4 @@ "keywords": [ | ||
"assert": "^1.4.1", | ||
"botframework-connector": "4.11.0-rc0", | ||
"botframework-schema": "4.11.0-rc0" | ||
"botframework-connector": "4.11.0-rc1", | ||
"botframework-schema": "4.11.0-rc1" | ||
}, | ||
@@ -46,3 +46,3 @@ "devDependencies": { | ||
"clean": "erase /q /s .\\lib", | ||
"set-version": "npm version --allow-same-version 4.11.0-rc0", | ||
"set-version": "npm version --allow-same-version 4.11.0-rc1", | ||
"test": "tsc && nyc mocha tests/", | ||
@@ -49,0 +49,0 @@ "test:compat": "api-extractor run --verbose" |
@@ -24,19 +24,10 @@ /** | ||
*/ | ||
postActivity: | ||
| (<T>( | ||
fromBotId: string, | ||
toBotId: string, | ||
toUrl: string, | ||
serviceUrl: string, | ||
conversationId: string, | ||
activity: Activity | ||
) => Promise<InvokeResponse<T>>) | ||
| (( | ||
fromBotId: string, | ||
toBotId: string, | ||
toUrl: string, | ||
serviceUrl: string, | ||
conversationId: string, | ||
activity: Activity | ||
) => Promise<InvokeResponse>); | ||
postActivity: <T = any>( | ||
fromBotId: string, | ||
toBotId: string, | ||
toUrl: string, | ||
serviceUrl: string, | ||
conversationId: string, | ||
activity: Activity | ||
) => Promise<InvokeResponse<T>>; | ||
} |
@@ -14,2 +14,3 @@ /** | ||
} from 'botframework-schema'; | ||
import { INVOKE_RESPONSE_KEY } from '.'; | ||
import { BotAdapter } from './botAdapter'; | ||
@@ -507,4 +508,11 @@ import { shallowCopy } from './internal'; | ||
output.forEach((a) => { | ||
this.bufferedReplyActivities.push(a); | ||
responses.push({ id: undefined }); | ||
this.bufferedReplyActivities.push(a); | ||
// Ensure the TurnState has the InvokeResponseKey, since this activity | ||
// is not being sent through the adapter, where it would be added to TurnState. | ||
if (a.type === ActivityTypes.InvokeResponse) { | ||
this.turnState.set(INVOKE_RESPONSE_KEY, a); | ||
} | ||
responses.push({ id: undefined }); | ||
}); | ||
@@ -511,0 +519,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
876146
0.04%17711
0.01%+ Added
+ Added
- Removed
- Removed