From b89ff938201745d90e5aba433e5eebd24d924551 Mon Sep 17 00:00:00 2001 From: andreigiura Date: Thu, 17 Oct 2024 16:41:15 +0300 Subject: [PATCH] replace ErdnestConfigService with MxnestConfigService (#237) * replace ErdnestConfigService with MxnestConfigService * make cache service optional for native auth guard * throw error if is not native auth error * throw error if is not native auth error * remove empty lines * remove unused import * increment version * updated lerna version * updated depdendencies --------- Co-authored-by: tanghel --- lerna.json | 2 +- package-lock.json | 24 +++++++++---------- packages/auth/README.md | 14 +++++------ packages/auth/package.json | 8 +++---- packages/auth/src/jwt.admin.guard.ts | 8 +++---- packages/auth/src/jwt.authenticate.guard.ts | 8 +++---- packages/auth/src/jwt.or.native.auth.guard.ts | 8 +++---- packages/auth/src/native.auth.admin.guard.ts | 12 +++++----- packages/auth/src/native.auth.guard.ts | 21 ++++++++-------- packages/cache/package.json | 8 +++---- packages/common/package.json | 4 ++-- packages/common/src/common/config/index.ts | 2 +- ...ig.service.ts => mxnest.config.service.ts} | 2 +- packages/common/src/index.ts | 2 +- .../common/src/utils/erdnest.constants.ts | 1 - packages/common/src/utils/mxnest.constants.ts | 1 + packages/elastic/package.json | 4 ++-- packages/http/package.json | 6 ++--- packages/monitoring/package.json | 2 +- packages/rabbitmq/package.json | 4 ++-- packages/redis/package.json | 2 +- 21 files changed, 71 insertions(+), 72 deletions(-) rename packages/common/src/common/config/{erdnest.config.service.ts => mxnest.config.service.ts} (81%) delete mode 100644 packages/common/src/utils/erdnest.constants.ts create mode 100644 packages/common/src/utils/mxnest.constants.ts diff --git a/lerna.json b/lerna.json index ad2ea202..75c46db4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,7 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "3.7.8", + "version": "4.0.0", "packages": [ "packages/*" ], diff --git a/package-lock.json b/package-lock.json index a41df63a..58174c1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13786,7 +13786,7 @@ }, "packages/auth": { "name": "@multiversx/sdk-nestjs-auth", - "version": "3.7.8", + "version": "4.0.0", "license": "GPL-3.0-or-later", "dependencies": { "@multiversx/sdk-core": "^13.4.1", @@ -13802,9 +13802,9 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-cache": "^3.7.2", - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-cache": "^4.0.0", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x" } }, @@ -13828,9 +13828,9 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", - "@multiversx/sdk-nestjs-redis": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", + "@multiversx/sdk-nestjs-redis": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/core": "^10.x" } @@ -13867,7 +13867,7 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/config": "^3.x", "@nestjs/core": "^10.x", @@ -13890,7 +13890,7 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-http": "^3.7.2", + "@multiversx/sdk-nestjs-http": "^4.0.0", "@nestjs/common": "^10.x" } }, @@ -13912,8 +13912,8 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/core": "^10.x" } @@ -13954,7 +13954,7 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", "@nestjs/common": "^10.x" } }, diff --git a/packages/auth/README.md b/packages/auth/README.md index 799b8629..eaae8687 100644 --- a/packages/auth/README.md +++ b/packages/auth/README.md @@ -39,17 +39,17 @@ It also provides some [NestJS Decorators](https://docs.nestjs.com/custom-decorat ## Configuration The authentication guards need 2 parameters on instantiation. -The fist parameter needs to be an instance of a class implementing the `ErdnestConfigService` interface. +The fist parameter needs to be an instance of a class implementing the `MxnestConfigService` interface. The second one, needs to be an instance of a [Caching service](https://www.npmjs.com/package/@multiversx/sdk-nestjs-cache) ```typescript import { Injectable } from "@nestjs/common"; import { ApiConfigService } from "./api.config.service"; -import { ErdnestConfigService } from "@multiversx/sdk-nestjs-common"; +import { MxnestConfigService } from "@multiversx/sdk-nestjs-common"; @Injectable() -export class SdkNestjsConfigServiceImpl implements ErdnestConfigService { +export class SdkNestjsConfigServiceImpl implements MxnestConfigService { constructor( private readonly apiConfigService: ApiConfigService, ) { } @@ -80,12 +80,12 @@ You can register it as a provider, and the DI mechanism of NestJS will handle in ```typescript import { Module } from '@nestjs/common'; -import { ERDNEST_CONFIG_SERVICE } from "@multiversx/sdk-nestjs-common"; +import { MXNEST_CONFIG_SERVICE } from "@multiversx/sdk-nestjs-common"; @Module({ providers: [ { - provide: ERDNEST_CONFIG_SERVICE, + provide: MXNEST_CONFIG_SERVICE, useClass: SdkNestjsConfigServiceImpl, }, ], @@ -136,7 +136,7 @@ In this case, the guard is method-scoped. Only `createProject` benefits from the ### Native Auth Admin Guard -`NativeAuthAdminGuard` allows only specific addresses to be authenticated. The addresses are defined in the [config](#configuration) file and are passed to the guard via the ErdnestConfigService. +`NativeAuthAdminGuard` allows only specific addresses to be authenticated. The addresses are defined in the [config](#configuration) file and are passed to the guard via the MxnestConfigService. *This guard cannot be used by itself. It always has to be paired with a `NativeAuthGuard`* @@ -166,7 +166,7 @@ export class UsersController { ### JWT Admin Guard -`JwtAdminGuard` relies on the same mechanism, only specific addresses can be authenticated. The addresses are defined in the [config](#configuration) file and are passed to the guard via the ErdnestConfigService. +`JwtAdminGuard` relies on the same mechanism, only specific addresses can be authenticated. The addresses are defined in the [config](#configuration) file and are passed to the guard via the MxnestConfigService. *There is one caveat: when creating the JWT, the client must include an `address` field in the payload, before signing it.* diff --git a/packages/auth/package.json b/packages/auth/package.json index 22e5c7bf..1b270738 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-auth", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs auth package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,9 +38,9 @@ "jsonwebtoken": "^9.0.0" }, "peerDependencies": { - "@multiversx/sdk-nestjs-cache": "^3.7.2", - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-cache": "^4.0.0", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x" }, "publishConfig": { diff --git a/packages/auth/src/jwt.admin.guard.ts b/packages/auth/src/jwt.admin.guard.ts index 14f48049..ec17d1d1 100644 --- a/packages/auth/src/jwt.admin.guard.ts +++ b/packages/auth/src/jwt.admin.guard.ts @@ -1,11 +1,11 @@ import { Injectable, CanActivate, ExecutionContext, Inject } from '@nestjs/common'; -import { ExecutionContextUtils, ErdnestConfigService, ERDNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; +import { ExecutionContextUtils, MxnestConfigService, MXNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; @Injectable() export class JwtAdminGuard implements CanActivate { constructor( - @Inject(ERDNEST_CONFIG_SERVICE) - private readonly erdnestConfigService: ErdnestConfigService + @Inject(MXNEST_CONFIG_SERVICE) + private readonly mxnestConfigService: MxnestConfigService ) { } // eslint-disable-next-line require-await @@ -14,7 +14,7 @@ export class JwtAdminGuard implements CanActivate { ): Promise { - const admins = this.erdnestConfigService.getSecurityAdmins(); + const admins = this.mxnestConfigService.getSecurityAdmins(); if (!admins) { return false; } diff --git a/packages/auth/src/jwt.authenticate.guard.ts b/packages/auth/src/jwt.authenticate.guard.ts index c243cf62..642d55e9 100644 --- a/packages/auth/src/jwt.authenticate.guard.ts +++ b/packages/auth/src/jwt.authenticate.guard.ts @@ -1,14 +1,14 @@ import { Injectable, CanActivate, ExecutionContext, Inject } from '@nestjs/common'; import { verify } from 'jsonwebtoken'; import { PerformanceProfiler } from '@multiversx/sdk-nestjs-monitoring'; -import { ErdnestConfigService, ERDNEST_CONFIG_SERVICE, DecoratorUtils, ExecutionContextUtils } from '@multiversx/sdk-nestjs-common'; +import { MxnestConfigService, MXNEST_CONFIG_SERVICE, DecoratorUtils, ExecutionContextUtils } from '@multiversx/sdk-nestjs-common'; import { NoAuthOptions } from './decorators/no.auth'; @Injectable() export class JwtAuthenticateGuard implements CanActivate { constructor( - @Inject(ERDNEST_CONFIG_SERVICE) - private readonly erdnestConfigService: ErdnestConfigService + @Inject(MXNEST_CONFIG_SERVICE) + private readonly mxnestConfigService: MxnestConfigService ) { } async canActivate( @@ -31,7 +31,7 @@ export class JwtAuthenticateGuard implements CanActivate { const profiler = new PerformanceProfiler(); try { - const jwtSecret = this.erdnestConfigService.getJwtSecret(); + const jwtSecret = this.mxnestConfigService.getJwtSecret(); request.jwt = await new Promise((resolve, reject) => { verify(jwt, jwtSecret, (err: any, decoded: any) => { diff --git a/packages/auth/src/jwt.or.native.auth.guard.ts b/packages/auth/src/jwt.or.native.auth.guard.ts index 63a443d1..931d67c1 100644 --- a/packages/auth/src/jwt.or.native.auth.guard.ts +++ b/packages/auth/src/jwt.or.native.auth.guard.ts @@ -1,19 +1,19 @@ import { Injectable, CanActivate, ExecutionContext, Inject, Optional } from '@nestjs/common'; import { CacheService } from '@multiversx/sdk-nestjs-cache'; -import { ErdnestConfigService, ERDNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; +import { MxnestConfigService, MXNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; import { JwtAuthenticateGuard } from './jwt.authenticate.guard'; import { NativeAuthGuard } from './native.auth.guard'; @Injectable() export class JwtOrNativeAuthGuard implements CanActivate { constructor( - @Inject(ERDNEST_CONFIG_SERVICE) private readonly erdnestConfigService: ErdnestConfigService, + @Inject(MXNEST_CONFIG_SERVICE) private readonly mxnestConfigService: MxnestConfigService, @Optional() private readonly cacheService?: CacheService, ) { } async canActivate(context: ExecutionContext): Promise { - const jwtGuard = new JwtAuthenticateGuard(this.erdnestConfigService); - const nativeAuthGuard = new NativeAuthGuard(this.erdnestConfigService, this.cacheService); + const jwtGuard = new JwtAuthenticateGuard(this.mxnestConfigService); + const nativeAuthGuard = new NativeAuthGuard(this.mxnestConfigService, this.cacheService); try { const result = await jwtGuard.canActivate(context); diff --git a/packages/auth/src/native.auth.admin.guard.ts b/packages/auth/src/native.auth.admin.guard.ts index 406f4253..b474bea9 100644 --- a/packages/auth/src/native.auth.admin.guard.ts +++ b/packages/auth/src/native.auth.admin.guard.ts @@ -1,25 +1,25 @@ import { Injectable, CanActivate, ExecutionContext, Inject } from '@nestjs/common'; -import { ExecutionContextUtils, ErdnestConfigService, ERDNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; +import { ExecutionContextUtils, MxnestConfigService, MXNEST_CONFIG_SERVICE } from '@multiversx/sdk-nestjs-common'; /** * This Guard allows only specific addresses to be authenticated. * - * The addresses are defined in the config file and are passed to the guard via the ErdnestConfigService. + * The addresses are defined in the config file and are passed to the guard via the MxnestConfigService. * * @return {boolean} `canActivate` returns true if the address is in the list of admins and uses a valid Native-Auth token. * * @param {CachingService} CachingService - Dependency of `NativeAuthGuard` - * @param {ErdnestConfigService} ErdnestConfigService - Dependency of `NativeAuthGuard`. Also used to get the list of admins (`getSecurityAdmins`). + * @param {MxnestConfigService} MxnestConfigService - Dependency of `NativeAuthGuard`. Also used to get the list of admins (`getSecurityAdmins`). */ @Injectable() export class NativeAuthAdminGuard implements CanActivate { constructor( - @Inject(ERDNEST_CONFIG_SERVICE) - private readonly erdnestConfigService: ErdnestConfigService + @Inject(MXNEST_CONFIG_SERVICE) + private readonly mxnestConfigService: MxnestConfigService ) { } canActivate(context: ExecutionContext): boolean { - const admins = this.erdnestConfigService.getSecurityAdmins(); + const admins = this.mxnestConfigService.getSecurityAdmins(); if (!admins) { return false; } diff --git a/packages/auth/src/native.auth.guard.ts b/packages/auth/src/native.auth.guard.ts index 7f658090..0f82b9c2 100644 --- a/packages/auth/src/native.auth.guard.ts +++ b/packages/auth/src/native.auth.guard.ts @@ -1,7 +1,7 @@ import { Injectable, CanActivate, ExecutionContext, Optional, Inject, Logger } from '@nestjs/common'; import { CacheService } from '@multiversx/sdk-nestjs-cache'; import { NativeAuthError, NativeAuthServer } from '@multiversx/sdk-native-auth-server'; -import { DecoratorUtils, ErdnestConfigService, ERDNEST_CONFIG_SERVICE, UrlUtils, ExecutionContextUtils } from '@multiversx/sdk-nestjs-common'; +import { DecoratorUtils, MxnestConfigService, MXNEST_CONFIG_SERVICE, UrlUtils, ExecutionContextUtils } from '@multiversx/sdk-nestjs-common'; import { PerformanceProfiler } from '@multiversx/sdk-nestjs-monitoring'; import { NativeAuthInvalidOriginError } from './errors/native.auth.invalid.origin.error'; import { NoAuthOptions } from './decorators'; @@ -17,13 +17,13 @@ export class NativeAuthGuard implements CanActivate { private readonly authServer: NativeAuthServer; constructor( - @Inject(ERDNEST_CONFIG_SERVICE) erdnestConfigService: ErdnestConfigService, + @Inject(MXNEST_CONFIG_SERVICE) mxnestConfigService: MxnestConfigService, @Optional() cacheService?: CacheService, ) { const nativeAuthServerConfig: NativeAuthServerConfig = { - apiUrl: erdnestConfigService.getApiUrl(), - maxExpirySeconds: erdnestConfigService.getNativeAuthMaxExpirySeconds(), - acceptedOrigins: erdnestConfigService.getNativeAuthAcceptedOrigins(), + apiUrl: mxnestConfigService.getApiUrl(), + maxExpirySeconds: mxnestConfigService.getNativeAuthMaxExpirySeconds(), + acceptedOrigins: mxnestConfigService.getNativeAuthAcceptedOrigins(), cache: { getValue: async function (key: string): Promise { if (key === 'block:timestamp:latest') { @@ -35,20 +35,19 @@ export class NativeAuthGuard implements CanActivate { if (cacheService) { return await cacheService.get(key); } - - throw new Error('CacheService is not available in the context'); + return undefined; }, setValue: async function (key: string, value: T, ttl: number): Promise { if (cacheService) { return await cacheService.set(key, value, ttl); } - throw new Error('CacheService is not available in the context'); + return undefined; }, }, }; - const acceptedOrigins = erdnestConfigService.getNativeAuthAcceptedOrigins(); + const acceptedOrigins = mxnestConfigService.getNativeAuthAcceptedOrigins(); const shouldAllowAllOrigins = acceptedOrigins && acceptedOrigins.length === 1 && acceptedOrigins[0] === '*'; if (shouldAllowAllOrigins) { nativeAuthServerConfig.isOriginAccepted = () => true; // allow all origins @@ -130,9 +129,9 @@ export class NativeAuthGuard implements CanActivate { request.res.set('X-Native-Auth-Error-Message', message); request.res.set('X-Native-Auth-Duration', profiler.duration); } + return false; } - - return false; + throw error; } } } diff --git a/packages/cache/package.json b/packages/cache/package.json index 7e75ddc4..5832c423 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-cache", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs cache package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,9 +40,9 @@ "uuid": "^8.3.2" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", - "@multiversx/sdk-nestjs-redis": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", + "@multiversx/sdk-nestjs-redis": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/core": "^10.x" }, diff --git a/packages/common/package.json b/packages/common/package.json index f08eefbc..3c8938cd 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-common", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs common package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,7 +40,7 @@ "winston": "^3.7.2" }, "peerDependencies": { - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/config": "^3.x", "@nestjs/core": "^10.x", diff --git a/packages/common/src/common/config/index.ts b/packages/common/src/common/config/index.ts index b9408f2d..27383b7e 100644 --- a/packages/common/src/common/config/index.ts +++ b/packages/common/src/common/config/index.ts @@ -1,6 +1,6 @@ export * from './base.config.service'; export * from './base.config.utils'; -export * from './erdnest.config.service'; +export * from './mxnest.config.service'; export * from './configuration.loader.error'; export * from './configuration.loader.schema.expander'; export * from './configuration.loader.schema.type'; diff --git a/packages/common/src/common/config/erdnest.config.service.ts b/packages/common/src/common/config/mxnest.config.service.ts similarity index 81% rename from packages/common/src/common/config/erdnest.config.service.ts rename to packages/common/src/common/config/mxnest.config.service.ts index 3b956c96..ada17a0e 100644 --- a/packages/common/src/common/config/erdnest.config.service.ts +++ b/packages/common/src/common/config/mxnest.config.service.ts @@ -1,4 +1,4 @@ -export interface ErdnestConfigService { +export interface MxnestConfigService { getSecurityAdmins(): string[]; getJwtSecret(): string; diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index fac821a7..fc7bead1 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -9,7 +9,7 @@ export * from './utils/file.utils'; export * from './utils/locker'; export * from './utils/logger.initializer'; export * from './utils/match.utils'; -export * from './utils/erdnest.constants'; +export * from './utils/mxnest.constants'; export * from './utils/number.utils'; export * from './utils/url.utils'; export * from './utils/origin.logger'; diff --git a/packages/common/src/utils/erdnest.constants.ts b/packages/common/src/utils/erdnest.constants.ts deleted file mode 100644 index 363bf0cd..00000000 --- a/packages/common/src/utils/erdnest.constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const ERDNEST_CONFIG_SERVICE = 'ErdnestConfigService'; diff --git a/packages/common/src/utils/mxnest.constants.ts b/packages/common/src/utils/mxnest.constants.ts new file mode 100644 index 00000000..99a60302 --- /dev/null +++ b/packages/common/src/utils/mxnest.constants.ts @@ -0,0 +1 @@ +export const MXNEST_CONFIG_SERVICE = 'MxnestConfigService'; diff --git a/packages/elastic/package.json b/packages/elastic/package.json index 1266c5e7..d31736bf 100644 --- a/packages/elastic/package.json +++ b/packages/elastic/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-elastic", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs elastic package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -31,7 +31,7 @@ "typescript": "^4.3.5" }, "peerDependencies": { - "@multiversx/sdk-nestjs-http": "^3.7.2", + "@multiversx/sdk-nestjs-http": "^4.0.0", "@nestjs/common": "^10.x" }, "publishConfig": { diff --git a/packages/http/package.json b/packages/http/package.json index 5d71dae5..926ece76 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-http", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs http package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,8 +38,8 @@ "axios": "^1.7.4" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", - "@multiversx/sdk-nestjs-monitoring": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", + "@multiversx/sdk-nestjs-monitoring": "^4.0.0", "@nestjs/common": "^10.x", "@nestjs/core": "^10.x" }, diff --git a/packages/monitoring/package.json b/packages/monitoring/package.json index b1b75f8a..1eb97343 100644 --- a/packages/monitoring/package.json +++ b/packages/monitoring/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-monitoring", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs monitoring package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/rabbitmq/package.json b/packages/rabbitmq/package.json index 89e54d7e..f1680782 100644 --- a/packages/rabbitmq/package.json +++ b/packages/rabbitmq/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-rabbitmq", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs rabbitmq client package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -37,7 +37,7 @@ "uuid": "^8.3.2" }, "peerDependencies": { - "@multiversx/sdk-nestjs-common": "^3.7.2", + "@multiversx/sdk-nestjs-common": "^4.0.0", "@nestjs/common": "^10.x" }, "publishConfig": { diff --git a/packages/redis/package.json b/packages/redis/package.json index c1af20c6..ec74c833 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-redis", - "version": "3.7.8", + "version": "4.0.0", "description": "Multiversx SDK Nestjs redis client package", "main": "lib/index.js", "types": "lib/index.d.ts",