one
Version:
One is a React framework for web, iOS, and Android apps.
1 lines • 952 B
Source Map (JSON)
{"version":3,"file":"nativeError.js","names":[],"sources":["esm/platform/nativeError.js"],"sourcesContent":["function rethrowNativeError(error) {\n if (error instanceof Error) {\n const message = error.message.trimEnd();\n const coded = /(?:^|:\\s)((?:E|ERR)_[A-Z0-9_]+): ([\\s\\S]*)$/.exec(message);\n error.message = coded ? coded[2] : message;\n if (coded) Object.assign(error, { code: coded[1] });\n }\n throw error;\n}\nfunction missingNativeBuild(operation) {\n return new Error(`${operation} needs an iOS or Android build`);\n}\nexport {\n missingNativeBuild,\n rethrowNativeError\n};\n//# sourceMappingURL=nativeError.js.map\n"],"mappings":";AAAA,SAAS,mBAAmB,OAAO;CACjC,IAAI,iBAAiB,OAAO;EAC1B,MAAM,UAAU,MAAM,QAAQ,QAAQ;EACtC,MAAM,QAAQ,8CAA8C,KAAK,OAAO;EACxE,MAAM,UAAU,QAAQ,MAAM,KAAK;EACnC,IAAI,OAAO,OAAO,OAAO,OAAO,EAAE,MAAM,MAAM,GAAG,CAAC;CACpD;CACA,MAAM;AACR;AACA,SAAS,mBAAmB,WAAW;CACrC,OAAO,IAAI,MAAM,GAAG,UAAU,+BAA+B;AAC/D"}