nestjs-papr
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "nestjs-papr", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Papr integration for NestJS", | ||
@@ -33,10 +33,10 @@ "author": "Vitaliy Grusha", | ||
"dependencies": { | ||
"@nestjs/common": "^10.1.2", | ||
"@nestjs/core": "^10.1.2", | ||
"papr": "^14.0.0", | ||
"@nestjs/common": "^10.2.0", | ||
"@nestjs/core": "^10.2.0", | ||
"papr": "^14.1.0", | ||
"rxjs": "^7.8.1" | ||
}, | ||
"devDependencies": { | ||
"@nestjs/platform-express": "^10.1.2", | ||
"@nestjs/testing": "^10.1.2", | ||
"@nestjs/platform-express": "^10.2.0", | ||
"@nestjs/testing": "^10.2.0", | ||
"@types/jest": "29.5.1", | ||
@@ -47,4 +47,4 @@ "@types/node": "18.16.12", | ||
"@typescript-eslint/parser": "^5.62.0", | ||
"eslint": "^8.46.0", | ||
"eslint-config-prettier": "^8.9.0", | ||
"eslint": "^8.47.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
@@ -51,0 +51,0 @@ "jest": "29.5.0", |
@@ -17,2 +17,3 @@ # nestjs-papr | ||
* sync and async configuration | ||
* automatic indexes creation | ||
@@ -77,9 +78,10 @@ ## Getting started | ||
export type UserProps = Omit<UserDoc, '_id' | 'createdAt' | 'updatedAt'>; | ||
export type UserCollection = 'users' | ||
export const UserModelDef = model(UserCollection, UserSchema, { | ||
indexes: [ | ||
// Optional indexes here (IndexDescription[] type); | ||
// Optional indexes here (IndexDescription[] type in mongodb); | ||
], | ||
collectionOptions: [ | ||
// Optional collectionOptions here (CollectionOptions type); | ||
] | ||
collectionOptions: { | ||
// Optional collectionOptions here (CollectionOptions type in mongodb); | ||
} | ||
}); | ||
@@ -155,3 +157,3 @@ | ||
// Number of attepts to connect to database | ||
// Number of attempts to connect to database | ||
retryAttempts?: number; | ||
@@ -158,0 +160,0 @@ |
48459
175
Updated@nestjs/common@^10.2.0
Updated@nestjs/core@^10.2.0
Updatedpapr@^14.1.0