Socket
Socket
Sign inDemoInstall

@common-stack/store-mongo

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-stack/store-mongo - npm Package Compare versions

Comparing version 0.0.203 to 0.0.206

LICENSE

6

lib/index.js

@@ -120,9 +120,15 @@ module.exports =

let connectionOptions;
// (mongoose as any).Promise = global.Promise;
const generateMongo = (mongoUrl) => {
// creates default connection
mongoose.connect(mongoUrl, {}).then(() => {
console.info('mogoose connect - success');
// console.info(`uri - ${uri}`);
// console.info(`connectionOptions - ${connectionOptions}`);
}).catch((err) => {
console.error('mogoose connect - error - ', err);
// throw err;
process.kill(process.pid);
});
// to access default connection
const mongooseConnection = mongoose.connection;

@@ -129,0 +135,0 @@ return mongooseConnection;

13

package.json
{
"name": "@common-stack/store-mongo",
"version": "0.0.203",
"version": "0.0.206",
"description": "Sample core for higher packages to depend on",

@@ -42,7 +42,5 @@ "main": "lib/index.js",

"license": "ISC",
"devDependencies": {
"cross-env": "^5.1.3",
"jest": "^22.4.2",
"rimraf": "^2.6.1",
"webpack": "^4.19.0"
"dependencies": {
"@common-stack/core": "^0.0.206",
"sequelize": "^5.7.6"
},

@@ -52,3 +50,4 @@ "typings": "lib/index.d.ts",

"definition": "lib/index.d.ts"
}
},
"gitHead": "8d7f3cc1ac536adee126222d1c02d40558c4a6d8"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc