This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

38
node_modules/expo/build/removedModule.js generated vendored Normal file
View File

@ -0,0 +1,38 @@
let messages = [];
let packages = [];
let namedImports = [];
export default function removedModule(message, namedImport, packageName) {
if (__DEV__) {
messages.push(message);
packages.push(packageName);
namedImports.push(namedImport);
setTimeout(throwError, 1000);
}
}
function throwError() {
if (!messages.length) {
return;
}
let instructions = '';
messages = Array.from(new Set(messages));
messages.sort();
packages = Array.from(new Set(packages));
packages.sort();
namedImports = Array.from(new Set(namedImports));
namedImports.sort();
instructions += namedImports.join(', ');
instructions += `.\n\n`;
instructions += `1. Add correct versions of these packages to your project using:\n\n`;
instructions += ` expo install ${packages.join(' ')}\n\n`;
instructions += `2. Change your imports so they use specific packages instead of the "expo" package:\n\n`;
messages.forEach(message => {
instructions += ` - ${message}\n`;
});
instructions += '\n';
const message = `The following APIs have moved to separate packages and importing them from the "expo" package is no longer supported: ${instructions}`;
messages = [];
packages = [];
namedImports = [];
throw new Error(message);
}
//# sourceMappingURL=removedModule.js.map