{"version":3,"sources":["jsdelivr-header.js","/npm/to-mongodb-core@2.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,YAAc,SAAS,GACzB,MAAwB,mBAAb,EAAG,QACe,mBAAlB,EAAG,aACuB,mBAA1B,EAAG,oBACe,mBAAlB,EAAG,YAGhB,EAEA,OAAO,QAAU,SAAS,EAAI,GACxB,YAAY,GACd,EAAG,YAAW,SAAS,EAAK,GAC1B,GAAI,EAAK,OAAO,EAAG,GACnB,EAAG,KAAM,EACX,IAIF,EAAG,IAAI,MAAM,6DACf","file":"/npm/to-mongodb-core@2.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/to-mongodb-core@2.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var isMongojsDb = function(db) {\n  if (typeof db.close !== 'function') return false;\n  if (typeof db.collection !== 'function') return false;\n  if (typeof db.getCollectionNames !== 'function') return false;\n  if (typeof db._getServer !== 'function') return false;\n\n  return true;\n};\n\nmodule.exports = function(db, cb) {\n  if (isMongojsDb(db)) {\n    db._getServer(function(err, srv) {\n      if (err) return cb(err);\n      cb(null, srv);\n    });\n    return;\n  }\n\n  cb(new Error('Unrecognized mongojs instance. Only mongojs +1 supported.'));\n};\n"]}