@common-stack/store-mongo
Advanced tools
Comparing version 0.0.203 to 0.0.206
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14634
0
10
175
2
1
+ Added@common-stack/core@^0.0.206
+ Addedsequelize@^5.7.6
+ Added@common-stack/core@0.0.206(transitive)
+ Added@types/node@22.7.4(transitive)
+ Addedany-promise@1.3.0(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addedcls-bluebird@2.1.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddottie@2.0.6(transitive)
+ Addedinflection@1.12.0(transitive)
+ Addedis-bluebird@1.0.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addedmoment-timezone@0.5.45(transitive)
+ Addedms@2.1.3(transitive)
+ Addedretry-as-promised@3.2.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedsequelize@5.22.5(transitive)
+ Addedsequelize-pool@2.3.0(transitive)
+ Addedshimmer@1.2.1(transitive)
+ Addedtoposort-class@1.0.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedvalidator@13.12.0(transitive)
+ Addedwkx@0.4.8(transitive)