@azure/arm-datafactory 10.6.0-alpha.20220608.1 → 10.7.0

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.
@@ -94,15 +94,12 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
94
94
  credential: credentials
95
95
  };
96
96
 
97
- const packageDetails = `azsdk-js-arm-datafactory/10.6.0`;
97
+ const packageDetails = `azsdk-js-arm-datafactory/10.7.0`;
98
98
  const userAgentPrefix =
99
99
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
100
100
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
101
101
  : `${packageDetails}`;
102
102
 
103
- if (!options.credentialScopes) {
104
- options.credentialScopes = ["https://management.azure.com/.default"];
105
- }
106
103
  const optionsWithDefaults = {
107
104
  ...defaults,
108
105
  ...options,
@@ -183,7 +180,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
183
180
  if (param.length > 1) {
184
181
  const newParams = param[1].split("&").map((item) => {
185
182
  if (item.indexOf("api-version") > -1) {
186
- return item.replace(/(?<==).*$/, apiVersion);
183
+ return "api-version=" + apiVersion;
187
184
  } else {
188
185
  return item;
189
186
  }