{"version":3,"sources":["jsdelivr-header.js","/npm/htb-module1@1.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,SAAW,QAAQ,YACzB,QAAQ,SAAW,WACf,QAAQ,IAAI,QAChB,EACA,QAAQ,QAAU,SAAU,GAExB,SACK,QAAQ,EAAW,CAChB,iBAAiB,EACjB,oBAAoB,IAEvB,MAAK,KACF,QAAQ,IAAI,qCAAqC,IAEpD,OAAO,IACJ,QAAQ,IAAI,8CACZ,QAAQ,MAAM,GACd,QAAQ,KAAK,EAAE,GAE3B","file":"/npm/htb-module1@1.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/htb-module1@1.0.3/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","const mongoose = require(\"mongoose\");\r\nexports.printMsg = function() {\r\n    console.log(\"HTB 1\");\r\n}\r\nexports.connect = function (mongo_uri){\r\n    // Connecting to the database\r\n    mongoose\r\n        .connect(mongo_uri, {\r\n            useNewUrlParser: true,\r\n            useUnifiedTopology: true,\r\n        })\r\n        .then(() => {\r\n            console.log(\"Successfully connected to database\");\r\n        })\r\n        .catch((error) => {\r\n            console.log(\"database connection failed. exiting now...\");\r\n            console.error(error);\r\n            process.exit(1);\r\n        });\r\n}"]}