This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo/build/deprecatedGlobal.js.map

1 line
1.4 KiB
Plaintext
Raw Normal View History

2021-04-02 02:24:13 +03:00
{"version":3,"file":"deprecatedGlobal.js","sourceRoot":"","sources":["../src/deprecatedGlobal.ts"],"names":[],"mappings":"AAAA,IAAI,QAAQ,GAAa,EAAE,CAAC;AAE5B,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,IAAI;IAC3C,IAAI,OAAO,EAAE;QACX,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;KAC9B;AACH,CAAC;AAED,SAAS,UAAU;IACjB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;QACpB,OAAO;KACR;IAED,IAAI,YAAY,GAAG,EAAE,CAAC;IAEtB,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEhB,YAAY,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,YAAY,IAAI,OAAO,CAAC;IACxB,YAAY,IAAI,mJAAmJ,CAAC;IACpK,OAAO,CAAC,IAAI,CACV,sGAAsG,YAAY,EAAE,CACrH,CAAC;IACF,QAAQ,GAAG,EAAE,CAAC;AAChB,CAAC","sourcesContent":["let packages: string[] = [];\n\nexport default function deprecatedGlobal(name) {\n if (__DEV__) {\n packages.push(name);\n setTimeout(logWarning, 1000);\n }\n}\n\nfunction logWarning() {\n if (!packages.length) {\n return;\n }\n\n let instructions = '';\n\n packages = Array.from(new Set(packages));\n packages.sort();\n\n instructions += packages.join(', ');\n instructions += `.\\n\\n`;\n instructions += `The global \"__expo\" and \"Expo\" objects will be removed in SDK 41. Learn more about how to fix this warning: https://expo.fyi/deprecated-globals\\n`;\n console.warn(\n `Your project is accessing the following APIs from a deprecated global rather than a module import: ${instructions}`\n );\n packages = [];\n}\n"]}