@azure/arm-cognitiveservices 7.2.0-alpha.20220926.1 → 7.2.1-alpha.20220930.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/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" });