123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
-
-
- 'use strict';
-
- require('./driver').set(require('./drivers/browser'));
-
- const DocumentProvider = require('./document_provider.js');
- const PromiseProvider = require('./promise_provider');
-
- DocumentProvider.setBrowser(true);
-
-
-
- Object.defineProperty(exports, 'Promise', {
- get: function() {
- return PromiseProvider.get();
- },
- set: function(lib) {
- PromiseProvider.set(lib);
- }
- });
-
-
-
- exports.PromiseProvider = PromiseProvider;
-
-
-
- exports.Error = require('./error');
-
-
-
- exports.Schema = require('./schema');
-
-
- exports.Types = require('./types');
-
-
- exports.VirtualType = require('./virtualtype');
-
-
-
- exports.SchemaType = require('./schematype.js');
-
-
-
- exports.utils = require('./utils.js');
-
-
- exports.Document = DocumentProvider();
-
-
-
- if (typeof window !== 'undefined') {
- window.mongoose = module.exports;
- window.Buffer = Buffer;
- }
|