Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nestjs/mongoose

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/mongoose - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

7

mongoose-core.module.js

@@ -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"
}
}
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