@azure/arm-automation 11.0.0-beta.2 → 11.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ## 11.0.0-beta.3 (2022-10-08)
4
+
5
+ **Bugs Fixed**
6
+
7
+ - revert credential scopes
8
+
3
9
  ## 11.0.0-beta.2 (2022-09-30)
4
10
 
5
11
  **Bugs Fixed**
package/dist/index.js CHANGED
@@ -17756,10 +17756,13 @@ class AutomationClient extends coreClient__namespace.ServiceClient {
17756
17756
  requestContentType: "application/json; charset=utf-8",
17757
17757
  credential: credentials
17758
17758
  };
17759
- const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.2`;
17759
+ const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.3`;
17760
17760
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
17761
17761
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
17762
17762
  : `${packageDetails}`;
17763
+ if (!options.credentialScopes) {
17764
+ options.credentialScopes = ["https://management.azure.com/.default"];
17765
+ }
17763
17766
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
17764
17767
  userAgentPrefix
17765
17768
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });