@azure/ai-text-analytics 5.2.0-alpha.20220221.1 → 5.2.0-alpha.20220315.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 +1 -1
- package/dist/index.js +0 -15
- package/dist/index.js.map +1 -1
- package/dist-esm/src/analyzeLro.js +0 -14
- package/dist-esm/src/analyzeLro.js.map +1 -1
- package/dist-esm/src/textAnalyticsClient.js +1 -2
- package/dist-esm/src/textAnalyticsClient.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -510,7 +510,7 @@ main();
|
|
|
510
510
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
511
511
|
|
|
512
512
|
```javascript
|
|
513
|
-
|
|
513
|
+
const { logger } = require("@azure/logger");
|
|
514
514
|
|
|
515
515
|
setLogLevel("info");
|
|
516
516
|
```
|
package/dist/index.js
CHANGED
|
@@ -5061,20 +5061,6 @@ class AnalyzeLro {
|
|
|
5061
5061
|
return sendGetRequest(this.client, analyzeStatusOperationSpec, "AnalyzeStatus", Object.assign(Object.assign({}, this.baseOptions), this.pollOptions), path);
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
/**
|
|
5065
|
-
* @internal
|
|
5066
|
-
*/
|
|
5067
|
-
function isAnalyzeDone(response) {
|
|
5068
|
-
const castResponse = response;
|
|
5069
|
-
switch (castResponse.status) {
|
|
5070
|
-
case "notStarted":
|
|
5071
|
-
case "running":
|
|
5072
|
-
return false;
|
|
5073
|
-
default: {
|
|
5074
|
-
return true;
|
|
5075
|
-
}
|
|
5076
|
-
}
|
|
5077
|
-
}
|
|
5078
5064
|
/**
|
|
5079
5065
|
* @internal
|
|
5080
5066
|
*/
|
|
@@ -5449,7 +5435,6 @@ class TextAnalyticsClient {
|
|
|
5449
5435
|
tracingOptions,
|
|
5450
5436
|
includeStatistics,
|
|
5451
5437
|
}),
|
|
5452
|
-
isDone: isAnalyzeDone,
|
|
5453
5438
|
updateState: updateAnalyzeState,
|
|
5454
5439
|
});
|
|
5455
5440
|
await poller.poll();
|