GT2/Ejectable/node_modules/expo-error-recovery/build/ErrorRecovery.fx.js.map

1 line
1.6 KiB
Plaintext

{"version":3,"file":"ErrorRecovery.fx.js","sourceRoot":"","sources":["../src/ErrorRecovery.fx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;IACzB,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IACpD,oCAAoC;IACpC,iIAAiI;IACjI,UAAU,CAAC,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QACnD,IAAI,iBAAiB,CAAC,iBAAiB,EAAE;YACvC,MAAM,iBAAiB,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;SACrE;QACD,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;CACJ;KAAM,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,QAAQ,CAAC,cAAc,EAAE;IAC3D,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;QACpC,iBAAiB,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;CACJ","sourcesContent":["import { Platform } from '@unimodules/core';\n\nimport { getRecoveryPropsToSave } from './ErroRecoveryStore';\nimport ExpoErrorRecovery from './ExpoErrorRecovery';\n\nif (Platform.OS !== 'web') {\n const globalHandler = ErrorUtils.getGlobalHandler();\n // ErrorUtils came from react-native\n // https://github.com/facebook/react-native/blob/1151c096dab17e5d9a6ac05b61aacecd4305f3db/Libraries/vendor/core/ErrorUtils.js#L25\n ErrorUtils.setGlobalHandler(async (error, isFatal) => {\n if (ExpoErrorRecovery.saveRecoveryProps) {\n await ExpoErrorRecovery.saveRecoveryProps(getRecoveryPropsToSave());\n }\n globalHandler(error, isFatal);\n });\n} else if (Platform.OS === 'web' && Platform.isDOMAvailable) {\n window.addEventListener('error', () => {\n ExpoErrorRecovery.saveRecoveryProps(getRecoveryPropsToSave());\n });\n}\n"]}