index.js 446 B

12345678910111213141516
  1. /*!
  2. * Module exports.
  3. */
  4. 'use strict';
  5. exports.Binary = require('./binary');
  6. exports.Collection = function() {
  7. throw new Error('Cannot create a collection from browser library');
  8. };
  9. exports.getConnection = () => function() {
  10. throw new Error('Cannot create a connection from browser library');
  11. };
  12. exports.Decimal128 = require('./decimal128');
  13. exports.ObjectId = require('./objectid');
  14. exports.ReadPreference = require('./ReadPreference');