You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
249 B
JavaScript

'use strict';
const env = require('../env');
if ('unknown' == env.type) {
throw new Error('Unknown environment');
}
module.exports =
env.isNode ? require('./node') :
env.isMongo ? require('./collection') :
require('./collection');