@azure/ai-language-text 1.1.0-alpha.20221117.5 → 1.1.0-alpha.20221130.3

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.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,