colyseus.js
Version:
Colyseus Multiplayer SDK for JavaScript/TypeScript
1 lines • 1.29 kB
Source Map (JSON)
{"version":3,"file":"legacy.mjs","sources":["../../src/legacy.ts"],"sourcesContent":["//\n// Polyfills for legacy environments\n//\n\n/*\n * Support Android 4.4.x\n */\nif (!ArrayBuffer.isView) {\n ArrayBuffer.isView = (a: any): a is ArrayBufferView => {\n return a !== null && typeof (a) === 'object' && a.buffer instanceof ArrayBuffer;\n };\n}\n\n// Cocos Creator does not provide \"FormData\"\n// Define a dummy implementation so it doesn't crash\nif (typeof(FormData) === \"undefined\") {\n // @ts-ignore\n global['FormData'] = class {};\n}\n\n// Define globalThis if not available.\n// https://github.com/colyseus/colyseus.js/issues/86\nif (\n typeof (globalThis) === \"undefined\" &&\n typeof (window) !== \"undefined\"\n) {\n // @ts-ignore\n window['globalThis'] = window;\n}\n"],"names":[],"mappings":";AAAA;AACA;AACA;AAEA;;AAEG;AACH,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;AACrB,IAAA,WAAW,CAAC,MAAM,GAAG,CAAC,CAAM,KAA0B;AAClD,QAAA,OAAO,CAAC,KAAK,IAAI,IAAI,QAAQ,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,YAAY,WAAW;AACnF,KAAC;AACL;AAEA;AACA;AACA,IAAI,QAAO,QAAQ,CAAC,KAAK,WAAW,EAAE;;IAElC,MAAM,CAAC,UAAU,CAAC,GAAG,MAAA;KAAQ;AACjC;AAEA;AACA;AACA,IACI,QAAQ,UAAU,CAAC,KAAK,WAAW;AACnC,IAAA,QAAQ,MAAM,CAAC,KAAK,WAAW,EACjC;;AAEE,IAAA,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM;AACjC"}