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