Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / gaxios / build / src / index.js
1 "use strict";
2 // Copyright 2018, Google, LLC.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //    http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15     return new (P || (P = Promise))(function (resolve, reject) {
16         function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17         function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18         function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
19         step((generator = generator.apply(thisArg, _arguments || [])).next());
20     });
21 };
22 Object.defineProperty(exports, "__esModule", { value: true });
23 const gaxios_1 = require("./gaxios");
24 exports.Gaxios = gaxios_1.Gaxios;
25 var common_1 = require("./common");
26 exports.GaxiosError = common_1.GaxiosError;
27 /**
28  * The default instance used when the `request` method is directly
29  * invoked.
30  */
31 exports.instance = new gaxios_1.Gaxios();
32 /**
33  * Make an HTTP request using the given options.
34  * @param opts Options for the request
35  */
36 function request(opts) {
37     return __awaiter(this, void 0, void 0, function* () {
38         return exports.instance.request(opts);
39     });
40 }
41 exports.request = request;
42 //# sourceMappingURL=index.js.map