@azure/arm-healthcareapis 2.1.1-alpha.20220420.2 → 2.1.2-alpha.20220427.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -1
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +18 -1
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
- package/package.json +3 -3
- package/src/healthcareApisManagementClient.ts +25 -1
- package/LICENSE.txt +0 -21
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 2.1.
|
3
|
+
## 2.1.2 (Unreleased)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
@@ -10,6 +10,12 @@
|
|
10
10
|
|
11
11
|
### Other Changes
|
12
12
|
|
13
|
+
## 2.1.1 (2022-04-26)
|
14
|
+
|
15
|
+
**Features**
|
16
|
+
|
17
|
+
- Bug fix
|
18
|
+
|
13
19
|
## 2.1.0 (2022-03-22)
|
14
20
|
|
15
21
|
**Features**
|
package/dist/index.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
6
7
|
var tslib = require('tslib');
|
7
8
|
var coreLro = require('@azure/core-lro');
|
8
9
|
|
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
|
|
25
26
|
}
|
26
27
|
|
27
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
28
30
|
|
29
31
|
/*
|
30
32
|
* Copyright (c) Microsoft Corporation.
|
@@ -6240,7 +6242,7 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
|
|
6240
6242
|
requestContentType: "application/json; charset=utf-8",
|
6241
6243
|
credential: credentials
|
6242
6244
|
};
|
6243
|
-
const packageDetails = `azsdk-js-arm-healthcareapis/2.1.
|
6245
|
+
const packageDetails = `azsdk-js-arm-healthcareapis/2.1.2`;
|
6244
6246
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
6245
6247
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
6246
6248
|
: `${packageDetails}`;
|
@@ -6251,6 +6253,22 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
|
|
6251
6253
|
userAgentPrefix
|
6252
6254
|
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
6253
6255
|
super(optionsWithDefaults);
|
6256
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
6257
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
6258
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
6259
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
6260
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
6261
|
+
this.pipeline.removePolicy({
|
6262
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
6263
|
+
});
|
6264
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
6265
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
6266
|
+
challengeCallbacks: {
|
6267
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
6268
|
+
}
|
6269
|
+
}));
|
6270
|
+
}
|
6271
|
+
}
|
6254
6272
|
// Parameter assignments
|
6255
6273
|
this.subscriptionId = subscriptionId;
|
6256
6274
|
// Assigning values to Constant parameters
|