GT2/Ejectable/node_modules/expo/build/logs/RemoteConsole.js.map

1 line
6.4 KiB
Plaintext
Raw Normal View History

2021-08-16 00:14:59 +00:00
{"version":3,"file":"RemoteConsole.js","sourceRoot":"","sources":["../../src/logs/RemoteConsole.ts"],"names":[],"mappings":"AAAA,OAAO,aAA2C,MAAM,iBAAiB,CAAC;AAE1E;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,eAAwB;IAC1D,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,MAAM,eAAe,GAA2B,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAE/E,yCAAyC;IACzC,kGAAkG;IAClG,mBAAmB;IACnB,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEzC,uCAAuC;IACvC,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAEvC,wCAAwC;IACxC,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC,wCAAwC;IACxC,uBAAuB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC,yCAAyC;IACzC,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE1C,0CAA0C;IAC1C,eAAe,CAAC,MAAM,GAAG,SAAS,MAAM,CAAC,SAAkB,EAAE,GAAG,IAAe;QAC7E,IAAI,eAAe,CAAC,MAAM,EAAE;YAC1B,aAAa;YACb,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;SAC9C;QAED,IAAI,SAAS,EAAE;YACb,OAAO;SACR;QAED,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAC7B;aAAM;YACL,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;gBAC/B,IAAI,CAAC,OAAO,CAAC,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,CAAC,GAAG,IAAe;YAClE,MAAM,cAAc,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;YAC7C,IAAI,OAAO,cAAc,KAAK,UAAU,EAAE;gBACxC,cAAc,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;aAC7C;YAED,iBAAiB,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,SAAS,iBAAiB,CACxB,KAAe,EACf,gBAAgC,EAChC,IAAe;QAEf,aAAa,CAAC,qBAAqB,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,EAAE,IAAI,CAAC,CAAC,KAAK,CACzF,KAAK,CAAC,EAAE;YACN,eAAe,CAAC,KAAK,CACnB,0EAA0E,EAC1E,KAAK,CACN,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["import RemoteLogging, { LogEntryFields, LogLevel } from './RemoteLogging';\n\n/**\n * Creates a console object that delegates calls to the specified underlying console and also sends\n * the messages to the development environment over a remote connection.\n */\nexport function createRemoteConsole(originalConsole: Console): Console {\n let groupDepth = 0;\n\n const enhancedConsole: typeof originalConsole = Object.create(originalConsole);\n\n // https://console.spec.whatwg.org/#debug\n // Don't use a level below \"info\" because \"debug\" is intended for messages that shouldn't be shown\n // to the developer\n _defineConsoleLogMethod('debug', 'info');\n\n // https://console.spec.whatwg.org/#log\n _defineConsoleLogMethod('log', 'info');\n\n // https://console.spec.whatwg.org/#info\n _defineConsoleLogMethod('info', 'info');\n\n // https://console.spec.whatwg.org/#warn\n _defineConsoleLogMethod('warn', 'warn');\n\n // https://console.spec.whatwg.org/#error\n _defineConsoleLogMethod('error', 'error');\n\n // https://console.spec.whatwg.org/#assert\n enhancedConsole.assert = function assert(condition: unknown, ...data: unknown[]): void {\n if (originalConsole.assert) {\n // @ts-ignore\n originalConsole.assert(!!condition, ...data);\n }\n\n if (condition) {\n return;\n }\n\n const assertionMessage = 'Assertion failed';\n if (!data.length) {\n data.push(assertionMessage);\n } else {\n if (typeof data[0