@azure/arm-azurestack 3.0.0-beta.3 → 3.0.0-beta.4

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
+ ## 3.0.0-beta.4 (2022-10-08)
4
+
5
+ **Bugs Fixed**
6
+
7
+ - revert credential scopes
8
+
3
9
  ## 3.0.0-beta.3 (2022-09-30)
4
10
 
5
11
  **Bugs Fixed**
package/dist/index.js CHANGED
@@ -3004,10 +3004,13 @@ class AzureStackManagementClient extends coreClient__namespace.ServiceClient {
3004
3004
  requestContentType: "application/json; charset=utf-8",
3005
3005
  credential: credentials
3006
3006
  };
3007
- const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.3`;
3007
+ const packageDetails = `azsdk-js-arm-azurestack/3.0.0-beta.4`;
3008
3008
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3009
3009
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3010
3010
  : `${packageDetails}`;
3011
+ if (!options.credentialScopes) {
3012
+ options.credentialScopes = ["https://management.azure.com/.default"];
3013
+ }
3011
3014
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3012
3015
  userAgentPrefix
3013
3016
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });