2019-11-07 20:39:22 +01:00
|
|
|
function logWarning(method) {
|
2020-05-07 20:44:11 +02:00
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
2019-11-07 20:39:22 +01:00
|
|
|
console.error(`Called fs.${method} on lbry.tv. This should be removed.`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
readFileSync: () => {
|
|
|
|
logWarning('readFileSync');
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
accessFileSync: () => {
|
|
|
|
logWarning('accessFileSync');
|
|
|
|
return undefined;
|
|
|
|
},
|
|
|
|
constants: {},
|
|
|
|
};
|