@azure/ai-language-text 1.1.0-alpha.20221104.3 → 1.1.0-alpha.20221107.2

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
@@ -4292,10 +4292,11 @@ function processAnalyzeResult(options) {
4292
4292
  */
4293
4293
  function createUpdateAnalyzeState(docIds) {
4294
4294
  return (state, lastResponse) => {
4295
- const { createdOn, modifiedOn, id, displayName, expiresOn, tasks } = lastResponse.flatResponse;
4295
+ const { createdOn, modifiedOn, id, displayName, expiresOn, tasks, lastUpdateDateTime } = lastResponse.flatResponse;
4296
4296
  const mutableState = state;
4297
4297
  mutableState.createdOn = createdOn;
4298
- mutableState.modifiedOn = modifiedOn;
4298
+ // FIXME: remove this mitigation when the service API is fixed
4299
+ mutableState.modifiedOn = modifiedOn ? modifiedOn : new Date(lastUpdateDateTime);
4299
4300
  mutableState.expiresOn = expiresOn;
4300
4301
  mutableState.displayName = displayName;
4301
4302
  mutableState.id = id;