one
Version:
One is a React framework for web, iOS, and Android apps.
1 lines • 1.32 kB
Source Map (JSON)
{"version":3,"file":"index.js","names":[],"sources":["esm/platform/updates/index.js"],"sourcesContent":["import { assertStagedListener } from \"./validate\";\nasync function check() {\n throw new Error(\"Updates.check needs an iOS or Android build\");\n}\nasync function fetch() {\n throw new Error(\"Updates.fetch needs an iOS or Android build\");\n}\nfunction getStaged() {\n return null;\n}\nfunction addStagedListener(listener) {\n assertStagedListener(listener);\n return { remove: () => {\n } };\n}\nasync function reload() {\n if (typeof window !== \"undefined\") window.location.reload();\n}\nconst Updates = Object.freeze({\n isEnabled: false,\n runtimeVersion: null,\n updateId: null,\n isEmbeddedLaunch: false,\n createdAt: null,\n manifest: null,\n check,\n fetch,\n getStaged,\n addStagedListener,\n reload\n});\nexport {\n Updates\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,eAAe,QAAQ;CACrB,MAAM,IAAI,MAAM,6CAA6C;AAC/D;AACA,eAAe,QAAQ;CACrB,MAAM,IAAI,MAAM,6CAA6C;AAC/D;AACA,SAAS,YAAY;CACnB,OAAO;AACT;AACA,SAAS,kBAAkB,UAAU;CACnC,qBAAqB,QAAQ;CAC7B,OAAO,EAAE,cAAc,CACvB,EAAE;AACJ;AACA,eAAe,SAAS;CACtB,IAAI,OAAO,WAAW,aAAa,OAAO,SAAS,OAAO;AAC5D;AACA,MAAM,UAAU,OAAO,OAAO;CAC5B,WAAW;CACX,gBAAgB;CAChB,UAAU;CACV,kBAAkB;CAClB,WAAW;CACX,UAAU;CACV;CACA;CACA;CACA;CACA;AACF,CAAC"}