mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Updated mongoose
This commit is contained in:
20
node_modules/mongoose/lib/document_provider.js
generated
vendored
Normal file
20
node_modules/mongoose/lib/document_provider.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
/*!
|
||||
* Module dependencies.
|
||||
*/
|
||||
var Document = require('./document.js');
|
||||
var BrowserDocument = require('./browserDocument.js');
|
||||
|
||||
/**
|
||||
* Returns the Document constructor for the current context
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
module.exports = function() {
|
||||
if (typeof window !== 'undefined' && typeof document !== 'undefined' && document === window.document) {
|
||||
return BrowserDocument;
|
||||
} else {
|
||||
return Document;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user