You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.1 KiB

{"ast":null,"code":"import { EventEmitter } from \"../EventEmitter\";\nimport Platform from \"../Platform\";\nimport { CodedError } from \"../errors/CodedError\";\nimport NativeErrorManager from \"./NativeErrorManager\";\nif (__DEV__ && Platform.OS === 'android' && NativeErrorManager) {\n var onNewException = 'ExpoModulesCoreErrorManager.onNewException';\n var eventEmitter = new EventEmitter(NativeErrorManager);\n eventEmitter.addListener(onNewException, function (_ref) {\n var message = _ref.message;\n console.error(message);\n });\n}\nglobal.ExpoModulesCore_CodedError = CodedError;","map":{"version":3,"mappings":"AAAA,SAASA,YAAY;AACrB,OAAOC,QAAQ;AACf,SAASC,UAAU;AACnB,OAAOC,kBAAkB;AAEzB,IAAIC,OAAO,IAAIH,QAAQ,CAACI,EAAE,KAAK,SAAS,IAAIF,kBAAkB,EAAE;EAC9D,IAAMG,cAAc,GAAG,4CAA4C;EACnE,IAAMC,YAAY,GAAG,IAAIP,YAAY,CAACG,kBAAkB,CAAC;EAEzDI,YAAY,CAACC,WAAW,CAACF,cAAc,EAAE,gBAAqC;IAAA,IAAlCG,OAAO,QAAPA,OAAO;IACjDC,OAAO,CAACC,KAAK,CAACF,OAAO,CAAC;EACxB,CAAC,CAAC;;AAIJG,MAAM,CAACC,0BAA0B,GAAGX,UAAU","names":["EventEmitter","Platform","CodedError","NativeErrorManager","__DEV__","OS","onNewException","eventEmitter","addListener","message","console","error","global","ExpoModulesCore_CodedError"],"sources":["/Users/mathildejean/Documents/BUT/LaSuperMeteo/LaSuperMeteo/iut-expo-starter/node_modules/expo-modules-core/src/sweet/setUpErrorManager.fx.ts"],"sourcesContent":["import { EventEmitter } from '../EventEmitter';\nimport Platform from '../Platform';\nimport { CodedError } from '../errors/CodedError';\nimport NativeErrorManager from './NativeErrorManager';\n\nif (__DEV__ && Platform.OS === 'android' && NativeErrorManager) {\n const onNewException = 'ExpoModulesCoreErrorManager.onNewException';\n const eventEmitter = new EventEmitter(NativeErrorManager);\n\n eventEmitter.addListener(onNewException, ({ message }: { message: string }) => {\n console.error(message);\n });\n}\n\n// We have to export `CodedError` via global object to use in later in the C++ code.\nglobal.ExpoModulesCore_CodedError = CodedError;\n"]},"metadata":{},"sourceType":"module","externalDependencies":[]}