@speechly/react-client
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -29,9 +29,9 @@ import React from 'react'; | ||
/** | ||
* Turns listening on. Automatically initialises the API connection and audio stack. | ||
* Turns listening on. Automatically initialises the API connection and audio stack. Returns the context id for the stated utterance. | ||
*/ | ||
start: () => Promise<string>; | ||
/** | ||
* Turns listening off. | ||
* Turns listening off. Returns the context id for the stopped utterance. | ||
*/ | ||
stop: () => Promise<void>; | ||
stop: () => Promise<string>; | ||
/** | ||
@@ -140,3 +140,3 @@ * Current appId in multi-app project. | ||
readonly start: () => Promise<string>; | ||
readonly stop: () => Promise<void>; | ||
readonly stop: () => Promise<string>; | ||
render(): JSX.Element; | ||
@@ -143,0 +143,0 @@ componentDidUpdate(prevProps: SpeechProviderProps): Promise<void>; |
@@ -86,3 +86,3 @@ "use strict"; | ||
stop: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { | ||
return [2 /*return*/, Promise.resolve()]; | ||
return [2 /*return*/, Promise.resolve('Unknown contextId')]; | ||
}); }); }, | ||
@@ -89,0 +89,0 @@ clientState: browser_client_1.DecoderState.Disconnected, |
{ | ||
"name": "@speechly/react-client", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "React client for Speechly SLU API", | ||
@@ -52,3 +52,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@speechly/browser-client": "^2.4.1" | ||
"@speechly/browser-client": "^2.6.0" | ||
}, | ||
@@ -55,0 +55,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54775