1"use strict"; 2/** 3 * Copyright (c) 650 Industries. 4 * Copyright (c) Meta Platforms, Inc. and affiliates. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE file in the root directory of this source tree. 8 */ 9Object.defineProperty(exports, "__esModule", { value: true }); 10async function symbolicateStackTrace(stack) { 11 const baseUrl = typeof window === 'undefined' 12 ? process.env.EXPO_DEV_SERVER_ORIGIN 13 : window.location.protocol + '//' + window.location.host; 14 const response = await fetch(baseUrl + '/symbolicate', { 15 method: 'POST', 16 body: JSON.stringify({ stack }), 17 }); 18 return await response.json(); 19} 20exports.default = symbolicateStackTrace; 21//# sourceMappingURL=index.js.map