setup-bun/node_modules/@azure/ms-rest-js/es/lib/browserFetchHttpClient.js

22 lines
979 B
JavaScript
Raw Normal View History

2022-07-12 09:00:22 +02:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import { __extends } from "tslib";
import { FetchHttpClient, } from "./fetchHttpClient";
var BrowserFetchHttpClient = /** @class */ (function (_super) {
__extends(BrowserFetchHttpClient, _super);
function BrowserFetchHttpClient() {
return _super !== null && _super.apply(this, arguments) || this;
}
BrowserFetchHttpClient.prototype.prepareRequest = function (_httpRequest) {
return Promise.resolve({});
};
BrowserFetchHttpClient.prototype.processRequest = function (_operationResponse) {
return Promise.resolve();
};
BrowserFetchHttpClient.prototype.fetch = function (input, init) {
return fetch(input, init);
};
return BrowserFetchHttpClient;
}(FetchHttpClient));
export { BrowserFetchHttpClient };
//# sourceMappingURL=browserFetchHttpClient.js.map