@nestjs/mongoose
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -20,9 +20,6 @@ "use strict"; | ||
let MongooseCoreModule = MongooseCoreModule_1 = class MongooseCoreModule { | ||
static forRoot(uri, options = { useMongoClient: true }) { | ||
static forRoot(uri, options = {}) { | ||
const connectionProvider = { | ||
provide: 'DbConnectionToken', | ||
useFactory: () => __awaiter(this, void 0, void 0, function* () { | ||
mongoose.Promise = global.Promise; | ||
return yield mongoose.connect(uri, options); | ||
}), | ||
useFactory: () => __awaiter(this, void 0, void 0, function* () { return yield mongoose.connect(uri, options); }), | ||
}; | ||
@@ -29,0 +26,0 @@ return { |
@@ -13,3 +13,3 @@ "use strict"; | ||
let MongooseModule = MongooseModule_1 = class MongooseModule { | ||
static forRoot(uri, options = { useMongoClient: true }) { | ||
static forRoot(uri, options = {}) { | ||
return { | ||
@@ -16,0 +16,0 @@ module: MongooseModule_1, |
{ | ||
"name": "@nestjs/mongoose", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@mongoose)", | ||
@@ -8,5 +8,5 @@ "author": "Kamil Mysliwiec", | ||
"peerDependencies": { | ||
"@nestjs/common": "^4.3.0", | ||
"mongoose": "^4.11.13" | ||
"@nestjs/common": "^4.5.0", | ||
"mongoose": "^5.0.1" | ||
} | ||
} |
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
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
9034
133