UNPKG

1.02 kBJavaScriptView Raw
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License. See License.txt in the project root for license information.
3import { __extends } from "tslib";
4import { BaseRequestPolicy, } from "./requestPolicy";
5var agentNotSupportedInBrowser = new Error("AgentPolicy is not supported in browser environment");
6export function agentPolicy(_agentSettings) {
7 return {
8 create: function (_nextPolicy, _options) {
9 throw agentNotSupportedInBrowser;
10 },
11 };
12}
13var AgentPolicy = /** @class */ (function (_super) {
14 __extends(AgentPolicy, _super);
15 function AgentPolicy(nextPolicy, options) {
16 var _this = _super.call(this, nextPolicy, options) || this;
17 throw agentNotSupportedInBrowser;
18 return _this;
19 }
20 AgentPolicy.prototype.sendRequest = function (_request) {
21 throw agentNotSupportedInBrowser;
22 };
23 return AgentPolicy;
24}(BaseRequestPolicy));
25export { AgentPolicy };
26//# sourceMappingURL=agentPolicy.browser.js.map
\No newline at end of file