mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
25 lines
585 B
JavaScript
25 lines
585 B
JavaScript
// stubs for NPM compatibility
|
|
|
|
const returnEmptyObject = function () {
|
|
return {};
|
|
}
|
|
|
|
console.log(Mongo); // eslint-disable-line
|
|
|
|
const Mongo = typeof Mongo !== "undefined" ? Mongo : {
|
|
Collection: function () {
|
|
return {attachSchema: returnEmptyObject}
|
|
}
|
|
};
|
|
|
|
console.log("// Mongo"); // eslint-disable-line
|
|
console.log(Mongo); // eslint-disable-line
|
|
|
|
const Meteor = typeof Meteor !== "undefined" ? Meteor : {
|
|
methods: returnEmptyObject
|
|
};
|
|
|
|
const SimpleSchema = typeof SimpleSchema !== "undefined" ? SimpleSchema : returnEmptyObject;
|
|
|
|
const Foo = "bar"
|
|
export { Mongo, Foo }
|