@azure/ai-language-text 1.1.0-alpha.20221128.2 → 1.1.0-alpha.20230112.1

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/README.md CHANGED
@@ -50,7 +50,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
50
50
  ### Prerequisites
51
51
 
52
52
  - An [Azure subscription][azure_sub].
53
- - An existing [Cognitive Services][cognitive_resource] or Language resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].
53
+ - An existing [Cognitive Services][cognitive_resource] or Language resource. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli] following the steps in [this document][cli_docs].
54
54
 
55
55
  If you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:
56
56
 
@@ -837,6 +837,7 @@ If you'd like to contribute to this library, please read the [contributing guide
837
837
 
838
838
  ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcognitivelanguage%2Fai-language-text%2FREADME.png)
839
839
 
840
+ [cli_docs]: https://learn.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli?tabs=windows#prerequisites
840
841
  [azure_cli]: https://docs.microsoft.com/cli/azure
841
842
  [azure_sub]: https://azure.microsoft.com/free/
842
843
  [cognitive_resource]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account
package/dist/index.js CHANGED
@@ -4190,7 +4190,14 @@ function createSendPollRequest(settings) {
4190
4190
  return async (path) => {
4191
4191
  return throwError(sendRequest({
4192
4192
  client,
4193
- opOptions: options,
4193
+ opOptions: Object.assign(Object.assign({}, options), { onResponse: (rawResponse, response, error) => {
4194
+ var _a;
4195
+ const castResponse = response;
4196
+ if (castResponse.status.toLowerCase() === "partiallysucceeded") {
4197
+ castResponse.status = "failed";
4198
+ }
4199
+ (_a = options.onResponse) === null || _a === void 0 ? void 0 : _a.call(options, rawResponse, response, error);
4200
+ } }),
4194
4201
  path,
4195
4202
  spanStr,
4196
4203
  spec: jobStatusOperationSpec$1,