@azure/arm-cognitiveservices 7.2.0 → 7.2.1-alpha.20221003.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ## 7.2.1 (2022-09-30)
4
+
5
+ **Bugs Fixed**
6
+
7
+ - fix better user experience of credential scopes in government cloud
8
+
3
9
  ## 7.2.0 (2022-06-10)
4
10
 
5
11
  **Features**
package/README.md CHANGED
@@ -13,7 +13,7 @@ Cognitive Services Management Client
13
13
 
14
14
  ### Currently supported environments
15
15
 
16
- - [LTS versions of Node.js](https://nodejs.org/about/releases/)
16
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
19
  See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
package/dist/index.js CHANGED
@@ -4994,13 +4994,10 @@ class CognitiveServicesManagementClient extends coreClient__namespace.ServiceCli
4994
4994
  requestContentType: "application/json; charset=utf-8",
4995
4995
  credential: credentials
4996
4996
  };
4997
- const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.0`;
4997
+ const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.1`;
4998
4998
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4999
4999
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5000
5000
  : `${packageDetails}`;
5001
- if (!options.credentialScopes) {
5002
- options.credentialScopes = ["https://management.azure.com/.default"];
5003
- }
5004
5001
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
5005
5002
  userAgentPrefix
5006
5003
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });