1a5fb1ba8SEvan Bacon"use strict";
2a5fb1ba8SEvan BaconObject.defineProperty(exports, "__esModule", { value: true });
3a5fb1ba8SEvan Baconexports.fetchAsync = void 0;
426ad19fcSEvan Bacon/**
526ad19fcSEvan Bacon * Copyright © 2022 650 Industries.
626ad19fcSEvan Bacon *
726ad19fcSEvan Bacon * This source code is licensed under the MIT license found in the
826ad19fcSEvan Bacon * LICENSE file in the root directory of this source tree.
926ad19fcSEvan Bacon */
10a5fb1ba8SEvan Baconasync function fetchAsync(url) {
1126ad19fcSEvan Bacon    const response = await fetch(url, {
1226ad19fcSEvan Bacon        method: 'GET',
1326ad19fcSEvan Bacon        headers: {
1426ad19fcSEvan Bacon            // No real reason for this but we try to use this format for everything.
15*4a8c0978SEvan Bacon            'expo-platform': 'web',
1626ad19fcSEvan Bacon        },
1726ad19fcSEvan Bacon    });
1826ad19fcSEvan Bacon    return {
1926ad19fcSEvan Bacon        body: await response.text(),
2026ad19fcSEvan Bacon        headers: response.headers,
2126ad19fcSEvan Bacon    };
2226ad19fcSEvan Bacon}
23a5fb1ba8SEvan Baconexports.fetchAsync = fetchAsync;
2426ad19fcSEvan Bacon//# sourceMappingURL=fetchAsync.js.map